We mirrored one of our webservers and thus got an IUSR account that was named after the wrong server IUSR-SERVER1
when this server's name is SERVER2.
So I went and renamed the user to IUSR_SERVER2
, but after resetting IIS it kept creating the old IUSR-SERVER1 account. Turns out this is a feature, so I went through the websites in IIS and changed the IUSR that they use to IUSR-SERVER2 then deleted IUSR-SERVER1
, and this time it stayed deleted.
Then I accidentally deleted IUSR-SERVER2
so I tried to reset IIS hoping it would be automatically created. Unfortunately this did not occur. Thus I was forced to create a new user and give it a password.
This made the website work but now there is a password associated with the IUSR, is there any other way to create an IUSR so everything is the same as before?
You can set the IUSR Password using the following command:
You then need to sync it with this command: