IIS backup and restore

How to easily create the backup of IIS websites, application pools and configuration and restore them, using appcmd.

AppCmd introduction and examples

The AppCmd command is your one-stop-shop for administering Windows Server IIS web servers. In combination with WinRM it’s your Swiss Army knife for your daily routine. This post introduces appcmd and provides you with a lot of helpful appcmd examples. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru. I…

Continue reading AppCmd introduction and examples

Application Pool Specific Time Interval recycle settings

Set IIS Application Pool recycle defaults to Specific Times, not Regular Time Interval

By default, an IIS application pool (or “AppPool”) recycles on a regular time interval of 1740 minutes, or 29 hours. One reason for this time interval is that application pools don’t recycle at the same moment every day (every day at 07.00 for example). However, sometimes you want to change this regular time interval to…

Continue reading Set IIS Application Pool recycle defaults to Specific Times, not Regular Time Interval

Conditionally start Application Pools on remote IIS web servers

Start all stopped application pools that have Autostart set to true Start stopped application pools with AppCmd or PowerShell in a loop. In my routine, I occasionally have to start multiple website application pools when they are in a stopped state. On more than one web server. Being a lazy system administrator, I find it…

Continue reading Conditionally start Application Pools on remote IIS web servers

Add websites and application pools to IIS with PowerShell, in a for loop

How to use PowerShell to create websites and application pools in IIS… A client of the company I work for wanted to quickly add 60 sub-domains to his website. But, the sub-domains had to be created as self contained IIS websites, and running in their own application pools. Luckily, the client wanted 60 consecutive sub-domain…

Continue reading Add websites and application pools to IIS with PowerShell, in a for loop

Failed Request Tracing error LOG FILE MAX SIZE TRUNCATE

As you’ve probably read in my post AppCmd introduction and examples, AppCmd is a very extensive tool to administer Windows Server IIS hosting environments. Therefore, now a bit more about a common error message you might get using Failed Request Tracing: LOG_FILE_MAX_SIZE_TRUNCATE. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or…

Continue reading Failed Request Tracing error LOG FILE MAX SIZE TRUNCATE