Hi,
I am trying to modify a script in this thread to suit my needs. The script was using the Datacenter as the input to automatically update the VMs. In our case, all of our VMs are under one Datacenter, and separated into Development and Production by folders. I was able to modify the script to use a folder as input. However, underneath the root dev and prod folders, we have identically named subfolders. For example:
Datacenter
Dev
-->FolderA
Prod
-->FolderA
I have attached the script I have so far.
I would like to update all of the VMs in FolderA underneath Dev without updating any in FolderA underneath Prod. Would there be any way to provide input of either dev or prod, and then provide a secondary input for a subfolder?
Thanks.