- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
removing the TRY/CATCH highlighted the issue.
It was the following variables
$vraManaged = $script:target.customFields.Item("vrmManagedMachine")
$vraOwner = $script:target.customFields.Item("VRM Owner")
These attributes don't exist on all VM's in the environment.
Because they aren't present in the VM's in this particular vCenter, the $script:vmProperty Hash Table wasn't getting populated. As a result, the output wasn't as expected.
Now, i need to figure out how to account for these variables if present and, skip them cleanly if not present