page contents

About the Post

Author Information

Set the Command line properties (i.e. Quick Edit) with PowerShell

If you are like me, you get annoyed at having to do the same thing over and over… especially, if it is tedious and goes on for hours, I am sorry, but I get bored very easily in that situation.

One thing I get to do a lot on a daily basis is log into many different machines. I do this to check on things, verify backups/jobs, plus if time permits to be proactive and look at the following good advice:

  • Look for performance improvements because it’s the right thing to do even if there are not any performance issues

As you know, each machine is different and as time goes on there are certain tools you get used to having at your disposal. One of the minor things I like to use is the command prompt and I really like to be able to cut and paste out of it. By default the command line prompt is not configured to allow the QuickEdit feature.  To confirm if you can copy and paste from it, just open a command prompt and then right click at the top and select properties (Seen Below)

 

You will notice that QuickEdit Mode is unchecked by default and this will prevent you from copying from the command prompt. (Seen Below)

For a one-off scenario or for a few machines, it can be ok, to just right-click the command prompt each time and enable the QuickEdit mode. However, for more than 10 servers, it gets old fast and you may catch yourself swearing lightly under your breath… WTF, why couldn’t they not just make this the default setting. 😉

I have been searching for a few months to find an easier way to do this and in the past found a few methods, but there were not as clean as this one. Lucky for me, today I came across a method to set this feature using PowerShell (Which by default does have QuickEdit Mode enabled) by typing this command:

  • Set-ItemProperty -path “HKCU:\Console” -name QuickEdit -value 1

That is all you need to do and now you have QuickEdit Mode enabled for your command prompt and no more double clicking to get it.

I do want to point out that this PowerShell command will make the following changes to your registry, so that means you will need to be an Admin of the box if you want to execute this command. Here are the changes it will make:

Now, you can go about your business without being delayed and have your QuickEdit mode for your command prompt. Enjoy! 😉

Tags: , , , ,

Comments are closed.

Copy Protected by Chetan's WP-Copyprotect.