This is great and I what I usually do is put it into a HTML report to publish, but I am missing something when I am just trying to pull the name of the tagless, can you tell me where I went south?
#############################
# Variables #
#############################
$date=Get-Date -format "yyyy-MMM-d"
$datetime=Get-Date
$filelocation="\var\www\Tagless\NSX\NSX-$date.htm"
#############################
# Content #
#############################
#VMs without tags
#$report.results | where { $_.tags -eq $null }
$report.results = Get-VM | where { $_.tags -eq $null } | select name
#############################
# Add Text to the HTML file #
#############################
$report | ConvertTo-Html –title "VMware NSX-Tagless Check" –body "<H1>VMware NSX-Tagless Check</H1>" -head "<link rel='stylesheet' href='style.css' type='text/css' />" | Out-File $filelocation
ConvertTo-Html –title "VMware NSX-Tagless Check" –body "<H4>Date and time</H4>",$datetime -head "<link rel='stylesheet' href='style.css' type='text/css' />" | Out-File -Append $filelocation
ConvertTo-Html –title "VMware NSX-Tagless Check" –body "<H4>VM Count</H4>",$report.Count -head "<link rel='stylesheet' href='style.css' type='text/css' />" | Out-File -Append $filelocation