sum shitz for da windowz repaire scripptytyt
This commit is contained in:
@@ -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"
|
||||||
|
```
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
# Usage:
|
# 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
|
# Open PowerShell as Administrator
|
||||||
# win+x
|
# win+x
|
||||||
# alt+a
|
# alt+a
|
||||||
# alt+y
|
# alt+y
|
||||||
# Run:
|
# 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
|
# Check for administrator privileges
|
||||||
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user