Results 1 to 8 of 8

Thread: Start/Stopping a Windows Service on a remote computer??

  1. #1

    Default Start/Stopping a Windows Service on a remote computer??

    Can someone help me start/stop a windows service on a remote computer (connected to the network), thru dos?

    I know how to do it on a same computer, just sure how to do it on a remote computer.

    Example:
    Code:
    net start spooler

  2. #2
    Spam Sniper SgtM's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    4,545

    Default Re: Start/Stopping a Windows Service on a remote computer??

    You can also do it through the computer manager. Right click on my computer, click manage. At the top, you'll see computer manager (local). Right click, and then select connect to another computer. On the next window that comes up, type in the machine name, and you're all set.

  3. #3

    Default Re: Start/Stopping a Windows Service on a remote computer??

    I wanted to do it via command prompt so i could script it out in a batch file! I have several computers in the house that a certain service keeps dieing and restarting it fixes it!

  4. #4
    Resident EE mtekk's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    469

    Default Re: Start/Stopping a Windows Service on a remote computer??

    You could just run a batch script on each computer that will cause the application/service to be restarted periodically. Otherwise you'll need SSH for command scripting, but then you might as well run a UNIX like OS on those computers.

  5. #5
    Spam Sniper SgtM's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    4,545

    Default Re: Start/Stopping a Windows Service on a remote computer??

    net computername servicename start/stop/restart

  6. #6
    Resident EE mtekk's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    469

    Default Re: Start/Stopping a Windows Service on a remote computer??

    Quote Originally Posted by SgtM View Post
    net computername servicename start/stop/restart
    Shouldn't there be some authentication that needs to be done before running that? Otherwise that is sort of a gaping security hole? Looks like you may need to disable the windows firewall on the clients you'll be sending that command to.

  7. #7
    Spam Sniper SgtM's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    4,545

    Default Re: Start/Stopping a Windows Service on a remote computer??

    No authentication needed. Nothing needs to be disabled on the firewall before running it either. Basically, if you're on the same domain or workgroup, you can run that command. Domains are a little more secure because of the ability to use GPO.

  8. #8
    Administrator OvRiDe's Avatar
    Join Date
    Dec 2005
    Location
    Tulsa, OK
    Posts
    4,586

    Default Re: Start/Stopping a Windows Service on a remote computer??

    Sometimes you still might run into authentication problems. I have found the PSTools suite from Sysinternals invaluable.

    http://technet.microsoft.com/en-us/s.../bb896649.aspx

    Psservice and PsExec should help you on your way

    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •