From c631882854ff3b361bc6e4b7ed4c5f6d7fa4708a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 9 Aug 2024 02:58:01 +0200 Subject: [PATCH] Disable users by default --- scripts/Windows/Scripts/Users.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Users.ps1 b/scripts/Windows/Scripts/Users.ps1 index eee92a8b..7024231c 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -97,7 +97,7 @@ $null = New-Module { $userArguments.fullName = $displayName; } - New-LocalUser -NoPassword @userArguments; + New-LocalUser -Disabled -NoPassword @userArguments; Set-LocalUser $name -PasswordNeverExpires $true; Set-LocalUser $name -PasswordNeverExpires $false; }