chuwi lark box running windows 10
install using built-in Add Features
and select OpenSSH Server
after install is completed, you need to configure the service to Automatic
create a string entry named DefaultShell
at HKLM\SOFTWARE\OpenSSH
with a value of C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
install necessary modules:
Install-Module PSWindowsUpdate
it may prompt you to install additional modules, allow it
to perform a windows update it's a two-step process:
Get-WindowsUpdate
Install-WindowsUpdate
you can also use this to download, install and reboot in one command:
Get-WindowsUpdate -AcceptAll -Install -AutoReboot