Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- ::RUN this script first. Read README.txt for details.
- ::ECHO Running PSExec to copy Auditpol.exe..
- ::GOTO COPY
- ::COPY
- ::C:\Windows\system32\psexec.exe @ip.txt -u administrator -p P@$$word -d -i -c \\192.168.44.1\auditpol\Auditpol.exe
- ::PAUSE
- ECHO Running PSExec to run batch script..
- GOTO EXEC
- :EXEC
- 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
- ECHO Win_audit.bat should be executed now..
- PAUSE
Add Comment
Please, Sign In to add comment