Get-WebFilePath
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[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