Net command

P

Pat

I want to stop and start a service on a remote w2k server with a batch
file. is this possible using the net stop and net start command? If so
how would the syntax go?

thanks
 
W

Walter Schulz

I want to stop and start a service on a remote w2k server with a batch
file. is this possible using the net stop and net start command? If so
how would the syntax go?

SC.EXE \\<servername> start <servicename>

NETSVC <servicename> \\<servername> start

PSEXEC \\<servername> net start <servicename>

PSSERVICE \\<servername> start <servicename>

SC and NETSVC are included in ResKit, PSEXEC and PSSERVICE are part of
the PSTOOLS (www.sysinternals.com)

Ciao, Walter
 
P

Pat

thank you very much


SC.EXE \\<servername> start <servicename>

NETSVC <servicename> \\<servername> start

PSEXEC \\<servername> net start <servicename>

PSSERVICE \\<servername> start <servicename>

SC and NETSVC are included in ResKit, PSEXEC and PSSERVICE are part of
the PSTOOLS (www.sysinternals.com)

Ciao, Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top