Tuesday, August 31, 2010

Tech Notes-Changing IIS IUSR And IWAM Accounts After Server Rename


Recently I found a server which was renamed.There were two IUSR and IWAM accounts.One with the new name and one with the old one.Read on to see what you can do to get rid of old accounts and use only the new ones.
Ones you rename the machine and reboot it, you might still find the old IUSR and IWAM accounts .Now even if you delete these accounts, it will get recreated as soon as you restart IIS.Follow the below steps to get rid of the old accounts

(1) Open C:\WINDOWS\system32\inetsrv\Metabase.xml in Notepad
(2) Search for AnonymousUserName and change the value to IUSR_NEW (or any name you like) for all instance
(3) Search for WAMUserName and change the value to IWAM_NEW (or any name you like) for all instances
(4) Save Metabase.xml
(5) Start –> Run –> Services.msc –> Right click on IIS Admin Service and choose to restart.
(6)Delete the old accounts from Local Users and Groups

Now configure anonymous access with the new account in each Virtual Directory that you have created.

No comments:

Related Posts Plugin for WordPress, Blogger...