Solved

script to start/stop a service in another computer in same domain

Posted on 2006-06-19
5
212 Views
Last Modified: 2012-05-11
In local computer the command line to s tart a service is: net start service_name.
What is the command line to start/stop a service in another computer in same domain.
Or is there any equivalent script to do the job.?
0
Comment
Question by:mordi
  • 2
  • 2
5 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 16932666
You can use SC - part of the resource kit.  Usage details:
http://www.ss64.com/nt/sc.html

Otherwise, you can use:
PSSERVICE, part of the PSTools
http://www.sysinternals.com/Utilities/PsService.html
0
 
LVL 16

Accepted Solution

by:
Redwulf__53 earned 152 total points
ID: 16932670
sc \\server start service_name
Type "sc /?" at the command prompt to see the complete syntax.
0
 
LVL 16

Expert Comment

by:Redwulf__53
ID: 16932672
ooow leew you beat me by a minute....
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 16932915
Excuse me, did I post essentially the same information first?
0
 
LVL 3

Author Comment

by:mordi
ID: 16932942
leew,
I am sorry but your info is far behind the acepted answer.
The question was: what is the command line etc. an you only answered the general command which is to be used but not the actual command to run. Also you sent a link to the web site but i don't have time to start reading all the stuff and finding the command.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question