PrepAway - Latest Free Exam Questions & Answers

Which Windows PowerShell command should you run?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Get-MsolUser -All -EnabledFilter “DisabledOnly” | Remove-MsolUser -Force

B.
Get-MsolUser-EnabledFilter “DisabledOnly” | Remove-MsolUser -Force

C.
Get-MsolUser -All -UnlicensedUsersOnly | Remove-MsolUser -Force

D.
Get-MsolUser -UnlicensedUsersOnly | Remove-MsolUser–Force

Explanation:
http://technet.microsoft.com/en-us/library/dn194133.aspx

19 Comments on “Which Windows PowerShell command should you run?

    1. Smith says:

      I would go with D.
      In the same article that you’ve referred to it is mentioned that you can also use:

      Get-MsolUser -UnlicensedUsersOnly

      By avoiding the -All param (as per option C which is also correct) option D is considered the solution with the least amount of administrative effort.




      0



      0
  1. Jasker says:

    Just passed. Also case studies now. some new questions. Recommend study reports, study admin groups. For instance: can a Sharepoint administrator create mailboxes? A user management administrator can do the following in Exchange: Administrator, view-only administrator, nothing. Same for Sharepoint and Skype.




    0



    0

Leave a Reply