« Previous Next »

Thread: Set Website App Pool

Last post 10-14-2009 7:49 PM by t-angrui. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-14-2009, 6:25 PM

    • t-angrui
    • Not Ranked
    • Joined on 08-28-2009, 4:20 PM
    • Posts 4

    Set Website App Pool

    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

  • 10-14-2009, 7:49 PM In reply to

    • t-angrui
    • Not Ranked
    • Joined on 08-28-2009, 4:20 PM
    • Posts 4

    Re: Set Website App Pool

     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.

Page 1 of 1 (2 items)
Microsoft Communities