Skip to content

Commit

Permalink
Create How to add a Distribution Point to Boundary Group
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaidja committed Jul 14, 2017
1 parent 3052a88 commit db4a307
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions How to add a Distribution Point to Boundary Group
@@ -0,0 +1,8 @@
$BoundaryGroup = "New Boundary Group"
$DistributionPoint = "Server"
$DomainName = "CM.LOCAL"
$SiteCode = "PS1"
$Flag = 0 # 0 - Fast Connection, 1 - Slow Connection
$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.AddSiteSystem($NALPath,$Flag)

0 comments on commit db4a307

Please sign in to comment.