Skip to content

Commit e34f1e4

Browse files
authored
Merge pull request #6730 from MicrosoftDocs/chrisda
Chrisda to Msater
2 parents a38181b + f2bcf0f commit e34f1e4

File tree

969 files changed

+995
-992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

969 files changed

+995
-992
lines changed

sharepoint/docfx.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"overwrite": [],
5555
"externalReference": [],
5656
"globalMetadata": {
57-
"author" : "techwriter40",
58-
"ms.author" : "kirks",
57+
"author" : "pamgreen-msft",
58+
"ms.author" : "pamgreen",
5959
"manager" : "pamgreen",
6060
"ms.date" : "11/28/2017",
6161
"ms.topic" : "reference",
@@ -69,7 +69,7 @@
6969
"sharepoint-ps/sharepoint-online/*.yml":"sharepoint-powershell"
7070
},
7171
"ms.prod":{
72-
"sharepoint-ps/sharepoint-server/*.yml":"sharepoint-powershell"
72+
"sharepoint-ps/sharepoint-server/*.yml":"sharepoint-2016-powershell"
7373
}
7474
},
7575
"template": [],

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**.

sharepoint/docs-conceptual/sharepoint-online/introduction-sharepoint-online-management-shell.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Intro to SharePoint Online Management Shell
3+
ms.service: sharepoint-powershell
34
---
45

56
# Intro to SharePoint Online Management Shell
@@ -20,14 +21,14 @@ The major and obvious difference is the nouns they use. Every SharePoint Online
2021

2122
SharePoint Online Management Shell commands manage SharePoint settings and site collections, whereas Office 365 commands manage Office 365-level tasks such as users, licenses, organization information, and services. They both manage users and groups. However, Office 365 PowerShell commands manage users and groups for all of the Office 365 services. The SharePoint Online commands manage users and groups only for SharePoint Online.
2223

23-
## Should I use the SharePoint admin center or SharePoint Online PowerShell commands?
24+
## Should I use the SharePoint admin center or SharePoint Online PowerShell commands?
2425

2526
If you are new to Office 365 and SharePoint Online and you have not done much managing of SharePoint sites or users, the SharePoint admin center is a good place to start.
2627

2728
After you get familiar with SharePoint sites and users, try using SharePoint Online PowerShell commands, especially when you want to manage lots of site collections or users.
2829

29-
> [!NOTE]
30-
> For the complete list of SharePoint Online cmdlets, see [SharePoint Online PowerShell](https://docs.microsoft.com/powershell/module/sharepoint-online/?view=sharepoint-ps)
30+
> [!NOTE]
31+
> For the complete list of SharePoint Online cmdlets, see [SharePoint Online PowerShell](https://docs.microsoft.com/powershell/module/sharepoint-online)
3132
3233
## How do I get permissions and set up the environment?
3334

sharepoint/docs-conceptual/sharepoint-server/sharepoint-server-cmdlets.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
---
22
title: SharePoint Server Cmdlets
3+
ms.service: sharepoint-powershell
34
---
45

56
# SharePoint Server Cmdlets
67

78
For a listing of the SharePoint Server cmdlets, see [SharePoint Server cmdlets](xref:SharePointServer)
89

9-
## Accessing PowerShell for SharePoint Server ##
10+
## Accessing PowerShell for SharePoint Server
1011

1112
After you install SharePoint Server, applicable PowerShell cmdlets are available in the SharePoint 2016 Management Shell. You can manage most aspects of SharePoint Server in the SharePoint Management Shell. You can create new site collections, web applications, user accounts, service applications, proxies, and more. Commands that you type in the SharePoint Management Shell return SharePoint objects that are based on the Microsoft .NET Framework. You can apply these objects as input to subsequent commands or store the objects in local variables for later use.
1213

1314
With the SharePoint Management Shell, you do not have to register the snap-in that contains the cmdlets. Registration of the Microsoft.SharePoint.PowerShell.dll module for SharePoint Server cmdlets is automatic, as a result of the **Add-PSSnapin Microsoft.SharePoint.PowerShell** line in the SharePoint.ps1 file that is located in %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\<version>\Config\PowerShell\Registration, where version "15" equals SharePoint Server 2013, and version "16" equals SharePoint Server 2016. To use the PowerShell console, you must register this snap-in manually.
1415

15-
Whether you use the SharePoint Management Shell or the PowerShell console, you can also load additional snap-ins.
16+
Whether you use the SharePoint Management Shell or the PowerShell console, you can also load additional snap-ins.
1617

1718
> [!NOTE]
1819
> The SharePoint Management Shell and the PowerShell console also differ in the use of the **ReuseThread** option, which defines how the threading model is used. The SharePoint Management Shell's use is defined by this line, {Host.Runspace.ThreadOptions = "ReuseThread"}, which is in the SharePoint.ps1 file. For more information, see [PS Thread Options](/dotnet/api/system.management.automation.runspaces.psthreadoptions).
1920
20-
## Permissions ##
21+
## Permissions
2122

2223
Before you can use the Add-SPShellAdmin cmdlet to grant permissions for users to run SharePoint Server cmdlets, verify that you meet all of the following minimum requirements:
2324

@@ -31,15 +32,15 @@ For additional information about PowerShell permissions, see [Add-SPShellAdmin](
3132

3233
If you do not have membership in the **SharePoint_Shell_Access** role or **WSS_Admin_WPG** local group, use the **Add-SPShellAdmin** cmdlet to add the **WSS_Admin_WPG** group in all front-end web servers in the SharePoint farm and the **SharePoint_Shell_Access** role. If the SQL Server database does not have a **SharePoint_Shell_Access** role, the role is automatically created when you run the **Add-SPShellAdmin** cmdlet. After you run the **Add-SPShellAdmin** cmdlet, users can run SharePoint PowerShell cmdlets in a multiple-server farm environment.
3334

34-
**NOTE:** When you install SharePoint Server, the user account from which you run the installation is granted the appropriate permissions to run PowerShell cmdlets. If any users have not been added to run a PowerShell cmdlet, you can use the **Add-SPShellAdmin** cmdlet to add them.
35+
> [!NOTE]
36+
> When you install SharePoint Server, the user account from which you run the installation is granted the appropriate permissions to run PowerShell cmdlets. If any users have not been added to run a PowerShell cmdlet, you can use the **Add-SPShellAdmin** cmdlet to add them.
3537
3638
To see a list of all of the **SPShellAdmin** cmdlets, from a PowerShell command prompt, type _Get-Command -Noun SPShellAdmin_.
3739

38-
## Scripts and execution policies ##
40+
## Scripts and execution policies
3941

40-
Although you can use Microsoft PowerShell to perform a single administrative task, you can also use a script to automate a series of tasks. A script is a text file that contains one or more Microsoft PowerShell commands. Microsoft PowerShell scripts have a .ps1 file name extension.
42+
Although you can use Microsoft PowerShell to perform a single administrative task, you can also use a script to automate a series of tasks. A script is a text file that contains one or more Microsoft PowerShell commands. Microsoft PowerShell scripts have a .ps1 file name extension.
4143

4244
To run scripts, the minimum required execution policy for SharePoint Server is **RemoteSigned**, although the default policy for PowerShell is Restricted. If the policy is left as Restricted, the SharePoint Management Shell will change the policy for PowerShell to RemoteSigned. This means that you must select **Run as administrator** to start the SharePoint Management Shell with elevated administrative permission. This change will apply to all PowerShell sessions. For more information, see [ExecutionPolicy Enumeration](/dotnet/api/microsoft.powershell.executionpolicy).
4345

4446
For additional information about scripts and execution policies, see [about_scripts](/powershell/module/microsoft.powershell.core/about/about_scripts) and [About Execution Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies).
45-

sharepoint/sharepoint-ps/sharepoint-online/Add-SPOHubToHubAssociation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Add-SPOHubToHubAssociation
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

sharepoint/sharepoint-ps/sharepoint-online/Add-SPOSiteCollectionAppCatalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Add-SPOSiteCollectionAppCatalog
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOBuiltInDesignPackageVisibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Get-SPOBuiltInDesignPackageVisibility
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOCrossGeoMoveReport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Get-SPOCrossGeoMoveReport
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

sharepoint/sharepoint-ps/sharepoint-online/Get-SPODataEncryptionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Get-SPODataEncryptionPolicy
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOHomeSite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applicable: SharePoint Online
66
title: Get-SPOHomeSite
77
schema: 2.0.0
88
author: techwriter40
9-
ms.author: kirks
9+
ms.author: pamgreen
1010
ms.reviewer:
1111
---
1212

0 commit comments

Comments
 (0)