Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- mode con: cols=80 lines=40
- :loop
- cls
- echo[
- echo " _______ _ _ _ _____ _ "
- echo " |__ __| | | | | | | | __ \ | | "
- echo " | | __ _ __ _ ____| |__| | ___ | | _ __ | | | | ___ ___ | | __ "
- echo " | | / _` | / _` ||_ /| __ | / _ \| || '_ \ | | | | / _ \/ __|| |/ / "
- echo " | || (_| || (_| | / / | | | || __/| || |_) || |__| || __/\__ \| < "
- echo " |_| \__,_| \__, |/___||_| |_| \___||_|| .__/ |_____/ \___||___/|_|\_\ "
- echo " __/ | | | "
- echo " |___/ |_| "
- echo[
- echo[
- echo Host is %ip%
- echo[
- echo --------------------------------------------------------------
- echo WebFix:WF Autoie:AI ResoreShortcuts:SH Gpupdate:GP
- echo[
- echo Killnotes:KN NotesIniFixer:LN sap:SAP AdobeTnC:AD
- echo[
- echo --------------------------------------------------------------
- echo Loggedon:WHO NetworkLogon:NL Info:INFO Proxychecker:Prox
- echo --------------------------------------------------------------
- echo DVDtoB: D2B USBtoB: E2B
- echo[
- echo To access any drives options are B C D or E or 80 to HTTP
- echo[
- echo --------------------------------------------------------------
- echo Log user off:LO Spooler Restart: PRINT
- echo[
- echo UsersName:NAME SwitchHost:IP LOG Note:SomeRequireUID
- echo[
- echo --------------------------------------------------------------
- echo pf:PepperflashUpdate ie32/ie64 iEx upgrade
- set /p no2=
- if "%no2%" == "ping" (echo Pinging Host %ip%
- ping %IP% -a -n 40)
- if "%no2%" == "tr" (echo Tracing Host %ip%
- tracert %IP%)
- if "%no2%" == "name" (
- set /p name=Name :)
- if "%no2%" == "uid" (
- echo Username:
- Set /p uid=)
- if "%no2%" == "who" (wmic.exe /node:%ip% ComputerSystem Get Username)
- if "%no2%" == "ip" (
- Set /p IP=Select Machine Number Address to assist :)
- if "%no2%" == "ra" (%windir%\system32\msra.exe /offerra %ip%)
- if "%no2%" == "rd" (%windir%\system32\mstsc.exe /v %ip% )
- if "%no2%" == "vnc" (PSTools\vnc.exe %ip%)
- if "%no2%" == "cmd" (PSTools\PsExec.exe \\%ip% cmd)
- if "%no2%" == "gp" (PSTools\PsExec.exe \\%ip% -i gpupdate.exe)
- if "%no2%" == "gpf" (PSTools\PsExec.exe \\%ip% -i "gpupdate.exe /force" )
- if "%no2%" == "info" (PSTools\PsInfo.exe \\%ip%)
- if "%no2%" == "wf" (xcopy "PSTools\1.reg" \\%ip%\C$\
- PSTools\PsExec.exe \\%ip% -i regedit /s C:\1.reg
- del \\%ip%\C$\1.reg)
- if "%no2%" == "sh" (xcopy "PStools\3.reg" \\%ip%\C$\
- PSTools\PsExec.exe \\%ip% -i regedit /s C:\3.reg
- del \\%ip%\C$\3.reg)
- if "%no2%" == "bu" (Rename "\\%ip%\C$\Program Files\Backup Software" Backup.old
- md "\\%ip%\C$\Program Files\Backup Software\"
- xcopy "PStools\Backup Software" /E "\\%ip%\C$\Program Files\Backup Software")
- if "%no2%" == "d2b" (PSTools\PsExec.exe \\%ip% -r -s xcopy D: /E B:\)
- if "%no2%" == "e2b" PSTools\PsExec.exe \\%ip% -r -s xcopy E: /E B:\
- if "%no2%" == "ai" (xcopy "PStools\2.reg" \\%ip%\C$\
- PSTools\PsExec.exe \\%ip% -i regedit /s C:\2.reg
- del \\%ip%\C$\2.reg)
- if "%no2%" == "ad" (xcopy "PStools\4.reg" \\%ip%\C$\
- PSTools\PsExec.exe \\%ip% -i regedit /s C:\4.reg
- del \\%ip%\C$\4.reg)
- if "%no2%" == "cc" (PSTools\CC.exe /h:%ip% /v /noask /go)
- if "%no2%" == "pf" (
- echo uid set to "%uid%"
- md "\\%ip%\C$\users\%uid%\Appdata\local\google\chrome\User Data\PepperFlash\"
- xcopy PSTools\PepperFlash \\%ip%\users\%uid%\appdata\local\google\chrome\us"er data"\PepperFlash /E
- pause)
- if "%no2%" == "sap" (copy PSTools\saplogon.ini \\%ip%\c$\Users\Default\AppData\Local\SAP\Common /Y)
- if "%no2%" == "80" "C:\Program Files\Internet Explorer\iexplore.exe" http://%IP%
- if "%no2%" == "prox" PSTools\PsExec.exe \\%ip% -i -s -c PSTools\prox.bat
- if "%no2%" == "mat" PSTools\PsExec.exe \\%ip% -i -s -c PSTools\mat.bat
- if "%no2%" == "vbscript vb to exe then exe" (PSTools\PsExec.exe \\%ip% -i -s -c PStools\.exe)
- if "%no2%" == "print" (PSTools\PsExec.exe \\%ip% -i net stop spooler
- PSTools\PsExec.exe \\%ip% -i net start spooler)
- if "%no2%" == "nl" PSTools\PsExec.exe \\%ip% -i -s \\Server1\netlogon\LUlogon.bat
- if "%no2%" == "kn" PSTools\PsExec.exe \\%ip% /accepteula "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Support\KillNotes.exe"
- if "%no2%" == "lo" PSTools\PsExec.exe \\%ip% logoff
- if "%no2%" == "b" explorer.exe \\%ip%\B$
- if "%no2%" == "c" explorer.exe \\%ip%\C$
- if "%no2%" == "d" explorer.exe \\%ip%\D$
- if "%no2%" == "e" explorer.exe \\%ip%\E$
- if "%no2%" == "ie32" (xcopy "PStools\6.1-x86.exe" \\%ip%\C$\
- PSTools\PsExec.exe -s C:\6.1-x86.exe /quiet /forcerestart)
- if "%no2%" == "ie64" (xcopy "PStools\6.1-x64.exe" \\%ip%\C$\
- PSTools\PsExec.exe -r -s C:\6.1-x64.exe /quiet /forcerestart)
- if "%no2%" == "log" (RemoteHelplog.txt)
- if "%no2%" == "ln" (
- echo uid set to "%uid%"
- PSTools\PsExec.exe \\%ip% /accepteula "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Support\KillNotes.exe"
- Rename \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data Data.old
- echo open lotus notes on machine, log in then close.
- pause
- PSTools\PsExec.exe \\%ip% /accepteula "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Support\KillNotes.exe"
- Rename \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data.old\notes.ini notes.ini.old
- copy \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data\notes.ini \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data.old\
- Rename \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data Data.new
- Rename \\%ip%\C$\Users\%uid%\AppData\Local\Lotus\Notes\Data.old Data)
- if "%no2%" == "ports" nmap %ip% -open
- if "%no2%" == "gg" (PSTools\PsExec.exe \\%ip% -i netsh int ipv4 set dns name="Local area connection" static 8.8.8.8 primary validate=no
- PSTools\PsExec.exe \\%ip% -i netsh int ipv4 add dns name="Local area connection" 8.8.4.4 index=2
- PSTools\PsExec.exe \\%ip% -i netsh int ipv4 add dns name="Local area connection" 10.14.0.10 index=3
- PSTools\PsExec.exe \\%ip% -i ipconfig /flushdns)
- if "%no2%" == "dns" (PSTools\PsExec.exe \\%ip% -i netsh int ipv4 set dns name="Local area connection" static **.**.**.** primary validate=no
- PSTools\PsExec.exe \\%ip% -i netsh int ipv4 add dns name="Local area connection" **.**.**.** index=2
- PSTools\PsExec.exe \\%ip% -i netsh int ipv4 add dns name="Local area connection" **.**.**.** index=3
- PSTools\PsExec.exe \\%ip% -i ipconfig /flushdns)
- echo On %Date% @ %time% Host %ip% %no2% %Time% %UID% %name% Action >> RemoteHelplog.txt
- pause
- GOTO loop
- :endloop
- SilverMoonshine
Advertisement
Add Comment
Please, Sign In to add comment