Skip to content

Commit

Permalink
Create How to remove a Distribution Point from a Boundary Group
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaidja committed Jul 14, 2017
1 parent db4a307 commit d739d5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions How to remove a Distribution Point from a Boundary Group
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$BoundaryGroup = "New Boundary Group"
$DistributionPoint = "Server"
$DomainName = "CM.LOCAL"
$SiteCode = "PS1"
$NALPath = "[""Display=\\" + $DistributionPoint + "." + $DomainName + "\""]MSWNET:[""SMS_SITE=" + $SiteCode + """]\\" + $DistributionPoint + "." + $DomainName + "\"
$BoundaryGroupQuery = Get-WmiObject -Namespace "Root\SMS\Site_PS1" -Class SMS_BoundaryGroup -Filter "Name = '$BoundaryGroup'"
$BoundaryGroupQuery.RemoveSiteSystem($NALPath)

0 comments on commit d739d5d

Please sign in to comment.