Skip to content

Commit d2b6bad

Browse files
committed
Update connect-sharepoint-online.md
Formatting fixes
1 parent 0af1098 commit d2b6bad

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

sharepoint/docs-conceptual/sharepoint-online/connect-sharepoint-online.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Get started with the SharePoint Online Management Shell
3+
ms.service: sharepoint-powershell
34
---
45

56
# Get started with SharePoint Online Management Shell #
@@ -10,33 +11,32 @@ Install the SharePoint Online Management Shell by downloading and running the [S
1011

1112
First you can check if you have already installed SharePoint Online Management Shell by running the following command in administrative mode in PowerShell.
1213

13-
```ps
14+
```powershell
1415
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
1516
```
1617

1718
If your operating system is using PowerShell 5 or newer, you can install the SharePoint Online Management Shell also by running the following command in administrative mode.
1819

19-
```ps
20+
```powershell
2021
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
2122
```
2223

2324
To open the SharePoint Online Management Shell command prompt, from the **Start** screen, type **sharepoint**, and then click **SharePoint Online Management Shell**.
2425

25-
<br />
26+
<br/>
2627

2728
> [!Video https://www.youtube.com/embed/TMzHAWEQjlk]
2829
2930
## To connect with a user name and password ##
3031

3132
1. Fill in the values for the **$adminUPN** and **$orgName** variables (replacing all the text between the quotes, including the < and > characters), and then run the following commands at the SharePoint Online Management Shell command prompt:
3233

33-
```
34-
$adminUPN="<the full email address of a SharePoint administrator account, example: [email protected]>"
35-
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
36-
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
37-
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
38-
39-
```
34+
```powershell
35+
$adminUPN="<the full email address of a SharePoint administrator account, example: [email protected]>"
36+
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
37+
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
38+
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
39+
```
4040

4141
2. When prompted with the Windows PowerShell credential request dialog box, type the password for the SharePoint admin account.
4242

@@ -46,10 +46,11 @@ To assign a user the SharePoint admin role, see [Assign admin roles](/microsoft-
4646

4747
1. Fill in the value for the **$orgName** variable (replacing all the text between the quotes, including the < and > characters), and then run the following commands at the SharePoint Online Management Shell command prompt:
4848

49-
```
50-
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
51-
Connect-SPOService -Url https://$orgName-admin.sharepoint.com
52-
```
49+
```powershell
50+
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
51+
Connect-SPOService -Url https://$orgName-admin.sharepoint.com
52+
```
53+
5354
2. When prompted with the **Microsoft SharePoint Online Management Shell** dialog box, type the account name and password for a SharePoint administrator account, and then click **Sign in**.
5455

5556
3. Follow the instructions in the **Microsoft SharePoint Online Management Shell** dialog box to provide the additional authentication information, such as a verification code, and then click **Sign in**.

0 commit comments

Comments
 (0)