Can't get SC command to work due to RPC error

Posted on 2007-11-21
Last Modified: 2008-02-01
I have a Server 2003 domain setup at a school.  We recently purchased a new antivirus that cme with a network command to distribute it to the domain.  My issue is that i need to uninstall the old antivirus from the entire school with a batch file.  I have instructions on how to do the uninstall through batch, but i cannot seem to get the SC command to work.  When i try to use it it reads me off the RPC server is unavailable error.  I have file sharing enabled and have tried it without having the windows antivirus but it is no avail.  Need all the help i can get guys and thanks.
Question by:Beasleytech
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 20329622
you'll probably find that it's either the windows firewall stopping it or the rpc service isn't running on the clients.

are you trying to stop the antivirus service remotely?

Author Comment

ID: 20329646
I have tried it with the firewall disabled and i have verified that the RPC service is running.

Author Comment

ID: 20329702
and no, im at the machine, but i want to be able to do this with a batch logon script.
Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.


Expert Comment

ID: 20329919
What command is it that you're trying to run?

Author Comment

ID: 20329937
Im trying to make a bat file that will change a service from automatic to manual.  I want to use a bat file so that i can run it as a script over the network.  I have SC working if i type in the name of a computer, but i need it to work on all of them.

Accepted Solution

Spot_The_Cat earned 125 total points
ID: 20329995
It should work with no computername specified - however if you really want to specify a computer name then you could try it with:

SC \\%COMPUTERNAME% ...whatever your command is.

Hope that helps

Author Comment

ID: 20330104
UGH!!! man i can't beleive i din't think of that.  It fixed it and thanks a million man.

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OpenVMS Training 1 72
Hyper-V 2012 Reverse replication of only one server 7 73
NAT/PAT unable to config correctly 7 68
Unable to browse to VMFS datastore ? 2 39
As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service. After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnam…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

739 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