Please restore backslashes, they are needed by the script syntax. JAL by default uses backslash as an escape symbol for scpecial ASCII characters. I am not sure if the %NASName% will be expanded this way... mot likely not. To have the command processor take care of %NASName%, add in front of your command cmd /b like the following "cmd /b ntbackup backup ...." If you already have a batch file, why don't you simply run the batch by name instead of pasting the full command? As for the "Logon failed. Return code: 1314 - A required privilege is not held by the client". The user must have "BATCH JOB" system privilege. Don't mistake this with permissions to run a particular batch file. After you grant the required privilege you will need to restart the computer. : Sorry about the lack of detail... : I created the job using the template "Run program or OS command as : another user" : Here is what the script looks like after pasting the batch file code into the : wizard: // run command : Dim( process_id, number ) : RunAsUserAndWait( "ntbackup backup \"@d:\\backup\\bulist.bks\" : /n \"Friday Rotation 1\" /d \"Fri1\" /v:no /r:no : /rs:no /hc:off /m normal /j \"Fri1\" /l:f /f : \"\\\\%NASName%\\Fri1.bkf\"", "", 0, : "ntbackup", "xxxxxx", "domain", process_id ) : Obviously I have renamed the password and domain... : original code (that works in a batch file): ntbackup backup : "@d:\backup\bulist.bks" /n "Friday Rotation 1" /d : "Fri1" /v:no /r:no /rs:no /hc:off /m normal /j "Fri1" : /l:f /f "\\%NASName%\Fri1.bkf" : The wizard added a lot of back slashes. I have tried removing the ones that : got automatically added. : The error is: [Template: Run program or OS command a...] execution error. : Exit code: -1. An error occurred while executing automation script: Line : 9: Logon failed. Return code: 1314 - A required privilege is not held by : the client. : The script is executing on a Windows 2000 Server Domain Controller...The user : specified has the correct permission it needs to execute the backup job : and has privelages to the folder... : Thanks, : Mike Niccum
|