Leave groups unspecified
This commit is contained in:
parent
62db17bda2
commit
ee06982b21
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue