nerdexam
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)
  • A
    6% (4)
  • B
    14% (9)
  • C
    75% (47)
  • D
    5% (3)

Community Discussion

No community discussion yet for this question.

Full 74-325 Practice