Returns a list of all VMs and VM containers on the specified ESX(i) host.
In Backup & Replication v6 this cmdlet was replaced by Find-VBRViEntity and Find-VBRHvEntity due to multihypervisor support introduced in the new version. The cmdlet will still work but it is advised to rewrite your scripts using new cmdlets for added benefits.
Find-VBRObject [-Server] <CHost> [-Name <String>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
This cmdlet returns a list of all VMs and VM containers on the specified ESX(i) host.
Specifies the host you want to look for objects on.
Specifies the name of the object you want to get, or search conditions.
You can specify multiple names separated by commas.
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
This command looks all objects registered on server named named "VMwareHost". The server object is obtained with Get-VBRServer and piped down.
PS C:\PS> Get-VBRServer -Name "VMwareHost" | Find-VBRObject
This command looks for VMs named "VM01" and "VM03" located on server represented by the $server variable. The server object is obtained with Get-VBRServer and assigned to the variable beforehand.
PS C:\PS> Find-VBRObject -Server $server -Name "VM01", "VM03"