Skip to content

Commit 9abc905

Browse files
authored
Merge branch 'main' into gary-update-owners
2 parents a1ac889 + 318404a commit 9abc905

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
2020
## SYNTAX
2121

2222
### AuthenticationLocation
23+
2324
```
2425
Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
2526
[-Region <AADCrossTenantAuthenticationLocation>] [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>]
2627
[<CommonParameters>]
2728
```
2829

2930
### AuthenticationUrl
31+
3032
```
3133
Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
3234
-AuthenticationUrl <String> [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>] [<CommonParameters>]
@@ -86,14 +88,14 @@ Connects to a SharePoint Online Administration Center specifying the region.
8688

8789
### EXAMPLE 5
8890

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

9496
### EXAMPLE 6
9597

96-
```powershell
98+
```powershell
9799
Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
98100
```
99101
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.
@@ -158,7 +160,7 @@ Accept wildcard characters: False
158160
159161
> Applicable: SharePoint Online
160162
161-
Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.
163+
Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.
162164
163165
To use it you also need to provide the **AuthenticationUrl** parameter.
164166
@@ -173,6 +175,7 @@ Default value: None
173175
Accept pipeline input: False
174176
Accept wildcard characters: False
175177
```
178+
176179
### -Region
177180
178181
> Applicable: SharePoint Online
@@ -217,7 +220,15 @@ Accept wildcard characters: False
217220
218221
> Applicable: SharePoint Online
219222
220-
Used to authenticate the user using the Microsoft Authentication Library (MSAL).
223+
Used to authenticate the user using the Microsoft Authentication Library (MSAL).
224+
225+
> [!NOTE]
226+
> To avoid adding the `-UseSystemBrowser` parameter every time you run `Connect-SPOService`, you can set a registry key instead.
227+
>
228+
> Set the `UseSystemBrowser` registry key (type `REG_DWORD`) at:
229+
`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SPO\CMDLETS\`
230+
>
231+
> 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.
221232

222233
```yaml
223234
Type: System.Boolean

0 commit comments

Comments
 (0)