PowerTip: Open Windows 8 Control Panel Items from PowerShell

Summary: Learn how to open Windows 8 Control Panel items from within Windows PowerShell.

Hey, Scripting Guy! Question How can I open a Control Panel item, such as Windows Firewall, from within Windows PowerShell?

Hey, Scripting Guy! Answer Use the Show-ControlPanelItem cmdlet. To get a list of openable Control Panel items, use the Get-ControlPanelItem cmdlet, as shown here.

Show-ControlPanelItem *firewall*

Get-ControlPanelItem 'Windows Firewall'

Comments (3)

  1. Ed Wilson says:

    @Peter Forster thanks. It is also useful, because when I am on Windows 8, and using a desktop type of application, it is a lot of work to get back to the start screen to find control panel. With PowerShell — which I always have open, it is easy.

  2. Ben says:

    I get this, even when running powershell as administrator…

    PS C:Windowssystem32> Get-ControlPanelItem 'Windows Firewall'

    Get-ControlPanelItem : Cannot find any control panel item with the given name Windows Firewall.

    At line:1 char:1

    + Get-ControlPanelItem 'Windows Firewall'

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidArgument: (Windows Firewall:String) [Get-ControlPanelItem], InvalidOperationExcep


       + FullyQualifiedErrorId : NoControlPanelItemFoundForGivenName,Microsoft.PowerShell.Commands.GetControlPanelItemCom


    PS C:Windowssystem32>

Skip to main content