Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM This file assumes you have psexec installed
- REM Ask for machine name or IP
- set /p machine= Please enter the machine name or ip:
- REM check for workstation online, if not exit
- ping %machine% | find "Reply"
- if errorlevel 1 goto :offline
- if errorlevel 0 goto :install
- :offline
- echo Workstation not online
- pause
- exit
- :install
- xcopy "w:**********psexec.exe" \%machine%c$windowssystem32
- xcopy "w:********************fix.reg" \%machine%c$temp
- PsExec -s -i \%machine% -u domainadmin \%machine%c$windowsregedit.exe -i "c:tempfix.reg"
- pause
- << Reg file fix.reg>>
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement