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
# Get started with SharePoint Online Management Shell #
7
7
8
-
To get started using PowerShell to manage SharePoint Online, you need to install the latest SharePoint Online Management Shell is installed and connect to SharePoint Online.
8
+
To get started using PowerShell to manage SharePoint Online, you need to install the SharePoint Online Management Shell and connect to SharePoint Online.
9
9
10
10
Install the SharePoint Online Management Shell by downloading and running the [SharePoint Online Management Shell](https://go.microsoft.com/fwlink/p/?LinkId=255251) or installing the module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell/). Once installed, the module is available for use, and you do not need to install it again until you need features introduced in a later version. For example, you may need to install a new version for TLS 1.2 negotiation after October 2018.
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:
12
+
First you can check if you have already installed the 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:
18
+
If your operating system is using PowerShell 5 or newer, you can also install the SharePoint Online Management Shell by running the following command in administrative mode:
If you don't have administrative privileges on the system, you can install the SharePoint Online Management Shell only for the current user by running the following command:
To ensure you have all available cmdlets, you should always make sure the module is up to date. You can update the SharePoint Online Management Shell by running the following command in administrative mode:
25
31
26
32
```powershell
@@ -31,28 +37,24 @@ To open the SharePoint Online Management Shell command prompt, from the **Start*
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:
42
+
1.Run the following command at the SharePoint Online Management Shell command prompt:
37
43
38
44
```powershell
39
-
$adminUPN="<the full email address of a SharePoint administrator account, example: [email protected]>"
40
-
$orgName="<name of your Office 365 organization, example: contosotoycompany>"
41
-
$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.
46
49
47
50
To assign a user the SharePoint admin role, see [Assign admin roles](https://docs.microsoft.com/microsoft-365/admin/add-users/assign-admin-roles) or [Assign admin roles to Microsoft 365 user accounts with PowerShell](https://docs.microsoft.com/microsoft-365/enterprise/assign-roles-to-user-accounts-with-microsoft-365-powershell).
48
51
49
-
## To connect with multifactor authentication (MFA) ##
52
+
## To connect with multifactor authentication (MFA)
50
53
51
-
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:
54
+
1.Run the following command at the SharePoint Online Management Shell command prompt:
52
55
53
56
```powershell
54
-
$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**.
0 commit comments