We are currently evaluating Enterprise and a key feature for us is to be able to use the Powershell command
I have created a
PS command step containing
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 but it errors out with the generic:
At C:\WINDOWS\AdminArsenal\PDQDeployRunner\service -1\exec\Error Handling Wrapper.ps1:58 char:2 error.
I have tried running as different user types to no avail.
Other commands, msi install, etc work fine. The errors are limited to running the
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 command.
EDIT: Accepted Wei's answer as correct, but if you don't want to mess with the registry, and can use Group Policy, use:
Computer Configuration > Administrative Templates > System > Specify settings for optional component installation and component repair > Contact Windows Update directly