Powershell – Move the Default IIS Directory to another drive KB2752331

Powershell script  moves the Default IIS Directory to another drive. This is a direct translation from the batch file code found at  https://support.microsoft.com/en-nz/kb/2752331 and contains the code in comments

 

 

2 thoughts on “Powershell – Move the Default IIS Directory to another drive KB2752331

  1. Thanks for producing this script.
    Are there any variations required or issues with running this script on Server 2012R2 or 2016?

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.