Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - We got downloads coming out of our waxy, geeky ears.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews


Opera One
Everything
you need.
Already
there.
AI assistant
Aria, built right in
Free VPN
No account needed
Ad blocker
Faster, cleaner web
Tab Islands
Grouped browsing
Useful sidebars
Make it yours
No Clunky Extensions Needed.



MajorGeeks Approved.



Download free

spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. Smart Defrag
2. GS Auto Clicker
3. Macrium Reflect FREE Edition
4. Snappy Driver Installer
5. MusicBee
6. K-Lite Mega Codec Pack
7. Microsoft Visual C++ 2015-2022 Redistributable Package
8. Sergei Strelec's WinPE
9. ImgBurn
10. McAfee Removal Tool (MCPR)
More >>

top reads

Star How To Find the Installation Date of Apps

Star Recently Opened Files - How To Hide or Show Them In Jump Lists, File Explorer, and Start Menu

Star How To Change the Name of a Local or Microsoft Account

Star How To Remove OneDrive From the Navigation Pane in File Explorer

Star How To Assign Keyboard Shortcuts to Desktop, Taskbar, and Start Menu Shortcuts

Star How To Remap the Copilot Key on Your Keyboard and Change What It Does

Star How To Easily Copy the Path of a File, Folder, or Drive in Windows 11

Star How To Configure Allowed Apps for Controlled Folder Access

Star How To Fix Thumbnail Previews in Windows 11

Star How to Secure OpenClaw In Windows


MajorGeeks.Com » Overview» Tutorials and Video Guides » Open Powershell Window Here as Administrator Context Menu

Open Powershell Window Here as Administrator Context Menu

By Timothy Tibbetts

on 06/15/2023

Hop into IObit’s Easter Sale and save up to 90% on top utilities, plus score 3 FREE months before the deal disappears! πŸ°πŸŒ·πŸ†

PowerShell users might find it useful to add "Open Powershell Window Here" to their Context Menu for quick access. Using PowerShell (go figure), this is easy to accomplish.

Back up your registry before proceeding, should you change your mind.

Open PowerShell as Admin by pressing the Windows Key + X.

Copy and paste the following code into PowerShell and press the Enter key:


$menu = 'Open Windows PowerShell Here as Administrator'
$command = "$PSHOMEpowershell.exe -NoExit -NoProfile -Command ""Set-Location '%V'"""

'directory', 'directorybackground', 'drive' | ForEach-Object {
New-Item -Path "Registry::HKEY_CLASSES_ROOT$_shell" -Name runascommand -Force |
Set-ItemProperty -Name '(default)' -Value $command -PassThru |
Set-ItemProperty -Path {$_.PSParentPath} -Name '(default)' -Value $menu -PassThru |
Set-ItemProperty -Name HasLUAShield -Value ''
}


While there are many registry files available on the internet to accomplish the same thing, we found this single-step method worked better.

Many guides also forget to mention that you can click on File > Open Windows PowerShell if using File Explorer.

If you change your mind, you can restore from the registry or download ShellExView.

You can also download these instructions and take them with you.

Similar:
How to Delete, Add, and Edit Context Menu Items
How to Fix a Screwed Up Right-Click Context Menu
Add the Control Panel to the Context Menu in Windows 10
Add 'Kill All Not Responding Tasks' Context Men
How to Add File Hash to the Context Menu
How to Restore Missing Pin to Start Context Menu in Windows 10
How to Add Timeline or TaskView to the Windows 10 Context Menu
Remove the "Share" Context Menu in Windows 10

comments powered by Disqus





© 2000-2026 MajorGeeks.com
Powered by Contentteller® Business Edition