The Windows PowerShell, Is a very powerful command-line tool that allows users to automate and troubleshoot an array of administration tasks, such as terminating non-responding processes, working with Active Directory, filtering computer network Information and a lot more. Wouldn't It be great If you could execute It with admin privileges via the right-click of the mouse? Well, In this tutorial, I will show you how to add the Open PowerShell window here as administrator to the right-click context menu.
Before I begin, here's what I'm referring to. When the tweak has been applied as per my tutorial further down this article and you right-click on a folder, drive or a blank area on your computer's desktop as well as a directory In File Explorer, you will see the Open PowerShell window here as administrator option. It's precisely as viewed In the Image above.
Essentially, PowerShell will execute with elevated privileges In the said locations, thereby you can perform tasks with full admin rights. To achieve this, I will use a neat little Registry file that will automatically add the entries to the Windows Registry, and apply the option thereafter.
I have provided the download links to the Registry file, at the end of this article. The process Is extremely simple, so without further delay, let's get this started.
Step One:Once you've downloaded the file, extract Its contents to a folder of your choice, and double-click the Add Open PowerShell.reg file. It will prompt whether to add the entries to the Windows Registry, so hit Yes.
Step Two:A message will be returned, confirming that the entries have been successfully added to the Registry, so click OK to finalize the process.
Step Three:The Open PowerShell window here as administrator option, has now been added to the right-click context menu. Here's what happened when I right-clicked my Local C Drive, before the above tweak was applied. The option Is obviously not available.
Step Four:And here's the result after I've applied the tweak. Again, I've right-clicked my Local Disk C Drive and as you can see, Open PowerShell window here as administrator, has been successfully applied. A perfect result! Let's make sure It's functional, by clicking It.
Step Five:As expected, PowerShell has Immediately executed as administrator (as seen at the top of the window), hence It's readily available awaiting my tasks.
Last Step:In the event you've changed your mind and wish to reverse all changes to It's original state, simply double-click the Remove PowerShell.reg file, and hit Yes.
Final Thoughts:As mentioned toward the beginning of this article, the Open PowerShell window here as administrator option, Is available In just about any directory In File Explorer, apart from This PC. Moreover, right-clicking any folder or drive, will have the same result. Nothing beats the simplicity of access via a right-click of the mouse, so there's every reason to apply this tweak.
Use any of the links below, to download the aforementioned Registry files.
Direct Link Solidfiles:
Direct Link Mega:
Direct Link Mediafire:
Direct Link 4shared:
Direct Link AnonFiles: