Hey Folks,
Till Now we have completed understanding on below points.
- Configuration ManagerMigration pre planning
- Configuration ManagerMigration Step by Step Guide Line
- Content SourceMigration of Migrated Applications and Packages
- Enable share distribution point and re-assign to new hierarchy
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
0 Comments
No Comments