Hi
There is a method called GetUniqueInstanceId for get-vbrserver objects. How should the syntax be for the method? Want to use it on a vcenter.
\Masonit
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Method GetUniqueInstanceId()
Can you tell me what you're trying to achieve? May be there is a more obvious way to do that (in comparison with using internal undocumented object methods)? Thanks!
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Method GetUniqueInstanceId()
Trying to get from veeam vcenter Instance UUID. When using Find-VBRViEntity I get property ConnHostId. But that Id does not seem to be vcenter Instance UUID. I can get the id with powercli but also want to collect it from Veeam if possible.
$vcenter = Connect-viserver <vcenter>
$vcenter.InstanceUuid
\Masonit
$vcenter = Connect-viserver <vcenter>
$vcenter.InstanceUuid
\Masonit
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Method GetUniqueInstanceId()
Is this something you're after?
Thanks!
Code: Select all
asnp VeeamPSSnapin
$Vcenter = Find-VBRViEntity -name "Name of your vCenter"| where {$_.type -eq "vc"}
$Vcenter.GetHost().Info.HostUniqueId
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Method GetUniqueInstanceId()
Yes, thanks!
\Masonit
\Masonit
Who is online
Users browsing this forum: No registered users and 1 guest