Can not create subdomain


2016-11-16 13:10:29 UTC


2017-08-16 16:55:45 UTC


Was this article helpful?

Have more questions?

Submit a request

Can not create subdomain

Applicable to:

  • Plesk 10.x for Windows
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows


Subdomain creation fails with the error shown below:

"websrvmng failed: The specified username is invalid. (Error code 2202) at NetUserAdd()
at (VSID::addUser line 442)
at addAppPoolIdentity()(WebServerAdapter::addAppPoolIdentity line 3608)
at updateAppPool(domain.tld)(WebServerManager::updateAppPool line 4146)
at execute console command --update-domain-app-pool(vconsoleapp::start line 132)
at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\/admin/bin/websrvmng" --update-domain-app-pool "--dom-id=57"(vconsoleapp::run line 143)"

Error: websrvmng failed: Current IIS application pool identity is not equal to specified identity (Error code 1)


Can not create subdomain: WebServerManager::addSubdomain() failed: websrvmng failed: The user name could not be found. (Error code 2221) at NetUserSetInfo() at (VSID::setUserInfo line 425) at updateAppPool(subdom.domain.tld)(WebServerManager::updateAppPool line 4088) at execute console command --add-subdomain(vconsoleapp::start line 132) at execute "D:\\Program Files\\Parallels\\Plesk\\/admin/bin/websrvmng" --add-subdomain "--vhost-name=domain.tld" "--subdomain=subdom"(vconsoleapp::run line 143)


Wrong Application Pool user.


Ensure that Application Pool have a valid identity:

  1. To find a valid application pool identity use the scheme below:

    IWPD_`domain_id_from_psa`(up to 10 chars of system user login name)
  2. Assign a valid Application Pool identity to the Application Pool used by affected domain.

Have more questions? Submit a request
Please sign in to leave a comment.