A company migrates to Office 365. 2,000 active users have valid Office 365 licenses assigned.
An additional 5,000 user accounts were created during the migration and testing processes.
These users do not have any licenses assigned.
You need to remove the Office 365 user accounts that do not have any licenses assigned by using the least amount of administrative effort.
Which Windows PowerShell command should you run?
A.
Get-MsolUser -all | Where-Object {$_.isLicensed -ne “true”}| Remove-MsolUser -Force
B.
Get-MsolUser | Where-Object {$_.isLicensed -ne “true”}| Remove-MsolUser -Force
C.
Get-MsolUser-EnabledFilter “DisabledOnly” | Remove-MsolUser -Force
D.
Get-MsolUser -UnlicensedUsersOnly | Remove-MsolUserForce
Explanation:
https://community.office365.com/en-us/f/148/t/54867
“- all” is used if there are more than 500 users