question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked RichMatheisen-8856 answered

unable to install openssh

Hi Experts

I am facing issue installing openssh on windows server 2019. i have followed the below article but no luck. i have uninstalled and tried to install again but same issue.
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse


PS C:\windows\system32> Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

Name : OpenSSH.Client~~~~0.0.1.0
State : Staged
Name : OpenSSH.Server~~~~0.0.1.0
State : Staged

windows-serverwindows-server-powershellwindows-server-2019
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have you rebooted?

0 Votes 0 ·
RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

This seems to have been a common problem but I don't know if still is.

Is the server running the latest updates?

Have you tried adding the -LimitAccess switch to the Add-WindowsCapability cmdlet?

Do you have this registry value set to something other than zero (0)?

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

I think this may do the same as adding the -LimitAccess switch: add-windowscapability-failed-error-code-0x800f0954



Have you checked the DISM log (C:\Windows\Logs\DISM\dism.log) after the Add-WindowsCapability fails to add the capability?

Ultimately, I don't think this is a PowerShell problem, though.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 answered MotoX80 commented

yes rebooted

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

According to this site.... https://techgenix.com/Whatdoesstagedmean/

Staged – The package has not been installed but is present in the WinSxS folder.

It would appear that you just need to run the install. What output do these commands produce?

 Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
 Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0


0 Votes 0 ·
GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 answered GlennMaxwell-2309 edited

server is having latest update. below is reg setting

196392-reg.jpg



reg.jpg (61.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Is that "UseWUServer" value set by a GPO? One of the suggestions from people that have had this problem is set the value to zero (0). You may have a problem doing that if a GPO keeps setting it back, though. If it's set by a LOCAL policy you should be able to change it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.