QZLin

windows openssh chsh pwsh

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\PowerShell\7\pwsh.exe" -PropertyType String -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShellCommandOption -Value "/c" -PropertyType String -Force```

posted on 2024-04-16 23:48  QZLin  阅读(2)  评论(0编辑  收藏  举报

导航