Skip to content

Commit

Permalink
Update users.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Jun 9, 2024
1 parent 09af6c0 commit d157aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/users.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if ($userName -ne "") {
}

# Set maximum password age to unlimited
Start-Process -FilePath "cmd.exe" -ArgumentList "/c net accounts /maxpwage:unlimited" -NoNewWindow -Wait -Verb RunAs
Start-Process -FilePath "cmd.exe" -ArgumentList "/c net accounts /maxpwage:unlimited" -NoNewWindow -Wait

# Prevent the script from closing immediately
Read-Host -Prompt "Press Enter to exit..."

0 comments on commit d157aa3

Please sign in to comment.