Tuesday, October 30, 2018

SCCM - Pull Distribution Point - failed to get IsDPSiteSystemCertInstalled


One more problem, 1 PullDP does not seems to work correctly

Analysing DistMgr.log we can see:
~Sleep 65 seconds... 
Failed to open certificate store "MYPULLDP.MYDOMAIN.NET\SMS" (0x80070035) 
Failed to get IsDPSiteSytemCertInstalled method 
Failed to check if the sitesystemcert installation state for ["Display=\\MYPULLDP.MYDOMAIN.NET\"]MSWNET:["SMS_SITE=XXX"]\\MYPULLDP.MYDOMAIN.NET\, Error - 0x80041002  
InstallDPSiteSystemCert failed to install the sitesystem certificate for ["Display=\\MYPULLDP.MYDOMAIN.NET\"]MSWNET:["SMS_SITE=XXX"]\\MYPULLDP.MYDOMAIN.NET\, Error - 0x80041002   
~Currently using 0 out of 20 allowed package processing threads. 
~Sleep 60 seconds... 



















So I use ApiMonitor to find error fastly











We can see SMS_DistributionPoint is object with problem because Method IsDPSiteSystemCertInstalled seems not found ( 0x80041002)


Comparing PullDP with problem and  a PullDP working as below we can see some Methods missing






































$smsdp_ERROR = Get-WmiObject -ComputerName PULLDP_WITH_ERRORS -Namespace root\sccmdp -List SMS_DistributionPoint
$smsdp_ERROR.Methods | select name | sort name

Name
----
AddDeltaFile
AddFile
AddFiles
CancelPullDPJob
CleanupContentLib
ConfigurePXE
CreatePackageShare
CreateRegistryKey
DeleteDPHealthMonTask
DisableDPUsageStatsGathering
EnableDPUsageStatsGathering
ExpandContent
ExpandPXEImage
FinalizeContent
GetContentHash
ImportToSIS
InstallPullDP
InstallPullDPEx
InstallPXE
IsClientUpgradeRequired
NotifyPullDP
RegisterDPHealthMonTask
RemoveContent
SetDefaultAccessPermission
StartDPHealthMonTask
UninstallPullDP
UpdatePackage
UpdatePackageContentReferences

$smsdp_OK = Get-WmiObject -ComputerName PULLDP_OK -Namespace root\sccmdp -List SMS_DistributionPoint
$smsdp_OK.Methods | select name | sort name

Name
----
AddDeltaFile
AddFile
AddFiles
CancelPullDPJob
CleanupContentLib
ConfigureIISModules
ConfigurePXE
CreatePackageShare
CreateRegistryKey
DeleteDPHealthMonTask
DisableDPUsageStatsGathering
EnableDPUsageStatsGathering
ExpandContent
ExpandPXEImage
FinalizeContent
GetContentHash
ImportToSIS
InstallDPSiteSystemCert
InstallPullDP
InstallPullDPEx
InstallPXE
IsClientUpgradeRequired
IsDPSiteSytemCertInstalled
NotifyPullDP
RegisterDPHealthMonTask
RemoveContent
SetDefaultAccessPermission
StartDPHealthMonTask
UninstallPullDP
UpdateIISBinding
UpdatePackage
UpdatePackageContentReferences




Verifying SMS_DP$\sms\bin\smsdpprov.mof file on PullDP we can see these methods exist.

We can also see all files in SMS_DP$\sms\bin are last Distribution Point binaries comparing to another working DP. Problem seems smsdpprov.mof have not been compiled OR wmi have been recompiled WITHOUT compiling this .mof. To verify that we can do it manually using command:

mofcomp smsdpprov.mof  (french computer so display in french below but it exactly same in english)






















below before and after mofcomp. After mof compilation new methods appears






































Just after recompilation you have some failed but now "package thread limit: 20" and some minutes after no more problem (just wait )

Failed to open certificate store "MYPULLDP.MYDOMAIN.NET\SMS" (0x80070035) 
~Package Thread Limit: 20 






















1 more problem solved



No comments: