How to get "password policy requirement" for local computer, not for domain?
Can anybody help?
Printable View
How to get "password policy requirement" for local computer, not for domain?
Can anybody help?
NetQueryDisplayInformation(...) passing level 2 for NET_DISPLAY_MACHINE and null for the local computer name. You can look it up on msdn.microsoft.comQuote:
Originally posted by Aleksan
How to get "password policy requirement" for local computer, not for domain?
Can anybody help?
if I understand what you want correctly.
there may be an active directory equiv also.
It is not exactly what i want to known.
I need
MinPasswordLength and PASSWORD_COMPLEX information
................................................
PASSWORD_COMPLEX:
The password must have a mix of at least two of the following types of characters:
- Upper case characters
- Lower case characters
- Numerals
http://msdn.microsoft.com/library/de...wordpolicy.asp
NetValidatePasswordPolicy(...) ???
This function for Windows Server 2003.
...............................................
Requirements
Server: Requires Windows Server 2003.
Header: Declared in Lmaccess.h; include Lm.h.
Library: Use Netapi32.lib.
...............................................................
I need for Windows 2000 and Windows XP
If this is what you're looking for,Quote:
Originally posted by Aleksan
It is not exactly what i want to known.
I need
MinPasswordLength and PASSWORD_COMPLEX information
................................................
PASSWORD_COMPLEX:
The password must have a mix of at least two of the following types of characters:
- Upper case characters
- Lower case characters
- Numerals
I think MinPasswordLength is a server object's property
that specifies the minimum allowable password length
and the other one, I don't know :)PHP Code:if (str.size()<MinPasswordLength(MySir)){
std::cout<<"Short Password"<<std::endl;
MySir = YourSir;
}
Regards,
-Vu