Fix renaming user
This commit is contained in:
parent
40ade7b471
commit
0a464c90d9
|
@ -28,7 +28,7 @@ $null = New-Module {
|
||||||
"So sorry…") -join "`n");
|
"So sorry…") -join "`n");
|
||||||
|
|
||||||
Write-Host "Create a user for ``$Name`` manually (because Windows is too stupid)…";
|
Write-Host "Create a user for ``$Name`` manually (because Windows is too stupid)…";
|
||||||
Read-Host "Hit enter once you're done";
|
$null = Read-Host "Hit enter once you're done";
|
||||||
|
|
||||||
$newUsers = @(Get-LocalUser | Where-Object { -not ($currentUsers -contains $_.Name) });
|
$newUsers = @(Get-LocalUser | Where-Object { -not ($currentUsers -contains $_.Name) });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue