Force SCCM Distribution Point to refresh failed packages PowerShell script

Hi,

I get the following error when I try ResendDPPackages.ps1 (https://gallery.technet.microsoft.com/scriptcenter/Force-SCCM-Distribution-5c243aee#content)

Property 'RefreshNow' cannot be found on this object; make sure it exists and is settable.
ResendDPPackages.ps1:37 char:23
+         $DistPointPkg. <<<< RefreshNow = $true
    + CategoryInfo          : InvalidOperation: (RefreshNow:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
ResendDPPackages.ps1:38 char:32
+         [Void]$DistPointPkg.Put <<<< ()
    + CategoryInfo          : InvalidOperation: (Put:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

The problem appears to be with retrieving the NALPath.

Thanks,
Martin.

April 30th, 2015 6:58am

Alternatively, you can try this old (and quite ugly now that I look at it again) code of mine that I know works:

https://social.technet.microsoft.com/Forums/en-US/cb61182a-d29c-4a59-8601-fe82c0118de1/redistribute-content-to-distribution-point-w-powershell-cmdlet

If you have problems with it, you should start a fresh thread.

April 30th, 2015 9:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics