Skip to main content

Connect-CloudPC

Connects to Microsoft Graph with the scopes required by WindowsCloudPC.

Description​

Idempotent: if an existing Graph session already covers the required scopes, no prompt is shown. Use -Force to re-authenticate (e.g. to add scopes or switch accounts). Connect-Windows365 is exported as an alias for this command.

Syntax​


Connect-CloudPC [[-AdditionalScopes] <string[]>] [-Force] [<CommonParameters>]

Parameters​

NameTypeRequiredAliasesDescription
AdditionalScopesString[]NoExtra Graph scopes to request on top of the module defaults.
ForceSwitchParameterNoDisconnect any existing session and re-authenticate.

Graph endpoints​

Endpoint details are described in the source and examples.

Example 1​

Connect-CloudPC

Example 2​

Connect-CloudPC -AdditionalScopes 'CloudPC.ReadWrite.All'

Example 3​

Connect-Windows365

Source​

View Connect-CloudPC.ps1 on GitHub