Skip to content

Commit 87af930

Browse files
authored
Merge pull request MicrosoftDocs#2246 from tseward/patch-15
Update Connect-SPOService.md
2 parents 5468b5e + 9ed2f67 commit 87af930

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Connect-SPOService.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ For permissions and the most current information about Windows PowerShell for Sh
5353
Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential [email protected]
5454
```
5555

56-
Example 1 shows how a SharePoint Online global administrator with credential [email protected] connects to a SharePoint Online Administration Center that has the URL http://contoso-admin.sharepoint.com/.
56+
Example 1 shows how a SharePoint Online global administrator with credential [email protected] connects to a SharePoint Online Administration Center that has the URL http://contoso-admin.sharepoint.com.
5757

5858

5959
### -----------------------EXAMPLE 2-----------------------------
@@ -62,11 +62,18 @@ Example 1 shows how a SharePoint Online global administrator with credential adm
6262
$username = "[email protected]"
6363
$password = "password"
6464
$cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)
65-
Connect-SPOService -Url https://contoso-admin.sharepoint.com/ -Credential $cred
65+
Connect-SPOService -Url https://contoso-admin.sharepoint.com -Credential $cred
6666
```
6767

68-
Example 2 shows how a SharePoint Online global administrator with a username and password connects to a SharePoint Online Administration Center that has the URL http://contoso-admin.sharepoint.com/.
68+
Example 2 shows how a SharePoint Online global administrator with a username and password connects to a SharePoint Online Administration Center that has the URL http://contoso-admin.sharepoint.com.
6969

70+
### -----------------------EXAMPLE 3-----------------------------
71+
72+
```
73+
Connect-SPOService -Url https://contoso-admin.sharepoint.com
74+
```
75+
76+
Prompts for credentials. This is required if the account is using multi-factor authentication.
7077

7178
## PARAMETERS
7279

@@ -178,4 +185,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
178185
179186
[Getting started with SharePoint Online Management Shell](https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps)
180187
181-
[Disconnect-SPOService](Disconnect-SPOService.md)
188+
[Disconnect-SPOService](Disconnect-SPOService.md)

0 commit comments

Comments
 (0)