PowerTip: Open Windows 8 Control Panel Items from PowerShell

PowerTip: Open Windows 8 Control Panel Items from PowerShell

  • Comments 3
  • Likes

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'

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Pretty cool stuff!

  • @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.

  • I get this, even when running powershell as administrator...

    PS C:\Windows\system32> 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

      tion

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

      mand

    PS C:\Windows\system32>