Get-WebFilePath
Gets the physical path to the location of the specified IIS module.
Get-WebFilePath [[-PSPath] <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
Gets the physical path to the location of the specified IIS module.
An IIS configuration path.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByPropertyName) |
Position? |
2 |
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
Input Type |
. |
Return Type |
. |
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