One of the current limitations with vRA7 is that once a local user has been created it can’t be modified.
Since v1.20 PowervRA has provided ability to interact with local user principals by using the following set of functions:
In this post, i’m going to concentrate on Set-vRAUserPrincipal. The function enables you to configure the following attributes of a local user principal:
You can also enable and disable an account with the DisableAccount and EnableAccount switch parameters.
Here are some examples:
Modify account attributes
Set-vRAUserPrincipal -Id firstname.lastname@example.org -FirstName FirstName-Updated -LastName LastName-Updated -EmailAddress email@example.com -Description Description-Updated
Enable and disable an account
Set-vRAUserPrincipal -Id firstname.lastname@example.org -EnableAccount Set-vRAUserPrincipal -Id email@example.com -DisableAccount
Reset the password of an account
Set-vRAUserPrincipal -Id firstname.lastname@example.org -Password s3cur3p@ss!
As always, make sure you test any new commands against your D&T environment first!
If you want to contribute a new function or have ideas/improvements head over to our github page and let us know!