ADSM-L

Re: [ADSM-L] syntax problem | preschedulecmd

2009-04-21 13:32:35
Subject: Re: [ADSM-L] syntax problem | preschedulecmd
From: "Clark, Robert A" <Robert.Clark AT PROVIDENCE DOT ORG>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 21 Apr 2009 10:32:05 -0700
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:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
goc
Sent: Tuesday, April 21, 2009 6:50 AM
To: ADSM-L AT VM.MARIST DOT 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.

<Prev in Thread] Current Thread [Next in Thread>