You can use the Windows PowerShell cmdlets for Windows Server Backup to automate and manage backups. Before you begin, you must install the cmdlets as part of installing Windows Server Backup. (For instructions, see Install Windows Server Backup Tools.) Then, each time you use the cmdlets, you must add the Windows Server Backup cmdlet snap-in to the instance of Windows PowerShell that you have opened.
To add the Windows Server Backup cmdlet snap-in to Windows PowerShell |
-
To add the snap-in, at the Windows PowerShell prompt, type:
add-pssnapin windows.serverbackup
-
To confirm that the snap-in was added, at the Windows PowerShell prompt, type:
get-pssnapin
Then look for windows.serverbackup in the output.
To view a list of Windows Server Backup cmdlets |
-
At the Windows PowerShell prompt, type:
get-command *wb* -commandtype cmdlet
To view help for Windows Server Backup cmdlets |
-
At the Windows PowerShell prompt, do the following:
- To display basic Help, type: Get-Help
<cmdlet_name>
- To display detailed Help, type:
Get-Help <cmdlet_name> -detailed
- To display examples for a cmdlet, type:
Get-Help <cmdlet_name> -examples
- To display all Help for a cmdlet, type:
Get-Help <cmdlet_name> -full
- To display basic Help, type: Get-Help
<cmdlet_name>
Additional considerations
- To use the Windows PowerShell cmdlets for
Windows Server Backup, you must be a member of the Backup Operators
or Administrators group, or you must have been delegated the
appropriate authority.
- By default, Windows PowerShell modules and
snap-ins are not loaded in Windows PowerShell. To start Windows
PowerShell so that all the Windows PowerShell modules and snap-ins
are loaded automatically, right-click the Windows PowerShell icon
in the taskbar, and then click Import all modules. In
Windows Server 2008 R2, the Windows PowerShell icon is
pinned to the taskbar by default. However, you must start Windows
PowerShell one time to make the Import all modules task
appear.
Additional references
- Windows Server
Backup
- For information and instructions for the
Windows PowerShell cmdlets for Windows Server Backup, see http://go.microsoft.com/fwlink/?LinkID=143721.
- For the Windows PowerShell Script Center, see
http://go.microsoft.com/fwlink/?LinkID=93317.
- For the Windows PowerShell blog, see http://go.microsoft.com/fwlink/?LinkID=128557.