rc
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
# alt+y
|
# alt+y
|
||||||
# Run:
|
# Run:
|
||||||
# In admin powershell Terminal:
|
# In admin powershell Terminal:
|
||||||
# iwr -UseBasicParsing -Uri "https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random)" -OutFile "$env:TEMP\windows-repair-temp.ps1"; powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair-temp.ps1"
|
# iwr -UseBasicParsing -Uri https://git.thecoven.info/PrincessPi/general-scripts-and-system-ssssssetup/raw/branch/main/Windows-Scripts/windows-repair.ps1?nocache=$(Get-Random) > $env:TEMP\windows-repair-temp.ps1"; powershell -NoProfile -ep Bypass -File $env:TEMP\windows-repair-temp.ps1
|
||||||
|
|
||||||
# check if hasadmin rights, if notm run script in new terminal, clopsing old
|
# check if hasadmin rights, if notm run script in new terminal, clopsing old
|
||||||
## if not, carry on
|
## if not, carry on
|
||||||
@@ -14,7 +14,7 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
|
|||||||
Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File $PSCommandPath"
|
Start-Process -FilePath 'powershell' -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File $PSCommandPath"
|
||||||
|
|
||||||
# CLOSE previous terminal
|
# CLOSE previous terminal
|
||||||
exit 0
|
# exit 0
|
||||||
} else {
|
} else {
|
||||||
clear # clear window
|
clear # clear window
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user