theflash1932
6 Indium

RE: Need Help Creating a Batch File

You could put this in your batch file, then schedule your batch file to fire it off, but it's easier to just schedule the command itself. This can also be run on demand from an elevated command prompt.

SYSTEMNAME is the name of your computer - the name found on the System information page.

So, if the name of your computer is BOB-PC, you are saving the backups to the X: drive, in the Monday folder, your command would look like this:

wbadmin start backup -backupTarget:\\BOB-PC\X$\Monday -include:C: -allCritical -quiet

You enter this command on the Actions tab of the Task Scheduler in two parts:

wbadmin goes in the Program/Script section:
C:\Windows\System32\wbadmin.exe

The rest of it goes in the Add Arguments section:
start backup -backupTarget:\\BOB-PC\X$\Monday -include:C: -allCritical -quiet

0 Kudos