Skip to main content

AppCmd introduction and examples

AppCmd is a command-line utility to manage IIS 7+ web servers. It provides the ability to administer Windows Server IIS without a graphical user interface to configure settings for the Web server, sites, applications, and virtual directories. Here is my introduction to AppCmd.exe. AppCmd is, in combination with WinRM, the Windows Server IIS systems administrator’s swiss-army knife for his daily routine.

Read More

Conditionally start Application Pools on remote IIS web servers

Start stopped application pools with AppCmd 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 too much work to log on every server. Therefore I start those application pools in a loop. A condition for me to start […]

Read More

Send authenticated SMTP email over TLS from WordPress

How to configure TLS for SMTP email in WordPress. I was suprised WordPress is not able to send email using an SMTP server out-of-the-box. Not to mention using authenticated SMTP or TLS transport for security. A quick Google search showed me multiple plugins to handle this, but I wanted to create something myself. Here is how to override the wp-mail() function and send email using […]

Read More

Add websites and application pools to IIS 7.5, 8.0 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 names, e.g. “sub01.example.com”, “sub02.example.com”, …, … up till “sub60.example.com”. This […]

Read More

banner