Skip to content

Commit 6c15304

Browse files
authored
Merge branch 'main' into gary-update-owners
2 parents 4dcd84f + 12692ae commit 6c15304

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
@@ -21,13 +21,15 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
2121
## SYNTAX
2222

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

3031
### AuthenticationUrl
32+
3133
```
3234
Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
3335
-AuthenticationUrl <String> [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>] [<CommonParameters>]
@@ -87,14 +89,14 @@ Connects to a SharePoint Online Administration Center specifying the region.
8789

8890
### EXAMPLE 5
8991

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

9597
### EXAMPLE 6
9698

97-
```powershell
99+
```powershell
98100
Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
99101
```
100102
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.
@@ -159,7 +161,7 @@ Accept wildcard characters: False
159161
160162
> Applicable: SharePoint Online
161163
162-
Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.
164+
Ensures that SharePoint Online tenant administration cmdlets can connect to the service using modern TLS protocols.
163165
164166
To use it you also need to provide the **AuthenticationUrl** parameter.
165167
@@ -174,6 +176,7 @@ Default value: None
174176
Accept pipeline input: False
175177
Accept wildcard characters: False
176178
```
179+
177180
### -Region
178181
179182
> Applicable: SharePoint Online
@@ -218,7 +221,15 @@ Accept wildcard characters: False
218221
219222
> Applicable: SharePoint Online
220223
221-
Used to authenticate the user using the Microsoft Authentication Library (MSAL).
224+
Used to authenticate the user using the Microsoft Authentication Library (MSAL).
225+
226+
> [!NOTE]
227+
> To avoid adding the `-UseSystemBrowser` parameter every time you run `Connect-SPOService`, you can set a registry key instead.
228+
>
229+
> Set the `UseSystemBrowser` registry key (type `REG_DWORD`) at:
230+
`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SPO\CMDLETS\`
231+
>
232+
> 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.
222233

223234
```yaml
224235
Type: System.Boolean

0 commit comments

Comments
 (0)