• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1499
  • Last Modified:

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

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.
0
Beasleytech
Asked:
Beasleytech
  • 4
  • 3
1 Solution
 
Spot_The_CatCommented:
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?
0
 
BeasleytechAuthor Commented:
I have tried it with the firewall disabled and i have verified that the RPC service is running.
0
 
BeasleytechAuthor Commented:
and no, im at the machine, but i want to be able to do this with a batch logon script.
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
Spot_The_CatCommented:
What command is it that you're trying to run?
0
 
BeasleytechAuthor Commented:
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.
0
 
Spot_The_CatCommented:
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
0
 
BeasleytechAuthor Commented:
UGH!!! man i can't beleive i din't think of that.  It fixed it and thanks a million man.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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