Home > OS >  To realize the remote batch services on the server
To realize the remote batch services on the server

Time:09-24

My computer is Windows 7 system, now has more than one server, Windows server 2012 R2 account passwords are the same, by remote, how can realize batch on each server service (batch start or stop the same service), the service name and location are the same, what is the solution, and the great spirit show

CodePudding user response:

Give a train of thought, can consider Telnet + VBS method implementation,

But each server IP should pay attention to modify

CodePudding user response:

A bat batch, respectively to join the IP, username, password
Roughly as follows:
Tasklist/S XXX, XXX, XXX./Uusername/P oassword/F/T/IM process. Exe
The timeout 1
Tasklist/S XXX, XXX, XXX./Uusername/P oassword/F/T/IM process. Exe
The timeout 1
The exit 0

CodePudding user response:

refer to the second floor akuma8848 response:
do a bat batch, respectively, to join the IP, username, password, "
Roughly as follows:
Tasklist/S XXX, XXX, XXX./Uusername/P oassword/F/T/IM process. Exe
The timeout 1
Tasklist/S XXX, XXX, XXX./Uusername/P oassword/F/T/IM process. Exe
The timeout 1
The exit 0

Is taskkill,,,,, can't edit

CodePudding user response:

The IP address is not the same? Using the virtual machine?

CodePudding user response:

Sc \ \ 10.2.235.6 start VMSSender
https://blog.csdn.net/sdewendong/article/details/93136548
  • Related