PdfPrep.com

Which Windows PowerShell cmdlet should you use?

Your company uses Office 365. You need to identify which users do NOT have a Microsoft Exchange Online license assigned to their user account.

Which Windows PowerShell cmdlet should you use?
A . Get-ManagementRoleAssignment
B . Get-User
C . Get-RoleGroupMember
D . Get-LogonStatistics
E . Get-RemovedMailbox
F . Get-MSOLContact
G . Get-Recipient
H . Get-Mailbox
. Get-Group
. Get-MailboxStatistics
. Get-MSOLUser
. Get-MailContact

Answer: K

Explanation:

We use the Get-MsolUser CUnlicensedUsersOnly command to retrieve all users which do not have a Microsoft Exchange Online license.

The Get-MsolUser cmdlet can be used to retrieve an individual user, or list of users.

The -UnlicensedUsersOnly [<SwitchParameter>] parameter filters for only users who are not assigned a license.

Exit mobile version