[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Trying to automate virus updates process on Inoculan

Posted on 2004-11-18
3
Medium Priority
?
175 Views
Last Modified: 2010-04-11
What is wrong with this syntax?

c:
cd\
cd C:\Program Files\CA\eTrust\InoculateIT
runas /u:%computername%\administrator xcopy \\spysweeper\inoclupd\InoDist.ini /Y xxxxxxxxxx(password)
pause
0
Comment
Question by:williamsart
1 Comment
 
LVL 5

Accepted Solution

by:
TJworld earned 500 total points
ID: 12620893
You need to use quote marks around the command and its parameters because there is whitespace. Also, you need to further surround xcopy's arguments with escaped quote marks.

I've added the destination folder into the command to save the CD.

runas /u:%computername%\administrator "xcopy \\spysweeper\inoclupd\InoDist.ini \"C:\Program Files\CA\eTrust\InoculateIT\InoDist.ini\" /Y" xxxxxxxxxx(password)

Also be aware when you use runas from a CMD prompt it will use the default user profile if you don't specify the /profile switch, not the profile you're logged in as.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ransomware - Defeated! Client opened the wrong email and was attacked by Ransomware. I was able to use file recovery utilities to find shadow copies of the encrypted files and make a complete recovery.
Your business may be under attack from a silent enemy that is hard to detect. It works stealthily in the shadows to access and exploit your critical business information, sensitive confidential data and intellectual property, for commercial gain. T…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

834 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