What type of password I have to give to set the custom account for application pool identity [closed]
Asked Answered
S

18

53

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?

Sherwin answered 2/8, 2011 at 16:10 Comment(1)
I actually have an opposite problem. Using appcmd.exe set config I get to set domain\username and password even when they are wrong? Why does that happen?Fully
P
64

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

Parcae answered 24/3, 2014 at 15:5 Comment(1)
That was the issue for me as well :) Sometimes we may forget some too basic things. Ha ha :)Ethelethelbert
P
17

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

Phosphide answered 3/10, 2014 at 14:8 Comment(2)
This helped me though I used this article: linkSalish
This was the only method that worked for me trying to follow Configure IIS 7 for Web SynchronizationAnarchy
K
15

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.

Kreisler answered 5/6, 2012 at 15:43 Comment(1)
Also check that the user (or a group the user is a member of) does not have the "Deny access to this computer from the network" policy applied.Contra
P
11

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

Partin answered 18/9, 2015 at 15:41 Comment(1)
YES. DOMAINNAME\username and it was fixed. What a terrible error message that doesn't help at allOverwind
K
8

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!

Kraus answered 20/9, 2012 at 15:22 Comment(0)
H
5

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.

Heliotropin answered 27/8, 2014 at 11:23 Comment(1)
This is true. It's also very unfortunate, as in my case the person who unlocks the accounts is not myself, so I have to send many e-mails about it, and am never quite sure if this also is a problem.Archiplasm
M
4

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.

Mireyamiriam answered 4/6, 2012 at 13:28 Comment(2)
Thanks for posting this. I faced this issue today and resolved the same way you mentioned.Molnar
I actually have an opposite problem. Using appcmd.exe set config I get to set domain\username and password even when they are wrong? Why does that happenFully
B
2

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.

Billiton answered 2/8, 2011 at 16:19 Comment(3)
I'm giving the existing user name and password associated to that user name only. Still getting password is invalid message. What is security manager? Mine is Windows 2008 Enterprise.Sherwin
I have the same problem and the solution is to use an existing account and the user assigned password. It is the account and password you set when you create the user in Computer Management. Using other arbitrary password won't work.Preiser
I actually have an opposite problem. Using appcmd.exe set config I get to set domain\username and password even when they are wrong? Why does that happenFully
K
2

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

Krak answered 2/12, 2016 at 15:8 Comment(0)
E
2

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
Earlearla answered 12/5, 2020 at 16:7 Comment(1)
You may quote the script using Ctrl+KFribourg
D
1

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.

Doublepark answered 8/1, 2019 at 12:47 Comment(0)
H
0

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

Housum answered 2/3, 2012 at 19:43 Comment(1)
I am a software developer, in our shop we also have one set of IT admins and another set of SQL admins. Eventually, an IT admin was able to get it working with a domain account instead of a local account, this in turn very much pleased the SQL admins. So it is possible to get it working with a domain account, but a local account is easier, and if you are a software developer, you may need an IT admin to help you!Archiplasm
I
0

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.

Inner answered 2/4, 2016 at 1:26 Comment(0)
C
0

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" 
Cruciate answered 21/11, 2016 at 13:11 Comment(1)
on windows 10, i had to remove all the double quotes to get this command to workIpecac
A
0

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).

Anastigmat answered 8/2, 2017 at 16:32 Comment(0)
A
0

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.

Anarchy answered 27/2, 2020 at 19:58 Comment(0)
A
0

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.

Aenneea answered 28/7, 2020 at 16:45 Comment(0)
C
-1

Use Your Laptop Password it worked for me.

Chad answered 3/10, 2019 at 17:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.