User Modal Functions
The network management user modal functions get and set system-wide parameters related to security system behavior.
The user modal functions are listed following.
|NetUserModalsGet||Returns global information for all users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.|
|NetUserModalsSet||Sets global information for all users and global groups in the security database.|
The NetUserModalsGet and NetUserModalsSet functions examine and modify the modal settings, which are global parameters that affect every account in the security database (for example, the minimum allowable password length). All modal settings can be altered by calling NetUserModalsSet. Most of the modals can also be altered by using the net accounts command. The network management user modal functions do not require the server to have user-level security.
User modal information is available at the following levels:
The following information levels are valid only for NetUserModalsSet and replace the older way of passing in a Parmnum to set a specific field:
If you are programming for Active Directory, you may be able to call certain Active Directory Service Interface (ADSI) methods to achieve the same functionality you can achieve by calling the network management user modal functions. For more information, see IADsDomain.