salawank

psexec-audit policy

Jun 16th, 2011
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. ::RUN this script first. Read README.txt for details.
  3. ::ECHO Running PSExec to copy Auditpol.exe..
  4. ::GOTO COPY
  5.  
  6. ::COPY
  7. ::C:\Windows\system32\psexec.exe @ip.txt -u administrator -p P@$$word -d -i -c \\192.168.44.1\auditpol\Auditpol.exe
  8. ::PAUSE
  9.  
  10. ECHO Running PSExec to run batch script..
  11. GOTO EXEC
  12.  
  13. :EXEC
  14. C:\Windows\system32\psexec.exe @ip.txt -u administrator -p P@$$word -d -i cmd.exe /c \\192.168.44.1\auditpol\Win_audit.bat
  15. ECHO Win_audit.bat should be executed now..
  16. PAUSE
RAW Paste Data