Microsoft
74-325 · Question #59
You need to generate a list of users whose passwords are set to never expire. Which Windows PowerShell cmdlet should you run?
The correct answer is C. Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires. See the full explanation below for the reasoning.
Question
You need to generate a list of users whose passwords are set to never expire. Which Windows PowerShell cmdlet should you run?
Options
- AGet-MSOLUser | Set-MsolUser-PasswordNeverExpires $false
- BSet-MSOLUser | Select UserPrincipalName, PasswordNeverExpires $true
- CGet-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
- DGet-MSOLUser | Set-MsolUser-PasswordNeverExpires $true
How the community answered
(63 responses)- A6% (4)
- B14% (9)
- C75% (47)
- D5% (3)
Community Discussion
No community discussion yet for this question.