I'm trying to write a script to disable directory browsing on ALL directories /virtual directories and on an IIS website.
I've tried using ADSI in PowerShell but am having a hard time understanding how to enumerate current directories and not sure how to change the property on Directory Browsing to false.