PowerCLI

In Today post I would like to show you quick method of replacing annotations which quite a lot of people use to store details about Virtual Machines. As usual this short script was created to automate things rather than do it all manually.

In my company we use annotations to store information about Virtual Machines. I was quite often asked about VMs I deployed three Years ago – like I remember it now 🙂 So to remove information about myself I used following script.

In my case I am replacing custom attribute Creator with space. If you want to replace another custom attribute you first need to find it.

To show which custom attributes you have run following oneliner.

Replace custom attribute

Afterwards simply change in line 16 value for -CustomAttribute and in line 18 the one in quotation mark.

Replace custom attribute 2

Rate this post
Wojciech Marusiak
Social Media

Wojciech Marusiak

Solution Architect at Alibaba Cloud
I am innovative and experienced IT professional with over 12 years in the IT industry.

My experience and skills have been proven by leading vendor certifications like AWS, Alibaba Cloud, VMware, and Microsoft. I contribute to IT community and I received VMware vExpert 2014 - 2017 and VMware vExpert NSX 2017 Award.

My blog wojcieh.net - was voted #43 in Top vBlog 2017 contest!

Do what you love, and you’ll never work another day in your life.
Wojciech Marusiak
Social Media