# Runs from PS on DC1
Register-ScheduledJob -Name “System State Backup” -Trigger @{Frequency = “Daily”; At = “2:00”} -ScriptBlock {
# Create new Backup Policy
$Policy = New-WBPolicy
# Add System State to the policy
Add-WBSystemState -Policy $Policy
# Set Backup Location
$BackupLocation = New-WBBackupTarget -VolumePath "\\bugsbunny\svrA"
# Add backup location to policy
Add-WBBackupTarget -Policy $Policy -Target $BackupLocation
# Start Backup Using Policy
Start-WBBackup -Policy $Policy
}
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Experts Exchange Solution brought to you by
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Start your 7-day free trialwbadmin enable backup -addtarget:F: -schedule:00:00,04:00,08:00,12:00,16:00,20:00 -systemState -quiet
From novice to tech pro — start learning today.
Experts Exchange Solution brought to you by