
Use the ICIClientSettings interface GetAllowAnyPwd method to check if a user may create any password (i.e., complex passwords not required). Refer to User Password Settings for an illustration of how this and other Client Settings Interface Methods and Properties can be accessed in the Administrator interface.
Signature:
HRESULT GetAllowAnyPwd(
[out, optional] VARIANT_BOOL *pInherited,
[out, retval] VARIANT_BOOL *pVal);
Values:
0 = Prohibited
1 = Allowed
Example:
Dim strUser: strUser = "test"
Set oUserSettings = oSite.GetUserSettings(strUser)
bUserPwd = oUserSettings.GetAllowAnyPwd()
WScript.Echo ("bUserPwd= " & bUserPwd)