Get-WBFileSpec

Get-WBFileSpec

Gets the list of backup file specifications associated with a backup policy.

構文

Parameter Set: Default
Get-WBFileSpec [-Policy] <WBPolicy> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Get-WBFileSpec cmdlet gets the list of WBFileSpec objects that contain backup file specifications for a WBPolicy object that contains a backup policy. A WBFileSpec object defines the items to include in or exclude from backups that you create by using the backup policy.

Use the New-WBFileSpec and Add-WBFileSpec cmdlets to define and apply changes to the backup policy.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

パラメーター

-Policy<WBPolicy>

Specifies the WBPolicy object that contains the backup policy for which to display backup file specifications.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • WBPolicy

    The Get-WBFileSpec cmdlet queries the WBPolicy object that contains the specified backup policy.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • WBFileSpec []

    The Get-WBFileSpec cmdlet displays the list of WBFileSpec objects that contain backup file specifications for a WBPolicy object that contains a backup policy.

Example 1: Get backup file specifications for a backup policy

This command gets the list of file specifications in the WBPolicy object in the variable named $Policy and assigns them to the $Filespeclist array.

PS C:\> $Filespeclist = Get-WBFileSpec -Policy $Policy

関連トピック

Add-WBFileSpec

Get-WBFileSpec

New-WBPolicy

Remove-WBFileSpec