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.
|
|
Afterwards simply change in line 16 value for -CustomAttribute and in line 18 the one in quotation mark.