Add a .NET User (IIS 7)
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
Add a user when you want to use IIS to define a user name, e-mail address, password, and security question for initiating an automatic account reset should a user lose or forget their password. If the .NET Roles feature is enabled, you can add users to roles as you create them.
Prerequisites
For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see .NET Roles Feature Requirements (IIS 7).
Exceptions to Feature Requirements
- None
To add users
You can perform this procedure by using the user interface (UI) or by writing WMI scripts.
User Interface
To use the UI
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
In Features View, double-click .NET Users.
In the Actions pane, click Add.
In the .NET User Account Details dialog box, enter the following information:
User Name (must be unique)
E-mail (must use standard format: name@domain.com)
Password (must be a strong password)
Confirm Password (must match the password)
Question (enter a custom question or select from the list)
Answer
Click Next to select roles for this user. If you have not enabled .NET Roles, click Finish.
In the .NET User Roles dialog box, optionally select available roles from the Roles box, and then click Finish.
Command Line
None
Configuration
None
WMI
Use the following WMI classes, methods, or properties to perform this procedure:
- MembershipSection.Add method
For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.
See Also
Concepts
Configuring .NET Roles in IIS 7
Configuring .NET Users in IIS 7