29.3 C
Ahmedabad
Friday, July 4, 2025

Steps to fix the Distribution point configuration status

Hey Folks,

Till Now we have completed understanding on below points.

Today I will be share  you the some inputs on when to use Distribution point has been reassign and has some hash miss match how we should fix

Simple steps to fix the Distribution point configuration status.

 

Step 1 . Login to the DP

Run following commandlet in Powershell-ISE ( Admin)

This PS script shows you what packages are in WMI and not in the Content Library AND vice versa.

__________________________________________________________________________

$WMIPkgList = Get-WmiObject -Namespace Root\SCCMDP -Class SMS_PackagesInContLib | Select -ExpandProperty PackageID | Sort-Object

$ContentLib = (Get-ItemProperty -path HKLM:SOFTWARE\Microsoft\SMS\DP -Name ContentLibraryPath)

$PkgLibPath = ($ContentLib.ContentLibraryPath) + “\PkgLib”

$PkgLibList = (Get-ChildItem $PkgLibPath | Select -ExpandProperty Name | Sort-Object)

$PkgLibList = ($PKgLibList | ForEach-Object {$_.replace(“.INI”,””)})

$PksinWMIButNotContentLib = Compare-Object -ReferenceObject $WMIPkgList -DifferenceObject $PKgLibList -PassThru | Where-Object { $_.SideIndicator -eq “<=” }

$PksinContentLibButNotWMI = Compare-Object -ReferenceObject $WMIPkgList -DifferenceObject $PKgLibList -PassThru | Where-Object { $_.SideIndicator -eq “=>” }

Write-Host Items in WMI but not the Content Library

 

Step 2 : Run this Powershell Command-Let in Powershell ISE

This PS script removes the package from WMI

______________________________________________________________________

Foreach ($Pkg in $PksinWMIButNotContentLib){ Get-WmiObject -Namespace Root\SCCMDP -Class SMS_PackagesInContLib -Filter “PackageID = ‘$Pkg'” | Remove-WmiObject -Confirm }

Step 3: This PS script removes the INI file (using the list from Part I):

Foreach ($Pkg in $PksinContentLibButNotWMI){ Remove-Item -Path “$PkgLibPath\$Pkg.INI” -Confirm }

Step 4 : From SCCM console run the content validation from  DPs they should turn to green icons again.

We have successfully completed migration with complete solutions.

Hope you like this keep watching hiraniconfigmgr.com happy learning 🙂

Thanks & Regards,
Haresh Hirani
Email: [email protected]
Follow me: Twitter @hirravi1
linkedin: https://www.linkedin.com/in/hiraniconfigmgr

 

 

Author

  • Hi, I Haresh Hirani, I am the person behind this webpage. Welcome to my page, Thank you for visiting the website and my page! My website is all about Microsoft technologies. More about ConfigMgr and all other technologies which are interesting for me. However, larger percentage of my posts are related to SCCM. Normally, like to post the interesting issues which I came across in my day to day tech life. you will find only solutions which comes on my day to day life.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest posts