autounattend: disable forced password expiry in autounattended install stage already

This commit is contained in:
Astro 2023-05-24 21:28:15 +02:00
parent 16e041282f
commit 9a92143337
1 changed files with 10 additions and 12 deletions

View File

@ -58,18 +58,16 @@ let
assertCommand = c: builtins.typeOf c == "string" || builtins.typeOf c == "set" && builtins.hasAttr "Path" c && builtins.hasAttr "Description" c; assertCommand = c: builtins.typeOf c == "string" || builtins.typeOf c == "set" && builtins.hasAttr "Path" c && builtins.hasAttr "Description" c;
commands = builtins.map (x: assert assertCommand x; if builtins.typeOf x == "string" then { Path = x; Description = x; } else x) ( commands = builtins.map (x: assert assertCommand x; if builtins.typeOf x == "string" then { Path = x; Description = x; } else x) (
[ [ {
{ Path = "powershell.exe Set-ExecutionPolicy -Force Unrestricted";
Path = "powershell.exe Set-ExecutionPolicy -Force Unrestricted"; Description = "Allow unsigned powershell scripts.";
Description = "Allow unsigned powershell scripts."; } {
} Path = ''powershell.exe ${driveLetter}\win-bundle-installer.exe'';
] Description = "Install any declared packages.";
++ [ } {
{ Path = "net accounts /maxpwage:unlimited";
Path = ''powershell.exe ${driveLetter}\win-bundle-installer.exe''; Description = "Disable forced password expiry.";
Description = "Install any declared packages."; } ]
}
]
++ setupCommands ++ setupCommands
++ [ ++ [
{ {