Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
## SYNTAX

### AuthenticationLocation

```
Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
[-Region <AADCrossTenantAuthenticationLocation>] [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>]
[<CommonParameters>]
```

### AuthenticationUrl

```
Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
-AuthenticationUrl <String> [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>] [<CommonParameters>]
Expand Down Expand Up @@ -86,14 +88,14 @@ Connects to a SharePoint Online Administration Center specifying the region.

### EXAMPLE 5

```powershell
```powershell
Connect-SPOService -Credential $creds -Url https://tenant-admin.sharepoint.com -ModernAuth $true -AuthenticationUrl https://login.microsoftonline.com/organizations
```
Connecting to SPO Service with ModernAuth Flag.

### EXAMPLE 6

```powershell
```powershell
Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
```
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.
Expand Down Expand Up @@ -158,7 +160,7 @@ Accept wildcard characters: False

> Applicable: SharePoint Online

Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.
Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.

To use it you also need to provide the **AuthenticationUrl** parameter.

Expand All @@ -173,6 +175,7 @@ Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Region

> Applicable: SharePoint Online
Expand Down Expand Up @@ -217,7 +220,15 @@ Accept wildcard characters: False

> Applicable: SharePoint Online

Used to authenticate the user using the Microsoft Authentication Library (MSAL).
Used to authenticate the user using the Microsoft Authentication Library (MSAL).

> [!NOTE]
> To avoid adding the `-UseSystemBrowser` parameter every time you run `Connect-SPOService`, you can set a registry key instead.
>
> Set the `UseSystemBrowser` registry key (type `REG_DWORD`) at:
`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SPO\CMDLETS\`
>
> If either registry key is set to a non-zero integer value or `-UseSystemBrowser` parameter is set to `true`, authentication flow will use system browser for sign-in.

```yaml
Type: System.Boolean
Expand Down