Get-WebFilePath
Get-WebFilePath
Gets the physical path to the location of the specified IIS module.
Syntax
Get-WebFilePath [[-PSPath] <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
Detailed Description
Gets the physical path to the location of the specified IIS module.
Parameters
-PSPath <String[]>
An IIS configuration path.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByPropertyName) |
Position? |
2 |
-WarningAction <ActionPreference>
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-WarningVariable <String>
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-CommonParameter
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter
Input and Return Types
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 |
. |
Notes
Examples
EXAMPLE 1: Getting 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