Sccm update distribution point not updating
On the second row I use a trick to return the result in an array, that is what the @() is all about.This way I get the property Count on $Distribution Point even if the query only returns one item.I don’t want to be blamed that content gets removed from your distribution point while you are cleaning things up. Removing content from a distribution point while initially deployed to a distribution point group is evil! If you remove a distribution point from a distribution point group, the content stays on the distribution point.
As part of the Insider program I get rather frequent upgrades to Windows 10.
lab.lcl”]MSWNET:[“SMS_SITE=S01″]\SERVER01lcl’ AND (State = 2 OR state = 3)” At line:1 char:23 $Failed Packages = Get-Wmi Object -Namespace “root SMSSite_$Site Code” -Query … Get Wmi Object Command Problem is that the Server NALPath Contains brackets “” which tells WQL to look for one of the chars between the brackets and that won’t find what I want.
Distribution Points are an important part in the infrastructure of SCCM especially if you rely on an inefficient network.
After some more digging on MSDN I found the WMI class SMS_Distribution Point Info which can be used to retrieve the Name and the Server NALPath for a distribution point. So for starters, get the Distribution Point info: $Query = "Select NALPath, Name From SMS_Distribution Point Info Where Server Name Like '%$Dist Point%'" $Distribution Point = @(Get-Wmi Object -Namespace "root SMSSite_$Site Code" -Query $Query) $Server Nal Path = $Distribution Point.
NALPath On the first row I use the operator ‘Like’ which in WQL supports wildcarding by using “%” and regex-like syntax (more on that to come).