locked
Set Website App Pool RRS feed

  • Question

  • User1784230831 posted

    Hello,

     I want to be able to set my websites app pool through powwershell. Right now they're all set to DefaultAppPool.  As the picture below shows I want to able to assign the FileCopyService app pool to the FileCopyService website.

     Any ideas on how to script this in Powershell Modules ? I don't know if this will be much help but I create the App pool and set the physical path with the following :

     New-Item -force $FileCopyService_WebAppPath -physicalPath($webServerSetting.WorkingFolderPath + "\FileCopyService") -type Application

    Manual Steps

    Wednesday, October 14, 2009 6:25 PM

Answers

  • User1784230831 posted

     Hey guys went through my code and remember I had used appcmd.exe. Dug a little bit into it and found how to do it:

     

    .\appcmd.exe set app /app.name: "WEBSITE" /applicationPool:POOLNAME

     

    Hope this helps anyone else trying to do the same thing.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, October 14, 2009 7:49 PM