mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 13:17:26 +00:00
Update auditbreak
This commit is contained in:
parent
de04731dc3
commit
e41130306a
1 changed files with 2 additions and 5 deletions
|
|
@ -52,11 +52,8 @@ if ($auditStatus.$auditValue -eq 1) {
|
||||||
reg import $tempRegPath
|
reg import $tempRegPath
|
||||||
Write-Host "Audit Mode is now disabled."
|
Write-Host "Audit Mode is now disabled."
|
||||||
|
|
||||||
# Run your command
|
Start "ms-cxh:localonly"
|
||||||
$command = "C:\Windows\system32\net.exe"
|
Write-Host "Please restart PC when you finish account creation."
|
||||||
$args = "user Administrator /active:yes"
|
|
||||||
Start-Process -FilePath $command -ArgumentList $args -Wait
|
|
||||||
Write-Host "Administrator account is now enabled."
|
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Audit Mode is not active."
|
Write-Host "Audit Mode is not active."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue