You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md
+54-61Lines changed: 54 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,132 +14,123 @@ ms.reviewer:
14
14
15
15
## SYNOPSIS
16
16
17
-
Connects the SharePoint Online Administrator or the SharePoint Embedded Administrator to a SharePoint Online connection (the SharePoint Online Administration Center).
18
-
This cmdlet must be run before any other SharePoint Online cmdlets can run.
17
+
Connects a SharePoint Administrator or SharePoint Embedded Administrator to the SharePoint admin center. You must run this cmdlet before running any other SharePoint Online cmdlets.
The `Connect-SPOService` cmdlet connects the SharePoint Online Administrator or the SharePoint Embedded Administrator to the SharePoint Online Administration Center.
49
-
50
-
Only a single SharePoint Online service connection is maintained from any single Windows PowerShell session.
51
-
In other words, this is a per-geo within an organization administrator connection.
52
-
Running the `Connect-SPOService` cmdlet twice implicitly disconnects the previous connection.
53
-
The Windows PowerShell session will be set to serve the new SharePoint Online administrator specified.
54
-
55
-
A delegated partner administrator has to swap connections for different organizations within the same Windows PowerShell session.
56
-
57
-
You must be a SharePoint Online Administrator or a SharePoint Embedded Administrator to run the cmdlet.
58
-
59
-
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell).
41
+
This cmdlet connects a SharePoint Administrator or SharePoint Embedded Administrator to the SharePoint admin center.
42
+
Only one SharePoint Online service connection is supported per Windows PowerShell session and per geo within an organization. If you run this cmdlet again, the existing connection is automatically disconnected and replaced with the new connection. The PowerShell session then uses the newly specified administrator context.
43
+
Delegated partner administrators must switch connections when managing multiple organizations within the same PowerShell session.
44
+
To run this cmdlet, you must be a SharePoint Administrator or SharePoint Embedded Administrator.
45
+
For permission requirements and the latest guidance, see the [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) documentation.
Example 1 shows how a SharePoint Online administrator with credential admin@contoso.comconnects to a SharePoint Online Administration Center that has the URL `<https://contoso-admin.sharepoint.com.>`
55
+
This example shows how a SharePoint Administrator using the `admin@contoso.com` account connects to the SharePoint admin center at `https://contoso-admin.sharepoint.com`.
Example 2 shows how a SharePoint Online administrator with a username and password connects to a SharePoint Online Administration Center that has the URL `<https://contoso-admin.sharepoint.com.>`
66
+
This example shows how a SharePoint Administrator connects to the SharePoint admin center at `https://contoso-admin.sharepoint.com` by creating a credential object from a username and password.
Authenticates using the Microsoft Authentication Library (MSAL) and connects to the SharePoint Online Administration Center on successful authentication.
97
+
98
+
This example authenticates by using the Microsoft Authentication Library (MSAL) and connects to the SharePoint admin center after authentication succeeds.
Connect to the SharePoint Online service using an app identity and a certificate object.
124
+
125
+
This example connects to the SharePoint admin center by using an app identity and a certificate object.
135
126
136
127
## PARAMETERS
137
128
138
129
### -AuthenticationUrl
139
130
140
131
> Applicable: SharePoint Online
141
132
142
-
Location for Microsoft Entra Cross-Tenant Authentication service. Can be optionally used if non-default Cross-Tenant Authentication Service is used.
133
+
Specifies the URL for the Microsoft Entra cross-tenant authentication service. Use this parameter when a non-default cross-tenant authentication endpoint is required.
Specifies the credentials to use to connect. If no credentials are presented, a dialog will prompt for the credentials. The credentials must be those of a SharePoint Online administrator who can access the SharePoint Online Administration Center site.
271
+
Specifies the credentials used to connect. If you do not provide credentials, you are prompted to enter them. The credentials must belong to an administrator who has access to the SharePoint admin center.
> 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.
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).
388
+
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-ProgressAction`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
[Introduction to the SharePoint Online management shell](https://support.office.com/en-us/article/introduction-to-the-sharepoint-online-management-shell-c16941c3-19b4-4710-8056-34c034493429)
403
+
[Introduction to the SharePoint Online management shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)
411
404
412
405
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
0 commit comments