Solved

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

Posted on 2007-11-21
7
1,466 Views
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.
0
Comment
Question by:Beasleytech
  • 4
  • 3
7 Comments
 
LVL 6

Expert Comment

by:Spot_The_Cat
Comment Utility
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
 

Author Comment

by:Beasleytech
Comment Utility
I have tried it with the firewall disabled and i have verified that the RPC service is running.
0
 

Author Comment

by:Beasleytech
Comment Utility
and no, im at the machine, but i want to be able to do this with a batch logon script.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 6

Expert Comment

by:Spot_The_Cat
Comment Utility
What command is it that you're trying to run?
0
 

Author Comment

by:Beasleytech
Comment Utility
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
 
LVL 6

Accepted Solution

by:
Spot_The_Cat earned 125 total points
Comment Utility
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
 

Author Comment

by:Beasleytech
Comment Utility
UGH!!! man i can't beleive i din't think of that.  It fixed it and thanks a million man.
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now