- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello aleex42
Thank you for your input.
1)
*****
If I set
$VM = Get-NsxSecurityTag | where-object { $_.name -like "MCAFEE.MOVE.unprotected=yes" } | Get-NsxSecurityTagAssignment | Select-Object VirtualMachine | ft -hidetableheaders
I get this error for each line in $VM:
"
Get-VM : 09-07-2018 15:39:03 Get-VM VM with name 'Microsoft.PowerShell.Commands.Internal.Format.FormatEndData' was not found using the specified filter(s).
At line:3 char:6
+ Get-VM -Name $singlevm
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
"
2
*****
If I set
$VM = Get-NsxSecurityTag | where-object { $_.name -like "MCAFEE.MOVE.unprotected=yes" } | Get-NsxSecurityTagAssignment | Select-Object VirtualMachine
I get:
"
Get-VM : 09-07-2018 15:41:01 Get-VM VM with name '@{VirtualMachine=V00606}' was not found using the specified filter(s).
At line:3 char:6
+ Get-VM -Name $singlevm
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
"
3
*****
If I set
$VM = Get-NsxSecurityTag | where-object { $_.name -like "MCAFEE.MOVE.unprotected=yes" } | Get-NsxSecurityTagAssignment
I get:
"
Get-VM : 09-07-2018 15:42:08 Get-VM VM with name '@{SecurityTag=System.Xml.XmlElement; VirtualMachine=V00606}' was not found using the specified filter(s).
At line:3 char:6
+ Get-VM -Name $singlevm
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
"
/Peter