Guest User

Untitled

a guest
May 12th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @echo off
  2. NET SESSION >nul 2>&1
  3. IF %errorLevel% NEQ 0 (
  4. echo This script requires administrator privileges.
  5. echo Please right-click on the script and select "Run as administrator"
  6. pause
  7. exit /B 1
  8. )
  9.  
  10. SETLOCAL
  11. REM Only remove specific evaluation-related files
  12. IF EXIST "%APPDATA%\JetBrains" (
  13. del "%APPDATA%\JetBrains\PermanentUserId"
  14. del "%APPDATA%\JetBrains\PermanentDeviceId"
  15. del "%APPDATA%\JetBrains\*\*.key"
  16. del "%APPDATA%\JetBrains\*\*.license"
  17. del "%APPDATA%\JetBrains\*\bl"
  18. del "%APPDATA%\JetBrains\*\crl"
  19. )
  20.  
  21. REM Clear JavaSoft registry entries
  22. REG DELETE "HKEY_CURRENT_USER\Software\JavaSoft" /f
  23.  
  24. ENDLOCAL
Add Comment
Please, Sign In to add comment