IIS: Updating the App Pool for an Application This topic contains 3 replies, has 2 voices, and was last updated by Des Davies 3 months, 2 weeks ago. Author Posts August 28, 2017 at 8:41 pm #78202 Des DaviesParticipant I have been working on a script to map IIS Sites to a different App Pool. This works when the object is a Site: Set-ItemProperty -Path "IIS:\Sites\Sitename" -Name ApplicationPool -Value "NewPool" However, if the object is an Application under a Site, this runs without an error, but the value does not change. I've tried using a "Set-Item" on the Application object, but that errors out. Any ideas? Thanks, Des August 28, 2017 at 8:57 pm #78210 Curtis SmithParticipant use the appcmd command appcmd set app /app.name: string /applicationPool: string https://technet.microsoft.com/en-us/library/cc731755(v=ws.10).aspx August 28, 2017 at 9:06 pm #78219 Curtis SmithParticipant I have also seen on other sites where it is stated that "applicationPool" appears to be case sensitive. so instead of doing Set-ItemProperty -Path "IIS:\Sites\Sitename\app" -Name ApplicationPool -Value "NewPool" do Set-ItemProperty -Path "IIS:\Sites\Sitename\app" -Name applicationPool -Value "NewPool" August 29, 2017 at 9:18 pm #78346 Des DaviesParticipant Thanks for the help Curtis. The second option, changing he case, doesn't appear to work. The appcmd option works. However, I have run in to a problem with it – it requires the powershell session to be run as administrator. Any suggestions how I can do that using a remote Invoke-Command? Author Posts You must be logged in to reply to this topic.