I have learned a lot from the vCommunity, Powershell and PowerCLI web sites. I want to use this blog as a way for me to give back. If one person finds anything I post helpful, I will consider my efforts successful. Favorite Quotes: “It doesn’t make sense to hire smart people and then tell them what to do, We hire smart people so they can tell us what to do.
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.