Created
January 15, 2020 05:56
-
-
Save mattycourtney/f49614d8abbe3a163f8ad289216e99ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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