+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Windows Thread, Remotely Stop Services in Technical; Is it possible to stop services on a remote computer (via a script or batch command), or can that only ...
  1. #1
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76

    Remotely Stop Services

    Is it possible to stop services on a remote computer (via a script or batch command), or can that only be done locally?

  2. #2

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,009
    Thank Post
    490
    Thanked 1,345 Times in 731 Posts
    Rep Power
    429
    This any use?

  3. Thanks to SYSMAN_MK from:

    enjay (26th February 2008)

  4. #3

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,963
    Thank Post
    160
    Thanked 153 Times in 117 Posts
    Rep Power
    49
    netsvc should do it. I think its on the resource kit

  5. Thanks to sidewinder from:

    enjay (26th February 2008)

  6. #4
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    Yes, netsvc seems to do what I want, thanks - any offers where I can download it from? If I ever had a Win2K Resource CD, I've long since lost it...

  7. #5
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    471
    Thank Post
    14
    Thanked 51 Times in 49 Posts
    Rep Power
    24

  8. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,978
    Thank Post
    3,528
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374

    remote services

    you can use computer management I would of thought to do that - right click my computer ( provided you are logged in as domain admin ) and go to manage and then the services section.

    To do this on a remote machine , just right click where it says this computer in side of manage my computer and click on connect to.

    Then navigate through there services and restart or stop or w/e

    If you need a vbscript to do it, look at this :

    http://www.computerperformance.co.uk...i_services.htm

    If that does not work then you may need a bit more in the script to provide admin credentials ( If so post back )

  9. #7

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Good old Sysinternals tools also work - in this case psservice, although I often forget it exists and do psexec \\pcname net stop "servicename"

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

  10. Thanks to OutToLunch from:

    enjay (26th February 2008)

  11. #8

    Join Date
    Feb 2008
    Posts
    90
    Thank Post
    3
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    sc \\pcname stop "servicename"

    Think this should do it?

  12. #9
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    Quote Originally Posted by OutToLunch View Post
    Good old Sysinternals tools also work - in this case psservice, although I often forget it exists and do psexec \\pcname net stop "servicename"

    http://technet.microsoft.com/en-us/s.../bb897542.aspx
    Thanks OutToLunch - that does exactly what I want, and is nice and quick to install.

  13. #10
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    The next trick is whether it is possible to stop all SQL services in one go, or whether I have to stop each one individually. Any offers?

  14. #11

    Join Date
    Jan 2007
    Location
    Enfield, London
    Posts
    159
    Thank Post
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    17
    Quote Originally Posted by NickJones View Post
    The next trick is whether it is possible to stop all SQL services in one go, or whether I have to stop each one individually. Any offers?
    Unless there are depencies (i.e. lots of services depending on one service) then probably not.

  15. #12

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,297
    Thank Post
    242
    Thanked 1,586 Times in 1,263 Posts
    Rep Power
    344
    Start > Run > MMC > Add Snap-in > Services > Specify Workstation

    This works with any 2000/XP/2003 workstation/server. I'm reluctant to say Vista as MS appear to have changed everything!

  16. #13
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    Michael,

    That does work, and with Vista too!, but I was after an automated way of doing this.

    I'm looking to stop various SQL services ahead of the backup and restart them afterwards - obviously this is easy enough with scheduled tasks, but I wanted the neatness of having them in one place and also the time-efficiency of only having them stopped for as short a time as necessary.

  17. #14
    Ryan's Avatar
    Join Date
    Jan 2008
    Location
    Scotland
    Posts
    537
    Thank Post
    12
    Thanked 16 Times in 15 Posts
    Blog Entries
    1
    Rep Power
    29
    PsTools are awesome Just had a little play with them, very nice.

    It says you should put the files in the "Executable path", is that the win32 dir?

  18. #15
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,497
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    Quote Originally Posted by Ryan View Post
    PsTools are awesome Just had a little play with them, very nice.

    It says you should put the files in the "Executable path", is that the win32 dir?
    I just put them on a share on the network and run them from a UNC path, which worked fine.



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Uninstalling Sophos remotely
    By edie209 in forum How do you do....it?
    Replies: 17
    Last Post: 18th November 2009, 02:52 PM
  2. Running RIS Remotely and Automatically?
    By Zoom7000 in forum Windows
    Replies: 8
    Last Post: 1st April 2008, 01:54 PM
  3. Remotely configure local policy?
    By starscream in forum Wireless Networks
    Replies: 12
    Last Post: 27th June 2007, 02:32 PM
  4. Control Sound Remotely
    By Craig_W in forum Network and Classroom Management
    Replies: 16
    Last Post: 1st March 2007, 08:55 PM
  5. Edit registry remotely?
    By SYSMAN_MK in forum Windows
    Replies: 5
    Last Post: 3rd April 2006, 12:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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