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?

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 -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



Leave a Reply 31

Your email address will not be published. Required fields are marked *


james cribb

james cribb

Has got to be wrong…..

Prasad

Prasad

WRONG

Correct ans is Get-MsolUser -all -unlicensedUserOnly|remove -MsolUser -force

Bob

Bob

Prasad, can you explain why the ‘-all’ is required, if the ‘-UnlicensedUsersOnly’ parameter is being used?

Hans

Hans

@ Bob
-all is required because the default number of lines is 500.

yow yow

yow yow

yow yowwwwww

shashuma

shashuma

C is the correct answer.

Robinhood

Robinhood

Just did the exam a couple of days ago and the following questions are still valid.
I counted 37. I actually typed the numbers but felt against it.
( The following with variations 31,41,42,58,64)
These are very good practise questions but It does not and should not replace doing the actual learning either through MSDN learning sites or Pluralsights.
I passed.

Nick

Nick

Wrote this exam today….only about 10-15 of these questions in the exam. Lots of new questions

kadirovich

kadirovich

Did you pass?

Nick

Nick

Nope got 684

kadirovich

kadirovich

There’s a second-shot option in case you didn’t know. Good luck 🙂

kadirovich

kadirovich

Passed it today. Got 736. Exam is pretty straightforward. These dumps and links helped me alot. It’s important to check all related videos on MVA. Otherwise you’ll go through hard times.

Hagag

Hagag

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

GhostWriter

GhostWriter

Passed in September with 823. About a dozen new questions, but this dump was immensely helpful.

Monica

Monica

Passed 70-346 exam on my first try with a score of 845. About 10-20 new questions in my exam, and some of the questions’ wording also have been changed. Make sure you know ADFS, Azure AD Powershell commands and the differences in all Office 365 plans. I learned the passleader 70-346 dumps (http://www.passleader.com/70-346.html), all new questions were available, and most of the questions’ answers have been corrected by passleader!

MCSE

MCSE

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

joern haavard

joern haavard

Finally passed 70-346 exam!!!

The 70-346 exam is separated in 3 sections now. Total 56 questions.

Section 1 — Fabricam Case Study, 8 questions.

Section 2 — 44 normal questions.

Section 3 — 4 Yes/No questions.

Learned all questions from PassLeader 70-346 dumps, and PassLeader has corrected its answers, 100% valid now!

p.s. Here are part of free PassLeader 70-346 dumps: https://doc.co/sFn6M5

Good Luck!!!