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*

Or

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

Configuring Windows Mobility Center and How to Turn it On and Off

1 1093 1

Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off

An Overview of Office 365 – Administration Portal and Admin Center

0 887 3

This is part 1 of our 5-part Office 365 free training course. In this Office 365 training video, instructor Spike Xavier introduces some of the most popular services found in Microsoft Office 365 including the Admin Portal and Admin Center. For instructor-led Office 365 training classes, see our course schedule: Spike Xavier SharePoint Instructor – … Continue reading An Overview of Office 365 – Administration Portal and Admin Center

Windows 10 Features and Navigation – December 1, 2015

0 122 1

In this recorded Windows 10 webinar from December 1,2015, Windows Instructor Steve Fullmer presents the navigation and some of the new features associated with Windows 10 including Sysinternals Tools for Windows Client, Windows core concepts, exploring Process Explorer as well as some of the features that are not yet ready for prime time but will … Continue reading Windows 10 Features and Navigation – December 1, 2015

Write a Comment

Share your thoughts...

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