Get-WebFilePath

Gets the physical path to the location of the specified IIS module.

Syntax

Get-WebFilePath
   [[-PSPath] <String[]>]
   [<CommonParameters>]

Description

Gets the physical path to the location of the specified IIS module.

Examples

-------------- EXAMPLE 1: Get the physical path of the Default Web Site --------------

IIS:\>Get-WebFilePath 'IIS:\Sites\Default Web Site'

Demonstrates how to retrieve the physical path for the Default Web Site.

Directory: Microsoft.PowerShell.Core\FileSystem::C:\inetpub

Mode LastWriteTime Length Name


d---- 7/28/2008 9:40 PM wwwroot

Optional Parameters

-PSPath

An IIS configuration path.

Type:String[]
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False