13 lines
399 B
PowerShell
13 lines
399 B
PowerShell
# WizardKit: Disable Password Expiration (Local Accounts)
|
|
|
|
#Requires -Version 3.0
|
|
if (Test-Path Env:\DEBUG) {
|
|
Set-PSDebug -Trace 1
|
|
}
|
|
$Host.UI.RawUI.WindowTitle = "Disable Password Expiration"
|
|
$Host.UI.RawUI.BackgroundColor = "black"
|
|
$Host.UI.RawUI.ForegroundColor = "white"
|
|
$ProgressPreference = "SilentlyContinue"
|
|
|
|
# Main
|
|
Get-LocalUser | Set-LocalUser -PasswordNeverExpires $true
|