What type of password I have to give to set the custom account for application pool identity

Iis 7

Iis 7 Problem Overview


I'm trying to set the Identity of the Application Pool to a specific account. When I'm entering the password for a user name it says

The specified password is invalid.Type a new password.

Is there any specific requirement for the password field?

Iis 7 Solutions


Solution 1 - Iis 7

For me, it was that I wasn't adding the domain name to the login (DOMAIN\USER). It was defaulting to a local account

Solution 2 - Iis 7

The user account you specify must have "Access this computer from the network" user right in group policy.

If this is server is joined to a domain, will need to add this right via Group Policy -> Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment.

Solution 3 - Iis 7

I'd configured the settings below but I was still getting the same error when trying to change the identity of the new application pool using the UI:

'The specified password is invalid. Type a new password.'

  • Local Users and Groups
    • Added the Domain Service Account to the local group 'IIS_IUSRS'.
  • Local Security Policy
    • Added the domain service account to the policies:
      • Access this computer from the network
      • Deny log on locally
      • Log on as a batch job
      • Log on as a service

The method that worked for me was to ditch the UI and do it via the command line using appcmd.exe.

%windir%\system32\inetsrv\appcmd.exe set config /section:applicationPools /[name='APP_POOL_NAME'].processModel.identityType:SpecificUser /[name='APP_POOL_NAME'].processModel.userName:DOMAIN\USER_NAME /[name='APP_POOL_NAME'].processModel.password:PASSWORD 

This method is described in the article:

http://technet.microsoft.com/en-us/library/cc771170(v=ws.10).aspx

Solution 4 - Iis 7

For me it was because I didn't mention the domain name as part of the user name

Solution 5 - Iis 7

Another common cause for this error is long usernames... if you continue to be baffled (as I was), try using the "Pre-Windows 2000" version of the username, as listed in AD (assuming you're using a domain account). Worked for me!

Solution 6 - Iis 7

I faced the same problem. It baffled me as the message says there is something wrong with the password. It turned out that the account I was trying to use did not have logon rights on the IIS Server. I added the account to the local Administrators group to resolve the issue - if that's not an option then we have to somehow give the account logon rights to the computer.

Solution 7 - Iis 7

It might also mean that the account is Locked Out (too many failed login attempts before), which you can configure in the Local Users and Groups MMC.

Solution 8 - Iis 7

The standard windows password rules in the security manager do apply. I believe you have to use an existing account, and that users assigned password. If the security manager was configured after the user account was setup, and the password does not expire, then they may have weaker password rules than the currently existing ones which could create a conflict.

In server 2008R2 %windir%\system32\secpol.msc /s should bring up the local security policy Not sure if its the same in other OS versions.

Solution 9 - Iis 7

Getting Error - The specified password is invalid.Type a new password.

Use the below command from the CMD and it will fix the issue-

%windir%\system32\inetsrv\appcmd.exe set config /section:applicationPools /[name='APP_POOL_NAME'].processModel.identityType:SpecificUser /[name='APP_POOL_NAME'].processModel.userName:DOMAIN\USER_NAME /[name='APP_POOL_NAME'].processModel.password:PASSWORD

Solution 10 - Iis 7

I met the same issue and solved with typing username which following domain name. As the pic shown. And entered the windows login password then it works.

enter image description here

Solution 11 - Iis 7

I have found that it must be a local account on IIS server, rather than a domain account.

Solution 12 - Iis 7

I've been perplexed by this before as well, and tried everything else mentioned in all previous replies, to no avail. In my case, I was trying to use a local user that I created myself (for a developer machine), but my problem was that I had not unchecked the "User must change password at next logon" checkbox on the properties of the User in the Computer Management tool when creating the User. This is yet another scenario that can result in this very generic error message from IIS. Unchecking this fixed the issue immediately.

Solution 13 - Iis 7

I tried the command John suggested to set the password through the command line. Since my application pool has spaces in the name, I got this error message:

Failed to process input: The parameter 'Sites'].processModel.identityType:SpecificUser' must begin with a / or - (HRESULT=80070057).

I was able to set the password with the following command:

%windir%\system32\inetsrv\appcmd.exe set config "/section:applicationPools /[name='APP_POOL_NAME'].processModel.identityType:SpecificUser" "/[name='APP_POOL_NAME'].processModel.userName:DOMAIN\USER_NAME" "/[name='APP_POOL_NAME'].processModel.password:PASSWORD" 

Solution 14 - Iis 7

I bumped in to this problem but my solution was something different

I was using a VM and by default the VM created an administrator user but created it without a password.

I had to go out of IIS, in to user settings, add a password to my user and then back to IIS. I then entered the details accordingly and the whole thing worked :-)

I mistakingly thought I was creating a new user here for IIS - I don't believe that is the case you must use an existing user (as in a Windows user).

Solution 15 - Iis 7

For me, it was that the domain user had to be a member of the IIS_IUSRS group. Added the user to the group via Computer Management -> Users and Groups, restarted the app pool and all was well.

Solution 16 - Iis 7

Use Your Laptop Password it worked for me.

Solution 17 - Iis 7

For me it was in my haste to follow the instructions for creating a merge agent account for replication I had left "User must change password at next logon" ticked. Make sure that the user does't have this ticked.

Solution 18 - Iis 7

If you are using a gMSA service account you have to enter domani\account$, meaning add a dollar sign at the end of your username.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionanandView Question on Stackoverflow
Solution 1 - Iis 7ptoutantView Answer on Stackoverflow
Solution 2 - Iis 7ChloraphilView Answer on Stackoverflow
Solution 3 - Iis 7JohnView Answer on Stackoverflow
Solution 4 - Iis 7YokyView Answer on Stackoverflow
Solution 5 - Iis 7Brian YoungView Answer on Stackoverflow
Solution 6 - Iis 7ManishView Answer on Stackoverflow
Solution 7 - Iis 7Matthias MeidView Answer on Stackoverflow
Solution 8 - Iis 7BenjaminView Answer on Stackoverflow
Solution 9 - Iis 7Prabaldeep guptaView Answer on Stackoverflow
Solution 10 - Iis 7SheldonZhView Answer on Stackoverflow
Solution 11 - Iis 7DanView Answer on Stackoverflow
Solution 12 - Iis 7AR9View Answer on Stackoverflow
Solution 13 - Iis 7Alexander van TrijffelView Answer on Stackoverflow
Solution 14 - Iis 7Neil KelseyView Answer on Stackoverflow
Solution 15 - Iis 7Brett DrakeView Answer on Stackoverflow
Solution 16 - Iis 7Rajesh jhaView Answer on Stackoverflow
Solution 17 - Iis 7sonofsmogView Answer on Stackoverflow
Solution 18 - Iis 7TMSALView Answer on Stackoverflow