Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ms.reviewer:

## SYNOPSIS

Connects a SharePoint Online administrator to a SharePoint Online connection (the SharePoint Online Administration Center).
Connects a SharePoint Online administrator or SharePoint Embedded administrator to a SharePoint Online connection (the SharePoint Online Administration Center).
This cmdlet must be run before any other SharePoint Online cmdlets can run.

## SYNTAX
Expand All @@ -36,18 +36,18 @@ Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPi

## DESCRIPTION

The `Connect-SPOService` cmdlet connects the SharePoint Online administrator or the SharePoint Embedded administrator to the SharePoint Online Administration Center.
The `Connect-SPOService` cmdlet connects a SharePoint Online administrator or 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.
Running the `Connect-SPOService` cmdlet twice implicitly disconnects the previous connection.
The Windows PowerShell session will be set to serve the new SharePoint Online administrator specified.
The Windows PowerShell session will be set to serve the new SharePoint Online administrator or SharePoint Embedded administrator specified.

A delegated partner administrator has to swap connections for different organizations within the same Windows PowerShell session.

You must be a SharePoint Online administrator or a SharePoint Embedded administrator to run the cmdlet.
You must be a SharePoint Online administrator or 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).
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?view=sharepoint-ps).

## EXAMPLES

Expand All @@ -57,7 +57,7 @@ For permissions and the most current information about Windows PowerShell for Sh
Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com
```

Example 1 shows how a SharePoint Online administrator with credential admin@contoso.com connects to a SharePoint Online Administration Center that has the URL `<https://contoso-admin.sharepoint.com.>`
Example 1 shows how a SharePoint Online administrator or SharePoint Embedded administrator with credential admin@contoso.com connects to a SharePoint Online Administration Center that has the URL `<https://contoso-admin.sharepoint.com.>`

### -----------------------EXAMPLE 2-----------------------------

Expand All @@ -68,7 +68,7 @@ $cred = New-Object -TypeName System.Management.Automation.PSCredential -argument
Connect-SPOService -Url https://contoso-admin.sharepoint.com -Credential $cred
```

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.>`
Example 2 shows how a SharePoint Online administrator or SharePoint Embedded administrator with a username and password connects to a SharePoint Online Administration Center that has the URL `<https://contoso-admin.sharepoint.com.>`

### --------------------`---EXAMPLE 3-----------------------------

Expand Down Expand Up @@ -138,7 +138,7 @@ Accept wildcard characters: False

### -Credential

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.
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 or SharePoint Embedded administrator who can access the SharePoint Online Administration Center site.

```yaml
Type: CredentialCmdletPipeBind
Expand Down Expand Up @@ -226,13 +226,13 @@ Accept wildcard characters: False

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).
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](https://go.microsoft.com/fwlink/?LinkID=113216).


## RELATED LINKS

[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)

[Getting started with SharePoint Online Management Shell](https://learn.microsoft.com/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps)
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps)

[Disconnect-SPOService](Disconnect-SPOService.md)