Like many SCCM admins, one of the common issues we come across is a distribution point with failed packages. This may occur due to many reasons such as a bad link, corrupt content, disk space etc. just to name a few.
It is rather painstaking though in SCCM that you cannot refresh multiple items from the console, limited to using the distribution point content in monitoring to refresh by content only and not by distribution point . Luckily though there is a script to do the work for you.
This script checks all packages assigned to a distribution point and redistributes any packages that have an error status.
To use the script (Download at the end of the post), modify the VBS file to put in your server details in the variable section
‘ The name of the CAS/Primary site server
Public Const CASServerName = “CASorPRIServer”
‘ Which DP to refresh packages for – leave this blank to check ALL DPs
Public Const DPServerName = “DPServer”
Once done open Command Prompt as administrator. Change Directory to where the script it stored and type in cscript DP_Refresh.vbs press Enter
The script will now refresh the DP, you can view the status in the console.