Advertisement
tolikpunkoff

Deactivator.cmd

Jun 2nd, 2019
1,069
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.16 KB | None | 0 0
  1. @rem echo Этот файл должен быть запущен с правами администратора!
  2. @rem pause
  3. @rem echo Чтобы отключить активацию нажмите любую клавишу, иначе CTRL+C!
  4. @rem pause
  5.  
  6. data\setacl.exe -on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root -ot reg -actn list -lst "f:sddl;w:d,s,o" -bckp "data\regrights.bkp"
  7. data\setacl.exe -on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root -ot reg -actn setowner -ownr "n:%USERDOMAIN%\%USERNAME%"
  8. data\setacl.exe -on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root -ot reg -actn ace -ace " "n:%USERDOMAIN%\%USERNAME%;p:full"
  9.  
  10.  
  11. IF %PROCESSOR_ARCHITECTURE% == AMD64 (
  12.    
  13.     BCDEDIT /set {current} path \Windows\System32\winload.exe
  14.     BCDEDIT /deletevalue {current} kernel
  15.     BCDEDIT /deletevalue {current} nointegritychecks
  16.     BCDEDIT /deletevalue {current} custom:26000027
  17.  
  18.        
  19.     REGEDIT /s "data\anti-oem-drv64.reg"
  20. ) ELSE (
  21.    
  22.     REGEDIT /s "data\anti-oem-drv86.reg"
  23. )
  24.  
  25. data\setacl.exe -on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root -ot reg -actn restore -bckp "data\regrights.bkp"
  26.  
  27. data\sleep 7
  28.  
  29. SHUTDOWN /r /t 50
  30.  
  31. rem pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement