Skip to main content

Get-CloudPCSnapshot

Returns snapshots for one or more Windows 365 Cloud PCs.

Description

Calls the Microsoft Graph beta /deviceManagement/virtualEndpoint/cloudPCs/{id}/retrieveSnapshots endpoint and returns normalized WindowsCloudPC.Snapshot objects.

The cmdlet accepts Cloud PC objects from Get-CloudPC through the pipeline or a Cloud PC ID through -Id. Use -All to retrieve every Cloud PC first and return snapshots with friendly Cloud PC names.

Syntax


Get-CloudPCSnapshot -CloudPC <Object> [<CommonParameters>]

Get-CloudPCSnapshot -Id <string> [-ResolveName] [<CommonParameters>]

Get-CloudPCSnapshot -All [<CommonParameters>]

Get-CloudPCSnapshot -User <string> [<CommonParameters>]

Parameters

NameTypeRequiredAliasesDescription
AllSwitchParameterYesGets all Cloud PCs with Get-CloudPC, then returns snapshots for each one
with CloudPcName populated from the Cloud PC object.
CloudPCObjectYesA WindowsCloudPC.CloudPC object returned by Get-CloudPC, or a Cloud PC
friendly name. Accepts pipeline input.
IdStringYesCloudPcIdThe Cloud PC ID when you do not have a CloudPC object available.
ResolveNameSwitchParameterNoLooks up the Cloud PC when using -Id so CloudPcName contains a friendly
managed device name or display name instead of the ID.
UserStringYesUserPrincipalName, UPNGets Cloud PCs for the specified user principal name, then returns
snapshots for each one with CloudPcName populated from the Cloud PC object.

Output

Id : CPC_00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000
SnapshotId : CPC_00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000
CloudPcId : 00000000-0000-0000-0000-000000000000
CloudPcName : CPC-USER-01
Status : ready
SnapshotType : automatic
CreatedDateTime : 6/13/2026 8:12:27 AM
LastRestoredDateTime :
ExpirationDateTime :
HealthCheckStatus :
Raw : {[healthCheckStatus, ], [createdDateTime, 6/13/2026 1:12:27 PM], [snapshotType, automatic], [lastRestoredDateTime,
]…}

Id : CPC_00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000
SnapshotId : CPC_00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000
CloudPcId : 00000000-0000-0000-0000-000000000000
CloudPcName : CPC-USER-01
Status : ready
SnapshotType : automatic
CreatedDateTime : 6/12/2026 8:11:54 PM
LastRestoredDateTime :
ExpirationDateTime :
HealthCheckStatus :
Raw : {[healthCheckStatus, ], [createdDateTime, 6/13/2026 1:11:54 AM], [snapshotType, automatic], [lastRestoredDateTime,
]…}

Graph endpoints

/beta/deviceManagement/virtualEndpoint/cloudPCs/

Example 1

Get-CloudPCSnapshot -Id '8ab4e59b-1866-4ce9-8bc8-92856e61edf4'

Lists snapshots for a single Cloud PC.

Example 2

Get-CloudPCSnapshot -Id '8ab4e59b-1866-4ce9-8bc8-92856e61edf4' -ResolveName |
Format-Table CloudPcName,Status,SnapshotType,CreatedDateTime

Lists snapshots and resolves the Cloud PC friendly name.

Example 3

Get-CloudPCSnapshot -CloudPC 'CFD-Vance-XS4KT'

Looks up a Cloud PC by friendly name and lists its snapshots.

Example 4

Get-CloudPCSnapshot -User 'user@contoso.com' |
Format-Table CloudPcName,Status,SnapshotType,CreatedDateTime

Lists snapshots for Cloud PCs assigned to a user.

Example 5

Get-CloudPCSnapshot -All | Format-Table CloudPcName,Status,SnapshotType,CreatedDateTime

Lists snapshots for every Cloud PC, including friendly Cloud PC names.

Example 6

Get-CloudPC | Get-CloudPCSnapshot | Format-Table CloudPcName,Status,SnapshotType,CreatedDateTime

Lists snapshots for every Cloud PC returned by Get-CloudPC.

Example 7

Get-CloudPC -UserPrincipalName 'user@contoso.com' |
Get-CloudPCSnapshot |
Sort-Object CreatedDateTime -Descending

Lists snapshots for a user's Cloud PCs.

Source

View Get-CloudPCSnapshot.ps1 on GitHub