This week when came back from office , saw this tweet from Adam Bertram : It got me curious how to Script this, I had written a Script in past to remove packages from the DP . So let's try out this scenario. The class to query is the SMS_DistributionPoint class and the property to be used for filtering is ServerNALPath. My Lab has only one DP named "DexSCCM" so gonna use that in the filter. Note the WQL operator used here for filtering is LIKE not '='. 001 Get-CimInstance -ClassName SMS_DistributionPoint -Filter "ServerNALPAth LIKE '%DexSCCM%'" -ComputerName dexsccm -Namespace Root\SMS\Site_DEX This will give you a bunch of objects back , below is one of the objects screenshot: Note - Please take a moment to go to the MSDN documentation of the SMS_DistributionPoint WMI Class and pay attention to the ObjectTypeID , SecureObjectID and PackageID properties. From the above Objects I c...
Infra + Dev's ramblings