Which Windows PowerShell command should you run? A company migrates - ProProfs Discuss
Topics
Products
Follow Us:

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.The additional 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.



A. Get-MsolUser -All Enabled Filter DisabledOnly | Remove-MsolUser -Force
B. Get-MsolUser-Enabled Filter DisabledOnly | Remove MsolUser -Force
C. Get-MsolUser -All -Unlicensed UsersOnly | Remove-MsolUser -Force
D. Get-MsolUser -Unlicensed UsersOnly | Remove-MsolUser - Force

This question is part of 70-346 - O365 Identities/Requirements
Asked by Wyatt Williams, Last updated: Aug 05, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Jan 09, 2017

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

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.