Installation of SNMP service on Windows Server 2016 is impossible.
Hey !
I'm facing a problem at work that I just can't figure out how to resolve it.
We are currently monitoring two RDS servers using WMI and we wanted to get rid of it and use SNMP instead.
The problem is that I'm totally unable to install the SNMP feature, despite of everything that I've already tried, none of them has worked. Each time, I got an error that Windows can't find the source to get this feature.
It's important to know that it's two RDS servers, used in prod, so I can't reboot it on the wild or at least cut the RDS services. It runs Windows Server 2016, it's updated to the last KB available, and have unrestricted internet access. And most importantly : I can't reinstall the OS (I already see some of you asking me that)
Here is everything that I tried, without success :
- Powershell Add-WindowsCapability --> NOK
- Powershell Install-WindowsFeature --> NOK
- DISM /add-capability --> NOK
- DISM /enable-feature --> NOK
- DISM /source WU --> NOK
- DISM /source ISO WS2016 (WIM file) --> NOK
- DISM /source ISO WS2016 (SxS folder) --> NOK
- DISM /source ISO WS2022 FOD --> NOK (I didn't found an FOD ISO for 2016, so tried with 2022)
- DISM CheckHealth + ScanHealth --> Nothing found (No component store corruption detected)
- DISM restorehealth --> NOK
- DISM startcomponentcleanup --> NOK
- SFC /scannow --> "found corrupt files and successfully repaired" --> but NOK, nothing changed
- Tested connection to our WSUS server --> OK
- Tested connection to Windows Update --> OK
- Copying manually the files + reg from another 2016 working server --> NOK (I could add the SNMP service to the Services list, start and stop it, but I don't have the tabs on the properties to configure it)
- Reboot one evening after all tries + try again everything --> NOK
Here are the errors that I get :
- For all tries of feature installation through Powershell or DISM, even if I specify a source : The source files could not be found. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location
- When I check for the feature state with DISM GetFeature i get that : State : Disabled with Payload Removed Here are some CBS logs that I've found with errors :
2024-01-11 15:36:18, Warning CBS Current tick count lower than last tick count. [HRESULT = 0x8007000d - ERROR_INVALID_DATA]
2024-01-11 15:36:18, Info CBS Nothing to download, unexpected
2024-01-11 15:36:18, Info CBS Failed to find payload files, component:amd64_microsoft-windows-snmp-evntcmd.resources_31bf3856ad364e35_10.0.14393.0_fr-fr_a48228c105e77251, file: evntcmd.exe.mui [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-01-11 15:36:18, Info CBS CommitPackagesState: Started persisting state of packages
2024-01-11 15:36:18, Info CBS CommitPackagesState: Completed persisting state of packages
2024-01-11 15:36:18, Info CSI 0000001c@2024/1/11:14:36:18.08 CSI Transaction @0x21bddd86650 destroyed
2024-01-11 15:36:18, Info CBS Perf: Stage chain complete.
2024-01-11 15:36:18, Info CBS Failed to stage execution chain. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-01-11 15:36:18, Error CBS Failed to process single phase execution. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-01-11 15:36:18, Info CBS WER: Generating failure report for package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.14393.0, status: 0x800f0946, failure source: Stage, start state: Installed, target state: Installed, client id: DISM Package Manager Provider
2024-01-11 15:36:18, Info CBS Not able to query DisableWerReporting flag. Assuming not set... [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
And here are some DISM logs :
2024-01-11 15:40:47, Info DISM DISM Package Manager: PID=37384 TID=111292 CBS session options=0x400100! - CDISMPackageManager::Internal_Finalize
2024-01-11 15:44:02, Info DISM DISM Package Manager: PID=37384 TID=71048 Error in operation: (null) (CBS HRESULT=0x80070002) - CCbsConUIHandler::Error
2024-01-11 15:44:02, Error DISM DISM Package Manager: PID=37384 TID=111292 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070002)
2024-01-11 15:44:02, Error DISM DISM Package Manager: PID=37384 TID=111292 Failed processing package changes - CDISMPackageManager::StartComponentCleanupEx(hr:0x80070002)
2024-01-11 15:44:02, Error DISM DISM Package Manager: PID=37384 TID=111292 Failed to start component cleanup. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x80070002)
2024-01-11 15:44:02, Error DISM DISM Package Manager: PID=37384 TID=111292 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070002)
2024-01-11 15:44:02, Info DISM DISM Package Manager: PID=37384 TID=111292 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2024-01-11 15:44:02, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070002