# 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 created my VMware image, I used only one file for the entire virtual disk (vmdk file). If you want to split your single virtual disk ...
-
The Entity Framework already supports native database transactions. When using the ObjectContext.SaveChanges method, it already operates wi...
No comments:
Post a Comment