Share via


Windows 10 1809 installs but no SNMP

Question

Wednesday, December 5, 2018 12:16 AM

Good afternoon,

We're starting to push out Windows 10 v1809 for our new workstations and we've hit a bump -- I can't get snmp to work on those workstations. If I go to Control Panel > Windows Features there's no snmp option. Using the following command:

Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"

under PowerShell as administrator gives the following error message:

Access is denied.    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

I tried changing to the domain admin account but I get the same "Access is denied" error.

I found this command:

dism.exe /online /enable-feature /featurename:"SNMP" /featurename:"WMISnmpProvider"

but that gives me this error:

PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:"SNMP" /featurename:"WMISnmpProvider"

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.134

Error: 0x800f080c

Feature name SNMP is unknown.
Feature name WMISnmpProvider is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
PS C:\WINDOWS\system32>

I looked up Error: 0x800f080c and found several posts regarding .Net. These computers have 3.5 and 4.7 installed.

Any ideas, suggestions, or recommendations on how we can get snmp working on our v1809 computers?

Thanks,

Joe B

All replies (31)

Thursday, February 14, 2019 9:14 AM âś…Answered | 1 vote

i also have something that can help you.

In my company we do not have access to microsoft servers (firewall rules, no windows update, no catalog...)

In my case, to install SNMP on 1809 i have to :

1) Have an internet access without restriction (my cellphone)

2) set to 0 the following registry key : HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\usewuserver en 0

launch the following commands :

netshh winhttp reset proxy
net stop wuauserv
net start wuauserv

edit : those commands and the registry key are about specific configuration in professionnal environment (proxy server, wsus etc...) that can mess installation from microsoft servers

3) launch the following powershell command : add-windowscapability -online -name "SNMP.Client~~~~0.0.1.0"

and it works in my case !

sorry english is not my mother tongue


Wednesday, December 5, 2018 12:53 AM

I also found a suggestion to change this setting from 1 to 0 but no joy there either:

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

Thanks,

Joe B


Thursday, December 6, 2018 1:45 AM

Hi Joe,

Get-WindowsCapability  -Online -Name "SNMP*"

Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"

Have a try.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Thursday, December 6, 2018 3:55 PM

Good morning Teemo,

I ran those two commands but neglected to include the first one. Here's a copy of both commands and their results:

PS C:\WINDOWS\system32> enter-pssession dispatch-4
[dispatch-4]: PS C:\Users\jobee\Documents> get-windowscapability -online -name "snmp*"

Name         : SNMP.Client~~~~0.0.1.0
State        : NotPresent
DisplayName  : Simple Network Management Protocol (SNMP)
Description  : This feature includes Simple Network Management Protocol agents that monitor the activity in network devices and report to the network console workstation
DownloadSize : 613638
InstallSize  : 1129119

[dispatch-4]: PS C:\Users\jobee\Documents> Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"
Access is denied.
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

[dispatch-4]: PS C:\Users\jobee\Documents>

I ran this as administrator.

Thanks,

Joe B


Friday, December 7, 2018 1:16 AM

PS C:\Users\jobee\Documents> Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"

Access is denied.

Please note your PS command path is C:\Users\jobee\Documents>, not C:\WINDOWS\system32>, this might be reason.

Press Win + X, then you will see a menu, click Windows PowerShell(Admin), the type our commands again for test.

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, December 7, 2018 8:41 PM

Same results:

[dispatch-4]: PS C:\Users\jobee\Documents> get-windowscapability -online -name "snmp*"

Name         : SNMP.Client~~~~0.0.1.0
State        : NotPresent
DisplayName  : Simple Network Management Protocol (SNMP)
Description  : This feature includes Simple Network Management Protocol agents that monitor the activity in network
               devices and report to the network console workstation
DownloadSize : 613638
InstallSize  : 1129119

[dispatch-4]: PS C:\Users\jobee\Documents> Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"
Access is denied.
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

[dispatch-4]: PS C:\Users\jobee\Documents>

Any other ideas?

Thanks,

Joe B


Monday, December 10, 2018 1:20 AM

Your command pat is still C:\Users\jobee\Documents>

Try to use built-in Administrator for test. Enable it via Computer Management\Local Users and Groups\Users

Switch user

Run PowerShell as administrator

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, December 11, 2018 8:55 PM

Good afternoon Teemo,

Nope, it still won't work:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\administrator> enter-pssession dispatch-4
[dispatch-4]: PS C:\Users\administrator\Documents> cd \windows\system32
[dispatch-4]: PS C:\windows\system32> Get-WindowsCapability  -Online -Name "SNMP*"

Name         : SNMP.Client~~~~0.0.1.0
State        : NotPresent
DisplayName  : Simple Network Management Protocol (SNMP)
Description  : This feature includes Simple Network Management Protocol agents that monitor the activity in network
               devices and report to the network console workstation
DownloadSize : 613638
InstallSize  : 1129119

[dispatch-4]: PS C:\windows\system32> Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0"
Access is denied.
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

[dispatch-4]: PS C:\windows\system32>

This was done as the Domain Administrator and by running PowerShell as administrator. I checked the Event Log on that computer but nothing was noted from when I was trying to do the install. What is my next diagnostic option?

Thanks,

Joe B


Tuesday, December 11, 2018 10:19 PM

I just found out I can go to Settings > Apps & Features > Manage Optional Features > Add a Feature > SNMP and click on the INSTALL button to install it. BUT, when I click on it the snmp option disappears for about two minutes then that page refreshes and SNMP is once again an available option. I checked in Services to see if maybe it actually was getting installed but no joy. I tried installing WMI SNMP Provider thinking there was a dependency issue but I get the same results as the SNMP install. I even tried it on another computer but I'm getting the same results.

Ideas? Suggestions? Recommendations?

Thanks,

Joe B


Thursday, December 13, 2018 11:19 PM

I was checking the event logs for snmp installation errors on the target machines and wasn't finding anything. Today I tried a couple of times to install snmp using PowerShell and saw that three entries go into the Application log on the target computer. The first section of two of the three entries look like this:

Fault bucket , type 0
Event Name: CbsPackageServicingFailure2
Response: Not available
Cab Id: 0

Problem signature:
P1: 10.0.17763.164
P2: Microsoft-Windows-SNMP-Client-Package
P3: 10.0.17763.1
P4: amd64
P5: unknown
P6: 80070005
P7: CBS Other
P8: Absent
P9: Absent
P10: DISM Package Manager Provider

There are some other entries about files but the only file I found was a .XML file and it didn't have anything about snmp or errors in it.

The third entry has the same information except for the Fault Bucket line:

Fault bucket 1339118166762746431, type 5

I finally gave up and tried to contact Microsoft support but after about 20 minutes of latency-ridden chat support I was given a phone number to call. I'll give that a shot tomorrow morning.

If anyone has any idea on what the problem might be please let me know. You may be directly responsible for saving my sanity.

Thanks,

Joe B


Friday, December 14, 2018 12:58 PM

Hello Joe B,

Have you tried to install this SNMP.Client via DISM? If not, here is a little instruction:

  1. On problematic machine (where you tring to install this client) run command-line as an administrator.

2. Check your DISM from command:

DISM /online /get-capabilities

   a. Look at list and find: "Capability Identity : SNMP.Client~~~~0.0.1.0"

   b. It must to have state: "Not Present"

3. Start to trying install SNMP.Client

DISM /online /add-capability /capabilityname:SNMP.Client~~~~0.0.1.0

   a. In my situation the percentage is stopping at start of operation (maybe 5%) and I'm getting a error, like: 0x800f0954 - DISM failed.

4. After that I change registry, like You wrote before:

" change this setting from 1 to 0"
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer

5. And try with install, again.

In my case, command-line has showed me a message: "The operation completed successfully." and I can start to using SNMP.

Please, let me know.

KK.


Tuesday, December 18, 2018 12:12 AM

Good evening Fyshek,

I tried your process but I'm still getting the "Access is denied" error:

Capability Identity : SNMP.Client~~~~0.0.1.0
State : Not Present

The operation completed successfully.
[dispatch-4]: PS C:\Users\TEMP\Documents> dism /online /add-capability /capabilityname:snmp.client~~~~0.0.1.0

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.194

[=                          3.0%                           ]
[===                        5.9%                           ]
[===                        5.9%                           ]
[==========================100.0%==========================]

Error: 5

Access is denied.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
[dispatch-4]: PS C:\Users\TEMP\Documents>

I got the same result before and after I changed the registry setting to 0. I checked the DISM log hoping to find some help but there were no entries from when I tried the snmp install.

Thanks,

Joe B


Tuesday, December 18, 2018 9:37 AM

Hello again.

Thanks for info, but I would like to ask You, if you are certainly issuing a command locally from "CMD" or "PS" in admin rights?

I've making this same mistake, becouse I wanted to deploy remotly via PS session (command):

Enter-PSSession -computername "name"

and after that I have this same situation:

[TAB0xx]: PS C:\Users\fysh4k\Documents> dism /online /add-capability /capabilityname:SNMP.Client~~~~0.0.1.0

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.107

[=                          3.0%                           ]
[===                        5.9%                           ]
[===                        5.9%                           ]
[==========================100.0%==========================]

Error: 5

Access is denied.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

So I login locally (via remote desktop) on workstation and run PS or CMD in admin right, therefore I don't have problems with "Error: 5 - Access is denied"

P.S.:

Try to cleanup your dism before adding capabilities, here is commands:

DISM /online /Cleanup-Image /StartComponentCleanup
DISM /online /Cleanup-Image /RestoreHealth

Let me know.

Greetings,

KK.


Tuesday, December 18, 2018 7:00 PM

Good morning Fyshek,

I tried running the commands locally but still no joy. Here's a screen shot of the commands I ran. I tried the install twice; one without the registry tweak and one with the registry tweak. They both failed with the same error.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> dism /online /cleanup-image /startcomponentcleanup

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.194

[=====                      9.8%                           ]
[==========================100.0%==========================]
The operation completed successfully.
PS C:\WINDOWS\system32> dism /online /cleanup-image /restorehealth

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.194

[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
PS C:\WINDOWS\system32> dism /online /add-capability /capabilityname:snmp.client~~~~0.0.1.0

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image Version: 10.0.17763.194

[==========================100.0%==========================]

Error: 0x800f0954

DISM failed. No operation was performed.
For more information, review the log file.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

I saved the dism log and then ran the install again. I included all of the package manager entries because after a couple of them appear in the log the errors start.These are the only errors in the log.

2018-12-18 10:44:39, Info                  DISM   DISM Package Manager: PID=3852 TID=10072 Processing the top level command token(add-capability). - CPackageManagerCLIHandler::Private_ValidateCmdLine
2018-12-18 10:44:39, Info                  DISM   DISM Package Manager: PID=3852 TID=10072 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine
2018-12-18 10:44:39, Info                  DISM   DISM Package Manager: PID=3852 TID=10072 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
2018-12-18 10:44:40, Info                  DISM   DISM Package Manager: PID=3852 TID=10072 CBS session options=0x40100! - CDISMPackageManager::Internal_Finalize
2018-12-18 10:45:17, Info                  DISM   DISM Package Manager: PID=3852 TID=5996  Error in operation: (null) (CBS HRESULT=0x800f0954) - CCbsConUIHandler::Error
2018-12-18 10:45:17, Error                 DISM   DISM Package Manager: PID=3852 TID=10072 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f0954)
2018-12-18 10:45:17, Error                 DISM   DISM Package Manager: PID=3852 TID=10072 Failed processing package changes with session options - CDISMPackageManager::ProcessChangesWithOptions(hr:0x800f0954)
2018-12-18 10:45:17, Error                 DISM   DISM Package Manager: PID=3852 TID=10072 Failed to install capability. - CPackageManagerCLIHandler::ProcessCmdLine_AddCapability(hr:0x800f0954)
2018-12-18 10:45:17, Error                 DISM   DISM Package Manager: PID=3852 TID=10072 Failed while processing command add-capability. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0954)
2018-12-18 10:45:17, Info                  DISM   DISM Package Manager: PID=3852 TID=10072 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2018-12-18 10:45:17, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800F0954

Looking up that error code refers to the 1 to 0 registry tweak for the fix but that didn't help.

Thanks,

Joe B


Wednesday, December 19, 2018 8:59 AM

Hello Joe,

This is getting very strange...

I want to propose you other solution, but not tested by my.

Please check yours locally policies (gpedit.msc).
Find on: "Computer Configuration -> Administrative Templates -> System", a policy named
"Specify settings for optional component installation and component repair"
Change yours settings to "Enabled" and check the box with:
"Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)"
Apply the settings and try again.

KK.

Edit 1.:
I've tried on fresh OS installed on workstation and it's worked!
I don't changed anything before that (I' haven't used any command). Only what I do, it was change this policy and tried to install from windows metro panel (Settings -> Application -> Apps and Function -> Manage optional features -> add new -> SNMP protocol).


Thursday, December 20, 2018 11:24 PM

Thanks Fyshek, I will try this tomorrow.

