[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1527
  • Last Modified:

Remotely start and stop services is slow from some servers

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?
0
lsysamc
Asked:
lsysamc
  • 4
  • 3
1 Solution
 
subhashchyCommented:
the time could be taken by authentication process. can you try mapping a drive of the target server first and then executing SC.exe
0
 
lsysamcAuthor Commented:
mapping the drive before executing the sc.exe doesn't help, any other ideas?
0
 
OrenRozenCommented:
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
lsysamcAuthor Commented:
Where is the attachment?
0
 
OrenRozenCommented:
sorry. here's the file
rsc.zip
0
 
lsysamcAuthor 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?
0
 
lsysamcAuthor Commented:
Bump
0
 
OrenRozenCommented:
hi.
I wasn't near the computer since my last response.
sorry, but I don't have the time to check it fully. The only thing that I can think of is to something with the RPC .
Maybe this link can give you a direction to solve the problem.
http://support.microsoft.com/kb/167260/EN-US
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now