Set Tag to ESXi Host December 23, 2019December 23, 2019 Jeremias Kühnis #23.12.2019 by J.Kühnis Set VMWare ESXi Host Tag $mytag = Get-Tag -Name 'MyTagName' | ? {$_.Uid -match 'vCenterName'} Get-vmHost | %{ New-TagAssignment -Tag $myTag -Entity $_ } Clear-Variable mytag Automation, ESXi, Hypervisor, PowerCLI, Powershell, Scripting, VmWare, VMWare SDK Hypervisor, PowerCLI, PowerShell, Scripting, VMWare ESXi