PowerShell

Windows Server Core: Start with PowerShell by default

Windows Server Core starts with cmd by default. Why? I don’t know. It’s annoying, because Windows Powershell is without a doubt the future of Windows system administration.

Well, if you’re running a Server Core (I hope so, for domain controllers, dns, file services and more there’s no good reason to do not so), then it’s an ease to change that. The corresponding setting has to be configured in the registry. Regedit can be opened on Server Core (there are more graphical user interfaces that are shipped with core, for example notepad.exe and timedate.cpl). I’m talking about this key:

regedit.PNG

Let’s change this setting to make Core start PowerShell after logging in.

Open Windows PowerShell (in cmd type powershell). Enter the following command and hit enter:


Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\' -Name Shell -Value 'powershell.exe'

set.png

Next, restart your Server Core.

Restart-Computer -Force

After login you should see a PowerShell prompt.

ps.png

What’s next?

For further Core configuration see also my other articles about Core.

This is not your fathers Windows Server: Setting up Server Core with PowerShell

PowerShell: How to install a Domain Controller with Server Core

 

2 replies »

Leave a comment

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