[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1497
  • 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
Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.

 
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

Featured Post

Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.

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