From bf7365f73913e5a66eb980d5ab7daf264c0202cd Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:21:01 +0530 Subject: [PATCH 1/4] Update Connect-SPOService.md --- .../sharepoint-online/Connect-SPOService.md | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md index 7fab6f212..2d95b12de 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md @@ -5,8 +5,8 @@ online version: https://learn.microsoft.com/powershell/module/sharepoint-online/ applicable: SharePoint Online title: Connect-SPOService schema: 2.0.0 -author: trent-green -ms.author: trgreen +author: ShreyasS26 +ms.author: shsaravanan ms.reviewer: --- @@ -23,19 +23,19 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run. ```powershell Connect-SPOService -AuthenticationUrl [-ClientTag ] [-Credential ] - -Url -ModernAuth [] + -Url -ModernAuth [] -UseSystemBrowser ``` ### AuthenticationLocation ```powershell Connect-SPOService [-ClientTag ] [-Credential ] - [-Region ] -Url [] + [-Region ] -Url [] -UseSystemBrowser ``` ## DESCRIPTION -The `Connect-SPOService` cmdlet connects a SharePoint Online administrator to the SharePoint Online Administration Center. +The `Connect-SPOService` cmdlet connects the SharePoint Online administrator or the SharePoint Embedded administrator to the SharePoint Online Administration Center. Only a single SharePoint Online service connection is maintained from any single Windows PowerShell session. In other words, this is a per-geo within an organization administrator connection. @@ -44,7 +44,7 @@ The Windows PowerShell session will be set to serve the new SharePoint Online ad A delegated partner administrator has to swap connections for different organizations within the same Windows PowerShell session. -You must be a SharePoint Online administrator to run the cmdlet. +You must be a SharePoint Online administrator or a SharePoint Embedded administrator to run the cmdlet. For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](https://learn.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps). @@ -92,6 +92,13 @@ Connect-SPOService -Credential $creds -Url https://tenant-admin.sharepoint.com - ``` Connecting to SPO Service with ModernAuth Flag. +### -----------------------EXAMPLE 6----------------------------- + + ```powershell +Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true +``` +Authenticates using the Microsoft Authentication Library (MAAL) and connects to the SharePoint Online Administration Center on successful authentication. + ## PARAMETERS ### -AuthenticationUrl @@ -189,6 +196,21 @@ Accept wildcard characters: False To use it you also need to provide the **AuthenticationUrl** parameter. +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: +Applicable: SharePoint Online +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` +### -UseSystemBrowser + + Used to authenticate the user using the Microsoft Authentication Library (MSAL). + ```yaml Type: Boolean Parameter Sets: (All) From f087b84472f4fbadfeb9365cabf0137095c15939 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:24:05 +0530 Subject: [PATCH 2/4] Update Connect-SPOService.md --- .../sharepoint-ps/sharepoint-online/Connect-SPOService.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md index 2d95b12de..e1461fd71 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md @@ -97,7 +97,7 @@ Connecting to SPO Service with ModernAuth Flag. ```powershell Connect-SPOService -Url https://contoso-admin.sharepoint.com -UseSystemBrowser $true ``` -Authenticates using the Microsoft Authentication Library (MAAL) and connects to the SharePoint Online Administration Center on successful authentication. +Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication. ## PARAMETERS From 5d11a3a1fd5d2899c0c91ac423d25d32324273c4 Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:22:11 +0530 Subject: [PATCH 3/4] Update Connect-SPOService.md --- .../sharepoint-online/Connect-SPOService.md | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md index e1461fd71..db5e2a442 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md @@ -20,17 +20,18 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run. ## SYNTAX ### AuthenticationUrl - -```powershell -Connect-SPOService -AuthenticationUrl [-ClientTag ] [-Credential ] - -Url -ModernAuth [] -UseSystemBrowser +``` +Connect-SPOService [-Url] [[-Credential] ] + [[-ClientTag] ] [-AuthenticationUrl] [[-ModernAuth] ] + [[-UseSystemBrowser] ] [] ``` ### AuthenticationLocation -```powershell -Connect-SPOService [-ClientTag ] [-Credential ] - [-Region ] -Url [] -UseSystemBrowser +``` +Connect-SPOService [-Url] [[-Credential] ] + [[-ClientTag] ] [[-Region] ] [[-ModernAuth] ] + [[-UseSystemBrowser] ] [] ``` ## DESCRIPTION @@ -217,8 +218,8 @@ Parameter Sets: (All) Aliases: Applicable: SharePoint Online Required: False -Position: Named -Default value: False +Position: 5 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -227,11 +228,6 @@ Accept wildcard characters: False This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). -## INPUTS - -## OUTPUTS - -## NOTES ## RELATED LINKS From 39a26bce092f21bbec6bf3f80d4d6655b7b029ed Mon Sep 17 00:00:00 2001 From: ShreyasSar26 <136049061+ShreyasSar26@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:25:46 +0530 Subject: [PATCH 4/4] Update Connect-SPOService.md --- .../sharepoint-ps/sharepoint-online/Connect-SPOService.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md index db5e2a442..a74a99e1f 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md @@ -5,7 +5,7 @@ online version: https://learn.microsoft.com/powershell/module/sharepoint-online/ applicable: SharePoint Online title: Connect-SPOService schema: 2.0.0 -author: ShreyasS26 +author: ShreyasSar26 ms.author: shsaravanan ms.reviewer: ---