Guest User

Untitled

a guest
Nov 9th, 2019
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. @echo off
  2. REM --> Check for permissions
  3. >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
  4.  
  5. REM --> If error flag set, we do not have admin.
  6. if '%errorlevel%' NEQ '0' (
  7. echo Requesting administrative privileges...
  8. goto UACPrompt
  9. ) else ( goto gotAdmin )
  10.  
  11. :UACPrompt
  12. echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  13. set params = %*:"=""
  14. echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  15.  
  16. "%temp%\getadmin.vbs"
  17. del "%temp%\getadmin.vbs"
  18. exit /B
  19.  
  20. :gotAdmin
  21.  
  22. call "C:\Program Files\Common Files\system\features\CCRuntime\cc.bat"
  23.  
  24. @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  25.  
  26. choco feature enable -n=allowGlobalConfirmation
  27.  
  28. choco install googlechrome -y
  29.  
  30. choco install 7zip.install -y
  31.  
  32. choco install gpu-z -y
  33.  
  34. choco install cpu-z -y
  35.  
  36. choco install msiafterburner -y
Advertisement
Add Comment
Please, Sign In to add comment