Net command

  • Thread starter Thread starter Pat
  • Start date Start date
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
 
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
 
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
 
Back
Top