How to Use Adsutil.vbs
IIS provides a script file named Adsutil.vbs that you can use to
obtain or set the passwords of the IUSR and IWAM accounts to or from the IIS
metabase. In Windows NT 4.0, Adsutil.vbs is usually located in the <
Drive>\WINNT\System32\Inetsrv\Adminsamples folder. In Windows 2000,
Adsutil.vbs is located in the <
Drive>\Inetpub\Adminscripts folder.
The following table
lists the syntax for different functions of the Adsutil.vbs utility:
Function | Syntax |
---|
Obtain the IUSR account password | cscript.exe adsutil.vbs get w3svc/anonymoususerpass |
Obtain the IWAM account password | cscript.exe adsutil.vbs get w3svc/wamuserpass |
Set the IUSR account password | cscript.exe adsutil.vbs set w3svc/anonymoususerpass "password" |
Change the IUSR account | cscript.exe adsutil.vbs set w3svc/anonymoususername "username" |
Set the IWAM account password | cscript.exe adsutil.vbs set w3svc/wamuserpass "password" |
Change the IWAM account | cscript.exe adsutil.vbs set w3svc/WAMusername "username" |
Note When you try to obtain the password in Windows NT 4.0, the
password appears as clear text; however, the password appears as asterisks in
Windows 2000. To obtain the password in clear text in Windows 2000, you must
modify Adsutil.vbs so that it displays the unmasked password. To do this,
follow these steps:
- In Notepad, open Adsutil.vbs.
- On the Edit menu, click Find, type IsSecureProperty = True, and then
click Find Next.
- Change "IsSecureProperty = True" to "IsSecureProperty =
False".
- Save the changes to Adsutil.vbs, and then close
Notepad.
How to Change the Password in MTS or Component Services
Windows 2000
IIS 5.0 provides the Synciwam.vbs file to update the starting
identity of all IIS COM+ application packages that run out-of-process. The
Synciwam.vbs script is located in the <
Drive>\Inetpub\AdminScripts folder. You can use CScript or WScript
to run Synciwam.vbs.
To use Synciwam.vbs, type the following command
at a command prompt:
cscript.exe synciwam.vbs -v
You may need to restart IIS for all changes to take effect. To
restart IIS, from the
Start menu, click
Run, type
iisreset, and then click
OK.
Note Using Synciwam.vbs resets all out-of-process applications (Medium
and High isolation) to IWAM_
ComputerName.
Windows NT 4.0
IIS 4.0 does not supply any tools such as Synciwam.vbs script.
You must use MTS Explorer to manually change the IWAM password for each of your
applications that are running in Separate Memory Process. To do this, follow
these steps:
- From the Windows Start menu, point to Programs, point to Windows NT Option Pack 4, click Microsoft Transaction Server, and then click Transaction Server Explorer.
- In the Transaction Server Explorer, click to expand the Microsoft Transaction Server, Computers, My Computer, and Packages Installed nodes.
- Right-click one of the installed packages, and then click Properties.
- On the Identity tab, if the package is running under the IWAM_ComputerName User identity, type the password to match the IIS metabase, and
then click OK.
- Repeat steps 3 and 4 for each of the packages
installed.
- Restart IIS for these changes to take effect. To do this,
follow these steps:
- From the Windows Start menu, click Run, type cmd, and then click OK.
- At a command prompt, type the following commands
sequentially:
- net stop iisadmin /y
- net start w3svc
- net start msftpsvc (Use this command if you are running FTP Server)
- net start smtpsvc (Use this command if you are running SMTP Server)
- net start cisvc (Use this command if you are running Index Server)
Run the IIS 6.0 WWW Service in IIS 5.0 Isolation Mode
- Click Start, and then click
Run.
- In the Run dialog box, type
inetmgr, and then click OK.
- In the Internet Information Services (IIS) Manager window,
right-click the Web Sites folder, and then click
Properties.
- On the Service tab of the Web
Sites Properties dialog box, click to select Run WWW service
in IIS 5.0 isolation mode.
- Click OK to close the Web Sites
Properties dialog box.
- Close the Internet Information Services (IIS) Manager
window.