# Recycle the ASP.NET 4 application pool ([ADSI] "IIS://localhost/W3SVC/AppPools/ASP.NET v4.0").psbase.invoke("recycle") # Stop the ASP.NET 4 application pool: ([ADSI] "IIS://localhost/W3SVC/AppPools/ASP.NET v4.0").psbase.invoke("stop") # Start the ASP.NET 4 application pool: ([ADSI] "IIS://localhost/W3SVC/AppPools/ASP.NET v4.0").psbase.invoke("start") # Verify the ASP.NET 4 application pool state: 1 = starting, 2 = started, 3 = stopping, 4 = stopped ([ADSI] "IIS://localhost/W3SVC/AppPools/ASP.NET v4.0").AppPoolStateEnjoy!
Tuesday, October 11, 2011
Using Powershell with Application Pools
While developing Web applications and services using IIS, you need to recycle the application once in a while. You could just run iisreset, but sometimes you only want to affect one specific application pool. If you are using IIS7 or later, you could use appcmd.exe, but if you have some legacy then one option would be powershell. For example, to recycle the ASP.NET 4 application pool using powershell, you can run:
Subscribe to:
Post Comments (Atom)
Spring Boot Configuration Properties Localization
Spring Boot allows to externalize application configuration by using properties files or YAML files. Spring Profiles provide a way to segr...
-
I use robocopy to backup my files to a network drive with the following command: robocopy [source folder] [target folder] /MIR The MIR optio...
-
When I try to install WMware Server in Windows 7 (also happened on Vista and XP), I get the message Error 1327 Invalid Drive S:\ and the in...
-
Update: For Entity Framework 4.1 RTM, the exception message is a little bit different. It suggests to use the ColumnAttribute instead of Dat...
No comments:
Post a Comment