Get current number of FTP client connections (NonAnonymous) with PowerShell and Get-Counter

Ever wanted to know the current number of active FTP client connections on your Windows Server FTP Service? You can get this statistic using PowerShell, the Get-Counter cmdlet and the Microsoft FTP Service Current NonAnonymous Users performance counter. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru. I am merely…

Continue reading Get current number of FTP client connections (NonAnonymous) with PowerShell and Get-Counter

Simple PowerShell introduction for Windows Server administration, automation and scripting

Windows PowerShell (“PS” for short) is an important tool in Windows Server for administrators. You can use PowerShell for Windows Server administration, software installation, automation, and shell/command-line scripting. Here is a small and simple introduction to Windows PowerShell. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru. I am merely…

Continue reading Simple PowerShell introduction for Windows Server administration, automation and scripting

IIS URL Rewrite “Rewrite Module error: Expression contains a repeat expression”

How to fix the URL Rewrite Module error “Rewrite error: Expression contains a repeat expression” on Windows Server IIS. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru. I am merely a systems administrator, doing my daily thing at Vevida. If you feel a post has helped solve your problem,…

Continue reading IIS URL Rewrite “Rewrite Module error: Expression contains a repeat expression”

Summary of file screen properties

Deny vulnerable WordPress plugins using Windows Server File Server Resource Manager’s File Screens

Using Windows Server File Server Resource Manager‘s File Screens you can block vulnerable WordPress plugins from being uploaded to your IIS web server. In the following example, you’ll learn how to block WP DB Backup plugin system-wide on Windows Server, read on… Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or…

Continue reading Deny vulnerable WordPress plugins using Windows Server File Server Resource Manager’s File Screens

My WordPress web.config

Do you host your WordPress website on Windows Server IIS? And are you having trouble with your web.config? I often receive questions about how to use a web.config file in WordPress on Windows Server, and which settings are important for a WordPress site. Maybe it’s because I’m a WordPress on IIS enthusiast, so here is…

Continue reading My WordPress web.config

Enable HSTS in IIS website

How to enable HTTP Strict-Transport-Security (HSTS) on IIS

Set up HTTP Strict-Transport-Security (HSTS) in Windows Server IIS. Scott Hanselman wrote a great post on how to enable HTTP Strict-Transport-Security (HSTS) on IIS web servers, and here is some more technical information about HSTS in IIS, and other security headers… Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru.…

Continue reading How to enable HTTP Strict-Transport-Security (HSTS) on IIS

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

HTTPS for WordPress

Redirect HTTP to HTTPS

In this post I provide you various HTTP to HTTPS redirection methods, for Windows Server IIS and Linux Apache. Use these examples to your advantage to secure the traffic between your visitors and your website. Jan ReilinkMy name is Jan. I am not a hacker, coder, developer or guru. I am merely a systems administrator,…

Continue reading Redirect HTTP to HTTPS

How to set a good PHP realpath_cache_size

The PHP directive realpath_cache_size sets the size of the realpath cache to be used by PHP. Increasing realpath_cache_size might greatly improve PHP performance, as PHP states: “this value should be increased on systems where PHP opens many files.” Setting a correct value for PHP realpath_cache_size can greatly improve PHP performance and optimize WordPress – and…

Continue reading How to set a good PHP realpath_cache_size

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