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: .github/workflows/closestaleissues.yml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,5 @@ jobs:
13
13
stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days'
This module is a successor of the [PnP-PowerShell](https://github.com/pnp/pnp-powershell) module. The original cmdlets only work on Windows and Windows PowerShell and supports SharePoint On-Premises (2013, 2016 and 2019) and SharePoint Online. This version of the cmdlets is cross-platform (e.g. it works on Windows, MacOS and Linux) however will only support SharePoint Online. Going forward will only be **actively maintaining the cross-platform PnP PowerShell** module.
9
+
This module is a successor of the [PnP-PowerShell](https://github.com/pnp/pnp-powershell) module. The original cmdlets only work on Windows and Windows PowerShell and supports SharePoint On-Premises (2013, 2016 and 2019) and SharePoint Online. This version of the cmdlets is cross-platform (e.g. it works on Windows, MacOS and Linux) however will only support SharePoint Online. Going forward we will only be **actively maintaining the cross-platform PnP PowerShell** module.
10
10
11
11
For more information about installing or upgrading to this module, please refer to the documentation at https://pnp.github.io/powershell/articles/index.html
* ManageLists permission on the current site or the content type hub site.
17
+
18
+
Adds published content types from content type hub site to current site. If the content type already exists on the current site then the latest published version of the content type will be synced to the site.
This will add the content types with the ids '0x0101' and '0x01' to the current site. Latest published version of these content types will be synced if they were already present in the current site.
40
+
41
+
## PARAMETERS
42
+
43
+
### -Connection
44
+
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
45
+
46
+
```yaml
47
+
Type: PnPConnection
48
+
Parameter Sets: (All)
49
+
50
+
Required: False
51
+
Position: Named
52
+
Default value: None
53
+
Accept pipeline input: False
54
+
Accept wildcard characters: False
55
+
```
56
+
57
+
### -ContentTypes
58
+
The list of content type ids present in content type hub site that are required to be added/synced to the current site.
59
+
60
+
```yaml
61
+
Type: List<String>
62
+
Parameter Sets: (All)
63
+
64
+
Required: True
65
+
Position: Named
66
+
Default value: None
67
+
Accept pipeline input: False
68
+
Accept wildcard characters: False
69
+
```
70
+
## RELATED LINKS
71
+
72
+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
Connects to on-premises SharePoint 2013, 2016 or 2019 site with the current user's on-premises Windows credential (e.g.
179
-
domain\user).
178
+
Connects to on-premises SharePoint 2013, 2016 or 2019 site with the current user's on-premises Windows credential (e.g. domain\user).
180
179
This option is only supported for being able to transform on-premises classic wiki, webpart, blog and publishing pages into modern pages in a SharePoint Online site.
181
180
Although other PnP cmdlets might work as well, they're officially not supported for being used in an on-premises context.
182
181
See http://aka.ms/sharepoint/modernization/pages for more details on page transformation.
@@ -338,6 +337,22 @@ Accept pipeline input: False
338
337
Accept wildcard characters: False
339
338
```
340
339
340
+
### -CurrentCredentials
341
+
Use credentials of the currently logged in user. Applicable exclusively when connecting to on premises SharePoint Server via PnP.
Copies a folder named MyDocs in the document library called Documents located in the current site to the root folder of the library named Documents in the site collection otherproject.
31
+
Copies a folder named MyProjectFiles in the document library called Documents located in the current site to the root folder of the library named Documents in the site collection otherproject. If a folder named MyProjectFiles already exists, it will overwrite it.
32
32
33
33
### EXAMPLE 2
34
34
```powershell
@@ -39,10 +39,10 @@ Copies a file named company.docx located in a document library called Shared Doc
Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it won't perform the copy.
45
+
Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it won't perform the copy. Only the latest version of the file will be copied and its history will be discarded.
46
46
47
47
### EXAMPLE 4
48
48
```powershell
@@ -70,7 +70,7 @@ Copies a file named company.docx located in a document library called Documents
Copies a file named company.docx located in a document library called Documents to the document library named Document in a subsite named Subsite keeping the file name.
73
+
Copies a file named company.docx located in a document library called Documents to the document library named Documents in a subsite named Subsite keeping the file name.
If provided, only the latest version of the document will be copied and its history will be discared. If not provided, all historical versions will be copied along.
125
+
If provided, only the latest version of the document will be copied and its history will be discarded. If not provided, all historical versions will be copied.
0 commit comments