NSX PowerCLI Code Some basic PowerCLI commands with NSX Included some examples of code to Automate adding/removing NSX Security Tags from VMs. Show Security TAGs. Show Security TAGs assigned to a specific VM. Hope you find these snippets of code useful. # Need to install PowerShell Module PowerNSX # Connect to vCenter $vCenterName = 'vCenter.vCrocs.info' Connect-VIServer $vCenterName -Credential $cred # Connect to NSX Server Connect-NsxServer -vCenterServer 'vCenter.vCrocs.info' -Credential $cred # Show all Security Tags Get-NsxSecurityTag | Select-Object Name | Sort-Object Name # Info about one specific Security TAG Get-NsxSecurityTag -Name NSX.

Continue reading

Author's picture

Dale Hassinger

Sharing Content with the vCommunity and anyone else that finds my content interesting…

Lead Systems Engineer - SME

Dillsburg, PA