Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

nsx-256VMware NSX


Manage NSX Manager Roles leveraging PowerNSX and NSX API

Requirements: PowerShell 4 or above. To check, type the following command: $PSVersionTable.PSVersion.Major.

To use this script, save the 'Power-NsxRole.ps1' file to your computer and go to the script directory, e.g. cd C:\scripts.

Import the script to the current PowerShell session: Import-Module .\Power-NsxRole.ps1 -Force.

Connect to your NSX Manager(s) by Connect-NsxServer cmdlet from the PowerNSX module.

You are ready to invoke imported cmdlets. To see the cmdlets imported, type Get-Command -Noun nsxentity*.

All the action cmdlets (Add-/New-/Remove-) are advanced functions and support -Debug, -Verbose and -Confirm parameters.

For help on each individual cmdlet, run Get-Help CmdletName -Full [-Online][-Examples].

No Cmdlet Description
1 Get-NsxEntityRoleAssignment Get users and groups who have been assigned a NSX Manager role
2 Add-NsxEntityRoleAssignment Assign the NSX Manager role to any vCenter user or group
3 Add-NsxEntityAccessScope Assign vCenter user or group NSX Manager scope aware role in a custom Access Scope. This replaces Limit Scope capability, removed from 6.2 UI and later
4 Remove-NsxEntityRoleAssignment Remove NSX Manager role assignment for any vCenter user or group
5 Get-NsxRoleDisplayName Convert NSX Manager Role name to display name and vice versa (internal helper function)