Get-VBRDiscoveredComputerNetwork
Short Description
Returns network adapters of discovered computers with the Veeam CDP Agent Service installed.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRDiscoveredComputerNetwork -Computer <VBRDiscoveredComputer> [<CommonParameters>] |
Detailed Description
This cmdlet returns the VBRDiscoveredComputerNetwork object which contains network adapters of the discovered computer. The discovered computer must be added to a protection group and have the Veeam CDP Agent Service installed.
The VBRDiscoveredComputerNetwork object can be used to configure the network mapping rules in a universal CDP policy.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Computer |
Specifies the discovered computer added to a protection group and with the Veeam CDP Agent Service installed. The cmdlet will return the network adapter of this discovered computer.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRDiscoveredComputerNetwork[] object that contains network adapters of the discovered computer.
Examples
Getting Network Adapter of Discovered Computer
This example shows how to get the network adapter of a discovered computer.
|
$computer = Get-VBRDiscoveredComputer | Where-Object { $_.Name -eq "serv01" } $adapters = Get-VBRDiscoveredComputerNetwork -Computer $computer $netAdapter = $adapters[0] |
Perform the following steps:
- Run the
Get-VBRDiscoveredComputerReturns discovered computers. cmdlet. Pipe the cmdlet output to theWhere-Objectcmdlet. Specify the following settings:- Provide the
$_.automatic variable. - Provide the
Nameproperty. - Specify the
eqcomparison operator value. - Save the result to the
$computervariable.
- Provide the
- Run the
Get-VBRDiscoveredComputerNetworkcmdlet. Set the$computervariable as theComputerparameter value. Save the result to the$adaptersvariable.The
Get-VBRDiscoveredComputerNetworkcmdlet will return an array of network adapters. Mind the ordinal number of the necessary network adapter. Note that to count objects of the array you must start with 0. - Save the
$adapters[0]variable to the$netAdaptervariable to be used with other cmdlets.
Related Commands
Get-VBRDiscoveredComputerReturns discovered computers.