Hello,
I am looking for some advice or insight on how to set the Password Policy on an org to "Enabled" during creation and set the Lockout attempts and duration.
In looking at the API information, the call format from PS to the vCD API should be what I have below, but when I run it in a script, it gets passed over and not run.
$lockout = $org.ExtensionData.Settings.GetPasswordPolicy()
$lockout.AccountLockoutEnabled = $True
$lockout.InvalidLoginsBeforeLockout = 6
$lockout.AccountLockoutIntervalMinutes = 11
If someone has some insight I would be very much appreciative.
Thank you,
Jkasalzuma
Hi,
You were very close, you just needed to commit the change. Do the following as your last line:
$lockout.UpdateServerData()
Regards,
Dean
Thread moved to vCloud Director PowerCLI
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi,
You were very close, you just needed to commit the change. Do the following as your last line:
$lockout.UpdateServerData()
Regards,
Dean
Thank you!
Wow! Now that's a head slapper. I should have seen that.
Thank you for the kick to the head.
--jkasalzuma
You welcome, glad I could assist.