Rick0

ATIVAR_SCRIPT_HOST

Aug 19th, 2022 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.50 KB | Software | 0 0
  1. @echo off
  2. Echo Ativando Windows Script HOST Aguarde...
  3. TITLE Script Ativar WINDOWS SCRIPT HOST
  4. pushd "%~dp0"
  5. if not "%1"=="am_admin" ("%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe" start -verb runas '%0' am_admin & exit /b)
  6. reg add "HKCU\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d "1" /f
  7. reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d "1" /f
  8. POPD
  9. ECHO WINDOWS SCRIPT HOST ATIVADO COM SUCESSO
  10. TIMEOUT 3
  11. EXIT
Add Comment
Please, Sign In to add comment