Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WebFilePath

Brian Lich|Last Updated: 4/3/2017

SYNOPSIS

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

SYNTAX

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

DESCRIPTION

The Get-WebFilePath cmdlet gets the physical path to the location of the specified Internet Information Services (IIS) module.

EXAMPLES

Example 1: Get the physical path of the default website

IIS:\> Get-WebFilePath -PSPath "IIS:\Sites\Default Web Site"
Directory: Microsoft.PowerShell.Core\FileSystem::C:\inetpub

Mode    LastWriteTime        Length    Name
----    -------------        ------    ----
d----   7/28/2008 9:40 PM              wwwroot

This command retrieves the physical path for the default website.

PARAMETERS

-PSPath

Specifies an IIS configuration path.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

© 2017 Microsoft