Windows Server Core: How to start PowerShell by Default

1
19734
Windows server core

By Default, Windows Server Core will start Command Prompt (cmd). However, if you would like to change the default cmd to PowerShell, you can change it by changing the Registry value.

The Registry that I’m talking is located under the following location

HKLM:\Software\Microsoft\Windows NT\CurrentVersion\WinLogon
WinLogon Registry

Let’s change this setting to make the Windows Server Core starts PowerShell after loggin in.

Open Windows PowerShell. Since currently you still use cmd, you can type “PowerShell” on your command prompt.

run powershell cmd

Then, enter the following command on PowerShell console and hit enter:

Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\WinLogon' -Name Shell -Value 'PowerShell.exe'

After that, restart your Windows Server Core by running the following Command:

Restart-Computer -Force

After login, you should see the PowerShell prompt running as the default program.

If you like this article, please share, subscribe or you can follow our Facebook Page and Twitter.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here