{"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":"2013-05-22T15:13:46","modified_gmt":"2013-05-22T15:13:46","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":"open","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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Change a website to use a specific user in app pool (impersonate:false) - System Admin [RESOLVED]<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change a website to use a specific user in app pool (impersonate:false) - System Admin [RESOLVED]\" \/>\n<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:windowssystem32inetsrv Before you make the change, this process updates the applicationHost.config file AND [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\" \/>\n<meta property=\"og:site_name\" content=\"System Admin [RESOLVED]\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-22T15:09:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-05-22T15:13:46+00:00\" \/>\n<meta name=\"author\" content=\"Ed Rockwell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:site\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ed Rockwell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@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\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\"},\"author\":{\"name\":\"Ed Rockwell\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"headline\":\"Change a website to use a specific user in app pool (impersonate:false)\",\"datePublished\":\"2013-05-22T15:09:22+00:00\",\"dateModified\":\"2013-05-22T15:13:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\"},\"wordCount\":210,\"commentCount\":0,\"keywords\":[\"app pool\",\"appcmd\",\"domain user\",\"identity\",\"impersonate\",\"script\"],\"articleSection\":[\"IIS 7\",\"scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\",\"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]\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\"},\"datePublished\":\"2013-05-22T15:09:22+00:00\",\"dateModified\":\"2013-05-22T15:13:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.edrockwell.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change a website to use a specific user in app pool (impersonate:false)\"}]},{\"@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\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"caption\":\"Ed Rockwell\"},\"sameAs\":[\"http:\/\/www.therockwells.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change a website to use a specific user in app pool (impersonate:false) - System Admin [RESOLVED]","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","og_locale":"en_US","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:windowssystem32inetsrv Before you make the change, this process updates the applicationHost.config file AND [&hellip;]","og_url":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","og_site_name":"System Admin [RESOLVED]","article_published_time":"2013-05-22T15:09:22+00:00","article_modified_time":"2013-05-22T15:13:46+00:00","author":"Ed Rockwell","twitter_card":"summary_large_image","twitter_creator":"@EddieRock","twitter_site":"@EddieRock","twitter_misc":{"Written by":"Ed Rockwell","Est. reading time":"1 minute"},"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","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/"},"author":{"name":"Ed Rockwell","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"headline":"Change a website to use a specific user in app pool (impersonate:false)","datePublished":"2013-05-22T15:09:22+00:00","dateModified":"2013-05-22T15:13:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/"},"wordCount":210,"commentCount":0,"keywords":["app pool","appcmd","domain user","identity","impersonate","script"],"articleSection":["IIS 7","scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/","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]","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"datePublished":"2013-05-22T15:09:22+00:00","dateModified":"2013-05-22T15:13:46+00:00","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/change-a-website-to-use-a-specific-user-in-app-pool-impersonatefalse\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Change a website to use a specific user in app pool (impersonate:false)"}]},{"@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","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7","name":"Ed Rockwell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","caption":"Ed Rockwell"},"sameAs":["http:\/\/www.therockwells.net"]}]}},"_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}]}}