Hello
I'm trying to create a script in order to create a new SSO user (in vCenter) if does not exist.
based on the New Open Source PowerCLI Module for managing vCenter Single Sign-On (SSO) - VMware PowerCLI Blog
we can create a new user like this :
New-SsoPersonUser -User lamw -Password 'MyStrongPa$$w0rd' -EmailAddress 'lamw@primp-industries.com' -FirstName 'William' -LastName 'Lam'
it's possible to achieve this via a loop that first check if user exist, if not, then we create it and enter details at console?
Do you have the module loaded in the session you've invoked the corresponding 'Get-' command ?
Use the Get-SsoPersonUser cmdlet to check if the user already exists
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I used this
Do you have the module loaded in the session you've invoked the corresponding 'Get-' command ?
Thanks I totally forget to import that module ![]()
It's normal! It happens sometimes
But it's great that you find the clue ![]()
