ps/Modules/Alkami.PowerShell.IIS/Public/Get-DefaultWebsiteDefaultPath.ps1

14 lines
386 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
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");
}