Skip to content

Commit

Permalink
Create How to add a Collection to a Distribution Point Group
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaidja committed Jul 14, 2017
1 parent fbd8f63 commit 011d220
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions How to add a Collection to a Distribution Point Group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$CollectionID = 'PS10001A'
$SiteCode = 'PS1'
$DistributionPointGroup = "New Distribution Group"
$DPGroupQuery = Get-WmiObject -Namespace "Root\SMS\Site_$SiteCode" -Class 'SMS_DistributionPointGroup' -Filter "Name='$DistributionPointGroup'"
$DPGroupQuery.AssociateCollections($CollectionID)

0 comments on commit 011d220

Please sign in to comment.