Detach-VBRDiscoveredComputerBackup
Short Description
Revokes a discovered computer's access to a backup.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Detach-VBRDiscoveredComputerBackup -Computer <VBRDiscoveredComputer> -Backup <VBRDiscoveredComputerBackup> [<CommonParameters>] |
Detailed Description
This cmdlet revokes a discovered computer's access to a backup. The cmdlet removes the specified discovered computer's access to the specified backup.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies the backup that you want to revoke the discovered computer's access to.
Accepts the |
True |
Named |
True (ByPropertyName) |
|
|
Computer |
Specifies the discovered computer whose access to the backup you want to revoke.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Revoking Discovered Computer Access to Backup
This example shows how to revoke a discovered computer's access to a backup.
|
$computer = Get-VBRDiscoveredComputer | Where {$_.Name -eq "support.east.local"} $backup = Get-VBRDiscoveredComputerBackup -Computer $computer Detach-VBRDiscoveredComputerBackup -Computer $computer -Backup $backup |
Perform the following steps:
- Run the
Get-VBRDiscoveredComputerReturns discovered computers. cmdlet. Use theWhere-Objectmethod to get the necessary discovered computer. Save the result to the$computervariable. - Run the
Get-VBRDiscoveredComputerBackupReturns backups of discovered computers. cmdlet. Set the$computervariable as theComputerparameter value. Save the result to the$backupvariable. - Run the
Detach-VBRDiscoveredComputerBackupcmdlet. Set the$computervariable as theComputerparameter value. Set the$backupvariable as theBackupparameter value.
Related Commands
Get-VBRDiscoveredComputerReturns discovered computers.Get-VBRDiscoveredComputerBackupReturns backups of discovered computers.