Skip to content

Commit cd27464

Browse files
authored
Merge pull request MicrosoftDocs#3360 from 53883/servermanager_get-windowsfeature
Quality: PowerShell Summit MicrosoftDocsGH-3359
2 parents 3b44e02 + cf9329d commit cd27464

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docset/winserver2022-ps/ServerManager/Get-WindowsFeature.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,20 @@ title: Get-WindowsFeature
1111
# Get-WindowsFeature
1212

1313
## SYNOPSIS
14-
1514
Gets information about Windows Server roles, role services, and features that are available for
1615
installation and installed on a specified server.
1716

1817
## SYNTAX
1918

2019
```
21-
Get-WindowsFeature [[-Name] <String[]>] [-Vhd <String>] [-ComputerName <String>] [-Credential <PSCredential>]
22-
[-LogPath <String>] [<CommonParameters>]
20+
Get-WindowsFeature [[-Name] <String[]>] [-Vhd <String>] [-ComputerName <String>]
21+
[-Credential <PSCredential>] [-LogPath <String>] [<CommonParameters>]
2322
```
2423

2524
## DESCRIPTION
2625

2726
The `Get-WindowsFeature` cmdlet gets information about features that are both available for
28-
installation and already installed on a computer that is running Windows Server, or an offline
27+
installation and already installed on a computer that is running Windows Server or an offline
2928
virtual hard disk (VHD) that is running Windows Server.
3029

3130
## EXAMPLES
@@ -36,8 +35,9 @@ virtual hard disk (VHD) that is running Windows Server.
3635
Get-WindowsFeature -ComputerName Server1 -Credential contoso.com\user1
3736
```
3837

39-
This example gets a list of features that are available and installed on the target computer named `Server1`.
40-
The credentials for user `user1` in the Contoso.com domain, a user who has Administrator rights on `Server1`, are provided.
38+
This example gets a list of features that are available and installed on the target computer named
39+
`Server1`. The credentials for `user1` in the `Contoso.com` domain, a user who has Administrator
40+
rights on `Server1`, are provided.
4141

4242
### Example 2
4343

@@ -92,7 +92,7 @@ Add a Computer to the Trusted Host List" in
9292
[about_Remote_Troubleshooting](https://go.microsoft.com/fwlink/p/?LinkID=135188).
9393

9494
```yaml
95-
Type: String
95+
Type: System.String
9696
Parameter Sets: (All)
9797
Aliases: Cn
9898

@@ -112,12 +112,13 @@ user name in one of the following formats. Quotation marks are optional.
112112
-- "UserName"
113113
-- "Domain\User"
114114
115-
-- A Credential object returned by the [Get-Credential](https://go.microsoft.com/fwlink/p/?LinkID=113311) cmdlet.
115+
- A **PSCredential** object returned by the
116+
[Get-Credential](https://go.microsoft.com/fwlink/p/?LinkID=113311) cmdlet.
116117
117118
If a user name is entered, then a prompt for a password is displayed.
118119
119120
```yaml
120-
Type: PSCredential
121+
Type: System.Management.Automation.PSCredential
121122
Parameter Sets: (All)
122123
Aliases:
123124

@@ -134,7 +135,7 @@ Specifies a name and path to a log file.
134135
Add this parameter if the results of this cmdlet must be stored in a log.
135136
136137
```yaml
137-
Type: String
138+
Type: System.String
138139
Parameter Sets: (All)
139140
Aliases:
140141

@@ -150,7 +151,7 @@ Accept wildcard characters: False
150151
Specifies the command IDs of roles, role services, or features about which to return information.
151152
152153
```yaml
153-
Type: String[]
154+
Type: System.String[]
154155
Parameter Sets: (All)
155156
Aliases:
156157

@@ -180,7 +181,7 @@ that you are using to mount the VHD must be running Windows Server. Any local pa
180181
`D:\myFolder`, that is specified by using this parameter is always relative to the target computer.
181182

182183
```yaml
183-
Type: String
184+
Type: System.String
184185
Parameter Sets: (All)
185186
Aliases:
186187

0 commit comments

Comments
 (0)