locked
How to translate a IISAPP.vbs command to IIS7 Appcmd.exe RRS feed

  • Question

  • User-904665083 posted

    I am trying to perform the following operation from a Microsoft Press book on a system with IIS 7 installed:

    Enter the following command in the "Post-build event command line" text box to recycle the application pool so that your changes will immediately be visible. Be sure to replace MyApplicationPool with the correct name of your application pool.

    C:\WINDOWS\system32\cscript.exe C:\WINDOWS\system32\iisapp.vbs /a "MyApplicationPool" /r "MyApplicationPool" /r

    I understand that with IIS7 that iisapp.vbs is no longer available and that I need to use appcmd.exe instead. But I can't find enough documentation on iisapp to translate the command line to use appcmd.

    Can anyone translate the above command line into the equivalent command for appcmd.exe ?

    Thanks.

    Tuesday, July 21, 2009 2:49 PM

Answers

  • User10285400 posted

    This will show you the details: 
    appcmd apppool /?

    This will do the equivalent:
    appcmd recycle apppool "MyAppPool" 

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, July 21, 2009 3:32 PM

All replies

  • User10285400 posted

    This will show you the details: 
    appcmd apppool /?

    This will do the equivalent:
    appcmd recycle apppool "MyAppPool" 

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, July 21, 2009 3:32 PM
  • User-904665083 posted

    THANKS !

    Tuesday, July 21, 2009 4:07 PM