Lab Tasks
1. Create Backup Policy
Create a new backup policy object to configure backup settings.
New-WBPolicy
2. Add Backup Target
Configure the destination for backup storage.
New-WBBackupTarget -VolumePath E: | Add-WBBackupTarget
3. Start Backup
Execute an on-demand backup operation.
Start-WBBackup -Policy $policy
4. View Backup History
Review existing backup sets and their status.
Get-WBBackupSet
5. List VSS Writers
Check Volume Shadow Copy Service writers status.
vssadmin list writers
Pipeline Example:
Create and configure policy in one step:
Create and configure policy in one step:
$policy = New-WBPolicy
Tip: Use
Get-Command *WB* to discover all Windows Backup cmdlets!