install openssh on windows and set Powershell 7 as the default shell

1 year ago
22

install openSSH on windows and set Powershell 7 as the default shell for use with PS Remoting from Linux

commands:

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

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "c:/progra~1/powershell/7/pwsh.exe --nologo" -PropertyType String -Force

Loading comments...