PowerShell V3 cmdlet Show-ControlPanelItem

Home > Blogs > PowerShell > PowerShell V3 cmdlet Show-ControlPanelItem

PowerShell V3 cmdlet Show-ControlPanelItem

Like This Blog 0 Jason Helmick
Added by March 9, 2012

Once hooked on the command line and PowerShell, it’s hard to leave. Even to grab the mouse to shut down the computer is a nuisance. (Stop-Computer is faster) I’ve started to loath that wired hand contorting contraception and smug little *click*.

As the PowerShell console and command line administration take center stage with the release of Windows 8 server, many admins will find themselves happily administering away their problems one-liner at a time. Unfortunately, for a time anyway, some of the windows configuration tasks like those nasty mouse properties will still be a GUI click to modify.

Speaking of which, how many times do we need to change the Control Panel view? I mean, seriously? I don’t want to side track my own blog post, but its changed in every version. Windows 8 will have yet another “enhanced” view of Control Panel. Yipee.

So, back to my point. There are many times when you need fast access to a quick GUI control panel application. If your heavy into PowerShell, the last thing you want is to stop typing, grab the nasty, smelly, certainly not sanitary mouse and *click* your way through buttons to find Control Panel. How about a new cmdlet to make it a little faster?

I know what some of you are thinking. I could launch Control Panel items from the command line before. Yea, but it was confusing, hard to remember, and you needed to know the weird filename of the application

Control hdwwiz.cpl
Control wuaucpl.cpl
Control inetcpl.cpl

Really? How am I going to remember all these?

The new PowerShell V3 cmdlet Show-ControlPanelItem allows you to launch a Control Panel application by using the name displayed on the window of the app. So, instead of ridiculous file names, you just need to know the menu title name, or part of the name.

So, let’s try a couple of my favorite examples.

Mouse Properties

PS> Show-ControlPanelItem –Name mouse*


Network and Sharing Center

PS> Show-ControlPanelItem –Name Net*
Notice how I’m using the wild-card character * to reduce the amount of typing. Just like any use of a wild-card character, you need to be a little careful with this as multiple applications may have what you're searching for in the name. Here is an example where I got a little carried away.

PS> Show-ControlPanelItem –Name *Net*
This launched both the “Network and Sharing Center” AND “Internet Properties”. Not too terribly bad I guess.

Anyway, here are some of my favorites. I think this is much easier to remember than..
control whateverthatdumbfilenameisagain.cpl

PowerShell V3 cmdlet Show-ControlPanelItem


Knowledge is PowerShell,
Jason Helmick
Director of PowerShell Technologies
Interface Technical Training

Videos You May Like

Agile Methodology in Project Management

0 156 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

JavaScript for C# Developers – September 24, 2014

0 487 3

Is JavaScript worth taking the time to learn if I’m a server-side .NET developer? How much of C# carries over to JavaScript? In this recorded video from Dan Wahlin’s webinar on September 24,2014, Dan answers these questions and more while also discussing similarities between the languages, key differences, and the future of JavaScript (ES6). If … Continue reading JavaScript for C# Developers – September 24, 2014

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 630 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.