Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Get-Tagassignment Problem sind vcenter 6.5 #182

@aschi75

Description

@aschi75

Hi
I have a script for exporting VM Details like Tags, etc. which works since months.

My collegue updated our Vcenter from 6.0 to 6.5 and since than I didn't get the Tags anymore.
I installed "VMware-PowerCLI-6.5.0-4624819.exe" and also Powershell 5.1 "Win8.1AndW2K12R2-KB3191564-x64.msu" on the webcommander Server but the Problem persists.

It still works If i run the Script in ISE on the Webserver where Webcommander is running .

Part of the script:
$getCategory = Get-TagCategory
foreach ($cat in $getCategory) {
->with webcommander it's not going inside the loop.

Another Test:
$GetVms = Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"}
foreach ($vm in $GetVms) {
$vm.name
->this is working with webcommander

$test = ($vm | Get-TagAssignment –Category "Stage").Tag.name
->with webcommander the variable $test is empty
}

Any Ideas or a known bug? Any hint is appreciated.

Regards,
Roger

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions