Skip to content

Commit 5715bc9

Browse files
authored
Merge pull request MicrosoftDocs#2421 from velkovb/fix/2363-correct-example
Resolve MicrosoftDocs#2363
2 parents 1d9bfb0 + 65312ec commit 5715bc9

File tree

5 files changed

+33
-29
lines changed

5 files changed

+33
-29
lines changed

docset/winserver2012-ps/webadministration/Get-WebConfigurationProperty.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,27 @@ The Get-WebConfigurationProperty cmdlet is similar to the Get-WebConfiguration c
2626

2727
## EXAMPLES
2828

29-
### -------------- EXAMPLE 1: Return the Default Documents for the Default Web Site --------------
29+
### Example 1: Return the default documents for the default website
30+
```powershell
31+
C:\PS> Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
3032
```
31-
C:\PS>Get-WebConfigurationProperty -Filter //defaultDocument/files/add -PSPath 'IIS:\Sites\Default Web Site' -Name value | select value
32-
```
33-
34-
Returns a list of the default documents associated with the Default Web Site.
35-
33+
```output
3634
Default.htm
37-
3835
Default.asp
39-
4036
Index.htm
41-
4237
Index.html
43-
4438
Iisstart.htm
45-
4639
Default.aspx
47-
48-
### -------------- EXAMPLE 2: Show handlers mapped to ASPNET_ISAPI.DLL --------------
4940
```
50-
C:\PS>Get-WebConfigurationProperty //handlers 'IIS:\sites\Default Web Site' -Property Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
41+
42+
This command returns a list of the default documents associated with the default website.
43+
44+
### Example 2: Show handlers mapped to Aspnet_isapi.dll
45+
```powershell
46+
C:\PS> Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Name Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
5147
```
5248

53-
Demonstrates how to get the handlers mapped to aspnet_isapi.dll.
49+
This command gets the handlers mapped to aspnet_isapi.dll.
5450

5551
## PARAMETERS
5652

docset/winserver2012r2-ps/webadministration/Get-WebConfigurationProperty.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ This cmdlet is similar to the Get-WebConfiguration cmdlet, but the current cmdle
3232

3333
## EXAMPLES
3434

35-
### Example 1: Return the default documents for the default web site
35+
### Example 1: Return the default documents for the default website
36+
```powershell
37+
C:\PS> Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
3638
```
37-
C:\PS>Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath 'IIS:\Sites\Default Web Site' -Name "value" | select value
39+
```output
3840
Default.htm
3941
Default.asp
4042
Index.htm
@@ -45,9 +47,9 @@ Default.aspx
4547

4648
This command returns a list of the default documents associated with the default website.
4749

48-
### Example 2: Show handlers mapped to ASPNET_ISAPI.DLL
49-
```
50-
C:\PS>Get-WebConfigurationProperty -Filter "//handlers" -PSPath 'IIS:\sites\Default Web Site' -Property Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
50+
### Example 2: Show handlers mapped to Aspnet_isapi.dll
51+
```powershell
52+
C:\PS> Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Name Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
5153
```
5254

5355
This command gets the handlers mapped to aspnet_isapi.dll.

docset/winserver2016-ps/webadministration/Get-WebConfigurationProperty.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ This cmdlet is similar to the Get-WebConfiguration cmdlet, but the current cmdle
3636
## EXAMPLES
3737

3838
### Example 1: Return the default documents for the default website
39+
```powershell
40+
C:\PS> Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
3941
```
40-
C:\PS>Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
42+
```output
4143
Default.htm
4244
Default.asp
4345
Index.htm
@@ -49,8 +51,8 @@ Default.aspx
4951
This command returns a list of the default documents associated with the default website.
5052

5153
### Example 2: Show handlers mapped to Aspnet_isapi.dll
52-
```
53-
C:\PS>Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Property Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
54+
```powershell
55+
C:\PS> Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Name Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
5456
```
5557

5658
This command gets the handlers mapped to aspnet_isapi.dll.

docset/winserver2019-ps/webadministration/Get-WebConfigurationProperty.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ This cmdlet is similar to the Get-WebConfiguration cmdlet, but the current cmdle
3636
## EXAMPLES
3737

3838
### Example 1: Return the default documents for the default website
39+
```powershell
40+
C:\PS> Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
3941
```
40-
C:\PS>Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
42+
```output
4143
Default.htm
4244
Default.asp
4345
Index.htm
@@ -49,8 +51,8 @@ Default.aspx
4951
This command returns a list of the default documents associated with the default website.
5052

5153
### Example 2: Show handlers mapped to Aspnet_isapi.dll
52-
```
53-
C:\PS>Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Property Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
54+
```powershell
55+
C:\PS> Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Name Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
5456
```
5557

5658
This command gets the handlers mapped to aspnet_isapi.dll.

docset/winserver2022-ps/webadministration/Get-WebConfigurationProperty.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ This cmdlet is similar to the Get-WebConfiguration cmdlet, but the current cmdle
3636
## EXAMPLES
3737

3838
### Example 1: Return the default documents for the default website
39+
```powershell
40+
C:\PS> Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
3941
```
40-
C:\PS>Get-WebConfigurationProperty -Filter "//defaultDocument/files/add" -PSPath "IIS:\Sites\Default Web Site" -Name "value" | select value
42+
```output
4143
Default.htm
4244
Default.asp
4345
Index.htm
@@ -49,8 +51,8 @@ Default.aspx
4951
This command returns a list of the default documents associated with the default website.
5052

5153
### Example 2: Show handlers mapped to Aspnet_isapi.dll
52-
```
53-
C:\PS>Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Property Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
54+
```powershell
55+
C:\PS> Get-WebConfigurationProperty -Filter "//handlers" -PSPath "IIS:\sites\Default Web Site" -Name Collection[scriptProcessor="*aspnet_isapi.dll"] | select path,name
5456
```
5557

5658
This command gets the handlers mapped to aspnet_isapi.dll.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy