Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Tags Issues

$
0
0

Hi all ,

I tried A lot of script to get tags , and finally I found good script .

I have 2 issues with this script .

Script:



Get-VM | ForEach-Object {

$VM = $_

$VM  | ForEach-Object {

$Report = "" | Select-Object VM,VMHost,Notes,Tag

$Report.VM = $VM.Name

$Report.VMHost = $VM.VMHost

$Report.Notes = $VM.Notes

$VM | Get-TagAssignment

$Report.Tag = $_.Tag

$Report

}

} | Export-Csv -Path C:\temp\VMTags1.csv -NoTypeInformation

 

 

My problems with script is :

A. I need create about all tag new Column . like tag1 Column , tag2 another Column .

How I create new Tag if I have more of one tag?

B. After export csv file , I need also import tags, how I take all new tags from file and import it?

 

Thanks all.

Alex.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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