system
1
(imported topic written by Matt.Johnson)
I am trying to stop a service, I need to use a specific exe to do this. Here is what I am trying to execute (you will get the idea)
runhidden cmd /C “c:\Program Files\Symantec Client Security\smc.exe -p REDACTED -stop”
However, this doesn’t work. I tried it in DOS window (AS SYSTEM) and it replies:
‘“c:\Program Files\Symantec Client Security\smc.exe -p REDACTED -stop”’ is not recognized as an internal or external command
If I navigate to the directory manually (cd c:\Program Files\Symantec Client Security) and then do the SMC it works.
Where am I going wrong? Is there another way for BigFix to execute this?
Thanks everyone!
system
2
(imported comment written by SystemAdmin)
I wonder if it is the double quotes.
If you run it at the command line like this:
“c:\Program Files\Symantec Client Security\smc.exe -p REDACTED -stop”
I bet it fails, but if you change it to
“c:\Program Files\Symantec Client Security\smc.exe” -p REDACTED -stop
it should be successful. I am thinking that when you are running it manually, you are probably running the command like:
smc.exe -p REDACTED -stop
which if you try
“smc.exe -p REDACTED -stop”
You will probably have the failure.
If this is all correct, then try this in your fixlet
runhidden cmd /C “c:\Program Files\Symantec Client Security\smc.exe” -p REDACTED -stop
HTH
Martin Carnegie
Gulf Breeze Software Partners
http://www.gulfsoft.com
(imported comment written by Matt.Johnson)
Martin,
I would bet you’re right. I actually found another solution last night:
wait “c:\Program Files\Symantec Client Security\smc.exe”}\smc.exe -p REDACTED -stop"
I greatly appreciate your response and advice, and that of the other (what I would call) experts. Somehow thank you seems completely inadequate.
Matt