{"id":469,"date":"2022-07-03T07:51:36","date_gmt":"2022-07-03T04:51:36","guid":{"rendered":"http:\/\/sunauskas.com\/blog\/?p=469"},"modified":"2022-07-03T07:51:38","modified_gmt":"2022-07-03T04:51:38","slug":"iis-application-pool-configuration-with-powershell","status":"publish","type":"post","link":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/","title":{"rendered":"IIS application pool configuration with PowerShell"},"content":{"rendered":"<p>https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting<\/p>\n<p>$appPoolPath =\u00a0 &#8220;iis:\\AppPools\\foo&#8221;<\/p>\n<p>$appPool = new-item $appPoolPath<\/p>\n<p>$appPool | set-itemproperty -Name &#8220;managedRuntimeVersion&#8221; -Value &#8220;v2.0&#8221;<br \/>\n$appPool | set-itemproperty -Name &#8220;managedPipelineMode&#8221; -Value &#8220;Classic&#8221;<\/p>\n<p>function AppPoolConfiguration{<br \/>\nparam ([System.String]$applicationPoolName)<\/p>\n<p>$pool = Get-Item &#8220;IIS:\\AppPools\\ASP.NET v4.0&#8221;;<\/p>\n<p>#set Enable 32bit Applications<br \/>\n$pool.enable32BitAppOnWin64 = &#8220;True&#8221;<br \/>\nLog-Info &#8220;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&#8221;<\/p>\n<p>#set Pipeline mode<br \/>\n$pool.managedPipelineMode = 0<br \/>\nLog-Info &#8220;IIS App pool $pool settings changed: managedPipelineMode = Integrated&#8221;<\/p>\n<p>#set Identity<br \/>\n$pool.processModel.username = &#8220;reasult\\test_lt&#8221;<br \/>\n$pool.processModel.password = &#8220;2jDsEGih&#8221;<br \/>\n$pool.processModel.identityType = 3<br \/>\nLog-Info &#8220;IIS App pool $pool settings changed: Identity = $pool.processModel.username&#8221;<\/p>\n<p>#set Idle Time-out<br \/>\n$pool.processModel.idleTimeout = &#8220;06:00:00&#8221;<br \/>\nLog-Info &#8220;IIS App pool $pool settings changed: idleTimeout = $pool.processModel.idleTimeout&#8221;<\/p>\n<p>#Save<br \/>\n$pool | set-item<br \/>\n}<\/p>\n<p>AppPoolConfiguration $installedWebApplication.applicationPool;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath =\u00a0 &#8220;iis:\\AppPools\\foo&#8221; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &#8220;managedRuntimeVersion&#8221; -Value &#8220;v2.0&#8221; $appPool | set-itemproperty -Name &#8220;managedPipelineMode&#8221; -Value &#8220;Classic&#8221; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &#8220;IIS:\\AppPools\\ASP.NET v4.0&#8221;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &#8220;True&#8221; Log-Info &#8220;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&#8221; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[74,99],"class_list":["post-469","post","type-post","status-publish","format-standard","hentry","category-software-development","tag-iis-7-5","tag-powershell-3-0"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = &quot;iis:\\AppPools\\foo&quot; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &quot;managedRuntimeVersion&quot; -Value &quot;v2.0&quot; $appPool | set-itemproperty -Name &quot;managedPipelineMode&quot; -Value &quot;Classic&quot; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &quot;IIS:\\AppPools\\ASP.NET v4.0&quot;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &quot;True&quot; Log-Info &quot;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&quot; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrius\"\/>\n\t<meta name=\"keywords\" content=\"iis 7.5,powershell 3.0\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Andrius Sunauskas blog | .NET software development and other high tech things\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"IIS application pool configuration with PowerShell | Andrius Sunauskas blog\" \/>\n\t\t<meta property=\"og:description\" content=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = &quot;iis:\\AppPools\\foo&quot; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &quot;managedRuntimeVersion&quot; -Value &quot;v2.0&quot; $appPool | set-itemproperty -Name &quot;managedPipelineMode&quot; -Value &quot;Classic&quot; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &quot;IIS:\\AppPools\\ASP.NET v4.0&quot;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &quot;True&quot; Log-Info &quot;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&quot; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-07-03T04:51:36+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-03T04:51:38+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"IIS application pool configuration with PowerShell | Andrius Sunauskas blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = &quot;iis:\\AppPools\\foo&quot; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &quot;managedRuntimeVersion&quot; -Value &quot;v2.0&quot; $appPool | set-itemproperty -Name &quot;managedPipelineMode&quot; -Value &quot;Classic&quot; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &quot;IIS:\\AppPools\\ASP.NET v4.0&quot;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &quot;True&quot; Log-Info &quot;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&quot; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#article\",\"name\":\"IIS application pool configuration with PowerShell | Andrius Sunauskas blog\",\"headline\":\"IIS application pool configuration with PowerShell\",\"author\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/author\\\/fatalerror\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#organization\"},\"datePublished\":\"2022-07-03T07:51:36+03:00\",\"dateModified\":\"2022-07-03T07:51:38+03:00\",\"inLanguage\":\"en\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#webpage\"},\"articleSection\":\"Software development, IIS 7.5, PowerShell 3.0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"name\":\"Software development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"position\":2,\"name\":\"Software development\",\"item\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/category\\\/software-development\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#listItem\",\"name\":\"IIS application pool configuration with PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#listItem\",\"position\":3,\"name\":\"IIS application pool configuration with PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"name\":\"Software development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#organization\",\"name\":\"Andrius Sunauskas blog\",\"description\":\".NET software development and other high tech things\",\"url\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/author\\\/fatalerror\\\/#author\",\"url\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/author\\\/fatalerror\\\/\",\"name\":\"Andrius\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3465f4f0a12c1b781bee5a84722dcb3873508bfaffd62c40eb8c2138d88f1c65?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrius\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#webpage\",\"url\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/\",\"name\":\"IIS application pool configuration with PowerShell | Andrius Sunauskas blog\",\"description\":\"https:\\\/\\\/social.msdn.microsoft.com\\\/Forums\\\/en-US\\\/580660b4-3d9e-4605-a28b-3407089caceb\\\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = \\\"iis:\\\\AppPools\\\\foo\\\" $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name \\\"managedRuntimeVersion\\\" -Value \\\"v2.0\\\" $appPool | set-itemproperty -Name \\\"managedPipelineMode\\\" -Value \\\"Classic\\\" function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item \\\"IIS:\\\\AppPools\\\\ASP.NET v4.0\\\"; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = \\\"True\\\" Log-Info \\\"IIS App pool $pool settings changed: enable32BitAppOnWin64 = True\\\" #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info\",\"inLanguage\":\"en\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/iis-application-pool-configuration-with-powershell\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/author\\\/fatalerror\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/author\\\/fatalerror\\\/#author\"},\"datePublished\":\"2022-07-03T07:51:36+03:00\",\"dateModified\":\"2022-07-03T07:51:38+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/\",\"name\":\"Andrius Sunauskas blog\",\"description\":\".NET software development and other high tech things\",\"inLanguage\":\"en\",\"publisher\":{\"@id\":\"https:\\\/\\\/sunauskas.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"IIS application pool configuration with PowerShell | Andrius Sunauskas blog","description":"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = \"iis:\\AppPools\\foo\" $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name \"managedRuntimeVersion\" -Value \"v2.0\" $appPool | set-itemproperty -Name \"managedPipelineMode\" -Value \"Classic\" function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item \"IIS:\\AppPools\\ASP.NET v4.0\"; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = \"True\" Log-Info \"IIS App pool $pool settings changed: enable32BitAppOnWin64 = True\" #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info","canonical_url":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/","robots":"max-image-preview:large","keywords":"iis 7.5,powershell 3.0","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#article","name":"IIS application pool configuration with PowerShell | Andrius Sunauskas blog","headline":"IIS application pool configuration with PowerShell","author":{"@id":"https:\/\/sunauskas.com\/blog\/author\/fatalerror\/#author"},"publisher":{"@id":"https:\/\/sunauskas.com\/blog\/#organization"},"datePublished":"2022-07-03T07:51:36+03:00","dateModified":"2022-07-03T07:51:38+03:00","inLanguage":"en","mainEntityOfPage":{"@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#webpage"},"isPartOf":{"@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#webpage"},"articleSection":"Software development, IIS 7.5, PowerShell 3.0"},{"@type":"BreadcrumbList","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/sunauskas.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/category\/software-development\/#listItem","name":"Software development"}},{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/category\/software-development\/#listItem","position":2,"name":"Software development","item":"https:\/\/sunauskas.com\/blog\/category\/software-development\/","nextItem":{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#listItem","name":"IIS application pool configuration with PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#listItem","position":3,"name":"IIS application pool configuration with PowerShell","previousItem":{"@type":"ListItem","@id":"https:\/\/sunauskas.com\/blog\/category\/software-development\/#listItem","name":"Software development"}}]},{"@type":"Organization","@id":"https:\/\/sunauskas.com\/blog\/#organization","name":"Andrius Sunauskas blog","description":".NET software development and other high tech things","url":"https:\/\/sunauskas.com\/blog\/"},{"@type":"Person","@id":"https:\/\/sunauskas.com\/blog\/author\/fatalerror\/#author","url":"https:\/\/sunauskas.com\/blog\/author\/fatalerror\/","name":"Andrius","image":{"@type":"ImageObject","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3465f4f0a12c1b781bee5a84722dcb3873508bfaffd62c40eb8c2138d88f1c65?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Andrius"}},{"@type":"WebPage","@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#webpage","url":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/","name":"IIS application pool configuration with PowerShell | Andrius Sunauskas blog","description":"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = \"iis:\\AppPools\\foo\" $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name \"managedRuntimeVersion\" -Value \"v2.0\" $appPool | set-itemproperty -Name \"managedPipelineMode\" -Value \"Classic\" function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item \"IIS:\\AppPools\\ASP.NET v4.0\"; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = \"True\" Log-Info \"IIS App pool $pool settings changed: enable32BitAppOnWin64 = True\" #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info","inLanguage":"en","isPartOf":{"@id":"https:\/\/sunauskas.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/#breadcrumblist"},"author":{"@id":"https:\/\/sunauskas.com\/blog\/author\/fatalerror\/#author"},"creator":{"@id":"https:\/\/sunauskas.com\/blog\/author\/fatalerror\/#author"},"datePublished":"2022-07-03T07:51:36+03:00","dateModified":"2022-07-03T07:51:38+03:00"},{"@type":"WebSite","@id":"https:\/\/sunauskas.com\/blog\/#website","url":"https:\/\/sunauskas.com\/blog\/","name":"Andrius Sunauskas blog","description":".NET software development and other high tech things","inLanguage":"en","publisher":{"@id":"https:\/\/sunauskas.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Andrius Sunauskas blog | .NET software development and other high tech things","og:type":"article","og:title":"IIS application pool configuration with PowerShell | Andrius Sunauskas blog","og:description":"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = &quot;iis:\\AppPools\\foo&quot; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &quot;managedRuntimeVersion&quot; -Value &quot;v2.0&quot; $appPool | set-itemproperty -Name &quot;managedPipelineMode&quot; -Value &quot;Classic&quot; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &quot;IIS:\\AppPools\\ASP.NET v4.0&quot;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &quot;True&quot; Log-Info &quot;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&quot; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info","og:url":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/","article:published_time":"2022-07-03T04:51:36+00:00","article:modified_time":"2022-07-03T04:51:38+00:00","twitter:card":"summary","twitter:title":"IIS application pool configuration with PowerShell | Andrius Sunauskas blog","twitter:description":"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/580660b4-3d9e-4605-a28b-3407089caceb\/how-to-configure-application-pool-identity-from-powershell?forum=iisconfiguationandscripting $appPoolPath = &quot;iis:\\AppPools\\foo&quot; $appPool = new-item $appPoolPath $appPool | set-itemproperty -Name &quot;managedRuntimeVersion&quot; -Value &quot;v2.0&quot; $appPool | set-itemproperty -Name &quot;managedPipelineMode&quot; -Value &quot;Classic&quot; function AppPoolConfiguration{ param ([System.String]$applicationPoolName) $pool = Get-Item &quot;IIS:\\AppPools\\ASP.NET v4.0&quot;; #set Enable 32bit Applications $pool.enable32BitAppOnWin64 = &quot;True&quot; Log-Info &quot;IIS App pool $pool settings changed: enable32BitAppOnWin64 = True&quot; #set Pipeline mode $pool.managedPipelineMode = 0 Log-Info"},"aioseo_meta_data":{"post_id":"469","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"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":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"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":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 04:11:23","updated":"2025-06-04 03:12:21","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/sunauskas.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/sunauskas.com\/blog\/category\/software-development\/\" title=\"Software development\">Software development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIIS application pool configuration with PowerShell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/sunauskas.com\/blog\/"},{"label":"Software development","link":"https:\/\/sunauskas.com\/blog\/category\/software-development\/"},{"label":"IIS application pool configuration with PowerShell","link":"https:\/\/sunauskas.com\/blog\/iis-application-pool-configuration-with-powershell\/"}],"_links":{"self":[{"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":1,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunauskas.com\/blog\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}