Connect-OnlineService
SYNOPSIS
Facade to individual connection handlers
SYNTAX
Direct (Default)
Connect-OnlineService [-Service] <String> [<CommonParameters>]
Delegated
Connect-OnlineService [-Service] <String> [-Delegated] <Switch> [-ClientDomain] <String> [<CommonParameters>]
DESCRIPTION
Handles calling the proper connection handler for a given service.
EXAMPLES
Connect to Exchange Online (Supports MFA)
PS C:\> Connect-OnlineService ExchangeOnline
Delegated connection to Exchange Online (Does not support MFA)
PS C:\> Connect-OnlineService -Service ExchangeOnline -Delegated -ClientDomain fabrikam.com
PARAMETERS
-Service
Defines the service that you wish to connect to. Accepts: MicrosoftOnline
, AzureADv2
, ExchangeOnline
, SecurityAndComplianceCenter
.
If you specify SecurityAndComplianceCenter
, then -Delegated
and -ClientDomain
are not supported as Microsoft does not currently support delegated access to the Security and Compliance Center.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Delegated
Instructs the function that you wish to connect with delegated permissions to a tenent
Type: Switch
Parameter Sets: Delegated
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClientDomain
The tenant domain name (contoso.onmicrosoft.com) or domain name registered with the tenant you wish to connect to (contoso.com)
Type: String
Parameter Sets: Delegated
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).