Reply to Message

View discussion in a popup

Replying to:
PeterRaschLager
Enthusiast
Enthusiast

GET-VM and $VM

Hello.

I'd like to get a list which of the VMs in $VM is powered based on a listed of VMs with a particular attached security tag:

$VM = Get-NsxSecurityTag | where-object { $_.name -like "MCAFEE.MOVE.unprotected=yes" } | Get-NsxSecurityTagAssignment | Select-Object VirtualMachine | ft -hidetableheaders.

Each line in $VM is just the VMs name

but GET-VM $VM seems to expect more.

/Peter