locked
script "upgrade shared distribution points" RRS feed

  • Question

  • Hi

    We have about 400 SCCM 2007 Secondary Sites and need to migrate them to SCCM 2012 SP1 Distribution Points. As you can image we don't want to click 400 times during migration wizard.

    Is there a way to script the upgrade of all shared distribution point? e.g. powershell or SDK (C# or VBScript)

    Many, many thanks in advance,

    Wolfgang

    Tuesday, April 23, 2013 11:53 PM

Answers

All replies

  • Hi,

    You dont need to use custom script for that task. We have Start-CMDistributionPointUpgrade cmdlet. You can check all the cmdlets from here - http://blog.coretech.dk/kaj/system-center-2012-configuration-manager-sp1-cumulative-update-1-powershell-parameter-sets-excel-sheet/

    Best,

    Kaido

    Thursday, April 25, 2013 5:30 AM
  • Has anyone used this cmdlet yet?  The examples help file is, ahem, lacking...

    NAME
        Start-CMDistributionPointUpgrade

    ALIASES
        None


    REMARKS
        Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
            -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

    Tuesday, April 30, 2013 5:50 PM
  • Try with "update-help" (see REMARKS)...

    I get following short information:

    NAME
        Start-CMDistributionPointUpgrade

    SYNTAX
        Start-CMDistributionPointUpgrade -SiteCode <string> -SharedDistributionPoint <IResultObject#SMS_MigrationDP>
        -CertificateExpirationTimeUtc <datetime> -AllowPreStaging <bool> [-PublicFqdn <IResultObject#SMS_MigrationDP>]
        [-InstallationAccount <IResultObject#SMS_SCI_Reserved>] [-InitiateConnection <bool>] [-InstallInternetServer
        <bool>] [-ClientConnectionType <ClientConnectionTypes> {Intranet | Internet | InternetAndIntranet}]
        [-EnableAnonymous <bool>] [-MinFreeSpaceMB <int>] [-PrimaryContentLibraryLocation <DriveType> {Automatic | A | B |
        C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
        [-SecondaryContentLibraryLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N |
        O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-PrimaryPackageShareLocation <DriveType> {Automatic | A | B | C |
        D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
        [-SecondaryPackageShareLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O
        | P | Q | R | S | T | U | V | W | X | Y | Z}] [-EnablePxeSupport <bool>] [-AllowRespondIncomingPxeRequest <bool>]
        [-EnableUnknownComputerSupport <bool>] [-ComputersUsePxePassword <securestring>] [-UserDeviceAffinity
        <UserDeviceAffinityType> {DoNotUse | AllowWithManualApproval | AllowWithAutomaticApproval}]
        [-MacAddressForRespondingPxeRequest <string[]>] [-PxeServerResponseDelaySeconds <int>] [-ValidateContentSchedule
        <IResultObject#SMS_ST_RecurWeekly>] [-ContentValidationPriority <Priority> {Lowest | Low | Medium | High |
        Highest}] [-BoundaryGroup <IResultObject#SMS_BoundaryGroup[]>] [-AllowFallbackForContent <bool>]
        [-PathForSavingMigratedPackage <string>] [-WhatIf] [-Confirm]  [<CommonParameters>]

        Start-CMDistributionPointUpgrade -SiteCode <string> -SharedDistributionPoint <IResultObject#SMS_MigrationDP>
        -CertificatePath <string> -AllowPreStaging <bool> [-PublicFqdn <IResultObject#SMS_MigrationDP>]
        [-InstallationAccount <IResultObject#SMS_SCI_Reserved>] [-InitiateConnection <bool>] [-InstallInternetServer
        <bool>] [-ClientConnectionType <ClientConnectionTypes> {Intranet | Internet | InternetAndIntranet}]
        [-EnableAnonymous <bool>] [-CertificatePassword <securestring>] [-ForceWhenDuplicateCertificate <bool>]
        [-MinFreeSpaceMB <int>] [-PrimaryContentLibraryLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I
        | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-SecondaryContentLibraryLocation
        <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W
        | X | Y | Z}] [-PrimaryPackageShareLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L
        | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-SecondaryPackageShareLocation <DriveType> {Automatic |
        A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
        [-EnablePxeSupport <bool>] [-AllowRespondIncomingPxeRequest <bool>] [-EnableUnknownComputerSupport <bool>]
        [-ComputersUsePxePassword <securestring>] [-UserDeviceAffinity <UserDeviceAffinityType> {DoNotUse |
        AllowWithManualApproval | AllowWithAutomaticApproval}] [-MacAddressForRespondingPxeRequest <string[]>]
        [-PxeServerResponseDelaySeconds <int>] [-ValidateContentSchedule <IResultObject#SMS_ST_RecurWeekly>]
        [-ContentValidationPriority <Priority> {Lowest | Low | Medium | High | Highest}] [-BoundaryGroup
        <IResultObject#SMS_BoundaryGroup[]>] [-AllowFallbackForContent <bool>] [-PathForSavingMigratedPackage <string>]
        [-WhatIf] [-Confirm]  [<CommonParameters>]


    ALIASES
        None


    REMARKS
        Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
            -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

    Wednesday, May 1, 2013 6:52 AM
  • Yep, I've done and seen that.  However, there doesn't seem to be an example available.
    Wednesday, May 1, 2013 5:42 PM
  • Another thing to think about is you can only upgrade one Secondary site at a time, the rest will queue up and wait for the previous upgrade to complete.  If you don't mind when they upgrade, automation would certainly be the way to go.

    From here:  http://technet.microsoft.com/en-us/library/gg712275.aspx

    Wednesday, May 1, 2013 7:13 PM
  • Bump.

    Has ANYONE ever used this cmdlet???  I agree with Derek's assessment.  The help tells you to create an object for the shared distribution point using the Get-CMDistributionPoint cmdlet, but I have yet to figure out a way to do that.  Can someone at Microsoft post a meaningful example?

    The example provided (snippet from Start-CMDistributionPointUpgrade help below) is useless to me.  I can't find any association between DP Groups and Shared DPs to even know which GUID to pass into this.  What gives?  Does the example even work?  Was this tested at all?

    >>The first command gets the distribution point object that has the ID 6617708D-0F98-4898-8D05-9E882C23DCB2, and stores the object in the $CIObj variable.

    >>PS C:\> $CIObj = Get-CMDistributionPoint -DistributionPointGroupId "{6617708D-0F98-4898-8D05-9E882C23DCB2}"

    I have a suspicion that the Start-CMDistributionPointUpgrade cmdlet would work fine if I could just get the right "IResultObject" for the Shared DP.

    Monday, October 28, 2013 8:21 PM
  • I find myself in the exact same spot.

    The example refers to the IResultObject, but I am unsure how to easily gather this data.

    I have about 800 Distribution Points I'd like to scrip the upgrade steps, don't care if it queue's up or not, just don't want to do this manually.

    Monday, November 4, 2013 11:17 PM
  • As a further follow up...I tried the below:

    $CIObj = Get-CMDistributionPoint -SiteSystemServerName "FQDN.of.Server"

    Then I followed that command with this:

    Start-CMDistributionPointUpgrade -MinFreeSpaceMB "250" -PrimaryContentLibraryLocation "D" -PrimaryPackageShareLocation "D" -SharedDistributionPoint "$CIObj" -SiteCode "XXX" -Whatif

    AND...it now recognizes the correct Distribution Point, but I get a very large error.

    Start-CMDistributionPointUpgrade : Cannot bind parameter 'SharedDistributionPoint'. Cannot convert the
    "[SecurityVerbs(-1)]
    instance of SMS_SCI_SysResUse

    Followed by a lot of information about the DP, including the correct FQDN and essentially all of its properties.

    Monday, November 4, 2013 11:32 PM
  • Looks like we're in the same boat.  I might open a case with Premier.

    I appreciate the feedback and will post whatever I'm able to find out.

    Wednesday, November 6, 2013 8:09 PM
  • Looks like we're in the same boat.  I might open a case with Premier.

    I appreciate the feedback and will post whatever I'm able to find out.

    Please do, this is not the first cmdlet I've found that doesn't actually work, and when you ask about that, you are greeted with silence :(

    The other one I was attempting was Remove-CMContentDistribution, which is in the list, but doesn't seem to actually exist.

    Wednesday, November 20, 2013 4:38 PM
  • Did you even get an answer/solution on this?
    Tuesday, April 15, 2014 2:17 PM
  • Hello Andozane,

    Did you found any solution for this.

    Thursday, May 28, 2015 1:47 PM
  • No, sadly this ended being a manual process.
    Monday, June 1, 2015 5:21 PM