Invoke-CMSecondarySiteUpgrade

Invokes a secondary site upgrade.

Syntax

Invoke-CMSecondarySiteUpgrade
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -InputObject <IResultObject>
      [-WhatIf]
      [<CommonParameters>]
Invoke-CMSecondarySiteUpgrade [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling]
 -SecondarySiteCode  [-WhatIf] []
Invoke-CMSecondarySiteUpgrade [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling]
 -SecondarySiteName  [-WhatIf] []

Description

The Invoke-CMSecondarySiteUpgrade cmdlet invokes a secondary site upgrade that is outside of any scheduled upgrades. You can specify the site upgrade by using its name or ID, or by specifying an object that represents the site upgrade.

Examples

Example 1: Invoke a secondary site upgrade by using a site name

PS C:\>Invoke-CMSecondarySiteUpgrade -SiteName "ClientSecSiteUpgrade03" -Force

This command invokes a secondary site upgrade from a site named ClientSecSiteUpgrade03. Because the Force parameter is specified, Configuration Manager invokes the update automatically and does not prompt you for confirmation.

Required Parameters

-InputObject

Specifies a secondary site upgrade object.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SecondarySiteCode
Type:String
Aliases:SiteCode
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SecondarySiteName
Type:String
Aliases:Name
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False