Trying to automate virus updates process on Inoculan

Posted on 2004-11-18
Last Modified: 2010-04-11
What is wrong with this syntax?

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

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 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

    19 Experts available now in Live!

    Get 1:1 Help Now