Installing SNMP on Windows 10 Enterprise with PowerShell Failing

Stephen Reinhard 0 Reputation points
2024-03-01T16:03:12.33+00:00

We have a monitoring application that requires the use of SNMP, and we are in the process of attempting to install it on our corporate workstations. We use WSUS internally to provide updates to our Windows 10 machines, which are domain-joined. As part of our Group Policy deployment for WSUS we have the GP set to tell Windows to look to Windows Update for Features.

In attempting to use PowerShell to install SNMP, we continually receive an error.

Access is denied.

    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException

    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

Using the syntax Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0" logged on as an administrator,

This occurs using PowerShell locally or remotely. I have read several posts that point to Windows Update Services as a potential issue; as I stated above, the clients all have the GP applied that tells them to look to Windows Update (Online) for features. I verified this by checking the registry. I have run SFC and DISM to check the health of the Clients and all show no corruption.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,339 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,444 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 46,476 Reputation points
    2024-03-01T16:25:37.8+00:00

    Have a look through the thread https://github.com/MicrosoftDocs/windowsserverdocs/issues/2074

    The thread started in 2019 and runs through 2023. There are suggested changes to GPO. I don't know if any are relevant to your situation, though.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.