These values, when created, will instantly create a custom context menu item.īelow are the following Windows registry keys and values necessary: Path To create a custom context menu item, you must create a few different Windows registry keys and values. Let’s build a custom context menu item that’ll allow you to open a PowerShell window without holding Shift key. The animated gif below is what you should see on your screen:Ĭontext menu option when using SHIFT+Right-Click. If you are logged in as the Administrator, then you will be in an administrative prompt for both PowerShell and Command Prompt. PowerShell will be opened in the current directory. This places the cursor in the address bar.
You can invoke PowerShell from this address bar by pressing CTRL. Logged in with a local account in the Administrators group or at least with rights to elevate to administrator, if necessary.įile Explorer has an element at the top of the window that allows you to run programs just like if you were at a command line.A Windows 10, Windows Server 2016, or Windows Server 2019 host.If you intend to follow along, be sure you have the following: Testing Out the PowerShell Custom Menu Item.Building a Custom PowerShell Context Menu.