@@ -20,13 +20,15 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run.
2020## SYNTAX
2121
2222### AuthenticationLocation
23+
2324```
2425Connect-SPOService -Url <UrlCmdletPipeBind> [-Credential <CredentialCmdletPipeBind>] [-ClientTag <String>]
2526 [-Region <AADCrossTenantAuthenticationLocation>] [-ModernAuth <Boolean>] [-UseSystemBrowser <Boolean>]
2627 [<CommonParameters>]
2728```
2829
2930### AuthenticationUrl
31+
3032```
3133Connect-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
9092Connect-SPOService -Credential $creds -Url https://tenant-admin.sharepoint.com -ModernAuth $true -AuthenticationUrl https://login.microsoftonline.com/organizations
9193```
9294Connecting to SPO Service with ModernAuth Flag.
9395
9496### EXAMPLE 6
9597
96- ``` powershell
98+ ``` powershell
9799Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true
98100```
99101Authenticates 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
163165To use it you also need to provide the **AuthenticationUrl** parameter.
164166
@@ -173,6 +175,7 @@ Default value: None
173175Accept pipeline input : False
174176Accept 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\S OFTWARE\M icrosoft\S PO\C MDLETS\`
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
223234Type: System.Boolean
0 commit comments