Hey all,
I am currently trying to make a script to report any VMs that do not have tools installed, but it is kicking back all my veeam replicas and that is just not needed. Here is my script, what am I doing wrong to eliminate any VMs with the suffix _replica. Here is my script:
Get-VM | Get-View | Select-Object @{N=”VM Name”;E={$_.Name}},@{Name=”VMware Tools”;E={$_.Guest.ToolsStatus}}
Get-View -ViewType VirtualMachine -Property Name,Guest.ToolsStatus -Filter @{
"Config.Template"="False";"Guest.ToolsStatus"="^(?!toolsOk$).*$" } | `Select-Object Name,@{Name="ToolsStatus";E={$_.Guest.ToolsStatus}} |
I have excluded some information before this for the vcenter connection and after because I FTP this to a web server.
Any help would be great, thank you!
Andy