Skip to content

Commit 3365a67

Browse files
authored
Merge pull request MicrosoftDocs#260 from tseward/patch-38
Update Copy-SPContentTypes.md
2 parents 3044090 + a3eb840 commit 3365a67

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Copy-SPContentTypes.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
external help file:
3-
applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
3+
applicable: SharePoint Server 2013, SharePoint Server 2016
44
title: Copy-SPContentTypes
55
schema: 2.0.0
66
---
77

88
# Copy-SPContentTypes
99

1010
## SYNOPSIS
11-
{{Fill in the Synopsis}}
11+
Specifies content types for replicating from on-premises to SharePoint Online (SPO) environment.
1212

1313
## SYNTAX
1414

@@ -19,27 +19,29 @@ Copy-SPContentTypes [-AssignmentCollection <SPAssignmentCollection>] [-AuthEndpo
1919
```
2020

2121
## DESCRIPTION
22-
{{Fill in the Description}}
22+
This cmdlet is used in hybrid scenarios with SharePoint Online to copy Content Types from an on-premises farm to SharePoint Online.
2323

2424
## EXAMPLES
2525

2626
### Example 1
2727
```
28-
PS C:\> {{ Add example code here }}
28+
PS C:\>Copy-SPContentTypes -LocalSiteUrl http://localsite/ -LocalTermStoreName "managed metadata service application proxy" -RemoteSiteUrl https://contoso.sharepoint.com/ -ContentTypeNames @("ContentTypeA", "ContentTypeB") -Credential (Get-Credential)
2929
```
3030

31-
{{ Add example description here }}
31+
This example migrates the specified content types named: ContentTypeA, ContentTypeB on the local site http://localsite/ whose term store named "managed metadata service application proxy" to the hub site of remote site https://contoso.sharepoint.com/. If the remote site is a hub site, the migration target will be itself.
3232

3333
## PARAMETERS
3434

3535
### -AssignmentCollection
36-
{{Fill AssignmentCollection Description}}
36+
Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
37+
38+
**NOTE**: When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.
3739

3840
```yaml
3941
Type: SPAssignmentCollection
4042
Parameter Sets: (All)
4143
Aliases:
42-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
44+
Applicable: SharePoint Server 2013, SharePoint Server 2016
4345

4446
Required: False
4547
Position: Named
@@ -49,13 +51,13 @@ Accept wildcard characters: False
4951
```
5052
5153
### -AuthEndpoint
52-
{{Fill AuthEndpoint Description}}
54+
Specifies the AuthEndpoint to use, but not the default one.
5355
5456
```yaml
5557
Type: String
5658
Parameter Sets: (All)
5759
Aliases:
58-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
60+
Applicable: SharePoint Server 2013, SharePoint Server 2016
5961

6062
Required: False
6163
Position: Named
@@ -65,13 +67,13 @@ Accept wildcard characters: False
6567
```
6668
6769
### -ContentTypeNames
68-
{{Fill ContentTypeNames Description}}
70+
Specifies the content type names to be migrated. Can be in a form of an array.
6971
7072
```yaml
7173
Type: String[]
7274
Parameter Sets: (All)
7375
Aliases:
74-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
76+
Applicable: SharePoint Server 2013, SharePoint Server 2016
7577

7678
Required: True
7779
Position: Named
@@ -81,13 +83,13 @@ Accept wildcard characters: False
8183
```
8284
8385
### -Credential
84-
{{Fill Credential Description}}
86+
Specifies the administrator account credential of the target SharePoint Online site.
8587
8688
```yaml
8789
Type: PSCredential
8890
Parameter Sets: (All)
8991
Aliases:
90-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
92+
Applicable: SharePoint Server 2013, SharePoint Server 2016
9193

9294
Required: True
9395
Position: Named
@@ -97,13 +99,13 @@ Accept wildcard characters: False
9799
```
98100
99101
### -GraphApiEndPoint
100-
{{Fill GraphApiEndPoint Description}}
102+
Specifies the GraphApiEndpoint to use, but not the default one.
101103
102104
```yaml
103105
Type: String
104106
Parameter Sets: (All)
105107
Aliases:
106-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
108+
Applicable: SharePoint Server 2013, SharePoint Server 2016
107109

108110
Required: False
109111
Position: Named
@@ -113,13 +115,13 @@ Accept wildcard characters: False
113115
```
114116
115117
### -LocalSiteUrl
116-
{{Fill LocalSiteUrl Description}}
118+
Specifies the migration source. Can be a local site or a local hubsite.
117119
118120
```yaml
119121
Type: Uri
120122
Parameter Sets: (All)
121123
Aliases:
122-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
124+
Applicable: SharePoint Server 2013, SharePoint Server 2016
123125

124126
Required: True
125127
Position: Named
@@ -129,13 +131,13 @@ Accept wildcard characters: False
129131
```
130132
131133
### -LocalTermStoreName
132-
{{Fill LocalTermStoreName Description}}
134+
Specifies the name of the local term store of the local site.
133135
134136
```yaml
135137
Type: String
136138
Parameter Sets: (All)
137139
Aliases:
138-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
140+
Applicable: SharePoint Server 2013, SharePoint Server 2016
139141

140142
Required: True
141143
Position: Named
@@ -145,13 +147,13 @@ Accept wildcard characters: False
145147
```
146148
147149
### -RemoteSiteUrl
148-
{{Fill RemoteSiteUrl Description}}
150+
Specifies the migration target. You can input a remote site url or remote hub site url, both will be processed to be the hub site url.
149151
150152
```yaml
151153
Type: Uri
152154
Parameter Sets: (All)
153155
Aliases:
154-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
156+
Applicable: SharePoint Server 2013, SharePoint Server 2016
155157

156158
Required: True
157159
Position: Named

0 commit comments

Comments
 (0)