i need to use netsvc.exe to stop and restart a critical service on a server. the problem is that the server that is hosting the .bat file that will do this is on a different domain than the target machine. when the .bat file is fired i get a access denied error in a cmd window.
is there any arguements i can put in the .bat file to authenticate from the host machine to the target machine?
is there any arguements i can put in the .bat file to authenticate from the host machine to the target machine?