@@ -21,13 +21,15 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
2121## SYNTAX
2222
2323### AuthenticationLocation
24+
2425```
2526Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
2627 [-Region <AADCrossTenantAuthenticationLocation>] [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>]
2728 [<CommonParameters>]
2829```
2930
3031### AuthenticationUrl
32+
3133```
3234Connect-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
9193Connect-SPOService -Credential $creds -Url https://tenant-admin.sharepoint.com -ModernAuth $true -AuthenticationUrl https://login.microsoftonline.com/organizations
9294```
9395Connecting to SPO Service with ModernAuth Flag.
9496
9597### EXAMPLE 6
9698
97- ``` powershell
99+ ``` powershell
98100Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
99101```
100102Authenticates 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
164166To use it you also need to provide the **AuthenticationUrl** parameter.
165167
@@ -174,6 +176,7 @@ Default value: None
174176Accept pipeline input : False
175177Accept 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\S OFTWARE\M icrosoft\S PO\C MDLETS\`
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
224235Type: System.Boolean
0 commit comments