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.
BeasleytechAsked:
Who is Participating?
 
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
 
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
Become an IT Security Management Expert

In today’s fast-paced, digitally transformed world of business, the need to protect network data and ensure cloud privacy has never been greater. With a B.S. in Network Operations and Security, you can get the credentials it takes to become an IT security management expert.

 
BeasleytechAuthor Commented:
and no, im at the machine, but i want to be able to do this with a batch logon script.
0
 
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
 
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.

All Courses

From novice to tech pro — start learning today.