Powershell PasswordNeverExpire to detect users
PS:
Password Never Expire kullanıcıları tespit et - Identify Password Never Expire users Get-ADUser -Filter ‘useraccountcontrol -band 66048’ -Properties useraccountcontrol get-aduser -Filter {passwordNeverExpires -eq "true"} |Select-Object name kullanıcıdan Password Never Expire kaldır - Remove Password Never Expire from user get-aduser "username"| set-aduser -PasswordNeverExpires $false Kullanıcılardan Password Never Expire kaldır - Remove Password Never Expire from all users get-aduser -Filter {passwordNeverExpires -eq "true"} |et-aduser -PasswordNeverExpires $false
This post is licensed under CC BY 4.0 by the author.