IIS Administration API

FINALLY! Microsoft decided to make our life much easier by introducing IIS Administration API. Even though there are many methods that can be used to manage IIS(appcmd, .Net, Powershell, GUI, etc..) all of them are “closed”. IIS Administration API is an open and standard REST API interface that can be consumed regardless of the management […]

Really simple PRTG and Pushover integration using Powershell

Recently I had to write a script that will send PRTG notifications via Pushover to the admins on call. It turned out, the script itself is very, very simple. Powershell script: $step=$args | out-string $uri = “https://api.pushover.net/1/messages.json” $parameters = @{ token = “YourToken” user = “PushoverUserdID” message = “$step” } echo $parameters | out-file c:\work\pushover.txt […]

Smartermail – kill active connections on password change – “fix”

Well, if you got here, I don’t have to explain the issue, do I? 🙂 Basically, if you have a spammer on your Smartermail email server, changing the password will not kill the currently active sessions, thus, the spammer can keep sending emails. In this case, only a restart of Smartermail would solve the issue […]

Block failed FTP logins in IIS 7 and 7.5

I have been administering Windows hosting servers for over 7 years now and one thing that really made me angry is the lack of BASIC security features in Microsoft’s FTP server. Blocking the IP addresses based on the number of failed login is an ESSENTIAL feature for any FTP server, but it seems Microsoft doesn’t […]

Parse old log files with Awstats

From time to time I need to import old log files from IIS to our statistics software ( Awstats ) and pretty often I need to do that with lots of .log files. Instead of doing it manually, I wrote a really simple script that will do that for us.   BEFORE runing the script […]