I have the following script to add a Security Scope to a DP, but it's not working (Props to Kaido Jrvemets).
Would appreciate any suggestions on how to correct it!
==============================================================
#Import Configuration Manager Module
Import-Module $env:SMS_ADMIN_UI_PATH.Replace("\bin\i386","\bin\configurationmanager.psd1")
$SiteCode = Get-PSDrive -PSProvider CMSITE
Set-Location "$($SiteCode.Name):\"
#DP
$CMDP = Get-CMDistributionPoint -SiteSystemServerName {SiteServerName}
Set-CMObjectSecurityScope -InputObject $CMDP -Action AddMembership -Name {DP Group Name}
==============================================================
- Moved by Torsten [MVP]MVP Wednesday, September 02, 2015 3:25 PM