I have seen a lot of content validation issues on DP's when we were running
SCCM 1511 and 1602. So far it seems SCCM 1610 is much better. But, the only
time I would see the same errors every week was when the errors were not
resolved the first time. Redistributing the packages won't fix every content
validation error.
You can look at the smsdpmon.log file on the DP to see what packages have
failed, but it doesn't tell you why it failed. Which could be content library
issues or WMI issues.
I use the below PowerShell script to see and fix what is causing the errors,
whether it is WMI or content library issues. I usually open this with ISE,
select everything up to the ##Delete WMI entries line to see what it finds. If
it finds items, then I run the whole script.
I tried to find the website I got this script from but couldn't find it, but it
works great and since upgrading to 1610, I've hardly seen any content errors.
$WMIPkgList = Get-WmiObject -Namespace Root\SCCMDP -Class SMS_PackagesInContLib
| Select -ExpandProperty PackageID | Sort-Object
$ContentLib = (Get-ItemProperty
HKLM:SOFTWARE\Microsoft\SMS\DP).ContentLibraryPath
$PkgLibPath = ($ContentLib) + '\PkgLib'
$PkgLibList = (Get-ChildItem $PkgLibPath | Select -ExpandProperty Name |
Sort-Object)
$PkgLibList = ($PKgLibList | ForEach-Object {$_.replace('.INI',"")})
$PksinWMIButNotContentLib = Compare-Object -ReferenceObject $PKgLibList
-DifferenceObject $WMIPkgList -PassThru | Where-Object { $_.SideIndicator -eq
"=>" }
$PksinContentLibButNotWMI = Compare-Object -ReferenceObject $PKgLibList
-DifferenceObject $WMIPkgList -PassThru | Where-Object { $_.SideIndicator -eq
"<=" }
Write-Host Items in WMI but not the Content Library
Write-Host ========================================
$PksinWMIButNotContentLib
Write-Host Items in Content Library but not WMI
Write-Host ====================================
$PksinContentLibButNotWMI
##Delete WMI-Entries not in PkgLib
Foreach ($PkgWMI in $PksinWMIButNotContentLib){
Get-WmiObject -Namespace Root\SCCMDP -Class SMS_PackagesInContLib -Filter
"PackageID = '$PkgWMI'" | Remove-WmiObject -Confirm
}
##Delete .ini´s in PkgLib not in WMI
Foreach ($PkgLIB in $PksinContentLibButNotWMI){
Remove-Item -Path "$PkgLibPath\$PkgLIB.INI" -Confirm}
From: [email protected] [mailto:[email protected]] On
Behalf Of Chobeaux, Sebastien
Sent: Wednesday, March 29, 2017 10:55 AM
To: [email protected]
Subject: [mssms] RE: content validation failure every week.
So no one ever saw this kind of behavior? I'm tempted to either disable content
validation, recreate the offending package from scratch (1 is a package, other
one is an application). Any other ideas?
thanks
--
Sébastien Chobeaux
De : [email protected]<mailto:[email protected]>
[mailto:[email protected]] De la part de Chobeaux, Sebastien
Envoyé : lundi 27 mars 2017 16:25
À : [email protected]<mailto:[email protected]>
Objet : [mssms] content validation failure every week.
Hello,
every week during the content validation process the same 2 packages have a
failed to validate package error on 5 of my 63 DP and I have to redistribute
them, every other are correct.
I'm not sure what logs should I check, or what could cause this behaviour?
thanks
--
Sébastien Chobeaux
________________________________
AVIS IMPORTANT:
Les renseignements contenus ou joints à ce courriel sont pour l'usage exclusif
du destinataire ou de l'institution à qui ce courriel s'adresse et peuvent
contenir des renseignements privilégiés, confidentiels et exempts de
divulgation conformément à la Loi sur l'accès à l'information municipale et la
protection de la vie privée.
Dans l'éventualité que le récepteur du présent courriel n'est pas le
destinataire concerné ou la personne autorisée à acheminer le message au
destinataire concerné, vous êtes, par la présente, avisé(e), que toute
divulgation, diffusion, distribution ou reproduction de la présente
communication est strictement interdite.
Si vous recevez ce message par erreur, veuillez immédiatement en informer
l'expéditeur ou l'expéditrice par courriel et détruire celui-ci ainsi que
toutes les pièces jointes qu'il comporte.
Merci de votre collaboration.
________________________________
AVIS IMPORTANT:
Les renseignements contenus ou joints à ce courriel sont pour l'usage exclusif
du destinataire ou de l'institution à qui ce courriel s'adresse et peuvent
contenir des renseignements privilégiés, confidentiels et exempts de
divulgation conformément à la Loi sur l'accès à l'information municipale et la
protection de la vie privée.
Dans l'éventualité que le récepteur du présent courriel n'est pas le
destinataire concerné ou la personne autorisée à acheminer le message au
destinataire concerné, vous êtes, par la présente, avisé(e), que toute
divulgation, diffusion, distribution ou reproduction de la présente
communication est strictement interdite.
Si vous recevez ce message par erreur, veuillez immédiatement en informer
l'expéditeur ou l'expéditrice par courriel et détruire celui-ci ainsi que
toutes les pièces jointes qu'il comporte.
Merci de votre collaboration.