My Blog List

Wednesday, July 20, 2022

MsolService commands

 #Connect to MsolService

Connect-MsolService

Get-MsolUser -UserPrincipalName affinity_dev@bankaust.com.au  | fl

Get-MsolUser -All | Where {$_.BlockCredential -eq $True} | Select DisplayName,UserPrincipalName,BlockCredential,IsLicensed | Export-Csv C:\temp\Blocked_0365.csv

Get-MsolUser -UserPrincipalName sahan.Jayarathna@bankaust.com.au | fl

Get License details of Azure AD User

Get-MsolUser -UserPrincipalName Alyssa.Roylance@bankaust.com.au | Select UserPrincipalName, Licenses

#get licnese based on user

Get-MsolUser -UserPrincipalName Aman.Nisar@bankaust.com.au | fl

#get all licenses in tenancy 

Get-MsolAccountSku


#get users with a license type

Get-MsolUser -All| Where-Object {($_.licenses).AccountSkuId -match "DYN365_ENTERPRISE_SALES"} | Select UserPrincipalName,DisplayName,BlockCredential | Export-Csv C:\Work\Projects\d365es.csv


#DYN365_ENTERPRISE_CUSTOMER_SERVICE - Dynamics 365 Customer Service Enterprise

#D365_CUSTOMER_SERVICE_ENT_ATTACH - Dynamics 365 Customer Service Enterprise Attach to Qualifying Dynamics 365 Base Offer

#DYN365_TEAM_MEMBERS  - Dynamics 365 Team Members

#DYN365_ENTERPRISE_SALES  - Dynamics 365 Sales Enterprise Edition

No comments:

Post a Comment

Steps to extract ntfs share details from file server shares

As part of a file server consolidation effort, I was tasked to come up with a method to move multiple shares on multiple shares to a WSFC. I...