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/docs-conceptual/sharepoint-online/connect-sharepoint-online.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
title: Get started with the SharePoint Online Management Shell
3
+
ms.service: sharepoint-powershell
3
4
---
4
5
5
6
# Get started with SharePoint Online Management Shell #
@@ -10,33 +11,32 @@ Install the SharePoint Online Management Shell by downloading and running the [S
10
11
11
12
First you can check if you have already installed SharePoint Online Management Shell by running the following command in administrative mode in PowerShell.
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.
To open the SharePoint Online Management Shell command prompt, from the **Start** screen, type **sharepoint**, and then click **SharePoint Online Management Shell**.
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:
32
33
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."
2. When prompted with the Windows PowerShell credential request dialog box, type the password for the SharePoint admin account.
42
42
@@ -46,10 +46,11 @@ To assign a user the SharePoint admin role, see [Assign admin roles](/microsoft-
46
46
47
47
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:
48
48
49
-
```
50
-
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
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**.
54
55
55
56
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