Leave groups unspecified

This commit is contained in:
Manuel Thalmann 2024-08-08 17:50:32 +02:00
parent 62db17bda2
commit ee06982b21

View file

@ -101,10 +101,6 @@ $null = New-Module {
Set-LocalUser $name -PasswordNeverExpires $false;
}
foreach ($group in Get-UserConfig -UserName $name "groups") {
Add-LocalGroupMember -Group $group -Member $name;
}
if (-not (Get-UserConfig -UserName $name "microsoftAccount")) {
net user $name /logonpasswordchg:yes;
}