Is there a way of disabling a local vcenter user through powercli?
I've tried using set-SsoPersonUser but it looks like there is no paramater to only disable the user, only to remove.
Yes, that is an SSO user.Did you try the Enable switch?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
View solution in original post
Afaik, the Set-SsoPersonUser does have an Enable switch.But are you talking about an SSO user or a local OS user on the VCSA?
I'm talking about a system domain user, so I think it is an SSO user.
I've just checked and I was using module VMware.vSphere.SsoAdmin 1.2.2
The enable switch was implemented on version 1.3.2 (https://githubmemory.com/repo/vmware/PowerCLI-Example-Scripts/issues/470)