diff --git a/Windows-Repair-Usage.md b/Windows-Repair-Usage.md new file mode 100644 index 0000000..cca8154 --- /dev/null +++ b/Windows-Repair-Usage.md @@ -0,0 +1,9 @@ +# Windows-Repair.ps1 Usage: +1. Open PowerShell as Administrator via these keyboard shotcuts in sequence + 1. WIN+X + 2. ALT+A + 3. ALT+Y +2. Run +```powershell +powershell.exe -Command "Invoke-WebRequest -Uri `"https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/Windows-Scripts/windows-repair.ps1`" -OutFile `"$env:TEMP\windows-repair.ps1`"" && powershell.exe -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair.ps1" +``` \ No newline at end of file diff --git a/Windows-Scripts/windows-repair.ps1 b/Windows-Scripts/windows-repair.ps1 index eae8c09..a997938 100644 --- a/Windows-Scripts/windows-repair.ps1 +++ b/Windows-Scripts/windows-repair.ps1 @@ -1,12 +1,10 @@ # Usage: -# Download to $env:USERPROFILE\Downloads (user's Downloads folder) -# https://raw.githubusercontent.com/human/Windows-Scripts/main/windows-repair.ps1 # Open PowerShell as Administrator # win+x # alt+a # alt+y # Run: -# powershell.exe -ExecutionPolicy Bypass -File $env:USERPROFILE\Downloads\windows-repair.ps1 +# powershell.exe -Command "Invoke-WebRequest -Uri `"https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/Windows-Scripts/windows-repair.ps1`" -OutFile `"$env:TEMP\windows-repair.ps1`"" && powershell.exe -ExecutionPolicy Bypass -File "$env:TEMP\windows-repair.ps1" # Check for administrator privileges if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {