We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Remotely start and stop services is slow from some servers

Medium Priority
1,659 Views
Last Modified: 2012-08-13
We have noticed that when we run sc.exe to remotely stop or start a service from some servers it responds with in 3 seconds but when we stop or start the same service on the same remote server from different servers then it takes 25 seconds for the program to respond.  I tried this from my Windows 7 PC and it runs slow.  I've also tried running this from two Windows 2003 servers and it runs fast.  I've also tried this from a few windows 2008 servers and on two of them it works slow and on one of them it runs fast.  Is there some way to configure the sc.exe to run fast or there some setting in the OS that need to be tweaked?
Comment
Watch Question

the time could be taken by authentication process. can you try mapping a drive of the target server first and then executing SC.exe

Author

Commented:
mapping the drive before executing the sc.exe doesn't help, any other ideas?
hi,

I create the attached application using C# to start and stop any remote service.

example usage: to stop the service dhcp on a remote machine 192.168.1.10
rsc /stop 192.168.1.10 dhcp

hope it will help.

Author

Commented:
Where is the attachment?
sorry. here's the file
rsc.zip

Author

Commented:
I tried your program and it works, but, it's just as slow as the sc.exe is.  I mapped a drive to the server before issing the command and it didn't help.  Any ideas on what might be slowing this down from some PC/Server but not others?

Author

Commented:
Bump
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.