diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md b/sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md index 7fab6f212..a74a99e1f 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: ShreyasSar26 +ms.author: shsaravanan ms.reviewer: --- @@ -20,22 +20,23 @@ This cmdlet must be run before any other SharePoint Online cmdlets can run. ## SYNTAX ### AuthenticationUrl - -```powershell -Connect-SPOService -AuthenticationUrl [-ClientTag ] [-Credential ] - -Url -ModernAuth [] +``` +Connect-SPOService [-Url] [[-Credential] ] + [[-ClientTag] ] [-AuthenticationUrl] [[-ModernAuth] ] + [[-UseSystemBrowser] ] [] ``` ### AuthenticationLocation -```powershell -Connect-SPOService [-ClientTag ] [-Credential ] - [-Region ] -Url [] +``` +Connect-SPOService [-Url] [[-Credential] ] + [[-ClientTag] ] [[-Region] ] [[-ModernAuth] ] + [[-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 +45,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 +93,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 (MSAL) and connects to the SharePoint Online Administration Center on successful authentication. + ## PARAMETERS ### -AuthenticationUrl @@ -200,16 +208,26 @@ Default value: False Accept pipeline input: False Accept wildcard characters: False ``` +### -UseSystemBrowser -### CommonParameters + Used to authenticate the user using the Microsoft Authentication Library (MSAL). -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). +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: +Applicable: SharePoint Online +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` -## INPUTS +### CommonParameters -## OUTPUTS +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). -## NOTES ## RELATED LINKS