Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit 848a123

Browse files
committed
Release 2.12.21
1 parent 19af056 commit 848a123

File tree

5 files changed

+131
-73
lines changed

5 files changed

+131
-73
lines changed

data/pnpPsModel.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,9 +1096,14 @@
10961096
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPLargeListOperationStatus.html"
10971097
},
10981098
{
1099-
"name": "Get-PnPLibraryFileVersionExpirationReportJobProgress",
1100-
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPLibraryFileVersionExpirationReportJobProgress.md",
1101-
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPLibraryFileVersionExpirationReportJobProgress.html"
1099+
"name": "Get-PnPLibraryFileVersionBatchDeleteJobStatus",
1100+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPLibraryFileVersionBatchDeleteJobStatus.md",
1101+
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPLibraryFileVersionBatchDeleteJobStatus.html"
1102+
},
1103+
{
1104+
"name": "Get-PnPLibraryFileVersionExpirationReportJobStatus",
1105+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPLibraryFileVersionExpirationReportJobStatus.md",
1106+
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPLibraryFileVersionExpirationReportJobStatus.html"
11021107
},
11031108
{
11041109
"name": "Get-PnPList",
@@ -1416,9 +1421,14 @@
14161421
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteDesignTask.html"
14171422
},
14181423
{
1419-
"name": "Get-PnPSiteFileVersionExpirationReportJobProgress",
1420-
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPSiteFileVersionExpirationReportJobProgress.md",
1421-
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteFileVersionExpirationReportJobProgress.html"
1424+
"name": "Get-PnPSiteFileVersionBatchDeleteJobStatus",
1425+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPSiteFileVersionBatchDeleteJobStatus.md",
1426+
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteFileVersionBatchDeleteJobStatus.html"
1427+
},
1428+
{
1429+
"name": "Get-PnPSiteFileVersionExpirationReportJobStatus",
1430+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPSiteFileVersionExpirationReportJobStatus.md",
1431+
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteFileVersionExpirationReportJobStatus.html"
14221432
},
14231433
{
14241434
"name": "Get-PnPSiteGroup",
@@ -1471,9 +1481,9 @@
14711481
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicy.html"
14721482
},
14731483
{
1474-
"name": "Get-PnPSiteVersionPolicyProgress",
1475-
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPSiteVersionPolicyProgress.md",
1476-
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicyProgress.html"
1484+
"name": "Get-PnPSiteVersionPolicyStatus",
1485+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Get-PnPSiteVersionPolicyStatus.md",
1486+
"docs": "https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicyStatus.html"
14771487
},
14781488
{
14791489
"name": "Get-PnPStorageEntity",
@@ -3475,6 +3485,11 @@
34753485
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Uninstall-PnPApp.md",
34763486
"docs": "https://pnp.github.io/powershell/cmdlets/Uninstall-PnPApp.html"
34773487
},
3488+
{
3489+
"name": "Unlock-PnPSensitivityLabelEncryptedFile",
3490+
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Unlock-PnPSensitivityLabelEncryptedFile.md",
3491+
"docs": "https://pnp.github.io/powershell/cmdlets/Unlock-PnPSensitivityLabelEncryptedFile.html"
3492+
},
34783493
{
34793494
"name": "Unpublish-PnPApp",
34803495
"url": "https://raw.githubusercontent.com/pnp/powershell/dev/documentation/Unpublish-PnPApp.md",

data/samples.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,29 @@
17371737
"Set-PnPList"
17381738
]
17391739
},
1740+
{
1741+
"title": "M365 Consultant's Script Kit - Change Retention Labels",
1742+
"url": "https://pnp.github.io/script-samples/spo-change-retention-labels/README.html",
1743+
"rawUrl": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-change-retention-labels/README.md",
1744+
"description": "This will scan every SharePoint site (or OneDrive URL) and look at every item. When it does this, it will check the retention label for said item. ",
1745+
"image": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-change-retention-labels/assets/preview.png",
1746+
"type": "powershell",
1747+
"tabTag": "#tab/pnpps",
1748+
"authors": [
1749+
{
1750+
"name": "Nick Brattoli",
1751+
"pictureUrl": "https://github.com/nbrattoli.png"
1752+
}
1753+
],
1754+
"tags": [
1755+
"Connect-PnPOnline",
1756+
"Get-PnPField",
1757+
"Get-PnPList",
1758+
"Get-PnPListItem",
1759+
"Set-PnPList",
1760+
"Set-PnPListItem"
1761+
]
1762+
},
17401763
{
17411764
"title": "Scan for potential inaccessible site collection homepages",
17421765
"url": "https://pnp.github.io/script-samples/spo-check-unaccessable-homepages/README.html",
@@ -2179,6 +2202,24 @@
21792202
"m365 logout"
21802203
]
21812204
},
2205+
{
2206+
"title": "Query advanced CSOM properties with PnP PowerShell",
2207+
"url": "https://pnp.github.io/script-samples/spo-csom-properties/README.html",
2208+
"rawUrl": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-csom-properties/README.md",
2209+
"description": "This sample shows how to query CSOM properties with PnP PowerShell by writing C# code, importing it in PowerShell and sending a single Invoke-PnPQuery request",
2210+
"image": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-csom-properties/assets/preview.png",
2211+
"type": "powershell",
2212+
"tabTag": "#tab/pnpps",
2213+
"authors": [
2214+
{
2215+
"name": "Giacomo Pozzoni",
2216+
"pictureUrl": "https://github.com/jackpoz.png"
2217+
}
2218+
],
2219+
"tags": [
2220+
"Invoke-PnPQuery"
2221+
]
2222+
},
21822223
{
21832224
"title": "Delete orphaned temporary pages from Site Pages",
21842225
"url": "https://pnp.github.io/script-samples/spo-delete-orphaned-temporary-sitepages/README.html",
@@ -4259,6 +4300,25 @@
42594300
"Set-PnPListItem"
42604301
]
42614302
},
4303+
{
4304+
"title": "Locate orphaned Termstore Terms",
4305+
"url": "https://pnp.github.io/script-samples/spo-locate-orphaned-termstore-terms/README.html",
4306+
"rawUrl": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-locate-orphaned-termstore-terms/README.md",
4307+
"description": "Locate all instances of Managed Metadata where the connected Termstore Term has been deleted",
4308+
"image": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/spo-locate-orphaned-termstore-terms/assets/preview.png",
4309+
"type": "powershell",
4310+
"tabTag": "#tab/pnpps",
4311+
"authors": [
4312+
{
4313+
"name": "Kasper Larsen",
4314+
"pictureUrl": "https://github.com/kasperbolarsen.png"
4315+
}
4316+
],
4317+
"tags": [
4318+
"Get-PnPTerm",
4319+
"Invoke-PnPSearchQuery"
4320+
]
4321+
},
42624322
{
42634323
"title": "SharePoint Modern Page Publishing Report",
42644324
"url": "https://pnp.github.io/script-samples/spo-modern-page-publishing-report/README.html",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pnp-powershell-extension",
33
"displayName": "PnP PowerShell extension",
44
"description": "This extension provides functionalities that may be helpful when creating scripts using PnP PowerShell like docs, commands list, sample gallery and many more.",
5-
"version": "2.12.20",
5+
"version": "2.12.21",
66
"publisher": "adamwojcikit",
77
"author": {
88
"name": "Adam"

snippets/pnpPowerShell.code-snippets

Lines changed: 44 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
},
279279
"Add-PnPFolderUserSharingLink": {
280280
"body": [
281-
"Add-PnPFolderUserSharingLink -Folder $1 -Type $2 -Users $3"
281+
"Add-PnPFolderUserSharingLink -Folder $1 -ShareType $2 -Users $3"
282282
],
283283
"description": "Creates a new user sharing link for a folder.",
284284
"prefix": [
@@ -1091,12 +1091,13 @@
10911091
},
10921092
"Copy-PnPFolder": {
10931093
"body": [
1094-
"Copy-PnPFolder "
1094+
"Copy-PnPFolder -SourceUrl $1 -TargetUrl $2"
10951095
],
10961096
"description": [
1097-
"Copies a folder or file to a different location. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Notice that if copying between sites or to a subsite you cannot specify a target filename, only a folder name.",
1097+
"Copies a folder or file to a different location within SharePoiint. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Notice that if copying between sites or to a subsite you cannot specify a target filename, only a folder name.",
10981098
"Copying files and folders is bound to some restrictions. You can find more on it here: https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#moving-and-copying-across-sites",
1099-
"https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#moving-and-copying-across-sites"
1099+
"https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#moving-and-copying-across-sites",
1100+
"It can also accommodate copying an entire folder with all its files and optionally even subfolders and files from a local path onto SharePoint Online."
11001101
],
11011102
"prefix": [
11021103
"Copy-PnPFolder"
@@ -2210,13 +2211,22 @@
22102211
"Get-PnPLargeListOperationStatus"
22112212
]
22122213
},
2213-
"Get-PnPLibraryFileVersionExpirationReportJobProgress": {
2214+
"Get-PnPLibraryFileVersionBatchDeleteJobStatus": {
2215+
"body": [
2216+
"Get-PnPLibraryFileVersionBatchDeleteJobStatus -Identity $1"
2217+
],
2218+
"description": "This cmdlet allows retrieval of the progress of deleting existing file versions on the document library.",
2219+
"prefix": [
2220+
"Get-PnPLibraryFileVersionBatchDeleteJobStatus"
2221+
]
2222+
},
2223+
"Get-PnPLibraryFileVersionExpirationReportJobStatus": {
22142224
"body": [
2215-
"Get-PnPLibraryFileVersionExpirationReportJobProgress -Identity $1 -ReportUrl $2"
2225+
"Get-PnPLibraryFileVersionExpirationReportJobStatus -Identity $1 -ReportUrl $2"
22162226
],
22172227
"description": "Gets the status for a file version usage report generation job for a document library.",
22182228
"prefix": [
2219-
"Get-PnPLibraryFileVersionExpirationReportJobProgress"
2229+
"Get-PnPLibraryFileVersionExpirationReportJobStatus"
22202230
]
22212231
},
22222232
"Get-PnPList": {
@@ -2842,13 +2852,22 @@
28422852
"Get-PnPSiteDesignTask"
28432853
]
28442854
},
2845-
"Get-PnPSiteFileVersionExpirationReportJobProgress": {
2855+
"Get-PnPSiteFileVersionBatchDeleteJobStatus": {
28462856
"body": [
2847-
"Get-PnPSiteFileVersionExpirationReportJobProgress -ReportUrl $1"
2857+
"Get-PnPSiteFileVersionBatchDeleteJobStatus "
2858+
],
2859+
"description": "This cmdlet allows retrieval of the progress of deleting existing file versions on the site.",
2860+
"prefix": [
2861+
"Get-PnPSiteFileVersionBatchDeleteJobStatus"
2862+
]
2863+
},
2864+
"Get-PnPSiteFileVersionExpirationReportJobStatus": {
2865+
"body": [
2866+
"Get-PnPSiteFileVersionExpirationReportJobStatus -ReportUrl $1"
28482867
],
28492868
"description": "Gets the status for a file version usage report generation job for a site collection.",
28502869
"prefix": [
2851-
"Get-PnPSiteFileVersionExpirationReportJobProgress"
2870+
"Get-PnPSiteFileVersionExpirationReportJobStatus"
28522871
]
28532872
},
28542873
"Get-PnPSiteGroup": {
@@ -2948,13 +2967,13 @@
29482967
"Get-PnPSiteVersionPolicy"
29492968
]
29502969
},
2951-
"Get-PnPSiteVersionPolicyProgress": {
2970+
"Get-PnPSiteVersionPolicyStatus": {
29522971
"body": [
2953-
"Get-PnPSiteVersionPolicyProgress "
2972+
"Get-PnPSiteVersionPolicyStatus "
29542973
],
29552974
"description": "This cmdlet allows retrieval of the progress of setting version policy for existing document libraries on the site.",
29562975
"prefix": [
2957-
"Get-PnPSiteVersionPolicyProgress"
2976+
"Get-PnPSiteVersionPolicyStatus"
29582977
]
29592978
},
29602979
"Get-PnPStorageEntity": {
@@ -6354,52 +6373,7 @@
63546373
"body": [
63556374
"Set-PnPSiteVersionPolicy "
63566375
],
6357-
"description": [
6358-
"EXAMPLE 1",
6359-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true",
6360-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true",
6361-
"Set AutoExpiration file version trim mode for a site. The new document libraries will use this version setting. Also create a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning.",
6362-
"EXAMPLE 2",
6363-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200",
6364-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200",
6365-
"Set ExpireAfter file version trim mode for a site. The new document libraries will use this version setting. Also create a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning.",
6366-
"EXAMPLE 3",
6367-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0",
6368-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0",
6369-
"Set NoExpiration file version trim mode for a site. The new document libraries will use this version setting. Also create a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning.",
6370-
"EXAMPLE 4",
6371-
"Set-PnPSiteVersionPolicy -InheritFromTenant",
6372-
"Set-PnPSiteVersionPolicy -InheritFromTenant",
6373-
"Clear the file version setting on a site. The new document libraries will use the tenant level setting.",
6374-
"EXAMPLE 5",
6375-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries",
6376-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries",
6377-
"Set AutoExpiration file version trim mode for a site. The new document libraries will use this version setting.",
6378-
"EXAMPLE 6",
6379-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries",
6380-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries",
6381-
"Set ExpireAfter file version trim mode for a site. The new document libraries will use this version setting.",
6382-
"EXAMPLE 7",
6383-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries",
6384-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries",
6385-
"Set NoExpiration file version trim mode for a site. The new document libraries will use this version setting.",
6386-
"EXAMPLE 8",
6387-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries",
6388-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries",
6389-
"Create a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning.",
6390-
"EXAMPLE 9",
6391-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries",
6392-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries",
6393-
"Create a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning.",
6394-
"EXAMPLE 10",
6395-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries",
6396-
"Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries",
6397-
"Create a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning.",
6398-
"EXAMPLE 11",
6399-
"Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries",
6400-
"Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries",
6401-
"Cancel the existing request which sets the file version trim mode for existing document libraries on a site."
6402-
],
6376+
"description": "Configures the versioning policy for a SharePoint Online site collection.",
64036377
"prefix": [
64046378
"Set-PnPSiteVersionPolicy"
64056379
]
@@ -6426,7 +6400,7 @@
64266400
"body": [
64276401
"Set-PnPStructuralNavigationCacheWebState -IsEnabled $1"
64286402
],
6429-
"description": "The Set-PnPStructuralNavigationCacheWebState cmdlet can be used to enable or disable caching for a webs in a site collection. If the WebUrl parameter has not been specified the currently connected to site will be used.",
6403+
"description": "The Set-PnPStructuralNavigationCacheWebState cmdlet can be used to enable or disable caching for a web. If the WebUrl parameter has not been specified the currently connected to web will be used.",
64306404
"prefix": [
64316405
"Set-PnPStructuralNavigationCacheWebState"
64326406
]
@@ -6483,7 +6457,7 @@
64836457
"body": [
64846458
"Set-PnPTeamsTab -Team $1 -Channel $2"
64856459
],
6486-
"description": "Allows to update Teams Tab settings.",
6460+
"description": "Allows to update Teams tab settings.",
64876461
"prefix": [
64886462
"Set-PnPTeamsTab"
64896463
]
@@ -6868,6 +6842,15 @@
68686842
"Uninstall-PnPApp"
68696843
]
68706844
},
6845+
"Unlock-PnPSensitivityLabelEncryptedFile": {
6846+
"body": [
6847+
"Unlock-PnPSensitivityLabelEncryptedFile -Url $1 -JustificationText $2"
6848+
],
6849+
"description": "It removes encryption on a Sensitivity label encrypted file in SharePoint Online.",
6850+
"prefix": [
6851+
"Unlock-PnPSensitivityLabelEncryptedFile"
6852+
]
6853+
},
68716854
"Unpublish-PnPApp": {
68726855
"body": [
68736856
"Unpublish-PnPApp "

0 commit comments

Comments
 (0)