Windows 2019 Desktop Experience lost?

Tal Hillel 0 Reputation points
2023-10-25T14:21:52.63+00:00

Hi,

We have Windows Server 2019 desktop experience installed. however, using the following powershell command:

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force

it changed the system shell from desktop experience to power shell...

How do I change it back to desktop experience?

Thanks!

Tal

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,537 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,400 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,214 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    2023-10-25T14:33:40.26+00:00

    Might try restoring a backup of

    HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH

    before the edit.

    --please don't forget to close up the thread here by marking answer if the reply is helpful--