Fix password creation
This commit is contained in:
parent
b210e1e847
commit
461c04d1b7
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ function New-PersonalUser([Context] $context)
|
||||||
}
|
}
|
||||||
|
|
||||||
Rename-LocalUser $user $context.UserName;
|
Rename-LocalUser $user $context.UserName;
|
||||||
Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString "Admin");
|
Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString -AsPlainText "Admin");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue