mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-15 12:47:40 +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
|
||||
Write-Host "Audit Mode is now disabled."
|
||||
|
||||
# Run your command
|
||||
$command = "C:\Windows\system32\net.exe"
|
||||
$args = "user Administrator /active:yes"
|
||||
Start-Process -FilePath $command -ArgumentList $args -Wait
|
||||
Write-Host "Administrator account is now enabled."
|
||||
Start "ms-cxh:localonly"
|
||||
Write-Host "Please restart PC when you finish account creation."
|
||||
} else {
|
||||
Write-Host "Audit Mode is not active."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue