How to change (reset) domain user password from IIS – create IISADMPWD in iis7


 The IISADMPWD function is not included in IIS 7 any more. And thus the IISADMPWD directory is no longer there under a clean install of Windows Server 2008 . So except using VPN , is there a way to change my password in emergency? A small experiment reveals that we may use IISADMPWD if we have a copy of it from a Windows Server 2003 box and treat it as a ASP/COM application. The Workaround steps are attached for your reference.  

1.  Copy the folder from Server 2003 box to Server 2008 box. In my case, I still use the path C:\Windows\system32\inetsrv\Iisadmpwd on Server 2008.  

2.  Register the IISpwchg.dll file in the Iisadmpwd directory:

1.  Open an elevated command prompt.

2.  In the Open box, type the following, and then press ENTER:

regsvr32 c:\windows\system32\inetsrv\iisadmpwd\iispwchg.dll

3.  Configure the PasswordChangeFlags property in the metabase to make sure that the Password Change functionality is enabled:

1.  open an elevated command prompt.

2.  Locate the C:\Inetpub\Adminscripts directory (make sure that you have IIS 6 Scripting Tools feature turned on).

3.  Type the following command, and then press ENTER:

cscript.exe adsutil.vbs set w3svc/passwordchangeflags Value

Note In this sample command, Value is a placeholder for the value that you want to set for the PasswordChangeFlags property.

4.  The following list includes the possible values for the PasswordChangeFlags property. You can use a combination of these values.


·       0: This is the default value. This value indicates that you must use a Secure Sockets Layer (SSL) connection when you change the password.

·       1: This value permits password changes on non-secure ports. This value is useful if SSL is not enabled.

·       2: This value disables the Password Change functionality.

·       4: This value disables the advance notification of password expiration.


 

5.   To create an application for the Iisadmpwd directory.

·       Now open IIS Manager, and in the left panel right click on Default Web Site node.

·       Choose Add Application. In this dialog, type an alias (I use IISADMPWD) and the path (C:\Windows\system32\inetsrv\Iisadmpwd). Then click Select… button to choose a suitable application pool ( I use Classic .NET AppPool ). Click OK twice and we are done.

 

·       Under the IIS section I double clicked on the “Authentication” option – see below;

This changed the main window to look like the following example – here I ensured that the only form of Authentication selected was “BASIC” – see below;

 

Now you can access the password change page by navigating to http://<server>/iisadmpwd/aexp4b.asp (or https, which depends on your choice in step 4).


dpejic has written 85 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>