Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. sc.exe \myServer stop myService 1> NUL
  2.  
  3. SET RemoteComputer=\myServer
  4. sc.exe %RemoteComputer% stop myService 1> NUL
  5.  
  6. SET RemoteComputer=myServer
  7. sc.exe \%RemoteComputer% stop myService 1> NUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement