Skip to content

Instantly share code, notes, and snippets.

@mattycourtney
Created January 15, 2020 05:56
Show Gist options
  • Save mattycourtney/f49614d8abbe3a163f8ad289216e99ac to your computer and use it in GitHub Desktop.
Save mattycourtney/f49614d8abbe3a163f8ad289216e99ac to your computer and use it in GitHub Desktop.
Import-Module VMware.PowerCLI
Connect-VIServer YOUR_VCENTER_HOSTNAME_GOES_HERE
New-Item -ItemType Directory -Force -Path C:\Temp
Get-VIRole | % { Get-VIPrivilege | Select-Object -ExpandProperty Id | Out-File "C:\Temp\$_.role" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment