PowerShell Logo Small

Get-ControlPanelItem



This is the built-in help made by Microsoft for the command 'Get-ControlPanelItem', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets control panel items.

SYNTAX


Get-ControlPanelItem [[-Name] [<String[]>]] [-Category [<String[]>]] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}]
[-InformationVariable [<System.Stringring[]>]] [<CommonParameters>]
Get-ControlPanelItem [-Category [<String[]>]] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable
[<System.Stringring[]>]] -CanonicalName <String[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ControlPanelItem cmdlet gets control panel items on the local computer. You can use it to find control panel items by name, category, or description, even on systems
that do not have a user interface.


Get-ControlPanelItem gets only the control panel items that can be opened on the system. On computers that do not have Control Panel or File Explorer, Get-ControlPanelItem
gets only control panel items that can open without these components.


This cmdlet is introduced in Windows PowerShell 3.0. It works only on Windows 8 and Windows Server 2012.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=290492
Show-ControlPanelItem

REMARKS

<

Examples


Example 1: Get all control panel items

PS C:\>Get-ControlPanelItem
Name CanonicalName Category Description
---- ------------- -------- -----------
Action Center Microsoft.ActionCenter {System and Security} Review recent messages and...
Administrative Tools Microsoft.AdministrativeTools {System and Security} Configure administrative s...
AutoPlay Microsoft.AutoPlay {Hardware} Change default settings fo...
BitLocker Drive Encryption Microsoft.BitLockerDriveEn... {System and Security} Protect your computer usin...
Color Management Microsoft.ColorManagement {All Control Panel Items} Change advanced color mana...
Credential Manager Microsoft.CredentialManager {User Accounts} Manage your Windows Creden...
Date and Time Microsoft.DateAndTime {Clock, Language, and Region} Set the date, time, and ti...



This command gets all control panel items on the local computer.






Example 2: Get control panel items by name

PS C:\>Get-ControlPanelItem –Name *program*, *app*



This command gets control panel items that have "program" or "app" in their names.






Example 3: Get control panel items by category

PS C:\>Get-ControlPanelItem –Category *security*



This command gets all control panel items in categories that have "Security" in their names.






Example 4: Open a control panel item

PS C:\>Get-ControlPanelItem –Name "Windows Firewall" | Show-ControlPanelItem



This command opens the Windows Firewall control panel item on the local computer. It uses the Get-ControlPanelItem cmdlet to get the control panel item and the
Show-ControlPanelItem cmdlet to open it.






Example 5: Get control panel items on a remote computer

PS C:\>Invoke-Command –ComputerName Server01 {Get-ControlPanelItem –Name "BitLocker*" }



This command gets the BitLocker Drive Encryption control panel item on the Server01 remote computer. It uses the Invoke-Command cmdlet to run the Get-ControlPanelItem
cmdlet remotely.






Example 6: Search the descriptions of control panel items

PS C:\>Get-ControlPanelItem | Where-Object {$_.Description -like "*device*"}
Name CanonicalName Category Description
---- ------------- -------- -----------
AutoPlay Microsoft.AutoPlay {Hardware} Change default settings fo...
Devices and Printers Microsoft.DevicesAndPrinters {Hardware} View and manage devices, p...
Sound Microsoft.Sound {Hardware} Configure your audio devic...



This command searches the Description property of the control panel item objects and gets only those that contain "device". 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.