Start-HcsUpdate

Installs updates.

Syntax

Start-HcsUpdate
     [-Force]
     [-UpdateId <String>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Start-HcsUpdate cmdlet installs updates on a device. If the device is in maintenance mode, the cmdlet installs only disruptive updates. If the device is not in maintenance mode, the cmdlet installs only normal updates.

For updates that do not require maintenance mode, this cmdlet installs the update on both controllers.

For all updates that require maintenance mode, run this cmdlet on each controller. If you do not to run this cmdlet on each controller, data may become corrupted.

Examples

Example 1: Install updates

PS C:\>Start-HcsUpdate

This command installs available updates.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-UpdateId

Specifies an update ID. The cmdlet installs the particular update specified by the ID.

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

Outputs

Boolean

This cmdlet generates a value of $True if it starts installing an update or a value of $False if there are no updates available.