Forum Discussion

pardeep soba's avatar
pardeep soba
Copper Contributor
Jul 04, 2017

i need to export users in powershell with centricaplc.onmicrosoft.com domain and are licenced

i need to export users in powershell with centricaplc.onmicrosoft.com domain and are licenced   i tried this command doesnt work   Get-MsolUser -All | Where-Object {$_.Domain -eq "centricaplc.onm...
  • SanthoshB1's avatar
    Jul 10, 2017

    You can try this script

     

    Get-MsolUser -All |Where-Object {$_.UserPrincipalName -like "*centricaplc.onmicrosoft.com" -and $_.isLicensed -eq $true } |Export-csv c:\support\cloud.csv -NoTypeInformation

Resources