PowerShell: Create Human-readable Shortcuts to IIS Log File Directories

About 8 years ago, I wrote a blog post that provided a VBScript to create easy-to-read shortcuts to IIS Log directories. W3SVC56 just wasn’t helpful enough to identify which website logs to which directory.

Today, I ported that same script to PowerShell. I’m too lazy to explain, so this is what it does:


Easy peasy. Here’s the script. Note that you have to run this on the IIS server itself, and you have to have adequate permissions. I ran this with admin privs.

Chrissy is a Cloud and Datacenter Management & Data Platform MVP who has worked in IT for over 20 years. She is the creator of the popular SQL PowerShell module dbatools, holds a master's degree in Systems Engineering and is coauthor of Learn dbatools in a Month of Lunches. Chrissy is certified in SQL Server, Linux, SharePoint and network security. You can follow her on Twitter at @cl.

Posted in IIS, PowerShell

Leave a Reply

Your email address will not be published. Required fields are marked *