Get-HcsUpdateStatus
Get-HcsUpdateStatus
Gets the current status of updates.
Syntax
Get-HcsUpdateStatus [ <CommonParameters>]
Detailed Description
The Get-HcsUpdateStatus cmdlet gets the current status of updates. The cmdlet provides the timestamp of the last update, indicates whether any updates are in progress, and provides any errors that occurred after the last successful update.
Parameters
<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.HcsUpdateStatus
The HcsUpdateStatus object has the following properties:
-- RunInprogress
-- DateTime LastHotfixTimestamp
-- DateTime LastUpdateTimestamp
-- IEnumerable<HcsUpdateEvent> Controller0Events
-- IEnumerable<HcsUpdateEvent> Controller1Events
Examples
Example 1: Get status of updates
This command gets the current status of updates on your device.
PS C:\> Get-HcsUpdateStatus