2

Continued from: wbadmin system state backup fails

When I put the following a bat file and run it as scheduled task, I see that the webadmin.exe process starts but it never seems to create backup:

wbadmin start systemstatebackup -backuptarget:\\server\foo -quiet

This seems to run fine when I run the bat file directly. I have the scheduled task configured to run with the "highest privileges". The share doesn't use windows authentication but it is a mapped network drive.

Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444

2 Answers2

2

I've had similar problems with NTBackup in the past when it was scheduled to run under the NT AUTHORITY\SYSTEM user because it doesn't have any network permissions whatsoever, so just hung indefinitely.

To fix the problem, I had to run the scheduled task under my own user account.

Ben Pilbrow
  • 11,995
  • 5
  • 35
  • 57
0

It seems adding the net use command before fixed it, so it must have something to do with creating a new session for the scheduled task. The command was something like:

net use \\backupServer\backups /u:backupUser shhhSecret
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444