{"id":26,"date":"2013-05-22T15:09:22","date_gmt":"2013-05-22T15:09:22","guid":{"rendered":"http:\/\/www.edrockwell.com\/blog\/?p=26"},"modified":"2026-07-02T16:57:33","modified_gmt":"2026-07-02T16:57:33","slug":"change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse","status":"publish","type":"post","link":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","title":{"rendered":"Change a website to use a specific user in app pool (impersonate:false)"},"content":{"rendered":"<p>How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax.<\/p>\n<p>First, you need to use a tool called appcmd. that is located and must be ran from the following location:<\/p>\n<p>c:\\windows\\system32\\inetsrv<\/p>\n<p>Before you make the change, this process updates the applicationHost.config file AND the web.config in the website directory so ALWAYS make a backup.<\/p>\n<p>Simply copy the file called applicationHost.config from\u00a0C:\\Windows\\System32\\inetsrv\\config so you have a backup.<\/p>\n<p>Also copy the web.config from the website you&#8217;re changing as well.<\/p>\n<p>Once your backups are done, open a CMD prompt and change directory to\u00a0c:\\windows\\system32\\inetsrv and run the following commands:<\/p>\n<p>appcmd set config &#8220;SITE_NAME_HERE&#8221; \/section:identity \/impersonate:false<\/p>\n<p>appcmd set config \/section:applicationPools \/[name=&#8217;SITE_NAME_HERE&#8217;].processModel.identityType:SpecificUser \/[name=&#8217;SITE_NAME_HERE&#8217;].processModel.userName:DOMAIN\\user_name \/[name=&#8217;SITE_NAME_HERE&#8217;].processModel.password:Password_Here<\/p>\n<p>it isn&#8217;t necessary to restart the app pool but it doesn&#8217;t hurt to do so.<\/p>\n<p>To verify:<\/p>\n<p>Test the site&#8230; Check the site logs&#8230; Check your security logs&#8230;<\/p>\n<p>All done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[12,9,13,10,11,14],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-iis-7","category-scripting","tag-app-pool","tag-appcmd","tag-domain-user","tag-identity","tag-impersonate","tag-script"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ed Rockwell\"\/>\n\t<meta name=\"keywords\" content=\"app pool,appcmd,domain user,identity,impersonate,script\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"System Admin [RESOLVED] | How To: Make My DevOps Life Easier\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]\" \/>\n\t\t<meta property=\"og:description\" content=\"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-05-22T15:09:22+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-07-02T16:57:33+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#article\",\"name\":\"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]\",\"headline\":\"Change a website to use a specific user in app pool (impersonate:false)\",\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-05-22T15:09:22+00:00\",\"dateModified\":\"2026-07-02T16:57:33+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#webpage\"},\"articleSection\":\"IIS 7, scripting, app pool, appcmd, domain user, identity, impersonate, script\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/iis-7\\\/#listItem\",\"name\":\"IIS 7\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/iis-7\\\/#listItem\",\"position\":2,\"name\":\"IIS 7\",\"item\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/iis-7\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#listItem\",\"name\":\"Change a website to use a specific user in app pool (impersonate:false)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#listItem\",\"position\":3,\"name\":\"Change a website to use a specific user in app pool (impersonate:false)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/category\\\/iis-7\\\/#listItem\",\"name\":\"IIS 7\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ed Rockwell\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#webpage\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/\",\"name\":\"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]\",\"description\":\"How to script moving a website username\\\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\\\windows\\\\system32\\\\inetsrv Before you make the change, this process updates the applicationHost.config file AND\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2013-05-22T15:09:22+00:00\",\"dateModified\":\"2026-07-02T16:57:33+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.edrockwell.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]","description":"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND","canonical_url":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","robots":"max-image-preview:large","keywords":"app pool,appcmd,domain user,identity,impersonate,script","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#article","name":"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]","headline":"Change a website to use a specific user in app pool (impersonate:false)","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.edrockwell.com\/blog\/#organization"},"datePublished":"2013-05-22T15:09:22+00:00","dateModified":"2026-07-02T16:57:33+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#webpage"},"isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#webpage"},"articleSection":"IIS 7, scripting, app pool, appcmd, domain user, identity, impersonate, script"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/#listItem","name":"IIS 7"}},{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/#listItem","position":2,"name":"IIS 7","item":"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#listItem","name":"Change a website to use a specific user in app pool (impersonate:false)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#listItem","position":3,"name":"Change a website to use a specific user in app pool (impersonate:false)","previousItem":{"@type":"ListItem","@id":"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/#listItem","name":"IIS 7"}}]},{"@type":"Organization","@id":"https:\/\/www.edrockwell.com\/blog\/#organization","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","url":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author","url":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/","name":"Ed Rockwell","image":{"@type":"ImageObject","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ed Rockwell"}},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#webpage","url":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","name":"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]","description":"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumblist"},"author":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.edrockwell.com\/blog\/author\/admin\/#author"},"datePublished":"2013-05-22T15:09:22+00:00","dateModified":"2026-07-02T16:57:33+00:00"},{"@type":"WebSite","@id":"https:\/\/www.edrockwell.com\/blog\/#website","url":"https:\/\/www.edrockwell.com\/blog\/","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.edrockwell.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"System Admin [RESOLVED] | How To: Make My DevOps Life Easier","og:type":"article","og:title":"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]","og:description":"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND","og:url":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","article:published_time":"2013-05-22T15:09:22+00:00","article:modified_time":"2026-07-02T16:57:33+00:00","twitter:card":"summary","twitter:title":"Change a website to use a specific user in app pool (impersonate:false) | System Admin [RESOLVED]","twitter:description":"How to script moving a website username\/password from web.config to an app pool is pretty easy if you have the correct syntax. First, you need to use a tool called appcmd. that is located and must be ran from the following location: c:\\windows\\system32\\inetsrv Before you make the change, this process updates the applicationHost.config file AND"},"aioseo_meta_data":{"post_id":"26","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-15 23:07:13","updated":"2026-07-02 17:24:20","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.edrockwell.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/\" title=\"IIS 7\">IIS 7<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tChange a website to use a specific user in app pool (impersonate:false)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.edrockwell.com\/blog"},{"label":"IIS 7","link":"https:\/\/www.edrockwell.com\/blog\/category\/iis-7\/"},{"label":"Change a website to use a specific user in app pool (impersonate:false)","link":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/"}],"_links":{"self":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":3,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":28,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions\/28"}],"wp:attachment":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}