Thanks,

Joe B


Friday, December 21, 2018 11:49 PM

Good afternoon Fyshek,

Well, I did the policy change, I did the registry tweak, and then I tried each of the following installation options:

Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0" 

dism /online /add-capability /capabilityname:snmp.client~~~~0.0.1.0

Settings -> Application -> Apps and Function -> Manage optional features -> add new -> SNMP protocol

Unfortunately none of them worked. I've been focusing on one computer because it's in an overflow position and doesn't get used much. At this time I'm planning on coming in on Saturday the 29th and will try it on the third position computer. Here's hoping that works.

Thanks for the help,

Joe B


Wednesday, January 9, 2019 11:30 PM

For anyone else who comes across this issue, try this:

Add-WindowsCapability  -Online -Name "SNMP*"This should help in case the version is slightly off, also I just found out they moved this in the UI. Go to settings > apps > apps & features (because reasons) > manage optional features (because more reasons) and then from there you can see whether its installed already or click 'Add a feature' to add it back in. I've seen this disappear from one of our machines when we upgraded to v1809, still trying to figure out how to configure it. It used to be easily done via the service properties but I don't see that option anymore. Hopefully this helps save some of you a little bit of time. 

Wednesday, January 9, 2019 11:31 PM

I have had no luck thus far getting this to work. I called several days ago and spoke with one Microsoft rep who gave me a different number to call for support. I was hoping to get this taken care of but I've been busy. On top of that I go in for rotator cuff surgery the day after tomorrow, 1/11, so it'll be a while before I actually get this taken care of.

thanks,

Joe B


Wednesday, January 9, 2019 11:34 PM

Thanks Jay_Helix but no joy here either.

Thanks,

Joe B


Wednesday, January 9, 2019 11:37 PM

Please keep us posted if you find a solution. I have only had one 1809 client that I was able to install SNMP on and I have yet to figure out how to get it working. The service doesn't exist and group policy is ignored.


Wednesday, January 9, 2019 11:52 PM

LOL, at least you were able to get it installed. I'm still unable to get it installed regardless of where I go and how I try it. I didn't realize there were so many ways to install SNMP.

If I get it I'll post the here.

Thanks,

Joe B


Wednesday, January 9, 2019 11:55 PM

It was only one of 20 that installed. All the other systems have the same issue you are having with not installing.


Wednesday, February 13, 2019 6:06 PM

I'm back and my shoulder is healing slowly, but it is healing.

So, as a test I ran the 1809 upgrade on one of my 1803 computers that had snmp installed and working on it. After the upgrade the computer is running fine and snmp is too. I checked Control Panel > Programs and Features to see if the settings were any different after the upgrade and snmp isn't even listed.

I found the phone number that was given to me by the MS rep I spoke to (much) earlier. I'm going to try to call them today and get this sorted out. I'll let everyone know what I found out.

Thanks,

Joe B


Wednesday, February 13, 2019 10:41 PM

Sigh, I found out nothing. I have to pay for a support case for Microsoft to fix a bug in their OS. I guess I'm stuck with going spelunking and trying to find an answer.

Thanks,

Joe B


Thursday, February 14, 2019 9:12 AM | 1 vote

greetings,

does anyone know a way to get the SNMP .cab package ??

When i look in the 1809 ISO, in the .\sources\sxs directory i can find .cab packages about netfx3 or IE package.

But this damned SNMP is not present !!!

where the hell is it possible to download snmp package ?


Thursday, February 14, 2019 3:57 PM

Wow Benjamin, I almost ignored your post because I thought I had already followed those instructions. I just checked up above and I guess not. Anyway it's working now -- thanks for the tip!

Thanks,

Joe B


Saturday, February 16, 2019 7:52 PM

Just to let everyone know, Benjamin's fix has worked on seven computers so far. I'm going to script this for any new computers we deploy.

Thanks,

Joe B


Wednesday, June 19, 2019 2:41 PM | 1 vote

The fix by Benjamin only works if you have the possibility of having a temporary internet connection, if I'm not mistaken. In our case the server is by policy not permitted to have any (not even temporary) communication with the Internet / Microsoft Servers. Is there no offline installation possibility at all? Is an old .cab from Win 10 Version 1803 or any other package available/compatibly?

Thanks. Tobias


Tuesday, December 3, 2019 8:38 PM

Thanks a lot for the instructions


Tuesday, December 3, 2019 8:39 PM

than you saved me a lot of time