The whole presched command needs to be quoted as one item. Converting from "Laptop Backup" to the short name should save the single quotes.
If powershell will honor the single quotes, you can use them to quote the powershell arguments instead, and then then double quotes are available for the whole string passed to preschedulecmd. [RC] -----Original Message----- From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of goc Sent: Tuesday, April 21, 2009 6:50 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] syntax problem | preschedulecmd hi all, i'm trying to execute backup from with preschedulecmd from windows client like -> powershell "& 'B:\Laptop Backup\system_backups\scripts\sys_backup2.ps1' wzpwebstream1" but i'm having problems how to put it into -preschedulecmd as an option of course, errors are something like ANR2020E UPDATE SCHEDULE: Invalid parameter - B:\LAPTOP ANR2020E UPDATE SCHEDULE: Invalid parameter - &. etc.. above mentioned line works flawlesly from cmd prompt on client, i guess the problem is where to put all the 's and "s and 's and more "'s , right ? thanks for help! // PS: the script executes ntbackup as scheduled task (via wmi) on any remote machine and stores *.bkf localy ready for archiving DISCLAIMER: This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.