Get-HcsUpdateAvailability

Get-HcsUpdateAvailability

Scans for updates.

Syntax

Parameter Set: Default
Get-HcsUpdateAvailability [-UpdateId <String> ] [ <CommonParameters>]

Detailed Description

The Get-HcsUpdateAvailability cmdlet scans for updates. The cmdlet tells you which updates are maintenance mode updates and which are normal updates. A maintenance mode update requires maintenance mode.

Parameters

-UpdateId<String>

Specifies an update ID.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.HCS.Management.Patching.HCSUpdateSearchResults

    The HCSUpdateSearchResults object has the following properties:

    -- RegularUpdates
    -- MaintenanceModeUpdates

Examples

Example 1: Check for updates

This command checks for available updates for your device.

PS C:\> Get-HcsUpdateAvailability

Get-HcsUpdateStatus

Start-HcsUpdate

Start-HcsHotfix