Invoke-CMSecondarySiteUpgrade

Invokes a secondary site upgrade.

Syntax

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

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
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SecondarySiteCode
Type:String
Aliases:SiteCode
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SecondarySiteName
Type:String
Aliases:Name
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False