feat: Update command to set user password policy (#1407)

This commit is contained in:
Kroese 2025-09-18 22:53:16 +02:00 committed by GitHub
parent d25e18c0c5
commit d9211a77df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 7 deletions

View file

@ -260,7 +260,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>cmd /C wmic useraccount where name="Docker" set PasswordExpires=false</CommandLine>
<CommandLine>powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1</CommandLine>
<Description>Password Never Expires</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">