<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>PowerCLI on Why did IT fail</title><link>https://www.why-did-it.fail/tags/powercli/</link><description>Recent content in PowerCLI on Why did IT fail</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © 2026 Dominik Textoris (formerly Zorgnotti). All Rights Reserved.</copyright><lastBuildDate>Tue, 16 Mar 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.why-did-it.fail/tags/powercli/index.xml" rel="self" type="application/rss+xml"/><item><title>Tagging the vCenter (object)</title><link>https://www.why-did-it.fail/blog/2021-03-tag-vcenter-object/</link><pubDate>Tue, 16 Mar 2021 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2021-03-tag-vcenter-object/</guid><description>I am working on enhancing my vSphere release tagging script with the ability to tag the vCenter with a human-readable release name. As shown in the screenshot, it&amp;rsquo;s easy enough in the UI.
Tags applied to the vCenter in the UI However, in PowerCLI there is no commandlet like get-vcenter. After many tries I gave up trying to force the object returned from
$global:DefaultVIServers[0] to accept any tag-related operations. Today, I had the idea of working backwards from the assigned tags with Get-TagAssignment</description></item><item><title>Tagging ESXi hosts with canonical release names</title><link>https://www.why-did-it.fail/blog/2021-02-set-esxi-release-names-with-tags/</link><pubDate>Fri, 05 Mar 2021 00:00:00 +0000</pubDate><guid>https://www.why-did-it.fail/blog/2021-02-set-esxi-release-names-with-tags/</guid><description>Update [2022-10-17] The VMware APIs for the KnowledgeBase have introduced a breaking change. This means the releases can no longer be updated without further development.
Update [2021-03-09] The repository has been renamed to VMware-vSphere-Release-Tagging as the future scope should include the vCenter as well. Thank you for all the feedback!
In this blog post I want to show you a practial application for the automation that I have built in my last project:</description></item></channel></rss>