Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting services on a remote machine??

Status
Not open for further replies.

dsass

Technical User
Mar 29, 2001
1
0
0
US
I was wondering if anyone knew the syntax for starting services on a remote server from the command line.

Thanks in advance,
Donald Sass
dsass@rcipo.com
 
Not too sure from a command line...you can go into server manager and work through the GUI...

The other way, I've done this in the past is to use the Resource tool RCLIENT or RCMD. These utilities will give you a remote cmd prompt. With the remote command prompt, you can type commands as if you were local to the machine. Then, you can type NET STOP "SMS Client Service" and the client service would stop.

 
Using Netsvc.exe from the ResourceKit:

netsvc.exe servicename \\server /start (/stop, /query, /list etc..)

Or using VBScript & WMI:

Set ServiceSet = GetObject("winmgmts:\\server\root\cimv2").ExecQuery("select * from Win32_Service where Name='clisvc'")

for each Service in ServiceSet
Service.startService()
Next

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top