In this recipe, we will look at listing backup header information from a backup file.
For this task, we will look at listing an existing backup's header information.
If you do not have any backups in your system yet, you can do any of this chapter's backup recipes prior to performing this recipe.
To list the header information, follow these steps:
SQLPSmodule as follows:
#import SQL Server module Import-Module SQLPS -DisableNameChecking
$instanceName = "KERRIGAN" $server = New-Object -TypeName Microsoft.SqlServer.Management.Smo.Server ...