vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
743 stars 602 forks source link

[VMware.vSphere.SsoAdmin Enhancement Request] - Include password expiry binary values when using Get-SsoPersonUser #547

Open zwheeler-jm opened 2 years ago

zwheeler-jm commented 2 years ago

See https://github.com/vmware/PowerCLI-Example-Scripts/issues/460 for a previous request for more output in Get-SsoPersonuser and https://williamlam.com/2021/06/quick-tip-how-to-check-password-expiry-for-a-specific-vsphere-sso-user.html for details on the output from dir-cli.

Seeking to have not just PasswordExpirationRemainingDays in the output of Get-SsoPersonUser but also PasswordNeverExpires and PasswordExpired as binary true/false values.

See below for a sample output.

Name : vmware-svc-veeam Domain : vsphere.local Description : Local account for Veeam to access vCenter. FirstName : LastName : EmailAddress : Locked : False Disabled : False PasswordNeverExpires : False PasswordExpired : False PasswordExpirationRemainingDays : 250