Get all user accounts where password never expires using PowerShell

Get-ADUser -Filter * -Properties * | Where-Object {$_.PasswordNeverExpires -eq $true} | Select-Object userprincipalname,CanonicalName | Out-GridView

Kommentarer

Populære opslag fra denne blog

Microsoft Office 2016 and the AUTO_ACTIVATE property

Access Exchange online with Office 365 multi-factor authentication (MFA/2FA)

Disable logon and logoff events (event id 4624, 4625, 4634 (and all the other ones...))