Tag PowerShell

How to install IIS URL Rewrite Module on Windows Server 2016 & IIS 10

IIS URL Rewrite Module error: IIS Version 7.0 or greater is required to install IIS URL Rewrite Module 2.

When you start to play with Windows Server 2016 and IIS 10, you'll get an error when you try to install the IIS URL Rewrite Module in IIS. The error occurs because the URL Rewrite Module installer contains an invalid version check for the IIS being used. Here is how to install IIS URL Rewrite Module 2 in IIS 10...

Read MoreHow to install IIS URL Rewrite Module on Windows Server 2016 & IIS 10

Delete files recursively with ForFiles in Windows Server

Windows Server logo

The Forfiles command on Windows selects and executes a command on a file or set of files. Forfiles is ideal for batch processing through scripts, for instance on Windows Server systems. With Forfiles, you can run a command on or pass arguments to multiple files. For example, you could run the type or del command on all files in a tree with the .txt extension.

Read MoreDelete files recursively with ForFiles in Windows Server

“The length of the URL for this request exceeds the configured maxUrlLength value”

[HttpException (0x80004005): The length of the URL for this request exceeds the configured maxUrlLength value.]

The length of the URL for this request exceeds the configured maxUrlLength value is an IIS error telling you the length of the given URL exceeds a limit. The Windows Server IIS maximum URL length is defined by the HttpRuntimeSection.MaxUrlLength property. Its value is 260 characters. This may cause problems with longer URLs, and here is how to resolve this maxUrlLength issue.

Read More“The length of the URL for this request exceeds the configured maxUrlLength value”