Replace the command prompt by Powershell in the Win+X menu

Using the GUI, see the following PSTip http://www.powershellmagazine.com/2013/10/21/pstip-windows-8-1-winx-menu-powershell-in-command-prompt-out

and of course you can also achieve this exclusively with Powershell of course 😀


#Requires -version 3.0
#Requires -RunAsAdministrator

Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name DontUsePowerShellOnWinX -Value 0 -Type DWord

Get-Process -Name explorer -IncludeUserName | ? Username -match "$env:USERNAME"

Note that the ‘IncludeUserName’ parameter requires elevated user rights.

1 thought on “Replace the command prompt by Powershell in the Win+X menu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.