Link to home
Start Free TrialLog in
Avatar of Beasleytech
Beasleytech

asked on

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.
Avatar of Spot_The_Cat
Spot_The_Cat
Flag of United Kingdom of Great Britain and Northern Ireland image

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?
Avatar of Beasleytech
Beasleytech

ASKER

I have tried it with the firewall disabled and i have verified that the RPC service is running.
and no, im at the machine, but i want to be able to do this with a batch logon script.
What command is it that you're trying to run?
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.
ASKER CERTIFIED SOLUTION
Avatar of Spot_The_Cat
Spot_The_Cat
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
UGH!!! man i can't beleive i din't think of that.  It fixed it and thanks a million man.