Remove-WssBackupConfiguration

Remove-WssBackupConfiguration

Removes a file specification from a backup volume.

構文

Parameter Set: Default
Remove-WssBackupConfiguration [-Volume] <BackupVolume> [-Configuration] <BackupFileSpec> [ <CommonParameters>]

詳細説明

The Remove-WssBackupConfiguration cmdlet removes a file specification from a backup volume. When you remove a file specification from a backup volume, the files and folders in the file specification are no longer backed up with the backup volume.

パラメーター

-Configuration<BackupFileSpec>

Specifies the backup file specification to remove from the volume.

エイリアス

Config

必須?

true

位置は?

2

既定値

なし

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

True (ByPropertyName)

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

false

-Volume<BackupVolume>

Specifies the volume from which to remove the file specification.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

True (ByPropertyName)

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

false

<CommonParameters>

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

入力

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

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupVolume

出力

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

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupFileSpec

    This cmdlet generates an object that indicates whether to include or exclude files or folders in the server backup.

Example 1: Remove a file specification from a backup volume

This command removes the backup file specification from a backup volume.

The first command gets the backup volumes from the server and stores them in the $ContosoBUVolume110 variable.

The second command gets the backup file specification from the first item (located in position 0) in $ContosoBUVolume110 and stores the backup file specification in the $ContosoBUFilespec05 variable.

The third command removes the backup file specification from the second item (located in position 1) in $ContosoBUFilespec05.

PS C:\> $ContosoBUVolume110 = Get-WssBackupVolume -AllVolumes
PS C:\> $ContosoBUFilespec05 = Get-WssBackupConfiguration –Volume $ContosoBUVolume110[0]
PS C:\> Remove-WssBackupConfiguration -Configuration $ContosoBUFilespec05[1]

関連トピック

Add-WssBackupConfiguration

Get-WssBackupConfiguration

New-WssBackupConfiguration