On the remote machine "x" the service "y" is running. How from the machine "z", restart the service "y" on the machine "x"?
4 answers
Using psexec :
@echo offpsexec \\X cmd "/c net stop Y"psexec \\X cmd "/c net start Y" |
And using the management console? Forgot chtoli? "My computer" right click, select control. The first line (Computer Management (local)) click the right mouse button and select "Connect to another computer". Enter the address of the remote computer. If there are no problems with access rights to the computer, get access to the "Services and Applications" section of the remote computer. And restart the service for health at least 50 times
|
What is the system on a remote machine? In general, there is a putty for Linux and remote desktop for windows.
|
ubuntu:
ssh login@159.255.30.12(ip) - соединение с удаленным X ...sudo /etc/init.d/(имя службы) restart - перезагрузка службы Y |