Scripting SCCM Distribution Point Setting

Starting Member
  • Total Posts : 24
  • Scores: 0
  • Reward points: 4060
  • Joined: 2008/08/11 10:36:38
  • Status: offline
2011/03/10 16:59:07 (permalink)

Scripting SCCM Distribution Point Setting

I've been working on scripting things in SCCM with VBScript, and I was wondering if any of you know how to programatically check the box on a package's Distribution tab that says "Allow this package to be transferred via multicast (WinPE only)"? Everything else is working just fine - I just can't figure out how to check that one little box. And I should mention that I did some digging in the SCCM 2007 SDK help files and didn't turn up anything there. Anyone able to help? Thanks!

1 Reply Related Threads

    Expert Member
    • Total Posts : 272
    • Scores: 17
    • Reward points: 27520
    • Joined: 2008/07/21 03:14:55
    • Location: Sydney, Australia
    • Status: offline
    Re:Scripting SCCM Distribution Point Setting 2011/03/11 07:05:02 (permalink)
    It's undocumented... ;) I'm guessing you've had a look at the SMS_PackageBaseclass WMI class? You'll notice there's nothing under PkgFlags for 0x08000000 (27)...

    I'm moving onto PowerShell these days and away from VBScript, so here's an example which I'm sure you can slice and dice back into VBScript if you really want :)

    # Get packages
    $MyPackages = Get-WmiObject -ComputerName "SVR1" -Namespace "root\sms\site_SYD" -Query "select * from SMS_Package"

    # Enumerate packages
    foreach ($Package in $MyPackages) {
    # Debug message
    Write-Host $Package.PackageID $Package.Manufacturer $Package.Name $Package.Version $Package.PkgFlags

    # Set "Allow this package to be transferred via multicast" if not set
    If (($Package.PkgFlags -band [math]::pow(2,27)) -eq 0) {
    $Package.PkgFlags = $Package.PkgFlags + [math]::pow(2,27)
    Jump to:
    © 2018 APG vNext Invalid Version 5.5