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).
Syntax
Connect-CloudPC [[-AdditionalScopes] <string[]>] [-Force] [<CommonParameters>]
Parameters
| Name | Type | Required | Aliases | Description |
|---|---|---|---|---|
AdditionalScopes | String[] | No | Extra Graph scopes to request on top of the module defaults. | |
Force | SwitchParameter | No | Disconnect 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'