Skip to content

Commit 70b41d1

Browse files
committed
Merge branch 'unlockrecord' of https://github.com/reshmee011/powershell into PR4457
2 parents a49c439 + ff780d3 commit 70b41d1

File tree

77 files changed

+4542
-3685
lines changed

Some content is hidden

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

77 files changed

+4542
-3685
lines changed

.github/workflows/checkdocumentationbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
dotnet-version: 7.x
3434

35-
- run: dotnet tool update -g docfx
35+
- run: dotnet tool install -g docfx --version 2.72.1
3636

3737
- name: Build docs
3838
shell: pwsh

.github/workflows/nightlyrelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ jobs:
7676
- name: Build an image
7777
run: |
7878
VERSION=$(cat ./version.txt)-nightly
79-
docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=lts-alpine-3.17" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-lts-alpine-3.17;
79+
docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.20" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.20;
8080
- name: Tag the image
8181
run: |
8282
VERSION=$(cat ./version.txt)-nightly
83-
docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-lts-alpine-3.17 ${{ secrets.DOCKER_ORG }}/powershell:nightly
83+
docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.20 ${{ secrets.DOCKER_ORG }}/powershell:nightly
8484
- name: Push the image
8585
run: |
8686
VERSION=$(cat ./version.txt)-nightly
8787
docker login -u ${{ secrets.DOCKER_USERNAME }} -p '${{ secrets.DOCKER_PASSWORD }}'
88-
docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-lts-alpine-3.17
88+
docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.20
8989
docker push ${{ secrets.DOCKER_ORG }}/powershell:nightly

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
shell: pwsh
3535
run: |
3636
$securedPassword = ConvertTo-SecureString "${{ secrets.DOCKER_PASSWORD }}" -AsPlainText -Force
37-
./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "lts-alpine-3.17"
37+
./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "alpine-3.20"

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5151
- Added `Get/Set/Remove-PnPUserProfilePhoto` cmdlets to download, upload or remove the profile photo of the specified user.
5252
- Added `New/Get/Remove/Update-PnPTodoList` cmdlets to manage Todo lists.
5353
- Added `Set-PnPFileRetentionLabel` which allows setting a retention label on a file in SharePoint or locking/unlocking it. [#4457](https://github.com/pnp/powershell/pull/4457)
54+
- Added `Get-PnPFileCheckedOut` cmdlet to retrieve all files that are currently checked out in a library [#4682](https://github.com/pnp/powershell/pull/4682)
55+
- Added `Get-PnPTenantPronounsSetting` and `Set-PnPTenantPronounsSetting` cmdlets to manage the availability of using pronouns in the organization [#4660](https://github.com/pnp/powershell/pull/4660)
56+
- Added `HidePeopleWhoHaveListsOpen` parameter to `Set-PnPSite` cmdlet to hide people who simultaneously have lists open [#4699](https://github.com/pnp/powershell/pull/4699)
57+
- Added `-WhoCanShareAllowListInTenant`, `-LegacyBrowserAuthProtocolsEnabled`, `-EnableDiscoverableByOrganizationForVideos`, `-RestrictedAccessControlforSitesErrorHelpLink`, `-Workflow2010Disabled`, `-AllowSharingOutsideRestrictedAccessControlGroups`, `-HideSyncButtonOnDocLib`, `-HideSyncButtonOnODB`, `-StreamLaunchConfig`, `-EnableMediaReactions`, `-ContentSecurityPolicyEnforcement` and `-DisableSpacesActivation` to `Set-PnPTenant` [#4681](https://github.com/pnp/powershell/pull/4681)
5458

5559
### Changed
5660

@@ -79,7 +83,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7983
- `Add-PnPApp` , `Publish-PnPApp` , `Remove-PnPApp` and `Unpublish-PnPApp` now support disabling script settings if tenant app catalog is a no-script site.
8084
- `Send-PnPMail` now throws a warning about the retirement of the SharePoint SendEmail API.
8185
- `Get-PnPCustomAction` now supports a completer for `-Identity` and uses the PnP Core SDK to return custom actions.
82-
- `Set-PnPPropertyBagValue` and `Remove-PnPPropertyBagValue` now toggle the NoScript status of the site to allow setting/removing property bag values.
86+
- `Set-PnPPropertyBagValue` and `Remove-PnPPropertyBagValue` now toggle the NoScript status of the site to allow setting/removing property bag values, but only if the tenant wide `AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled` is not enabled [#4680](https://github.com/pnp/powershell/pull/4680)
8387

8488

8589
### Fixed
@@ -101,7 +105,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
101105
- Fixed `Add-PnPFileSensitivityLabel` cmdlet to allow empty string value to reset file sensitivity label.
102106
- Fix `Connect-PnPOnline` cmdlet not working with On Prem related cmdlets. [#4622](https://github.com/pnp/powershell/pull/4622)
103107
- Fix `Get\Invoke-PnPSiteTemplate` cmdlet not working in vanity domains. [#4630](https://github.com/pnp/powershell/pull/4630)
104-
108+
- Fixed passing a `Get-PnPRecycleBinItem` result or a GUID to `Restore-PnPRecycleBinItem` not working correctly. [#4667](https://github.com/pnp/powershell/pull/4667)
109+
105110
### Removed
106111

107112
- Removed `-LaunchBrowser`, `-NoPopup` and credential based auth on `Register-PnPEntraIDApp` and `Register-PnPEntraIDAppForInteractiveLogin` cmdlets. The default auth method is now Interactive.
@@ -126,6 +131,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
126131

127132
### Contributors
128133

134+
- Stephen Cox [stephen-cox-nzx]
135+
- Marijn Somers [Marijnsomers]
129136
- Janne Holm [jhholm]
130137
- Paul Bullock [pkbullock]
131138
- Arjan Cornelissen [arjancornelissen]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PnP PowerShell
22

3-
**PnP PowerShell** is a .NET 8 based PowerShell Module providing nearly 750 cmdlets that work with Microsoft 365 environments such as SharePoint Online, Microsoft Teams, Microsoft Project, Security & Compliance, Azure Active Directory, and more.
3+
**PnP PowerShell** is a .NET 8 based PowerShell Module providing over 750 cmdlets that work with Microsoft 365 environments such as SharePoint Online, Microsoft Teams, Microsoft Project, Security & Compliance, Entra ID, and more.
44

55
Last version | Last nightly version
66
-------------|---------------------

dependencies.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"Updated": "20241230-024548",
3-
"PnPPowerShell": "7d2c9129f96bbdeb474a1c3c0f726dd1916934be",
4-
"PnPFramework": "6e2e5031215d00f1b2a711a5a91c05f98963fed4",
5-
"PnPCore": "fce75c35a047b38ccf344abb0a6f0dda3302d9a4"
2+
"Updated": "20250122-024505",
3+
"PnPPowerShell": "7323d2359bb9237523d52f7e40062ce01e5a94a6",
4+
"PnPFramework": "812c522d9adb9322db937c413465683e5b5b8214",
5+
"PnPCore": "317449f81705e1491e08828b6841aa093a6ea1d9"
66
}

docker/Publish-UnpublishedImage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $moduleVersions | % {
5656
$plainStringPassword = [System.Net.NetworkCredential]::new("", $DOCKER_PASSWORD).Password;
5757
docker login -u $DOCKER_USERNAME -p "$plainStringPassword";
5858
docker push $DOCKER_ORG/$DOCKER_IMAGE_NAME`:$imageVersion;
59-
if ( $baseImageSuffix -eq "lts-alpine-3.17") {
59+
if ( $baseImageSuffix -eq "alpine-3.20") {
6060
docker image tag $DOCKER_ORG/$DOCKER_IMAGE_NAME`:$imageVersion $DOCKER_ORG/$DOCKER_IMAGE_NAME`:latest;
6161
docker push $DOCKER_ORG/$DOCKER_IMAGE_NAME`:latest;
6262
}

docker/pnppowershell.dockerFile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE_SUFFIX=lts-alpine-3.17
1+
ARG BASE_IMAGE_SUFFIX=alpine-3.20
22
ARG BASE_IMAGE=mcr.microsoft.com/powershell:$BASE_IMAGE_SUFFIX
33
FROM $BASE_IMAGE
44

documentation/Add-PnPOrgAssetsLibrary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ Accept wildcard characters: False
131131
```
132132
133133
### -OrgAssetType
134-
Indicates the type of content in this library. Currently supported values are "ImageDocumentLibrary" and "OfficeTemplateLibrary".
134+
Indicates the type of content in this library.
135135
136136
ImageDocumentLibrary is the default OrgAssetType and is best used for images. You can access the contents of this library from any site or page in the SharePoint filepicker. OfficeTemplateLibrary is the suggested type for Office files and will show up in the UI of all Office desktop apps and Office online in the templates section.
137137
138138
```yaml
139139
Type: OrgAssetType
140140
Parameter Sets: (All)
141-
Accepted values: ImageDocumentLibrary, OfficeTemplateLibrary
141+
Accepted values: ImageDocumentLibrary, OfficeTemplateLibrary, BrandColorsList, BrandFontsLibrary, BrandKitLibrary, OfficeFontLibrary, Undefined
142142

143143
Required: False
144144
Position: Named
@@ -163,4 +163,4 @@ Accept wildcard characters: False
163163
164164
## RELATED LINKS
165165
166-
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
166+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
title: Get-PnPFileCheckedOut
4+
schema: 2.0.0
5+
applicable: SharePoint Online
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPFileCheckedOut.html
8+
---
9+
10+
# Get-PnPFileCheckedOut
11+
12+
## SYNOPSIS
13+
Returns all files that are currently checked out in a library
14+
15+
## SYNTAX
16+
17+
```powershell
18+
Get-PnPFileCheckedOut -List <ListPipeBind> [-Connection <PnPConnection>]
19+
```
20+
21+
## DESCRIPTION
22+
23+
This cmdlet allows to retrieve all files that are currently checked out in a library.
24+
25+
Notice: if this cmdlet would return more then 5,000 results, so 5,000 or more checked out files, it will not work and will throw an error. This is unfortunately a limitation of SharePoint Online and not something that can be fixed in the cmdlet. As long as the number of checked out files is below 5,000, this cmdlet will work as expected, even on document libraries that contain more than 5,000 files.
26+
27+
## EXAMPLES
28+
29+
### EXAMPLE 1
30+
```powershell
31+
Get-PnPFileCheckedOut -List "Documents"
32+
```
33+
34+
Returns all files that are currently checked out in the "Documents" library.
35+
36+
## PARAMETERS
37+
38+
### -Connection
39+
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.
40+
41+
```yaml
42+
Type: PnPConnection
43+
Parameter Sets: (All)
44+
45+
Required: False
46+
Position: Named
47+
Default value: None
48+
Accept pipeline input: False
49+
Accept wildcard characters: False
50+
```
51+
52+
### -List
53+
The list instance, list display name, list url or list id to query for checked out files
54+
55+
```yaml
56+
Type: String
57+
Parameter Sets: (All)
58+
59+
Required: True
60+
Position: 0
61+
Default value: None
62+
Accept pipeline input: True (ByValue)
63+
Accept wildcard characters: False
64+
```
65+
66+
## RELATED LINKS
67+
68+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)

0 commit comments

Comments
 (0)