Advertisement
Carbalite

Restart SOE Remotely

Jul 15th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. findstr /n "CurrentServer" "C:\Documents and Settings\All Users\SOEI\EXACT\login.ini" > server.txt
  2. FOR /F "tokens=2 delims=;=" %%I IN (server.txt) DO CALL :_Run %%I
  3. :_Run
  4. SET ws=%1
  5. @echo Stopping Services on %ws%...
  6. sc \\%ws% stop SoeEmailServer
  7. taskkill /s \\%ws% /im SoeiDental.Transport.exe /f
  8. sc \\%ws% stop soeidental.transport
  9. sc \\%ws% stop SoeidentalFrameworkService
  10. sc \\%ws% stop SOEDBService
  11. sc \\%ws% start SoeidentalFrameworkService
  12. @PING 1.1.1.1 -n 1 -w 2000 >NUL
  13. sc \\%ws% start SoeEmailServer
  14. sc \\%ws% start soeidental.transport
  15. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement