From 187fba8d7f4e16a350b224ba5ec0affbbe343db3 Mon Sep 17 00:00:00 2001 From: dangshubham Date: Fri, 29 Aug 2025 16:24:05 +0530 Subject: [PATCH 1/7] Update Connect-SPOService.md --- .../Connect-SPOService.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index 40662c91d..afb902c56 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -231,6 +231,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` +Instead of adding the -UseSystemBrowser parameter every time users run Connect-SPOService, this choice can be controlled by a registry key as well. This registry key (UseSystemBrowser of type REG_DWORD) will be located 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. + + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters). From 7536475c585ae01407ac1d5a66dbaafd64db1a9d Mon Sep 17 00:00:00 2001 From: dangshubham Date: Mon, 1 Sep 2025 13:08:22 +0530 Subject: [PATCH 2/7] Update Connect-SPOService.md --- .../Connect-SPOService.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index afb902c56..2450a5bb7 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -230,11 +230,14 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - -Instead of adding the -UseSystemBrowser parameter every time users run Connect-SPOService, this choice can be controlled by a registry key as well. This registry key (UseSystemBrowser of type REG_DWORD) will be located 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. - +> [!NOTE] +> To avoid adding the `-UseSystemBrowser` parameter every time you run Connect-SPOService, +you can set a registry key instead. +> +> Set the UseSystemBrowser registery 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. ### CommonParameters From d7f72c9963d75e250bcc45f974fe17afda9b3ef5 Mon Sep 17 00:00:00 2001 From: dangshubham Date: Mon, 1 Sep 2025 13:12:35 +0530 Subject: [PATCH 3/7] Update Connect-SPOService.md --- .../Connect-SPOService.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index 2450a5bb7..86bdfa067 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -234,10 +234,10 @@ Accept wildcard characters: False > To avoid adding the `-UseSystemBrowser` parameter every time you run Connect-SPOService, you can set a registry key instead. > -> Set the UseSystemBrowser registery key (type `REG_DWORD`) at: -HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SPO\CMDLETS\ +> Set the `UseSystemBrowser` registery 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. +> 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. ### CommonParameters From d4eab592c713394dbe3ea36d09be7fde53f9979e Mon Sep 17 00:00:00 2001 From: dangshubham Date: Wed, 3 Sep 2025 15:18:03 +0530 Subject: [PATCH 4/7] Update Connect-SPOService.md --- .../Connect-SPOService.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index 86bdfa067..f85ccb8fe 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -218,6 +218,14 @@ Accept wildcard characters: False > Applicable: SharePoint Online 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` registery 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 @@ -230,14 +238,6 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -> [!NOTE] -> To avoid adding the `-UseSystemBrowser` parameter every time you run Connect-SPOService, -you can set a registry key instead. -> -> Set the `UseSystemBrowser` registery 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. ### CommonParameters From 8cb2636298c1def9b37f30ee713e87929c2fbed8 Mon Sep 17 00:00:00 2001 From: dangshubham Date: Wed, 3 Sep 2025 15:20:00 +0530 Subject: [PATCH 5/7] Update Connect-SPOService.md --- .../Connect-SPOService.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index f85ccb8fe..b04e7ba7b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -219,8 +219,7 @@ Accept wildcard characters: False 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. +> To avoid adding the `-UseSystemBrowser` parameter every time you run `Connect-SPOService`, you can set a registry key instead. > > Set the `UseSystemBrowser` registery key (type `REG_DWORD`) at: `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SPO\CMDLETS\` From 88141caf4b4fb0d327c8990ec2fbb2b4883dfaf5 Mon Sep 17 00:00:00 2001 From: Gary Moore <5432776+garycentric@users.noreply.github.com> Date: Wed, 3 Sep 2025 12:18:02 -0700 Subject: [PATCH 6/7] Spacing corrections --- .../Connect-SPOService.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index b04e7ba7b..5d9325d1d 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -20,6 +20,7 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run. ## SYNTAX ### AuthenticationLocation + ``` Connect-SPOService -Url [-Credential ] [-ClientTag ] [-Region ] [-ModernAuth ] [-UseSystemBrowser ] @@ -27,6 +28,7 @@ Connect-SPOService -Url [-Credential [-Credential ] [-ClientTag ] -AuthenticationUrl [-ModernAuth ] [-UseSystemBrowser ] [] @@ -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. @@ -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. @@ -173,6 +175,7 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` + ### -Region > Applicable: SharePoint Online @@ -217,7 +220,8 @@ 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. > From 357114c2481419b1349e9d3301122418c3c49d49 Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Thu, 4 Sep 2025 01:50:58 +0530 Subject: [PATCH 7/7] typo fix --- .../Connect-SPOService.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md index 5d9325d1d..8441a88f2 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md @@ -225,7 +225,7 @@ 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` registery key (type `REG_DWORD`) at: +> 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.