function Get-DefaultWebsiteDefaultPath { <# .SYNOPSIS Get the path to the default folder for IIS - "Default Web Site" #> [CmdletBinding()] Param() ## Basically generate and return "c:\inetpub\wwwroot" but by using $env:SystemDrive I _hopefully_ work on future Linux with little modification. return (Join-Path (Join-Path $env:SystemDrive "inetpub") "wwwroot"); }