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-ControlPanelItem** cmdlet gets control panel items on the local computer.
28
-
You can use it to find control panel items by name, category, or description, even on systems that do not have a user interface.
29
31
30
-
**Get-ControlPanelItem** gets only the control panel items that can be opened on the system.
31
-
On computers that do not have Control Panel or File Explorer, **Get-ControlPanelItem** gets only control panel items that can open without these components.
32
+
The `Get-ControlPanelItem` cmdlet gets control panel items on the local computer. You can use it
33
+
to find control panel items by name, category, or description, even on systems that do not have a
34
+
user interface.
35
+
36
+
This cmdlet gets only the control panel items that can be opened on the system. On computers that do
37
+
not have Control Panel or File Explorer, this cmdlet gets only control panel items that can open
38
+
without these components.
39
+
40
+
This cmdlet was introduced in Windows PowerShell 3.0. It works only on Windows 8 and Windows Server
41
+
2012 and newer.
32
42
33
-
This cmdlet is introduced in Windows PowerShell 3.0.
34
-
It works only on Windows 8 and Windows Server 2012.
35
43
## EXAMPLES
36
44
37
45
### Example 1: Get all control panel items
46
+
47
+
This command gets all control panel items on the local computer.
48
+
49
+
```powershell
50
+
Get-ControlPanelItem
38
51
```
39
-
PS C:\> Get-ControlPanelItem
52
+
53
+
```Output
40
54
Name CanonicalName Category Description
41
55
---- ------------- -------- -----------
42
56
Action Center Microsoft.ActionCenter {System and Security} Review recent messages and...
Devices and Printers Microsoft.DevicesAndPrinters {Hardware} View and manage devices, p...
116
+
Sound Microsoft.Sound {Hardware} Configure your audio devic...
86
117
```
87
118
88
-
This command searches the **Description** property of the control panel item objects and gets only those that contain "device".
89
-
The command uses the Get-ControlPanelItem cmdlet to get all control panel items and the Where-Object cmdlet to filter the items by the value of the **Description** property.
119
+
The `Get-ControlPanelItem` cmdlet gets all control panel items. The `Where-Object` cmdlet filters
120
+
the items by the value of the **Description** property.
121
+
90
122
## PARAMETERS
91
123
92
124
### -CanonicalName
93
-
Gets control panel items with the specified canonical names or name patterns.
94
-
Wildcards are permitted.
95
-
If you enter multiple names, **Get-ControlPanelItem** gets control panel items that match any of the names, as though the items in the name list were separated by an "or" operator.
96
125
97
-
By default, **Get-ControlPanelItem** gets all control panel items in the system.
126
+
Specifies, as a string array, the control panel items by their canonical names or name patterns that
127
+
this cmdlet gets. Wildcards are permitted. If you enter multiple names, this cmdlet gets control
128
+
panel items that match any of the names, as though the items in the name list were separated by an
129
+
"or" operator.
130
+
131
+
By default, this cmdlet gets all control panel items in the system.
98
132
99
133
```yaml
100
134
Type: String[]
@@ -103,17 +137,18 @@ Aliases:
103
137
104
138
Required: True
105
139
Position: Named
106
-
Default value: All control panel items
140
+
Default value: None
107
141
Accept pipeline input: False
108
142
Accept wildcard characters: True
109
143
```
110
144
111
145
### -Category
112
-
Gets control panel items in the specified categories.
113
-
Enter a category name or name pattern.
114
-
Wildcards are permitted.
115
-
If you enter multiple names, Get-ControlPanelItem gets control panel items that match any of the names, as though the items in the name list were separated by an "or" operator.
116
-
By default, **Get-ControlPanelItem** gets all control panel items in the system.
146
+
147
+
Specifies, as a string array, the categories of the control panel items in the specified categories
148
+
that this cmdlet gets. Enter a category name or name pattern. Wildcards are permitted. If you enter
149
+
multiple names, this cmdlet gets control panel items that match any of the names, as though the
150
+
items in the name list were separated by an "or" operator. By default, this cmdlet gets all control
151
+
panel items in the system.
117
152
118
153
```yaml
119
154
Type: String[]
@@ -122,44 +157,48 @@ Aliases:
122
157
123
158
Required: False
124
159
Position: Named
125
-
Default value: All control panel items
160
+
Default value: None
126
161
Accept pipeline input: False
127
162
Accept wildcard characters: True
128
163
```
129
164
130
165
### -Name
131
-
Gets control panel items with the specified names or name patterns.
132
-
Wildcards are permitted.
133
-
You can also pipe a name or name pattern to the **Get-ControlPanelItem** cmdlet.
166
+
167
+
Specifies, as a string array, the names or name patterns of the control panel that this cmdlet gets.
168
+
Wildcards are permitted. You can also pipe a name or name pattern to this cmdlet.
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).
183
+
184
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
0 commit comments