Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214863

How to use tagging but exclude items that are tagged?

$
0
0

I am relatively new to tags but I got them working.  Tagging datastores and iterating through them.  I think our VM team will be tagging a few resources that they DON'T want used so I will have to write PowerCLI code to look for resources (datastores for example) that aren't tagged, versus looking for resources that are tagged.  I can't figure out how to do this.

 

If I do "get-datastore -tag $null"  I get ALL datastores, even tagged ones, so that doesn't work.  Hopefully this is easy I just overlooked something.  Help would be appreciated.


Viewing all articles
Browse latest Browse all 214863

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>