You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Get-WindowsFeature` cmdlet gets information about features that are both available for installation and already installed on a computer that is running Windows Server or an offline virtual hard disk (VHD) that is running Windows Server.
25
+
26
+
The `Get-WindowsFeature` cmdlet gets information about features that are both available for
27
+
installation and already installed on a computer that is running Windows Server or an offline
28
+
virtual hard disk (VHD) that is running Windows Server.
This example gets a list of features that is available and installed on the target computer named Server1.
34
-
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 is available and installed on the
39
+
target computer named Server1.
40
+
The credentials for user user1 in the Contoso.com domain, a user who has
41
+
Administrator rights on Server1, are provided.
35
42
36
43
### Example 2
44
+
37
45
```powershell
38
46
Get-WindowsFeature -Vhd D:\ps-test\vhd1.vhd
39
47
```
40
48
41
-
This example returns a list of features that is available and installed on the specified offline VHD located at D:\ps-test\vhd1.vhd.
49
+
This example returns a list of features that is available and installed on the specified offline VHD
50
+
located at D:\ps-test\vhd1.vhd.
42
51
43
52
### Example 3
53
+
44
54
```powershell
45
55
Get-WindowsFeature -Name AD*, Web*
46
56
```
47
57
48
-
This example returns a list of available and installed features that have a command ID starting with AD or Web.
58
+
This example returns a list of available and installed features that have a command ID starting with
59
+
AD or Web.
49
60
50
61
### Example 4
62
+
51
63
```powershell
52
64
Get-WindowsFeature -ComputerName Server01 | Where Installed
53
65
```
54
66
55
67
This example returns a list of features installed on a specified server, Server01.
56
68
57
69
### Example 5
70
+
58
71
```powershell
59
72
Get-WindowsFeature -ComputerName Server01 | Where InstallState -Eq Removed
60
73
```
61
74
62
-
This example returns a list of features on a specified server, Server01, that have installation files removed from the local side-by-side store, and require an external file source for installation.
75
+
This example returns a list of features on a specified server, Server01, that have installation
76
+
files removed from the local side-by-side store, and require an external file source for
77
+
installation.
63
78
64
79
## PARAMETERS
65
80
66
81
### -ComputerName
67
-
Gets the list of available features from the specified remote computer that is running Windows Server.
68
-
The parameter accepts only one computer name.
69
-
If this parameter is not added, or no computer name is specified, the default target is the local computer.
70
-
Valid values for the parameter include a NetBIOS name, an IP address, or a fully qualified domain name of a remote computer.
71
82
72
-
To use a remote computer's IP address as the value of this parameter, your command must include the `Credential` parameter.
73
-
The computer must either be configured for HTTPS transport, or the IP address of the remote computer must be included in the WinRM TrustedHosts list on the local computer.
74
-
For information about adding a computer name to the WinRM TrustedHosts list, see "How to Add a Computer to the Trusted Host List" in [about_Remote_Troubleshooting](https://go.microsoft.com/fwlink/p/?LinkID=135188).
83
+
Gets the list of available features from the specified remote computer that is running
84
+
Windows Server.
85
+
The parameter accepts only one computer name.
86
+
If this parameter is not added, or no computer name is specified, the default target is the local
87
+
computer.
88
+
Valid values for the parameter include a NetBIOS name, an IP address, or a fully qualified domain
89
+
name of a remote computer.
90
+
91
+
To use a remote computer's IP address as the value of this parameter, your command must include the
92
+
`Credential` parameter.
93
+
The computer must either be configured for HTTPS transport, or the IP address of the remote computer
94
+
must be included in the WinRM TrustedHosts list on the local computer.
95
+
For information about adding a computer name to the WinRM TrustedHosts list, see "How to Add a
The path can either point to a VHD file, or to a location on which the VHD is already mounted by using Deployment Image Servicing and Management (DISM) tools.
175
+
The path can either point to a VHD file, or to a location on which the VHD is already mounted by
176
+
using Deployment Image Servicing and Management (DISM) tools.
147
177
148
178
The VHD can be on a local disk on the target computer, or on a network shared folder.
149
179
If the VHD is in a network shared folder, then the value of this parameter is a UNC path to the VHD.
150
-
In this case, the computer account of the computer that you are using to mount the VHD must have read and write permissions (Read/Write permissions in the File Sharing dialog box, or Full Control on the Security tab of the folder Properties dialog box) on the shared folder, or the VHD will not be accessible.
180
+
In this case, the computer account of the computer that you are using to mount the VHD must have
181
+
read and write permissions (Read/Write permissions in the File Sharing dialog box, or Full Control
182
+
on the Security tab of the folder Properties dialog box) on the shared folder, or the VHD will not
183
+
be accessible.
151
184
Local loopback UNC paths are not supported.
152
185
Use either of the following formats for the computer account: DOMAIN\SERVERNAME$ or SERVERNAME$.
153
186
154
187
Add the `ComputerName` parameter to specify the target computer you want to use to mount the VHD.
155
188
If the `ComputerName` parameter is not specified, then the local computer is used.
156
189
The computer that you are using to mount the VHD must be running Windows Server.
157
-
Any local path, such as D:\myFolder, that is specified by using this parameter is always relative to the target computer.
190
+
Any local path, such as D:\myFolder, that is specified by using this parameter is always relative to
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
206
+
207
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
0 commit comments