JSI Tip 2710. Scheduled backup doesn't work when using different credentials?

Jerold Schulman

August 14, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


When you schedule a backup to run with user credentials that are different from the currently logged on user, the scheduled job starts but the backup exits immediately?

If you go to Scheduled Tasks, the Last Result displays 0x2D.

If you logon as the scheduled user and run NTBackup interactively, the Tools / Report shows:

Skipped files in "NTNtbackupdata.bks" folder. Folder not found.

Only the user who scheduled the job has access to .bks file, as it is stored in their profile.

The solution is to store the .bks file in a location that each user has Read access to. If you use the example from tip 2265, you could change:

ntbackup.exe backup "@C:Documents and SettingsJerryLocal SettingsApplication DataMicrosoftWindows NTNTBackupdataALL.bks"             /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on /m normal /j "%dtt%" /l:f /p "4mm DDS" /UM

to

ntbackup.exe backup "@C:BackupALL.bks" /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on             /m normal /j "%dtt%" /l:f /p "4mm DDS" /UM

NOTE: Users in the Run As box in Scheduled Tasks need Read access to the scheduled executable and all associated files.


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like