TFS 2015 Release failed at STOP/START App pool using IISUtilities RRS feed

  • Question

  • Hello There,

    We are using TFS 2015 Releases for our deployments. Deployment was succeeded on TEST and PREP environment but failed on PROD when attempting to STOP/START App pool. 

    Below is the error message, anyone can help me what i need to check?

    Our PROD Server version - 2008 R2 Standard

    2018-07-06T22:49:46.8119152Z Stop-WebAppPool memberPool
    2018-07-06T22:49:51.8881843Z ##[error]The 'Get-WebAppPoolState' command was found in the module 'WebAdministration', but the module could not be loaded. For more information, run 'Import-Module WebAdministration'.

    Monday, July 9, 2018 1:55 PM


  • I figured it out, For old version windows (2008 server R2), we needed to import web-administration module every time when we call IIS commands, where newer version windows (2012) it will automatically does the job.

    2008 R2 server -

    Import-Module WebAdministration


    2012 Server -


    • Marked as answer by Hari Bavanari Wednesday, August 15, 2018 8:10 PM
    Monday, August 13, 2018 12:28 PM