Powershell Scripting made things lot more easier in Configuration Manager 2012.You can automate console operations by using Windows PowerShell cmdlets.For list of Configmgr SP1 cmdlets,refer http://technet.microsoft.com/en-us/library/jj821831(v=sc.10).aspx
Manually Refresh of the Distribution Points for a specific package in Configmgr 2012 is not easy as it was in CM07.
Started using the Powershell script for simple tasks such as Redistribute,updating,adding Distribution points.
Use the below script to refresh failed package on Multiple Distribution Points.
$SiteCode = "ESK"
$DPserver =GC "C:\Script\Servers.txt"
foreach ($Server in $DPserver)
$PackageID = "ESK00001"
$distpoints = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Query "Select * From SMS_DistributionPoint WHERE PackageID='$PackageID' and serverNALPath like '%$Server%'"
foreach ($dp in $distpoints)
$dp.RefreshNow = $true
"Pkg:" + $PackageID + " "+ "Refreshed On" + " "+ "Server:" +$server | Out-File -FilePath C:\Script\refresh-results.txt -Append
Monitor distmgr.log(if the package is refreshed or not),sender.log on the primary site (if your DP is secondary),pkgXfermgr.log (If your DP is remote DP) for any errors.
Note:Replace the Quotes when you copy the Code.
You can also download the script from technet gallary here
More Scripts coming on the way 😉