Skip to content

Instantly share code, notes, and snippets.

@nanoDBA
Created November 17, 2022 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoDBA/814d3b96d2a8e6f4284dc7628d238b96 to your computer and use it in GitHub Desktop.
Save nanoDBA/814d3b96d2a8e6f4284dc7628d238b96 to your computer and use it in GitHub Desktop.
# DANGER # Server Core? ---OPTIONAL--- Setting PowerShell as the Default Shell Manually
#If you've only got one server, a couple of servers or maybe your Server Core machines are workgroup members so you can't use Group Policy and if any of these are true, the manual method is for you. It's a simple PowerShell one-liner:
# source: https://richardjgreen.net/setting-powershell-default-shell-server-core/
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name Shell -Value 'PowerShell.exe -NoExit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment