diff --git a/.github/workflows/builddocsite.yml b/.github/workflows/builddocsite.yml index e59068bbd..3e08d07ed 100644 --- a/.github/workflows/builddocsite.yml +++ b/.github/workflows/builddocsite.yml @@ -4,9 +4,14 @@ on: workflow_dispatch: schedule: - cron: '0 2 * * *' + +permissions: read-all + jobs: documentation: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Wait for actions to finish uses: softprops/turnstyle@v1 diff --git a/.github/workflows/buildexternalhelp.yml b/.github/workflows/buildexternalhelp.yml index 3037db7d9..304d1e618 100644 --- a/.github/workflows/buildexternalhelp.yml +++ b/.github/workflows/buildexternalhelp.yml @@ -7,6 +7,8 @@ on: - dev paths: 'documentation/**' +permissions: read-all + jobs: build: diff --git a/.github/workflows/buildpr.yml b/.github/workflows/buildpr.yml index 1b8d3ef2d..a4514903d 100644 --- a/.github/workflows/buildpr.yml +++ b/.github/workflows/buildpr.yml @@ -7,14 +7,12 @@ on: - dev paths: - 'src/**' - #push: - # branches: - # - dev - # paths: - # - 'src/**' + +permissions: read-all + jobs: build_dev_branch: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout PnP.Framework uses: actions/checkout@v4 @@ -55,5 +53,5 @@ jobs: run: dotnet restore -p:PnPFrameworkPath="..\..\..\pnpframework\src\lib\" -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\" working-directory: powershell/src - name: Build PnP.PowerShell - run: dotnet build --configuration Debug --no-restore -p:PnPFrameworkPath="/home/runner/work/powershell/powershell/pnpframework/src/lib/" -p:PnPCoreSdkPath="/home/runner/work/powershell/powershell/pnpcore/src/sdk/" + run: dotnet build --configuration Debug --no-restore -p:PnPFrameworkPath="/Users/runner/work/powershell/powershell/pnpframework/src/lib/" -p:PnPCoreSdkPath="/Users/runner/work/powershell/powershell/pnpcore/src/sdk/" working-directory: powershell/src diff --git a/.github/workflows/checkdocumentationbuild.yml b/.github/workflows/checkdocumentationbuild.yml index 715732106..e52a2ce25 100644 --- a/.github/workflows/checkdocumentationbuild.yml +++ b/.github/workflows/checkdocumentationbuild.yml @@ -7,6 +7,9 @@ on: paths: - 'documentation/**' - 'pages/**' + +permissions: read-all + jobs: docfx: diff --git a/.github/workflows/cleanupnightlyreleases.yml b/.github/workflows/cleanupnightlyreleases.yml index b5e820457..6f1e47531 100644 --- a/.github/workflows/cleanupnightlyreleases.yml +++ b/.github/workflows/cleanupnightlyreleases.yml @@ -4,6 +4,8 @@ on: workflow_dispatch: schedule: - cron: '0 3 * * *' + +permissions: read-all jobs: # This workflow contains a single job called "cleanup" diff --git a/.github/workflows/closestaleissues.yml b/.github/workflows/closestaleissues.yml index 85976c118..182738b32 100644 --- a/.github/workflows/closestaleissues.yml +++ b/.github/workflows/closestaleissues.yml @@ -3,6 +3,8 @@ on: schedule: - cron: "30 1 * * *" +permissions: read-all + jobs: stale: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..e222851e1 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,62 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ dev ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ dev ] + schedule: + - cron: '36 19 * * 2' + +permissions: read-all + + +jobs: + analyze: + name: Analyze + runs-on: windows-latest + permissions: + security-events: write + contents: read + + strategy: + fail-fast: false + matrix: + language: [ 'csharp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Setup .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 6.x + 7.x + - name: Install dependencies + run: dotnet restore + working-directory: src/Commands + - name: Build ⚙ + run: dotnet build PnP.PowerShell.csproj --nologo --configuration debug --no-incremental --verbosity diagnostic --disable-build-servers --force + working-directory: src/Commands + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/nightlyrelease.yml b/.github/workflows/nightlyrelease.yml index ea5d203aa..e027e5cce 100644 --- a/.github/workflows/nightlyrelease.yml +++ b/.github/workflows/nightlyrelease.yml @@ -4,6 +4,9 @@ on: workflow_dispatch: schedule: - cron: '30 2 * * *' + +permissions: read-all + jobs: build: @@ -73,14 +76,14 @@ jobs: - name: Build an image run: | VERSION=$(cat ./version.txt)-nightly - docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.14" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14; + docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=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-alpine-3.17; - name: Tag the image run: | VERSION=$(cat ./version.txt)-nightly - docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14 ${{ secrets.DOCKER_ORG }}/powershell:nightly + docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.17 ${{ secrets.DOCKER_ORG }}/powershell:nightly - name: Push the image run: | VERSION=$(cat ./version.txt)-nightly docker login -u ${{ secrets.DOCKER_USERNAME }} -p '${{ secrets.DOCKER_PASSWORD }}' - docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14 + docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.17 docker push ${{ secrets.DOCKER_ORG }}/powershell:nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 559f5a4b2..50c406890 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: workflow_dispatch: schedule: - cron: '30 3 * * *' + +permissions: read-all + jobs: publish-docker-windows-2022: runs-on: windows-2022 @@ -31,4 +34,4 @@ jobs: shell: pwsh run: | $securedPassword = ConvertTo-SecureString "${{ secrets.DOCKER_PASSWORD }}" -AsPlainText -Force - ./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "alpine-3.14" + ./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "alpine-3.17" diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 000000000..85e75cd5b --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,58 @@ +name: Scorecard analysis workflow +on: + push: + # Only the default branch is supported. + branches: + - dev + schedule: + # Weekly on Saturdays. + - cron: '30 1 * * 6' + +permissions: read-all + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + # Needed for Code scanning upload + security-events: write + # Needed for GitHub OIDC token if publish_results is true + id-token: write + + steps: + - name: "Checkout code" + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + with: + ref: ${{ github.event.inputs.branch }} + path: ${{ github.sha }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: "Run analysis" + uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 + with: + results_file: results.sarif + results_format: sarif + # Scorecard team runs a weekly scan of public GitHub repos, + # see https://github.com/ossf/scorecard#public-data. + # Setting `publish_results: true` helps us scale by leveraging your workflow to + # extract the results instead of relying on our own infrastructure to run scans. + # And it's free for you! + publish_results: true + + # Upload the results as artifacts (optional). Commenting out will disable + # uploads of run results in SARIF format to the repository Actions tab. + # https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts + - name: "Upload artifact" + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + # Commenting out will disable upload of results to your repo's Code Scanning dashboard + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@8f596b4ae3cb3c588a5c46780b86dd53fef16c52 # v3.25.2 + with: + sarif_file: results.sarif diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..d5724d4ad --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dotnet.defaultSolution": "src/PnP.PowerShell.sln" +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 16ecb6447..ad28b706a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,76 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added +- Added `New-PnPLibraryFileVersionBatchDeleteJob` and `New-PnPSiteFileVersionBatchDeleteJob` cmdlets to queue a job for deleting the file versions based on age. [#3799](https://github.com/pnp/powershell/pull/3799) +- Added `New-PnPLibraryFileVersionExpirationReportJob` and `New-PnPSiteFileVersionExpirationReportJob` cmdlets to queue a job for generating a file version expiration report for all files in a document library or site. [#3799](https://github.com/pnp/powershell/pull/3799) +- Added `Remove-PnPLibraryFileVersionBatchDeleteJob` and `Remove-PnPSiteFileVersionBatchDeleteJob` cmdlets to cancel the job for deleting file versions based on age. [#3799](https://github.com/pnp/powershell/pull/3799) +- Added `Get-PnPLibraryFileVersionExpirationReportJobProgress` and `Get-PnPSiteFileVersionExpirationReportJobProgress` cmdlets to getting the progress for the job for file versions based on age. [#3799](https://github.com/pnp/powershell/pull/3799) +- Added `-UseVersionExpirationReport` parameter to `Get-PnPFileVersion` cmdlet to get the version expiration report for a single file. [#3799](https://github.com/pnp/powershell/pull/3799) +- Added `-DelayDenyAddAndCustomizePagesEnforcement` parameter to `Set-PnPTenant` cmdlet which allows delay of the change to custom script set on the Tenant until mid-November 2024. [#3815](https://github.com/pnp/powershell/pull/3815) +- Added additional permissions for Graph application permission validate sets. [#3835](https://github.com/pnp/powershell/issues/3835) +- Added the ability to upload entire local folders with files and optionally subfolders to SharePoint Online into 'Copy-PnPFolder' [#3850](https://github.com/pnp/powershell/pull/3850) +- Added `LoopDefaultSharingLinkRole`, `DefaultShareLinkScope`, `DefaultShareLinkRole`, `LoopDefaultSharingLinkScope` and `DefaultLinkToExistingAccessReset` parameters to `Set-PnPTenant` cmdlet. [#3874](https://github.com/pnp/powershell/pull/3874) +- Added `Unlock-PnPSensitivityLabelEncryptedFile` which allows the encryption to be removed from a file [#3864](https://github.com/pnp/powershell/pull/3864) +- Added `Get-PnPLibraryFileVersionBatchDeleteJobStatus` and `Get-PnPSiteFileVersionBatchDeleteJobStatus` to check on the status of applying file based version expiration based on age on a library and site level [#3828](https://github.com/pnp/powershell/pull/3828) +- Added support for `Get-PnPSiteCollectionAppCatalog` and `Get-PnPTenantSite` to be used with vanity domain tenants [#3895](https://github.com/pnp/powershell/pull/3895) +- Added support for using vanity domain tenants with `Grant-PnPTenantServicePrincipalPermission`, `Revoke-PnPTenantServicePrincipalPermission`, `Set-PnPWebTheme`, `Invoke-PnPListDesign`, `Set-PnPSite`, `Add-PnPSiteDesignTask`, `Get-PnPSiteDesignRun`, `Get-PnPSiteDesignTask` and `Invoke-PnPSiteDesign` cmdlets [#3898](https://github.com/pnp/powershell/pull/3898) +- Added `-Detailed` to `Get-PnPMicrosoft365Group` which allows retrieval of the AllowExternalSenders, IsSubscribedByMail and AutoSubscribeNewMembers properties of the group [#3958](https://github.com/pnp/powershell/pull/3958) +- Added `-RequireSenderAuthenticationEnabled` and `-AutoSubscribeNewMembers` to `Set-PnPMicrosoft365Group` which allows setting these properties on a group [#3958](https://github.com/pnp/powershell/pull/3958) +- Added `Get-PnPContainerType` cmdlet to retrieve the list of Container Types created for a SharePoint Embedded Application in the tenant. [#3946](https://github.com/pnp/powershell/pull/3946) +- Added `-RecycleBinRetentionPeriod`,`-OneDriveBlockGuestsAsSiteAdmin`,`-OneDriveDefaultShareLinkRole`,`-OneDriveDefaultShareLinkScope` and `-OneDriveDefaultLinkToExistingAccess` parameters to the `Set-PnPTenant` cmdlet. [#3977](https://github.com/pnp/powershell/pull/3977) +- Added `Get-PnPTenantRestrictedSearchMode` and `Set-PnPTenantRestrictedSearchMode` cmdlets to enable and set up Restricted SharePoint Search. [#3976](https://github.com/pnp/powershell/pull/3976) +- Added `Get-PnPTenantInternalSetting` cmdlet to retrieve internal tenant settings not exposed via CSOM SDK. [#3902](https://github.com/pnp/powershell/pull/3902) +- Added `Add-PnPHomeSite` cmdlet to add a home site to your tenant. [#3989](https://github.com/pnp/powershell/pull/3989) +- Added `Get-PnPPageSchedulingEnabled` cmdlet to get the state of the modern page schedule feature in the library. [PR](https://github.com/pnp/powershell/commit/4ac757fc2072233529b38b2b39c36ea6b941e003) +- Added `-IncludeSensitivityLabels` parameter to `Get-PnPMicrosoft365Group` cmdlet to retrieve sensitivity labels assigned to M365 Groups. [#3991](https://github.com/pnp/powershell/pull/3991) +- Added `Get-PnPFileSensitivityLabelInfo` cmdlet to retrieve sensitivity label information about a file in a SharePoint site. [#3994](https://github.com/pnp/powershell/pull/3994) +- Added `Get-PnPTenantRestrictedSearchAllowedList` cmdlet to retrieve existing list of URLs in the allowed list. [#3997](https://github.com/pnp/powershell/pull/3997) +- Added `-IsSharePointAddInsDisabled` to the `Set-PnPTenant` cmdlet which allows disabling SharePoint Add-ins [#4032](https://github.com/pnp/powershell/pull/4032) +- Added `-RestrictContentOrgWideSearch`, `-ReadOnlyForUnmanagedDevices` and `-InheritVersionPolicyFromTenant` parameters to `Set-PnPTenantSite` cmdlet. [#4024](https://github.com/pnp/powershell/pull/4024) + +### Fixed + +- Fixed `Get-PnPChangeLog -Version 2.3.0` not returning the changelog for that version [#3804](https://github.com/pnp/powershell/pull/3804) +- Fixed `Get-PnPFlow` cmdlet throwing time out error due to incorrect URL used in HTTP request. [#3820](https://github.com/pnp/powershell/pull/3820) +- Fixed `Copy-PnPList` cmdlet to better handle lookup columns. [#3870](https://github.com/pnp/powershell/pull/3870) +- Fixed NullDereferenceException happening when an exception is logged in PnPConnectedCmdlet but the connection passed through -Connection parameter is not the last one. [#3885](https://github.com/pnp/powershell/pull/3885) +- Fixed NullDereferenceException in `Get-PnPUserProfileProperty` cmdlet when the user profile doesn't exist, showing a better error message. [#3891](https://github.com/pnp/powershell/pull/3891) +- Fixed the dev build process on Mac OS devices. [#3907](https://github.com/pnp/powershell/pull/3907) +- Fixed `Get-PnPContainer` cmdlet to also handle pagination in case of large no. of containers in a tenant. [#3990](https://github.com/pnp/powershell/pull/3990) +- Fixed `New-PnPTeamsTeam` cmdlet to better handle error specifically such as `Conflict (409): Team already exists`. [#3992](https://github.com/pnp/powershell/pull/3992) +- Fixed `Remove-PnPTeamsChannel` issue where it was throwing incorrect exception. [#4036](https://github.com/pnp/powershell/pull/4036) + +### Changed +- Renamed `Get-PnPSiteFileVersionExpirationReportJobProgress` to `Get-PnPSiteFileVersionExpirationReportJobStatus` [#3828](https://github.com/pnp/powershell/pull/3828) +- Renamed `Get-PnPSiteVersionPolicyProgress` to `Get-PnPSiteVersionPolicyStatus` [#3828](https://github.com/pnp/powershell/pull/3828) +- `Remove-PnPGroupMember` cmdlet now supports removing members from pipeline. [#3955](https://github.com/pnp/powershell/pull/3955) +- Changed `Set-PnPTenantCdnPolicy` cmdlet to allow PolicyValue parameter to be an empty string or $null, while still being mandatory. [#3937](https://github.com/pnp/powershell/pull/3937) +- Marked `UserVoiceForFeedbackEnabled` as obsolete in `Set-PnPTenant` cmdlet as Microsoft doesn't support this. [#3985](https://github.com/pnp/powershell/pull/3985) +- `Get-PnPTenantSite` cmdlet now returns additional properties like `ArchiveStatus`, `EnableAutoExpirationVersionTrim` and many more. [#3987](https://github.com/pnp/powershell/pull/3987) +- `Add-PnPListFoldersToSiteTemplate` cmdlet now wont export RoleBindings which are `Limited Access`. It caused issues while applying the template. [#3918](https://github.com/pnp/powershell/pull/3918) + +### Removed + +- Removed `UserVoiceForFeedbackEnabled` property from `Get-PnPTenant` as it is deprecated. [PR](https://github.com/pnp/powershell/commit/190ef864d2e20249658eff93feadf0effb24882d) + ### Contributors +- Maxime Hazebroucq [mhazebroucq] +- Paolo Pialorsi [PaoloPia] +- Marc Studer [Studermarc] +- Mark Gort [markgort86] +- Christian Veenhuis [ChVeen] +- Tobias Maestrini [tmaestrini] +- WCONFR [WCONFR] +- Jenny Wu [msjennywu] +- Reshmee Auckloo [reshme011] +- Aimery Thomas [a1mery] +- Arleta Wanat [PowershellScripts] +- Giacomo Pozzoni [jackpoz] +- [blarrywangmsft] +- Koen Zomers [koenzomers] +- Erwin van Hunen [erwinvanhunen] + ## [2.4.0] ### Added diff --git a/LICENSE b/LICENSE index d538572f0..4c33e0456 100644 --- a/LICENSE +++ b/LICENSE @@ -1,10 +1,6 @@ -Microsoft 365 Patterns and Practices (PnP) +MIT License -The MIT License (MIT) - -Copyright (c) Microsoft Corporation - -All rights reserved. +Copyright (c) 2024 Microsoft 365 & Power Platform Community Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 1b1b5f13a..a593e4065 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Last version | Last nightly version -------------|--------------------- [![PnP.PowerShell](https://img.shields.io/powershellgallery/v/pnp.powershell)](https://www.powershellgallery.com/packages/PnP.PowerShell/) | [![PnP.PowerShell](https://img.shields.io/powershellgallery/v/pnp.powershell?include_prereleases)](https://www.powershellgallery.com/packages/PnP.PowerShell/) +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/pnp/powershell/badge)](https://scorecard.dev/viewer/?uri=github.com/pnp/powershell) + 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 (i.e it works on Windows, MacOS and Linux) but it will only support SharePoint Online. Going forward we will only be **actively maintaining the cross-platform PnP PowerShell** module. For more information about installing or upgrading to this module, please refer to [the documentation](https://pnp.github.io/powershell/articles/index.html). diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..faea84100 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,18 @@ +# Security Policy + +## Disclaimer + +**ALL CODE IN THIS REPOSITORY IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** + +--- + +## Supported Versions + +The only supported version is the latest one. + + +## Reporting a Vulnerability + +To report a vulnerability, please [create an issue](https://github.com/pnp/powershell/issues/new/choose) and tag the issue as `vulnerability-suspected`. + +Upon receipt of the issue, we will flag it as having a suspected vulnerability and request the support from the community to identify and resolve, if possible, the issue. diff --git a/build/Build-Debug.ps1 b/build/Build-Debug.ps1 index 97a389f35..0743f5e00 100644 --- a/build/Build-Debug.ps1 +++ b/build/Build-Debug.ps1 @@ -126,10 +126,13 @@ if ($LASTEXITCODE -eq 0) { # Load the Module in a new PowerShell session $scriptBlock = { $documentsFolder = [environment]::getfolderpath("mydocuments"); - - if ($IsLinux -or $isMacOS) { + + if ($IsLinux) { $destinationFolder = "$documentsFolder/.local/share/powershell/Modules/PnP.PowerShell" } + elseif ($IsMacOS) { + $destinationFolder = "~/.local/share/powershell/Modules/PnP.PowerShell" + } else { $destinationFolder = "$documentsFolder/PowerShell/Modules/PnP.PowerShell" } diff --git a/build/Build-Nightly.ps1 b/build/Build-Nightly.ps1 index 9ff88fdf2..c5de5bd71 100644 --- a/build/Build-Nightly.ps1 +++ b/build/Build-Nightly.ps1 @@ -5,20 +5,16 @@ $existing_pnppowershell_hash = Get-Content ./pnppowershell_hash.txt -Raw -ErrorA $existing_pnpframework_hash = Get-Content ./pnpframework_hash.txt -Raw -ErrorAction SilentlyContinue $pnpframework_response = Invoke-RestMethod -Method Get -Uri "$($env:GITHUB_API_URL)/repos/pnp/pnpframework/branches/dev" -SkipHttpErrorCheck -if($null -ne $pnpframework_response) -{ - if($null -ne $pnpframework_response.commit) - { +if ($null -ne $pnpframework_response) { + if ($null -ne $pnpframework_response.commit) { $pnpframework_hash = $pnpframework_response.commit.sha } } $existing_pnpcoresdk_hash = Get-Content ./pnpcoresdk_hash.txt -Raw -ErrorAction SilentlyContinue $pnpcoresdk_response = Invoke-RestMethod -Method Get -Uri "$($env:GITHUB_API_URL)/repos/pnp/pnpcore/branches/dev" -SkipHttpErrorCheck -if($null -ne $pnpcoresdk_response) -{ - if($null -ne $pnpcoresdk_response.commit) - { +if ($null -ne $pnpcoresdk_response) { + if ($null -ne $pnpcoresdk_response.commit) { $pnpcoresdk_hash = $pnpcoresdk_response.commit.sha } } @@ -28,22 +24,19 @@ if($null -ne $pnpcoresdk_response) #Write-host "Latest PnP Framework Commit hash $pnpframework_hash" -ForegroundColor Yellow #Write-Host "Stored PnP Framework Commit hash: $existing_pnpframework_hash" -ForegroundColor Yellow -if ($existing_pnppowershell_hash -ne $pnppowershell_hash) -{ +if ($existing_pnppowershell_hash -ne $pnppowershell_hash) { Write-Host "PnP PowerShell is newer" Set-Content ./pnppowershell_hash.txt -Value $pnppowershell_hash -NoNewline -Force $runPublish = $true } -if($runPublish -eq $false -and $existing_pnpframework_hash -ne $pnpframework_hash) -{ +if ($runPublish -eq $false -and $existing_pnpframework_hash -ne $pnpframework_hash) { Write-Host "PnP Framework is newer" Set-Content ./pnpframework_hash.txt -Value $pnpframework_hash -NoNewline -Force $runPublish = $true } -if($runPublish -eq $false -and $existing_pnpcoresdk_hash -ne $pnpcoresdk_hash) -{ +if ($runPublish -eq $false -and $existing_pnpcoresdk_hash -ne $pnpcoresdk_hash) { Write-Host "PnP Core SDK is newer" Set-Content ./pnpcoresdk_hash.txt -Value $pnpcoresdk_hash -NoNewLine -Force $runPublish = $true @@ -80,10 +73,13 @@ if ($runPublish -eq $true) { $documentsFolder = [environment]::getfolderpath("mydocuments"); - if ($IsLinux -or $isMacOS) { + if ($IsLinux) { $destinationFolder = "$documentsFolder/.local/share/powershell/Modules/PnP.PowerShell" } - else { + elseif ($IsMacOS) { + $destinationFolder = "~/.local/share/powershell/Modules/PnP.PowerShell" + } + else { $destinationFolder = "$documentsFolder/PowerShell/Modules/PnP.PowerShell" } @@ -125,9 +121,12 @@ if ($runPublish -eq $true) { $scriptBlock = { $documentsFolder = [environment]::getfolderpath("mydocuments"); - if ($IsLinux -or $isMacOS) { + if ($IsLinux) { $destinationFolder = "$documentsFolder/.local/share/powershell/Modules/PnP.PowerShell" } + elseif ($IsMacOS) { + $destinationFolder = "~/.local/share/powershell/Modules/PnP.PowerShell" + } else { $destinationFolder = "$documentsFolder/PowerShell/Modules/PnP.PowerShell" } diff --git a/docker/Publish-UnpublishedImage.ps1 b/docker/Publish-UnpublishedImage.ps1 index d15912860..520b397ad 100644 --- a/docker/Publish-UnpublishedImage.ps1 +++ b/docker/Publish-UnpublishedImage.ps1 @@ -56,7 +56,7 @@ $moduleVersions | % { $plainStringPassword = [System.Net.NetworkCredential]::new("", $DOCKER_PASSWORD).Password; docker login -u $DOCKER_USERNAME -p "$plainStringPassword"; docker push $DOCKER_ORG/$DOCKER_IMAGE_NAME`:$imageVersion; - if ( $baseImageSuffix -eq "alpine-3.14") { + if ( $baseImageSuffix -eq "alpine-3.17") { docker image tag $DOCKER_ORG/$DOCKER_IMAGE_NAME`:$imageVersion $DOCKER_ORG/$DOCKER_IMAGE_NAME`:latest; docker push $DOCKER_ORG/$DOCKER_IMAGE_NAME`:latest; } diff --git a/docker/README.md b/docker/README.md index 7083a7c98..ce675fc8f 100644 --- a/docker/README.md +++ b/docker/README.md @@ -17,7 +17,7 @@ $securedPassword = ConvertTo-SecureString $DOCKER_PASSWORD -AsPlainText -Force ```powershell $securedPassword = ConvertTo-SecureString $DOCKER_PASSWORD -AsPlainText -Force -./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell $DOCKER_USERNAME $DOCKER_ORG powershell $securedPassword $false "root" "alpine-3.14" +./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell $DOCKER_USERNAME $DOCKER_ORG powershell $securedPassword $false "root" "alpine-3.16.5" ``` # Publish with prereleases manually in Windows @@ -52,10 +52,10 @@ docker push "$DOCKER_ORG/powershell:$VERSION-nanoserver-1809" ```bash VERSION=$(cat ./version.txt)-nightly -docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.14" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag $DOCKER_ORG/powershell:$VERSION-alpine-3.14; -docker image tag $DOCKER_ORG/powershell:$VERSION-alpine-3.14 $DOCKER_ORG/powershell:nightly +docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.16.5" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag $DOCKER_ORG/powershell:$VERSION-alpine-3.16.5; +docker image tag $DOCKER_ORG/powershell:$VERSION-alpine-3.16.5 $DOCKER_ORG/powershell:nightly docker login -u $DOCKER_USERNAME -p "$DOCKER_PASSWORD" -docker push $DOCKER_ORG/powershell:$VERSION-alpine-3.14 +docker push $DOCKER_ORG/powershell:$VERSION-alpine-3.16.5 docker push $DOCKER_ORG/powershell:nightly ``` diff --git a/docker/hub.docker.md b/docker/hub.docker.md index 09af2105b..6dc00c92c 100644 --- a/docker/hub.docker.md +++ b/docker/hub.docker.md @@ -12,19 +12,19 @@ Last version | Last nightly version * latest: The latest stable image - * alpine-3.14 + * alpine-3.16.5 * `docker pull m365pnp/powershell` or `docker pull m365pnp/powershell:latest` ### Nightly * nightly: The latest night image - * alpine-3.14 + * alpine-3.16.5 * `docker pull m365pnp/powershell:nightly` ## About this image -**PnP PowerShell** is a .NET 6/ .NET Framework 4.6.2 based PowerShell Module providing over 650 cmdlets that work with Microsoft 365 environments such as SharePoint Online, Microsoft Teams, Microsoft Project, Security & Compliance, Azure Active Directory, and more. +**PnP PowerShell** is a .NET 6 based PowerShell Module providing over 650 cmdlets that work with Microsoft 365 environments such as SharePoint Online, Microsoft Teams, Microsoft Project, Security & Compliance, Azure Active Directory, and more. ## Usage examples @@ -33,13 +33,13 @@ Last version | Last nightly version Starting an isolated container with PnP.PowerShell module installed: ```powershell -docker run --rm -it m365pnp/powershell:1.11.0-nanoserver-1809 +docker run --rm -it m365pnp/powershell:2.4.0-nanoserver-1809 ``` Starting a PnP.PowerShell container with the current directory mounted: ```powerShell -docker run --rm -it -v ${PWD}:c:/app -w c:/app m365pnp/powershell:1.11.0-nanoserver-1809 +docker run --rm -it -v ${PWD}:c:/app -w c:/app m365pnp/powershell:2.4.0-nanoserver-1809 ``` ### Linux-container @@ -66,16 +66,16 @@ Currently supported platforms: * nanoserver-ltsc2022 * nanoserver-1809 -* alpine-3.14 +* alpine-3.16.5 Tag name examples: * 1.8.0-nanoserver-ltsc2022 * 1.9.0-nanoserver-ltsc2022 * 1.10.0-nanoserver-1809 -* 1.10.0-alpine-3.14 +* 1.10.0-alpine-3.16.5 * 1.10.26-nightly-nanoserver-ltsc2022 -* 1.11.0-alpine-3.14 +* 1.11.0-alpine-3.16.5 * 1.11.0-nanoserver-ltsc2022 To find the version numbers please visit diff --git a/docker/pnppowershell.dockerFile b/docker/pnppowershell.dockerFile index 1c3144156..2d89d6f6e 100644 --- a/docker/pnppowershell.dockerFile +++ b/docker/pnppowershell.dockerFile @@ -1,4 +1,4 @@ -ARG BASE_IMAGE_SUFFIX=alpine-3.14 +ARG BASE_IMAGE_SUFFIX=alpine-3.17 ARG BASE_IMAGE=mcr.microsoft.com/powershell:lts-7.2-$BASE_IMAGE_SUFFIX FROM $BASE_IMAGE diff --git a/documentation/Add-PnPFolderUserSharingLink.md b/documentation/Add-PnPFolderUserSharingLink.md index 3de02d8c3..9a4fba312 100644 --- a/documentation/Add-PnPFolderUserSharingLink.md +++ b/documentation/Add-PnPFolderUserSharingLink.md @@ -15,7 +15,7 @@ Creates a sharing link to share a folder with a list of specified users. ## SYNTAX ```powershell -Add-PnPFolderUserSharingLink -Folder -Type -Users [-Connection ] +Add-PnPFolderUserSharingLink -Folder -ShareType -Users [-Connection ] ``` ## DESCRIPTION @@ -33,7 +33,7 @@ This will create an user sharing link for `Test` folder in the `Shared Documents ### EXAMPLE 2 ```powershell -Add-PnPFolderUserSharingLink -Folder "/sites/demo/Shared Documents/Test" -Type Edit -Users "john@contoso.onmicrosoft.com","jane@contoso.onmicrosoft.com" +Add-PnPFolderUserSharingLink -Folder "/sites/demo/Shared Documents/Test" -ShareType Edit -Users "john@contoso.onmicrosoft.com","jane@contoso.onmicrosoft.com" ``` This will create an user sharing link for `Test` folder in the `Shared Documents` library which will be editable by specified users in the organization. diff --git a/documentation/Add-PnPHomeSite.md b/documentation/Add-PnPHomeSite.md new file mode 100644 index 000000000..33efa6f97 --- /dev/null +++ b/documentation/Add-PnPHomeSite.md @@ -0,0 +1,73 @@ +--- +Module Name: PnP.PowerShell +title: Add-PnPHomeSite +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Add-PnPHomeSite.html +--- + +# Add-PnPHomeSite + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +Adds the home site to your tenant. The home site needs to be a communication site. + +## SYNTAX + +```powershell +Add-PnPHomeSite -HomeSiteUrl [-Connection ] +``` + +## DESCRIPTION + +Adds a home site to the current tenant. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Add-PnPHomeSite -HomeSiteUrl "https://yourtenant.sharepoint.com/sites/myhome" +``` + +Adds a home site with the provided site collection url + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HomeSiteUrl +The url of the site to set as the home site + +```yaml +Type: String +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) +[Set up a home site for your organization](https://learn.microsoft.com/sharepoint/home-site) +[Customize and edit the Viva Connections home experience](https://learn.microsoft.com/en-us/viva/connections/edit-viva-home) diff --git a/documentation/Add-PnPOrgAssetsLibrary.md b/documentation/Add-PnPOrgAssetsLibrary.md index f14d5dc65..774cb3534 100644 --- a/documentation/Add-PnPOrgAssetsLibrary.md +++ b/documentation/Add-PnPOrgAssetsLibrary.md @@ -15,7 +15,7 @@ title: Add-PnPOrgAssetsLibrary * SharePoint: Access to the SharePoint Tenant Administration site -Adds a given document library as a organizational asset source +Adds a given document library as an organizational asset source ## SYNTAX diff --git a/documentation/Add-PnPTeamsTab.md b/documentation/Add-PnPTeamsTab.md index 45e3684e6..fe7c445a4 100644 --- a/documentation/Add-PnPTeamsTab.md +++ b/documentation/Add-PnPTeamsTab.md @@ -16,6 +16,7 @@ title: Add-PnPTeamsTab * Microsoft Graph API: Group.ReadWrite.All Adds a tab to an existing Channel. Note that the `-ContentUrl` is a 'dynamic' parameter and will only be valid for tab types that support it. +Also, some `-Type` values are not configurable due to Microsoft Graph API limitations (i.e.: PowerBI). ## SYNTAX diff --git a/documentation/Add-PnPTenantSequence.md b/documentation/Add-PnPTenantSequence.md index 78f0badad..7f4f5d208 100644 --- a/documentation/Add-PnPTenantSequence.md +++ b/documentation/Add-PnPTenantSequence.md @@ -21,7 +21,7 @@ Add-PnPTenantSequence -Template -Sequence -Sequence -Name [-Id ] [-Lcid ] +Add-PnPTermToTerm -ParentTermId -Name [-Id ] [-Lcid ] [-LocalCustomProperties ] [-TermStore ] [-Connection ] @@ -29,7 +29,7 @@ This cmdlet adds a new taxonomy term as a child term to an existing term. ### EXAMPLE 1 ```powershell -Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{"Department"="Marketing"} +Add-PnPTermToTerm -ParentTermId 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{"Department"="Marketing"} ``` Creates a new taxonomy child term named "SubTerm" in the specified term by id 2d1f298b-804a-4a05-96dc-29b667adec62. @@ -37,18 +37,18 @@ Creates a new taxonomy child term named "SubTerm" in the specified term by id 2d ### EXAMPLE 2 ```powershell $parentTerm = Get-PnPTerm -Name Marketing -TermSet Departments -TermGroup Corporate -Add-PnPTermToTerm -ParentTerm $parentTerm -Name "Conference Team" +Add-PnPTermToTerm -ParentTermId $parentTerm.Id -Name "Conference Team" ``` Creates a new taxonomy child term named "Conference Team" in the specified term called Marketing which is located in the Departments term set. ## PARAMETERS -### -ParentTerm -The name of the term. +### -ParentTermId +The Id of the parent term. ```yaml -Type: Guid or Term Object +Type: Guid Parameter Sets: (All) Required: True diff --git a/documentation/Add-PnPWebPartToWikiPage.md b/documentation/Add-PnPWebPartToWikiPage.md index 143f013ab..90e8d5ad3 100644 --- a/documentation/Add-PnPWebPartToWikiPage.md +++ b/documentation/Add-PnPWebPartToWikiPage.md @@ -49,7 +49,7 @@ This will add the web part as defined by the XML in the $webpart variable to the ## PARAMETERS ### -AddSpace -Must there be a extra space between the web part +Must there be an extra space between the web part ```yaml Type: SwitchParameter diff --git a/documentation/Convert-PnPSiteTemplate.md b/documentation/Convert-PnPSiteTemplate.md index c597dafe7..31d18e1f3 100644 --- a/documentation/Convert-PnPSiteTemplate.md +++ b/documentation/Convert-PnPSiteTemplate.md @@ -110,7 +110,7 @@ The schema of the output to use, defaults to the latest schema ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: 1 diff --git a/documentation/Copy-PnPFile.md b/documentation/Copy-PnPFile.md index a0be44094..6d66f2eed 100644 --- a/documentation/Copy-PnPFile.md +++ b/documentation/Copy-PnPFile.md @@ -21,7 +21,7 @@ Copy-PnPFile [-SourceUrl] [-TargetUrl] [-Overwrite] [-Force] [ ## DESCRIPTION -Copies a file or folder 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. It is currently not possible to copy files between a OneDrive for Business site to SharePoint or vice versa. +Copies a file or folder 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. 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 diff --git a/documentation/Copy-PnPFolder.md b/documentation/Copy-PnPFolder.md index dc41eba01..007129fae 100644 --- a/documentation/Copy-PnPFolder.md +++ b/documentation/Copy-PnPFolder.md @@ -10,21 +10,32 @@ title: Copy-PnPFolder # Copy-PnPFolder ## SYNOPSIS -Copies a folder or file to a different location +Copies a folder or file to a different location within SharePoint Online or allows uploading of an entire local folder with optionally subfolders to SharePoint Online. ## SYNTAX +### Copy files within Microsoft 365 + +```powershell +Copy-PnPFolder -SourceUrl -TargetUrl [-Overwrite] [-Force] [-IgnoreVersionHistory] [-NoWait] [-Connection ] [-Verbose] + +``` + +### Copy files from local to Microsoft 365 + ```powershell -Copy-PnPFolder [-SourceUrl] [-TargetUrl] [-Overwrite] [-Force] [-IgnoreVersionHistory] [-NoWait] [-Connection ] +Copy-PnPFolder -LocalPath -TargetUrl [-Overwrite] [-Recurse] [-RemoveAfterCopy] [-Connection ] [-Verbose] ``` ## DESCRIPTION -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. +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. 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 +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. + ## EXAMPLES ### EXAMPLE 1 @@ -109,6 +120,13 @@ if($jobStatus.JobState == 0) Copies a file named company.docx from the current document library to the documents library in SubSite2. It will not wait for the action to return but returns job information instead. The Receive-PnPCopyMoveJobStatus cmdlet will return the job status. +### EXAMPLE 12 +```powershell +Copy-PnPFolder -LocalPath "c:\temp" -TargetUrl "Subsite1/Shared Documents" -Recurse -Overwrite +``` + +Copies all the files and underlying folders from the local folder c:\temp to the document library Shared Documents in Subsite1. If a file already exists, it will be overwritten. + ## PARAMETERS ### -Force @@ -116,7 +134,7 @@ If provided, no confirmation will be requested and the action will be performed ```yaml Type: SwitchParameter -Parameter Sets: (All) +Parameter Sets: WITHINM365 Required: False Position: Named @@ -130,7 +148,7 @@ If provided, only the latest version of the document will be copied and its hist ```yaml Type: SwitchParameter -Parameter Sets: (All) +Parameter Sets: WITHINM365 Required: False Position: Named @@ -140,7 +158,7 @@ Accept wildcard characters: False ``` ### -Overwrite -If provided, if a file already exists at the TargetUrl, it will be overwritten. If omitted, the copy operation will be canceled if the file already exists at the TargetUrl location. +If provided, if a file already exists at the TargetUrl, it will be overwritten. If omitted, the copy operation will be canceled if the file already exists at the TargetUrl location when copying between two locations on SharePoint Online. If copying files from a local path to SharePoint Online, it will skip any file that already exists and still continue with the next one. ```yaml Type: SwitchParameter @@ -158,7 +176,7 @@ Site or server relative URL specifying the file or folder to copy. Must include ```yaml Type: String -Parameter Sets: (All) +Parameter Sets: WITHINM365 Aliases: SiteRelativeUrl, ServerRelativeUrl Required: True @@ -186,6 +204,48 @@ Accept wildcard characters: False ### -NoWait If specified the task will return immediately after creating the copy job. The cmdlet will return a job object which can be used with Receive-PnPCopyMoveJobStatus to retrieve the status of the job. +```yaml +Type: SwitchParameter +Parameter Sets: WITHINM365 + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Recurse +When copying files from a local folder to SharePoint Online, this parameter will copy all files and folders within the local folder and all of its subfolders as well. + +```yaml +Type: SwitchParameter +Parameter Sets: FROMLOCAL + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RemoveAfterCopy +When copying files from a local folder to SharePoint Online, this parameter will remove all files locally that have successfully been uploaded to SharePoint Online. If a file fails, it will not be removed locally. Local folders will be removed after all files have been uploaded and the folder is empty. + +```yaml +Type: SwitchParameter +Parameter Sets: FROMLOCAL + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Verbose +When provided, additional debug statements will be shown while executing the cmdlet. + ```yaml Type: SwitchParameter Parameter Sets: (All) diff --git a/documentation/Disable-PnPTenantServicePrincipal.md b/documentation/Disable-PnPTenantServicePrincipal.md index 51e9037a1..09e37a95f 100644 --- a/documentation/Disable-PnPTenantServicePrincipal.md +++ b/documentation/Disable-PnPTenantServicePrincipal.md @@ -15,7 +15,7 @@ title: Disable-PnPTenantServicePrincipal * SharePoint: Access to the SharePoint Tenant Administration site -Enables the current tenant's "SharePoint Online Client" service principal. +Disables the current tenant's "SharePoint Online Client" service principal. ## SYNTAX @@ -24,7 +24,7 @@ Disable-PnPTenantServicePrincipal [-Force] [-Connection ] ``` ## DESCRIPTION -Enables the current tenant's "SharePoint Online Client" service principal. +Disables the current tenant's "SharePoint Online Client" service principal. ## EXAMPLES diff --git a/documentation/Export-PnPListToSiteTemplate.md b/documentation/Export-PnPListToSiteTemplate.md index 3187dcc0d..b135b712a 100644 --- a/documentation/Export-PnPListToSiteTemplate.md +++ b/documentation/Export-PnPListToSiteTemplate.md @@ -133,7 +133,7 @@ The schema of the output to use, defaults to the latest schema ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: 1 diff --git a/documentation/Get-PnPContainer.md b/documentation/Get-PnPContainer.md index c5d2226ca..eff80e718 100644 --- a/documentation/Get-PnPContainer.md +++ b/documentation/Get-PnPContainer.md @@ -20,7 +20,7 @@ Returns one or more Containers in a SharePoint repository services application. ## SYNTAX ```powershell -Get-PnPContainer [[-Identity] ] [-OwningApplicationId [Guid]] [-Paged [switchparameter]] [-PagingToken [string]][-Connection ] +Get-PnPContainer [-Identity ] [-OwningApplicationId ] [-Paged ] [-PagingToken ][-SortOrder ] [-Connection ] ``` ## DESCRIPTION @@ -116,6 +116,7 @@ Accept wildcard characters: False ### -PagingToken Use this parameter to provide the provided to view the remaining Containers as shown in Example 5. If there are no more Containers to display, the commandlet output will return the message End of Containers view. Otherwise, use the given to retrieve the next batch of up to 5,000 ontainers. + ```yaml Type: String Parameter Sets: (All) @@ -126,6 +127,22 @@ Default value: False Accept pipeline input: False Accept wildcard characters: False ``` + +### -SortOrder + +Use this parameter to specify the sort order. The sorting will be done based on Storage used in ascending or descending order. + +```yaml +Type: SortOrder +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Get-PnPContainerType.md b/documentation/Get-PnPContainerType.md new file mode 100644 index 000000000..fa7605dd7 --- /dev/null +++ b/documentation/Get-PnPContainerType.md @@ -0,0 +1,55 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPContainerType.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPContainerType +--- + +# Get-PnPContainerType + +## SYNOPSIS + +**Required Permissions** + +* SharePoint Embedded Administrator or Global Administrator is required + + Returns the list of Container Types created for a SharePoint Embedded Application in the tenant. + +## SYNTAX + +```powershell +Get-PnPContainerType [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPContainerType +``` + +Returns the list of Container Types created for a SharePoint Embedded Application in the tenant.pplication. + +### -Connection + +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[SharePoint Embedded Container Types](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/concepts/app-concepts/containertypes) +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Get-PnPContainerTypeConfiguration.md b/documentation/Get-PnPContainerTypeConfiguration.md index 19b9eb5fb..3cb5af17c 100644 --- a/documentation/Get-PnPContainerTypeConfiguration.md +++ b/documentation/Get-PnPContainerTypeConfiguration.md @@ -20,7 +20,7 @@ Returns container type configuration of a SharePoint repository services applica ## SYNTAX ```powershell -Get-PnPContainerTypeConfiguration [[-Identity] ] [-Connection ] +Get-PnPContainerTypeConfiguration [-Identity ] [-Connection ] ``` ## DESCRIPTION diff --git a/documentation/Get-PnPFileSensitivityLabelInfo.md b/documentation/Get-PnPFileSensitivityLabelInfo.md new file mode 100644 index 000000000..dce1b00a8 --- /dev/null +++ b/documentation/Get-PnPFileSensitivityLabelInfo.md @@ -0,0 +1,53 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPFileSensitivityLabelInfo.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPFileSensitivityLabelInfo +--- + +# Get-PnPFileSensitivityLabelInfo + +## SYNOPSIS +Retrieves the sensitivity label information for a file in SharePoint. + +## SYNTAX +```powershell +Get-PnPFileSensitivityLabelInfo -Url +``` + +## DESCRIPTION + +The Get-PnPFileSensitivityLabelInfo cmdlet retrieves the sensitivity label information for a file in SharePoint. It takes a URL as input, decodes it, and specifically encodes the '+' character if it is part of the filename. + +## EXAMPLES + +### Example 1 +This example retrieves the sensitivity label information for the file at the specified URL. + +```powershell +Get-PnPFileSensitivityLabelInfo -Url "https://contoso.sharepoint.com/sites/Marketing/Shared Documents/Report.pdf" +``` + +This example retrieves the sensitivity label information for the file at the specified URL. + +## PARAMETERS + +### -Url +Specifies the URL of the file for which to retrieve the sensitivity label information. + +```yaml +Type: String +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: True +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPFileVersion.md b/documentation/Get-PnPFileVersion.md index 952f30043..367839144 100644 --- a/documentation/Get-PnPFileVersion.md +++ b/documentation/Get-PnPFileVersion.md @@ -15,12 +15,14 @@ Retrieves the previous versions of a file. Does not retrieve the current version ## SYNTAX ```powershell -Get-PnPFileVersion -Url [-Connection ] +Get-PnPFileVersion -Url [-UseVersionExpirationReport] [-Connection ] ``` ## DESCRIPTION Retrieves the version history of a file, not including its current version. To get the current version use the MajorVersion and MinorVersion properties returned from Get-PnPFile. +It can optionally return the version expiration report, which contains the versions' SnapshotDate (or estimated SnapshotDate if it is not available) and estimated ExpirationDate based on the Automatic Version History Limits. + ## EXAMPLES ### EXAMPLE 1 @@ -32,11 +34,18 @@ Retrieves the file version information for the specified file. ### EXAMPLE 2 ```powershell -Get-PnPFileVersion -Url "/sites/blah/Shared Documents/MyDocument.docx" +Get-PnPFileVersion -Url "/sites/marketing/Shared Documents/MyDocument.docx" ``` Retrieves the file version information for the specified file by specifying the path to the site and the document library's URL. +### EXAMPLE 3 +```powershell +Get-PnPFileVersion -Url "/sites/marketing/Shared Documents/MyDocument.docx" -UseVersionExpirationReport +``` + +Retrieves the version expiration report for the specified file. + ## PARAMETERS ### -Connection @@ -66,10 +75,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UseVersionExpirationReport +Returns the file version expiration report. The versions contained in the report has the SnapshotDate (or estimated SnapshotDate if it is not available) and estimated ExpirationDate based on the Automatic Version History Limits. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - - diff --git a/documentation/Get-PnPLibraryFileVersionBatchDeleteJobStatus.md b/documentation/Get-PnPLibraryFileVersionBatchDeleteJobStatus.md new file mode 100644 index 000000000..2dd1bf2c2 --- /dev/null +++ b/documentation/Get-PnPLibraryFileVersionBatchDeleteJobStatus.md @@ -0,0 +1,65 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPLibraryFileVersionBatchDeleteJobStatus.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPLibraryFileVersionBatchDeleteJobStatus +--- + +# Get-PnPLibraryFileVersionBatchDeleteJobStatus + +## SYNOPSIS +Get the progress of deleting existing file versions on the document library. + +## SYNTAX + +```powershell +Get-PnPLibraryFileVersionBatchDeleteJobStatus -Identity [-Connection ] +``` + +## DESCRIPTION +This cmdlet allows retrieval of the progress of deleting existing file versions on the document library. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPLibraryFileVersionBatchDeleteJobStatus -Identity "Documents" +``` + +Returns the progress of deleting existing file versions on the document library. + +## PARAMETERS + +### -Identity +The ID, name or Url (Lists/MyList) of the document library to perform the trimming on. + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPLibraryFileVersionExpirationReportJobStatus.md b/documentation/Get-PnPLibraryFileVersionExpirationReportJobStatus.md new file mode 100644 index 000000000..5f26a30c3 --- /dev/null +++ b/documentation/Get-PnPLibraryFileVersionExpirationReportJobStatus.md @@ -0,0 +1,67 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPLibraryFileVersionExpirationReportJobStatus.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPLibraryFileVersionExpirationReportJobStatus +--- + +# Get-PnPLibraryFileVersionExpirationReportJobStatus + +## SYNOPSIS + +Gets the status for a file version usage report generation job for a document library. + +## SYNTAX + +```powershell +Get-PnPLibraryFileVersionExpirationReportJobStatus -Identity -ReportUrl +``` + +## DESCRIPTION + +Gets the status for a file version usage report generation job for a document library. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPLibraryFileVersionExpirationReportJobStatus -Identity "Documents" -ReportUrl "https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv" +``` + +Gets the status for a file version usage report generation job for a document library. + +## PARAMETERS + +### -Identity +The ID, name or Url (Lists/MyList) of the document library to get the job status on. + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ReportUrl +The URL of the report to get the job status on. + +```yaml +Type: string +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPMicrosoft365Group.md b/documentation/Get-PnPMicrosoft365Group.md index dfe3506c8..68c3d5f61 100644 --- a/documentation/Get-PnPMicrosoft365Group.md +++ b/documentation/Get-PnPMicrosoft365Group.md @@ -20,7 +20,7 @@ Gets one Microsoft 365 Group or a list of Microsoft 365 Groups ## SYNTAX ```powershell -Get-PnPMicrosoft365Group [-Identity ] [-IncludeSiteUrl] [-IncludeOwners] [-Filter ] +Get-PnPMicrosoft365Group [-Identity ] [-IncludeSiteUrl] [-IncludeOwners] [-Detailed] [-Filter ] [-IncludeSensitivityLabels] ``` ## DESCRIPTION @@ -84,10 +84,28 @@ Retrieves all Microsoft 365 Groups in this tenant and retrieves the owners for e $groups = Get-PnPMicrosoft365Group -Filter "startswith(description, 'contoso')" ``` -Retrieves all Microsoft 365 Groups in this tenant with description starting with Contoso. This example demonstrates using Advanced Query capabilities (see: https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http#group-properties). +Retrieves all Microsoft 365 Groups in this tenant with description starting with Contoso. This example demonstrates using Advanced Query capabilities (see: https://learn.microsoft.com/graph/aad-advanced-queries?tabs=http#group-properties). ## PARAMETERS +### -Detailed +When provided, the following properties originating from Exchange Online, will also be loaded into the returned group. Without providing this flag, they will not be populated. Providing this flag causes an extra call to be made to Microsoft Graph, so only add it when you need one of the properties below. + +- AutoSubscribeNewMembers +- RequireSenderAuthenticationEnabled +- IsSubscribedByMail + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IncludeSiteUrl Include fetching the site URL for Microsoft 365 Groups. This slows down large listings. @@ -144,6 +162,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -IncludeSensitivityLabels + +Include fetching the sensitivity labels. This slows down large listings. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPPageSchedulingEnabled.md b/documentation/Get-PnPPageSchedulingEnabled.md new file mode 100644 index 000000000..4d3cd1d75 --- /dev/null +++ b/documentation/Get-PnPPageSchedulingEnabled.md @@ -0,0 +1,53 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPageSchedulingEnabled.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPPageSchedulingEnabled +--- + +# Get-PnPPageSchedulingEnabled + +## SYNOPSIS + +Return true of false, reflecting the state of the modern page schedule feature + +## SYNTAX + +```powershell +Get-PnPPageSchedulingEnabled [-Connection ] +``` + +## DESCRIPTION + +This will return a boolean value stating if the modern page schedule feature has been enabled or not. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPPageSchedulingEnabled +``` + +This will return a boolean value stating if the modern page schedule feature has been enabled or not. + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Get-PnPSiteFileVersionBatchDeleteJobStatus.md b/documentation/Get-PnPSiteFileVersionBatchDeleteJobStatus.md new file mode 100644 index 000000000..53a46e870 --- /dev/null +++ b/documentation/Get-PnPSiteFileVersionBatchDeleteJobStatus.md @@ -0,0 +1,51 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteFileVersionBatchDeleteJobStatus.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPSiteFileVersionBatchDeleteJobStatus +--- + +# Get-PnPSiteFileVersionBatchDeleteJobStatus + +## SYNOPSIS +Get the progress of deleting existing file versions on the site. + +## SYNTAX + +```powershell +Get-PnPSiteFileVersionBatchDeleteJobStatus [-Connection ] +``` + +## DESCRIPTION +This cmdlet allows retrieval of the progress of deleting existing file versions on the site. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPSiteFileVersionBatchDeleteJobStatus +``` + +Returns the progress of deleting existing file versions on the site. + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPSiteFileVersionExpirationReportJobStatus.md b/documentation/Get-PnPSiteFileVersionExpirationReportJobStatus.md new file mode 100644 index 000000000..cb124afa2 --- /dev/null +++ b/documentation/Get-PnPSiteFileVersionExpirationReportJobStatus.md @@ -0,0 +1,53 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteFileVersionExpirationReportJobStatus.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPSiteFileVersionExpirationReportJobStatus +--- + +# Get-PnPSiteFileVersionExpirationReportJobStatus + +## SYNOPSIS + +Gets the status for a file version usage report generation job for a site collection. + +## SYNTAX + +```powershell +Get-PnPSiteFileVersionExpirationReportJobStatus -ReportUrl +``` + +## DESCRIPTION + +Gets the status for a file version usage report generation job for a site collection. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPSiteFileVersionExpirationReportJobStatus -ReportUrl "https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv" +``` + +Gets the status for a file version usage report generation job for a site collection. + +## PARAMETERS + +### -ReportUrl +The URL of the report to get the job status on. + +```yaml +Type: string +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPSiteScriptFromList.md b/documentation/Get-PnPSiteScriptFromList.md index 221453527..38f3c0e4c 100644 --- a/documentation/Get-PnPSiteScriptFromList.md +++ b/documentation/Get-PnPSiteScriptFromList.md @@ -22,7 +22,7 @@ Generates a Site Script from an existing list ### By List (Default) ```powershell -Get-PnPSiteScriptFromList -Identity [-Connection ] [-Verbose] +Get-PnPSiteScriptFromList -List [-Connection ] [-Verbose] ``` ### By Url @@ -95,7 +95,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Identity +### -List Specifies an instance, Id or, title of the list to generate a Site Script from ```yaml diff --git a/documentation/Get-PnPSiteTemplate.md b/documentation/Get-PnPSiteTemplate.md index c36f040b7..e46242ab5 100644 --- a/documentation/Get-PnPSiteTemplate.md +++ b/documentation/Get-PnPSiteTemplate.md @@ -545,7 +545,7 @@ The schema of the output to use, defaults to the latest schema ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: 1 diff --git a/documentation/Get-PnPSiteVersionPolicyProgress.md b/documentation/Get-PnPSiteVersionPolicyStatus.md similarity index 85% rename from documentation/Get-PnPSiteVersionPolicyProgress.md rename to documentation/Get-PnPSiteVersionPolicyStatus.md index 2fc54d287..0608378f9 100644 --- a/documentation/Get-PnPSiteVersionPolicyProgress.md +++ b/documentation/Get-PnPSiteVersionPolicyStatus.md @@ -2,12 +2,12 @@ Module Name: PnP.PowerShell schema: 2.0.0 applicable: SharePoint Online -online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicyProgress.html +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicyStatus.html external help file: PnP.PowerShell.dll-Help.xml -title: Get-PnPSiteVersionPolicyProgress +title: Get-PnPSiteVersionPolicyStatus --- -# Get-PnPSiteVersionPolicyProgress +# Get-PnPSiteVersionPolicyStatus ## SYNOPSIS Get the progress of setting version policy for existing document libraries on the site. @@ -15,7 +15,7 @@ Get the progress of setting version policy for existing document libraries on th ## SYNTAX ```powershell -Get-PnPSiteVersionPolicyProgress [-Connection ] +Get-PnPSiteVersionPolicyStatus [-Connection ] ``` ## DESCRIPTION @@ -25,7 +25,7 @@ This cmdlet allows retrieval of the progress of setting version policy for exist ### EXAMPLE 1 ```powershell -Get-PnPSiteVersionPolicyProgress +Get-PnPSiteVersionPolicyStatus ``` Returns the progress of setting version policy for existing document libraries on the site. diff --git a/documentation/Get-PnPTenantInternalSetting.md b/documentation/Get-PnPTenantInternalSetting.md new file mode 100644 index 000000000..b889247cb --- /dev/null +++ b/documentation/Get-PnPTenantInternalSetting.md @@ -0,0 +1,61 @@ +--- +Module Name: PnP.PowerShell +title: Get-PnPTenantInternalSetting +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTenantInternalSetting.html +--- + +# Get-PnPTenantInternalSetting + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +Returns additional organizational level site collection properties available from endpoint `/_api/SPOInternalUseOnly.TenantAdminSettings`. This is an undocumented endpoint. Usage of this cmdlet might be subject to change if Microsoft changes the response. + +## SYNTAX + +```powershell +Get-PnPTenantInternalSetting [-Connection ] +``` + +## DESCRIPTION +Returns organizational level site collection properties such as `SitePagesEnabled`, `DisableSelfServiceSiteCreation`, `EnableAutoNewsDigest`, +`CustomFormUrl`, `AutoQuotaEnabled`, `DisableGroupify`, `IncludeAtAGlanceInShareEmails`, `MailFromAddress`, `MobileNotificationIsEnabledForSharepoint`, `NewSiteManagedPath`, `NewSubsiteInModernOffForAll`, `NewSubsiteInModernOffForModernTemplates`, `NewTeamSiteManagedPath`, `ParentSiteUrl`, `PolicyOption`, `RequireSecondaryContact`, `ShowSelfServiceSiteCreation`, `SiteCreationNewUX`, `SmtpServer`, `SPListModernUXOff`, `TenantDefaultTimeZoneId` and `AvailableManagedPathsForSiteCreation`. + +Currently, there are no parameters for this cmdlet. + +You must have the SharePoint Online admin or Global admin role to run the cmdlet. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPTenantInternalSetting +``` + +This example returns internal tenant settings. + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPTenantRestrictedSearchAllowedList.md b/documentation/Get-PnPTenantRestrictedSearchAllowedList.md new file mode 100644 index 000000000..5bcde4624 --- /dev/null +++ b/documentation/Get-PnPTenantRestrictedSearchAllowedList.md @@ -0,0 +1,57 @@ +--- +Module Name: PnP.PowerShell +title: Get-PnPTenantRestrictedSearchAllowedList +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTenantRestrictedSearchAllowedList.html +--- + +# Get-PnPTenantRestrictedSearchAllowedList + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site and Copilot for M365 license + +Retrieves existing list of URLs in the allowed list. + +## SYNTAX + +```powershell +Get-PnPTenantRestrictedSearchAllowedList [-Connection ] +``` + +## DESCRIPTION +This command will return all the existing list of URLs in the allowed list + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Get-PnPTenantRestrictedSearchAllowedList +``` + +Retrieves existing list of URLs in the allowed list + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Get-PnPTenantRestrictedSearchMode.md b/documentation/Get-PnPTenantRestrictedSearchMode.md new file mode 100644 index 000000000..220e5e322 --- /dev/null +++ b/documentation/Get-PnPTenantRestrictedSearchMode.md @@ -0,0 +1,58 @@ +--- +Module Name: PnP.PowerShell +title: Get-PnPTenantRestrictedSearchMode +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTenantRestrictedSearchMode.html +--- + +# Get-PnPTenantRestrictedSearchMode + +## SYNOPSIS + +**Required Permissions** + + * Global Administrator or SharePoint Administrator + +Returns Restricted Search mode. + +## SYNTAX + +```powershell +Get-PnPTenantRestrictedSearchMode [-Connection ] +``` + +## DESCRIPTION + +Returns Restricted Search mode. Restricted SharePoint Search is disabled by default. + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Get-PnPTenantRestrictedSearchMode +``` + +Returns Restricted Search mode. + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Import-PnPTaxonomy.md b/documentation/Import-PnPTaxonomy.md index 3bd30ec19..879963411 100644 --- a/documentation/Import-PnPTaxonomy.md +++ b/documentation/Import-PnPTaxonomy.md @@ -41,12 +41,19 @@ Creates a new termgroup, 'Company', a termset 'Locations' and a term 'Stockholm' ### EXAMPLE 2 ```powershell +Import-PnPTaxonomy -Terms 'Company|Locations|"Stockholm,Central"' +``` + +Creates a new termgroup, 'Company', a termset 'Locations', a term 'Stockholm,Central' + +### EXAMPLE 3 +```powershell Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North' ``` Creates a new termgroup, 'Company', a termset 'Locations', a term 'Stockholm' and two subterms: 'Central', and 'North' -### EXAMPLE 3 +### EXAMPLE 4 ```powershell Import-PnPTaxonomy -Path ./mytaxonomyterms.txt ``` diff --git a/documentation/New-PnPContainerType.md b/documentation/New-PnPContainerType.md index 1a82673b0..f7047ac1e 100644 --- a/documentation/New-PnPContainerType.md +++ b/documentation/New-PnPContainerType.md @@ -13,9 +13,9 @@ online version: https://pnp.github.io/powershell/cmdlets/New-PnPContainerType.ht **Required Permissions** - * Microsoft 365 SharePoint Administrator role is required + * SharePoint Embedded Administrator or Global Administrator role is required -Creates a new SharePoint Container Type. Refer to [Hands on Lab - Setup and Configure SharePoint Embedded](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/mslearn/m01-05-hol) for more details. +Create a Container Type for a SharePoint Embedded Application. Refer to [Hands on Lab - Setup and Configure SharePoint Embedded](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/mslearn/m01-05-hol) for more details. ## SYNTAX diff --git a/documentation/New-PnPLibraryFileVersionBatchDeleteJob.md b/documentation/New-PnPLibraryFileVersionBatchDeleteJob.md new file mode 100644 index 000000000..d9ca6b4a9 --- /dev/null +++ b/documentation/New-PnPLibraryFileVersionBatchDeleteJob.md @@ -0,0 +1,144 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/New-PnPLibraryFileVersionBatchDeleteJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: New-PnPLibraryFileVersionBatchDeleteJob +--- + +# New-PnPLibraryFileVersionBatchDeleteJob + +## SYNOPSIS + +Starts a file version batch trim job for a document library. + +## SYNTAX + +```powershell +New-PnPLibraryFileVersionBatchDeleteJob -Identity -DeleteBeforeDays [-Force] +``` + +## DESCRIPTION + +Starts a file version batch trim job for a document library. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +New-PnPLibraryFileVersionBatchDeleteJob -Identity "Documents" -DeleteBeforeDays 360 +``` + +Starts a file version batch trim job that will delete all file versions that are over 360 days old in the document library. + +### EXAMPLE 2 +```powershell +New-PnPLibraryFileVersionBatchDeleteJob -Identity "Documents" -DeleteBeforeDays 360 -Force +``` + +Starts a file version batch trim job that will delete all file versions that are over 360 days old in the document library, without prompting the user for confirmation. + +### EXAMPLE 3 +```powershell +New-PnPLibraryFileVersionBatchDeleteJob -Automatic +``` + +Starts a file version batch trim job that will delete file versions that expiread and set version expiration time for the ones not expired in the document library based on the backend algorithm. + +### EXAMPLE 4 +```powershell +New-PnPLibraryFileVersionBatchDeleteJob -MajorVersionLimit 30 -MajorWithMinorVersionsLimit 10 +``` + +Starts a file version batch trim job that will delete file versions in the document library based on the version count limits. + +## PARAMETERS + +### -Identity +The ID, name or Url (Lists/MyList) of the document library to perform the trimming on. + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -DeleteBeforeDays +The minimum age of file versions to trim. In other words, all file versions that are older than this number of days will be deleted. + +```yaml +Type: int +Parameter Sets: DeleteOlderThanDays + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Automatic +Trim file version using automatic trim. + +```yaml +Type: SwitchParameter +Parameter Sets: AutomaticTrim + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MajorVersionLimit +Trim file version using version count limits. Need to specify MajorWithMinorVersionsLimit as well. + +```yaml +Type: int +Parameter Sets: CountLimits + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MajorWithMinorVersionsLimit +Trim file version using version count limits. Need to specify MajorVersionLimit as well. + +```yaml +Type: int +Parameter Sets: CountLimits + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Force +When provided, no confirmation prompts will be shown to the user. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/New-PnPLibraryFileVersionExpirationReportJob.md b/documentation/New-PnPLibraryFileVersionExpirationReportJob.md new file mode 100644 index 000000000..8ac8740c4 --- /dev/null +++ b/documentation/New-PnPLibraryFileVersionExpirationReportJob.md @@ -0,0 +1,67 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/New-PnPLibraryFileVersionExpirationReportJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: New-PnPLibraryFileVersionExpirationReportJob +--- + +# New-PnPLibraryFileVersionExpirationReportJob + +## SYNOPSIS + +Starts generating file version usage report for a document library. + +## SYNTAX + +```powershell +New-PnPLibraryFileVersionExpirationReportJob -Identity -ReportUrl +``` + +## DESCRIPTION + +Starts generating file version usage report for a document library. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +New-PnPLibraryFileVersionExpirationReportJob -Identity "Documents" -ReportUrl "https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv" +``` + +Starts generating file version usage report for a document library, saving the result to a csv file within the site collection. + +## PARAMETERS + +### -Identity +The ID, name or Url (Lists/MyList) of the document library to gather a file version usage report on. + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ReportUrl +The URL of the report to save to. + +```yaml +Type: string +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/New-PnPSiteFileVersionBatchDeleteJob.md b/documentation/New-PnPSiteFileVersionBatchDeleteJob.md new file mode 100644 index 000000000..83d360265 --- /dev/null +++ b/documentation/New-PnPSiteFileVersionBatchDeleteJob.md @@ -0,0 +1,130 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/New-PnPSiteFileVersionBatchDeleteJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: New-PnPSiteFileVersionBatchDeleteJob +--- + +# New-PnPSiteFileVersionBatchDeleteJob + +## SYNOPSIS + +Starts a file version batch trim job targeting all document libraries in a site collection. + +## SYNTAX + +```powershell +New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays [-Force] +``` + +## DESCRIPTION + +Starts a file version batch trim job targeting all document libraries in a site collection. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays 360 +``` + +Starts a file version batch trim job that will delete all file versions that are over 360 days old in all document libraries in the site collection. + +### EXAMPLE 2 +```powershell +New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays 360 -Force +``` + +Starts a file version batch trim job that will delete all file versions that are over 360 days old in all document libraries in the site collection, without prompting the user for confirmation. + +### EXAMPLE 3 +```powershell +New-PnPSiteFileVersionBatchDeleteJob -Automatic +``` + +Starts a file version batch trim job that will delete file versions that expiread and set version expiration time for the ones not expired in the site collection based on the backend algorithm. + +### EXAMPLE 4 +```powershell +New-PnPSiteFileVersionBatchDeleteJob -MajorVersionLimit 30 -MajorWithMinorVersionsLimit 10 +``` + +Starts a file version batch trim job that will delete file versions in the site collection based on the version count limits. + +## PARAMETERS + +### -DeleteBeforeDays +The minimum age of file versions to trim. In other words, all file versions that are older than this number of days will be deleted. + +```yaml +Type: int +Parameter Sets: DeleteOlderThanDays + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Automatic +Trim file version using automatic trim. + +```yaml +Type: SwitchParameter +Parameter Sets: AutomaticTrim + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MajorVersionLimit +Trim file version using version count limits. Need to specify MajorWithMinorVersionsLimit as well. + +```yaml +Type: int +Parameter Sets: CountLimits + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MajorWithMinorVersionsLimit +Trim file version using version count limits. Need to specify MajorVersionLimit as well. + +```yaml +Type: int +Parameter Sets: CountLimits + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Force +When provided, no confirmation prompts will be shown to the user. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/New-PnPSiteFileVersionExpirationReportJob.md b/documentation/New-PnPSiteFileVersionExpirationReportJob.md new file mode 100644 index 000000000..d7fedba82 --- /dev/null +++ b/documentation/New-PnPSiteFileVersionExpirationReportJob.md @@ -0,0 +1,53 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/New-PnPSiteFileVersionExpirationReportJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: New-PnPSiteFileVersionExpirationReportJob +--- + +# New-PnPSiteFileVersionExpirationReportJob + +## SYNOPSIS + +Starts generating file version usage report for a site collection. + +## SYNTAX + +```powershell +New-PnPSiteFileVersionExpirationReportJob -ReportUrl +``` + +## DESCRIPTION + +Starts generating file version usage report for a site collection. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +New-PnPSiteFileVersionExpirationReportJob -ReportUrl "https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv" +``` + +Starts generating file version usage report on for the site collection, saving the result to a csv file within the site collection. + +## PARAMETERS + +### -ReportUrl +The URL of the report to save to. + +```yaml +Type: string +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/New-PnPSiteTemplateFromFolder.md b/documentation/New-PnPSiteTemplateFromFolder.md index 4fee104c9..3ae9f3c1b 100644 --- a/documentation/New-PnPSiteTemplateFromFolder.md +++ b/documentation/New-PnPSiteTemplateFromFolder.md @@ -217,7 +217,7 @@ The schema of the output to use, defaults to the latest schema ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: 1 diff --git a/documentation/Remove-PnPContainerType.md b/documentation/Remove-PnPContainerType.md index f173357dc..0e31e4ace 100644 --- a/documentation/Remove-PnPContainerType.md +++ b/documentation/Remove-PnPContainerType.md @@ -13,7 +13,7 @@ title: Remove-PnPContainerType **Required Permissions** -* SharePoint: Access to the SharePoint Tenant Administration site +* SharePoint Embedded Administrator or Global Administrator role is required The Remove-PnPContainerType cmdlet removes a trial container from the SharePoint tenant. The container to remove is specified by the Identity parameter. diff --git a/documentation/Remove-PnPLibraryFileVersionBatchDeleteJob.md b/documentation/Remove-PnPLibraryFileVersionBatchDeleteJob.md new file mode 100644 index 000000000..137c2cf0e --- /dev/null +++ b/documentation/Remove-PnPLibraryFileVersionBatchDeleteJob.md @@ -0,0 +1,74 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPLibraryFileVersionBatchDeleteJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: Remove-PnPLibraryFileVersionBatchDeleteJob +--- + +# Remove-PnPLibraryFileVersionBatchDeleteJob + +## SYNOPSIS + +Cancels further processing of a file version batch trim job for a document library. + +## SYNTAX + +```powershell +Remove-PnPLibraryFileVersionBatchDeleteJob -Identity [-Force] +``` + +## DESCRIPTION + +Cancels further processing of a file version batch trim job for a document library. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Remove-PnPLibraryFileVersionBatchDeleteJob -Identity "Documents" +``` + +Cancels further processing of the file version batch trim job for the document library. + +### EXAMPLE 2 +```powershell +Remove-PnPLibraryFileVersionBatchDeleteJob -Identity "Documents" -DeleteBeforeDays 360 -Force +``` + +Cancels further processing of the file version batch trim job for the document library, without prompting the user for confirmation. + +## PARAMETERS + +### -Identity +The ID, name or Url (Lists/MyList) of the document library to stop further trimming on. + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Force +When provided, no confirmation prompts will be shown to the user. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Remove-PnPSiteFileVersionBatchDeleteJob.md b/documentation/Remove-PnPSiteFileVersionBatchDeleteJob.md new file mode 100644 index 000000000..8520bae9a --- /dev/null +++ b/documentation/Remove-PnPSiteFileVersionBatchDeleteJob.md @@ -0,0 +1,60 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPSiteFileVersionBatchDeleteJob.html +external help file: PnP.PowerShell.dll-Help.xml +title: Remove-PnPSiteFileVersionBatchDeleteJob +--- + +# Remove-PnPSiteFileVersionBatchDeleteJob + +## SYNOPSIS + +Cancels further processing of a file version batch trim job for a site collection. + +## SYNTAX + +```powershell +Remove-PnPSiteFileVersionBatchDeleteJob [-Force] +``` + +## DESCRIPTION + +Cancels further processing of a file version batch trim job for a site collection. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Remove-PnPSiteFileVersionBatchDeleteJob +``` + +Cancels further processing of the file version batch trim job for the site collection. + +### EXAMPLE 2 +```powershell +Remove-PnPSiteFileVersionBatchDeleteJob -Force +``` + +Cancels further processing of the file version batch trim job for the site collection, without prompting the user for confirmation. + +## PARAMETERS + +### -Force +When provided, no confirmation prompts will be shown to the user. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Save-PnPSiteTemplate.md b/documentation/Save-PnPSiteTemplate.md index 5bfd85af1..531eca202 100644 --- a/documentation/Save-PnPSiteTemplate.md +++ b/documentation/Save-PnPSiteTemplate.md @@ -92,7 +92,7 @@ The optional schema to use when creating the PnP file. Always defaults to the la ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: Named diff --git a/documentation/Save-PnPTenantTemplate.md b/documentation/Save-PnPTenantTemplate.md index 39ef3fbd5..6a529a0c2 100644 --- a/documentation/Save-PnPTenantTemplate.md +++ b/documentation/Save-PnPTenantTemplate.md @@ -90,7 +90,7 @@ The optional schema to use when creating the PnP file. Always defaults to the la ```yaml Type: XMLPnPSchemaVersion Parameter Sets: (All) -Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002 +Accepted values: LATEST, V201503, V201505, V201508, V201512, V201605, V201705, V201801, V201805, V201807, V201903, V201909, V202002, V202103, V202209 Required: False Position: Named diff --git a/documentation/Set-PnPFolderPermission.md b/documentation/Set-PnPFolderPermission.md index e46ef6bc0..d01855674 100644 --- a/documentation/Set-PnPFolderPermission.md +++ b/documentation/Set-PnPFolderPermission.md @@ -182,7 +182,7 @@ Accept wildcard characters: False ``` ### -User -A valid login name of a user (e.g. john@doe.com). +A valid login name of a user (e.g. john@doe.com) or an Entra ID Group (ADGroup). ```yaml Type: String diff --git a/documentation/Set-PnPHomeSite.md b/documentation/Set-PnPHomeSite.md index 004a01309..b00ef17e8 100644 --- a/documentation/Set-PnPHomeSite.md +++ b/documentation/Set-PnPHomeSite.md @@ -20,7 +20,7 @@ Sets the home site for your tenant. The home site needs to be a communication si ## SYNTAX ```powershell -Set-PnPHomeSite -HomeSiteUrl [VivaConnectionsDefaultStart ] [-Connection ] +Set-PnPHomeSite -HomeSiteUrl [VivaConnectionsDefaultStart ] [-Force ] [-DraftMode ] [-Connection ] ``` ## DESCRIPTION @@ -43,6 +43,13 @@ Set-PnPHomeSite -HomeSiteUrl "https://yourtenant.sharepoint.com/sites/myhome" -V Sets the home site to the provided site collection url and keeps the Viva Connections landing experience to the SharePoint home site. +### EXAMPLE 3 +```powershell +Set-PnPHomeSite -HomeSiteUrl "https://yourtenant.sharepoint.com/sites/myhome" -VivaConnectionsDefaultStart:$true -DraftMode:$true +``` + +Sets the home site to the provided site collection url and keeps the Viva Connections landing experience to the SharePoint home site but it will be in draft mode. + ## PARAMETERS ### -Connection @@ -86,6 +93,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DraftMode +When set to $true, the DraftMode parameter will keep the Viva Connections landing experience to the SharePoint home site in draf mode. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Required: False +Position: Named +Default value: true +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Force +Use the -Force flag to bypass the confirmation question + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Required: False +Position: Named +Default value: true +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPList.md b/documentation/Set-PnPList.md index ecbd0ac8c..c09f96db0 100644 --- a/documentation/Set-PnPList.md +++ b/documentation/Set-PnPList.md @@ -580,7 +580,7 @@ Accept wildcard characters: False ``` ### -EnableModernAudienceTargeting -Enable modern audience targeting in a SharePoint list. +Enable modern audience targeting in a SharePoint list. Please make sure the following feature ModernAudienceTargeting with ID "bc13eaf7-67c7-4f85-a80f-a4b0dae5e5bd" is activated first on the site by using Enable-PnPFeature. ```yaml Type: Boolean diff --git a/documentation/Set-PnPMicrosoft365Group.md b/documentation/Set-PnPMicrosoft365Group.md index 5d442fd76..db0556187 100644 --- a/documentation/Set-PnPMicrosoft365Group.md +++ b/documentation/Set-PnPMicrosoft365Group.md @@ -20,10 +20,7 @@ Sets Microsoft 365 Group properties ## SYNTAX ```powershell -Set-PnPMicrosoft365Group -Identity [-DisplayName ] [-Description ] - [-Owners ] [-Members ] [-IsPrivate] [-LogoPath ] [-CreateTeam] - [-HideFromAddressLists ] [-HideFromOutlookClients ] [-MailNickname ] [-SensitivityLabels ] - +Set-PnPMicrosoft365Group -Identity [-DisplayName ] [-Description ] [-Owners ] [-Members ] [-IsPrivate] [-LogoPath ] [-CreateTeam] [-HideFromAddressLists ] [-HideFromOutlookClients ] [-RequireSenderAuthenticationEnabled ] [-AutoSubscribeNewMembers ] [-MailNickname ] [-SensitivityLabels ] [-Verbose] ``` ## DESCRIPTION @@ -76,6 +73,44 @@ Sets the sensitivity label of the group ## PARAMETERS +### -AllowExternalSenders +Allows configuring if the Microsoft 365 Group should accept e-mail from senders outside of the organisation (true) or if both internal as well as external senders can send e-mail to the e-mail address of the Microsoft 365 group (false). + +In the Exchange Online PowerShell cmdlet this would be the RequireSenderAuthenticationEnabled property, but then inversed, so when that would be set to $true it would not accept e-mail from outside the organisation and when set to $false it would. + +This property can only be set using a Delegated logon, not with an Application logon. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AutoSubscribeNewMembers +The AutoSubscribeNewMembers switch specifies whether to automatically subscribe new members that are added to the Microsoft 365 Group to conversations and calendar events. Only users that are added to the group after you enable this setting are automatically subscribed to the group. + +To subscribe new members to conversations and calendar events, use this exact syntax: -AutoSubscribeNewMembers:$true. +If you don't want to subscribe new members to conversations and calendar events, use this exact syntax: -AutoSubscribeNewMembers:$false. + +Note: This property is evaluated only when you add internal members from your organization. Guest user accounts are always subscribed when added as a member. + +This property can only be set using a Delegated logon, not with an Application logon. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CreateTeam Creates a Microsoft Teams team associated with created group @@ -243,7 +278,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Verbose +When provided, additional debug statements will be shown while executing the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) -[Microsoft Graph documentation](https://learn.microsoft.com/graph/api/group-update) +[Microsoft Graph documentation](https://learn.microsoft.com/graph/api/group-update) \ No newline at end of file diff --git a/documentation/Set-PnPMinimalDownloadStrategy.md b/documentation/Set-PnPMinimalDownloadStrategy.md index 0f21aa2a1..f834bdf5c 100644 --- a/documentation/Set-PnPMinimalDownloadStrategy.md +++ b/documentation/Set-PnPMinimalDownloadStrategy.md @@ -27,7 +27,7 @@ Set-PnPMinimalDownloadStrategy [-Off] [-Force] [-Connection ] ``` ## DESCRIPTION -Activates or deactivates the minimal download strategy feature of a site +Activates or deactivates the minimal download strategy feature of a site. ## EXAMPLES @@ -76,7 +76,7 @@ Accept wildcard characters: False ``` ### -Off -Turn minimal download strategy off +Turn minimal download strategy off. ```yaml Type: SwitchParameter @@ -90,7 +90,7 @@ Accept wildcard characters: False ``` ### -On -Turn minimal download strategy on +Turn minimal download strategy on. ```yaml Type: SwitchParameter diff --git a/documentation/Set-PnPPage.md b/documentation/Set-PnPPage.md index 1d189cd53..ff3fb44fd 100644 --- a/documentation/Set-PnPPage.md +++ b/documentation/Set-PnPPage.md @@ -10,12 +10,12 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPPage.html # Set-PnPPage ## SYNOPSIS -Sets parameters of a page +Sets parameters of a page. ## SYNTAX ```powershell -Set-PnPPage [-Identity] [-Name ] [-Title ] +Set-PnPPage -Identity [-Name ] [-Title ] [-LayoutType ] [-PromoteAs ] [-CommentsEnabled] [-Publish] [-HeaderType ] [-HeaderLayoutType ] [-ScheduledPublishDate ] [-RemoveScheduledPublish] [-ContentType ] [-ThumbnailUrl ] [-ShowPublishDate ] @@ -34,49 +34,49 @@ Sets parameters of a page. All pages must be located inside the Site Pages libra Set-PnPPage -Identity "MyPage" -LayoutType Home -Title "My Page" ``` -Updates the properties of the page named 'MyPage' +Updates the properties of the page named 'MyPage'. ### EXAMPLE 2 ```powershell Set-PnPPage -Identity "MyPage" -CommentsEnabled ``` -Enables the comments on the page named 'MyPage' +Enables the comments on the page named 'MyPage'. ### EXAMPLE 3 ```powershell Set-PnPPage -Identity "MyPage" -CommentsEnabled:$false ``` -Disables the comments on the page named 'MyPage' +Disables the comments on the page named 'MyPage'. ### EXAMPLE 4 ```powershell Set-PnPPage -Identity "hr/MyPage" -HeaderType Default ``` -Sets the header of the page called MyPage located in the folder hr inside the Site Pages library to the default header +Sets the header of the page called MyPage located in the folder hr inside the Site Pages library to the default header. ### EXAMPLE 5 ```powershell Set-PnPPage -Identity "MyPage" -HeaderType None ``` -Removes the header of the page +Removes the header of the page. ### EXAMPLE 6 ```powershell Set-PnPPage -Identity "MyPage" -HeaderType Custom -ServerRelativeImageUrl "/sites/demo1/assets/myimage.png" -TranslateX 10.5 -TranslateY 11.0 ``` -Sets the header of the page to custom header, using the specified image and translates the location of the image in the header given the values specified +Sets the header of the page to custom header, using the specified image and translates the location of the image in the header given the values specified. ### EXAMPLE 7 ```powershell Set-PnPPage -Identity "MyPage" -ScheduledPublishDate (Get-Date).AddHours(1) ``` -Schedules the page "MyPage" to be published in one hour from now +Schedules the page "MyPage" to be published in one hour from now. ### EXAMPLE 8 ```powershell @@ -103,24 +103,24 @@ Creates the necessary translated page for the specified languages in the site co ```powershell Set-PnPPage -Identity "MyPage" -ShowPublishDate $true -Publish ``` -Display the date when the page was published in the header section of the page +Display the date when the page was published in the header section of the page. ### EXAMPLE 12 ```powershell Set-PnPPage -Identity "MyPage.aspx" -Like ``` -Likes the page +Likes the page. ### EXAMPLE 11 ```powershell Set-PnPPage -Identity "MyPage.aspx" -Like:$false ``` -Unlikes the page +Unlikes the page. ## PARAMETERS ### -CommentsEnabled -Enables or Disables the comments on the page +Enables or disables the comments on the page. ```yaml Type: SwitchParameter @@ -162,7 +162,7 @@ Accept wildcard characters: False ``` ### -DemoteNewsArticle -Demotes an existing news post to a regular page +Demotes an existing news post to a regular page. ```yaml Type: SwitchParameter @@ -176,7 +176,7 @@ Accept wildcard characters: False ``` ### -HeaderType -Sets the page header type +Sets the page header type. ```yaml Type: PageHeaderType @@ -191,7 +191,7 @@ Accept wildcard characters: False ``` ### -HeaderLayoutType -Sets the page header layout type +Sets the page header layout type. ```yaml Type: PageHeaderLayoutType @@ -249,7 +249,7 @@ Accept wildcard characters: False ``` ### -PromoteAs -Allows to promote the page for a specific purpose (None | HomePage | NewsArticle | Template) +Allows to promote the page for a specific purpose (None | HomePage | NewsArticle | Template). ```yaml Type: PagePromoteType @@ -278,7 +278,7 @@ Accept wildcard characters: False ``` ### -ThumbnailUrl -Thumbnail Url +Specifies the URL of a thumbnail image. ```yaml Type: String @@ -292,7 +292,7 @@ Accept wildcard characters: False ``` ### -ShowPublishDate -Show Published Date in Header +Shows Published Date in the header. ```yaml Type: Boolean @@ -348,7 +348,7 @@ Accept wildcard characters: False ``` ### -Translate -Creates multilingual pages for all the languages specified in the site collection +Creates multilingual pages for all the languages specified in the site collection. ```yaml Type: SwitchParameter @@ -376,7 +376,7 @@ Accept wildcard characters: False ``` ### -Like -Likes the page, if parameter is set to false then it Unlikes the page +Likes the page, if parameter is set to false then it Unlikes the page. ```yaml Type: SwitchParameter diff --git a/documentation/Set-PnPPageTextPart.md b/documentation/Set-PnPPageTextPart.md index 35ad1a293..7fa8fbadd 100644 --- a/documentation/Set-PnPPageTextPart.md +++ b/documentation/Set-PnPPageTextPart.md @@ -10,17 +10,17 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPPageTextPart.htm # Set-PnPPageTextPart ## SYNOPSIS -Set text part properties +Sets text part properties. ## SYNTAX ```powershell -Set-PnPPageTextPart [-Page] -InstanceId -Text +Set-PnPPageTextPart -Page -InstanceId -Text [-Connection ] ``` ## DESCRIPTION -Sets the rendered text in existing client side text component +Sets the rendered text in existing client side text component. ## EXAMPLES @@ -48,7 +48,7 @@ Accept wildcard characters: False ``` ### -InstanceId -The instance id of the text component +The instance id of the text component. ```yaml Type: Guid @@ -62,7 +62,7 @@ Accept wildcard characters: False ``` ### -Page -The name of the page +The name of the page. ```yaml Type: PagePipeBind @@ -76,7 +76,7 @@ Accept wildcard characters: False ``` ### -Text -Text to set +Text to set. ```yaml Type: String diff --git a/documentation/Set-PnPPageWebPart.md b/documentation/Set-PnPPageWebPart.md index 768854c93..b861974ad 100644 --- a/documentation/Set-PnPPageWebPart.md +++ b/documentation/Set-PnPPageWebPart.md @@ -10,12 +10,12 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPPageWebPart.html # Set-PnPPageWebPart ## SYNOPSIS -Set Web Part properties +Sets web part properties. ## SYNTAX ```powershell -Set-PnPPageWebPart [-Page] -Identity +Set-PnPPageWebPart -Page -Identity [-Title ] [-PropertiesJson ] [-Connection ] ``` @@ -56,7 +56,7 @@ Accept wildcard characters: False ``` ### -Identity -The identity of the web part. This can be the web part instance id or the title of a web part +The identity of the web part. This can be the web part instance id or the title of a web part. ```yaml Type: WebPartPipeBind @@ -70,7 +70,7 @@ Accept wildcard characters: False ``` ### -Page -The name of the page +The name of the page. ```yaml Type: PagePipeBind diff --git a/documentation/Set-PnPPlannerPlan.md b/documentation/Set-PnPPlannerPlan.md index f78587ba0..3bc202790 100644 --- a/documentation/Set-PnPPlannerPlan.md +++ b/documentation/Set-PnPPlannerPlan.md @@ -21,13 +21,12 @@ Updates an existing Planner plan. ### By Group ```powershell -Set-PnPPlannerPlan -Group -Plan -Title - +Set-PnPPlannerPlan -Group -Plan -Title [-Connection ] ``` ### By Plan Id ```powershell -Set-PnPPlannerPlan -PlanId -Title +Set-PnPPlannerPlan -PlanId -Title [-Connection ] ``` ## DESCRIPTION @@ -44,6 +43,22 @@ This example renames the "Conference" plan to "Conference 2020". ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Group Specify the group id or name of the group owning the plan. @@ -104,9 +119,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPPlannerTask.md b/documentation/Set-PnPPlannerTask.md index bbbf29af3..82be9f5ad 100644 --- a/documentation/Set-PnPPlannerTask.md +++ b/documentation/Set-PnPPlannerTask.md @@ -22,7 +22,7 @@ Updates an existing task. ```powershell Set-PnPPlannerTask -TaskId [-Title ] [-Bucket ] [-PercentComplete ] [-DueDateTime ] [-StartDateTime ] - [-AssignedTo ] [-Description ] + [-AssignedTo ] [-Description ] [-Connection ] ``` @@ -54,6 +54,21 @@ This updates the task with the specified id and replaces the assigned users with ## PARAMETERS +### -AssignedTo +Specify the email(s) of the user to assign the task to. Notice that this will replace existing assignments with the ones specified here. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Bucket Specify the bucket name or ID to move the task to. @@ -69,11 +84,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DueDateTime -Specify the due date. +### -Connection +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. ```yaml -Type: DateTime +Type: PnPConnection Parameter Sets: (All) Aliases: @@ -84,11 +100,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PercentComplete -Defines the percentage of completeness of the task. +### -Description +Sets the description (notes) of the task. ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: @@ -99,8 +115,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -StartDateTime -Defines the start date of the task. +### -DueDateTime +Specify the due date. ```yaml Type: DateTime @@ -114,26 +130,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TaskId -The Id of the task to update. +### -PercentComplete +Defines the percentage of completeness of the task. ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Title -Sets the new title of the task. +### -Priority +Sets the priority of the task. Value should be a number between 0 and 10. +- values 0 and 1 are interpreted as _Urgent_ +- values 2, 3 and 4 are interpreted as _Important_ +- values 5, 6 and 7 are interpreted as _Medium_ +- values 8, 9 and 10 are interpreted as _Low_ ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Aliases: @@ -144,11 +164,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AssignedTo -Specify the email(s) of the user to assign the task to. Notice that this will replace existing assignments with the ones specified here. +### -StartDateTime +Defines the start date of the task. ```yaml -Type: String[] +Type: DateTime Parameter Sets: (All) Aliases: @@ -159,27 +179,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Priority -Sets the priority of the task. Value should be a number between 0 and 10. -- values 0 and 1 are interpreted as _Urgent_ -- values 2, 3 and 4 are interpreted as _Important_ -- values 5, 6 and 7 are interpreted as _Medium_ -- values 8, 9 and 10 are interpreted as _Low_ +### -TaskId +The Id of the task to update. ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Description -Sets the description (notes) of the task. +### -Title +Sets the new title of the task. ```yaml Type: String @@ -193,9 +209,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPRetentionLabel.md b/documentation/Set-PnPRetentionLabel.md index 164bba260..2180d4ee2 100644 --- a/documentation/Set-PnPRetentionLabel.md +++ b/documentation/Set-PnPRetentionLabel.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPRetentionLabel.h # Set-PnPRetentionLabel ## SYNOPSIS -Sets a retention label on the specified list or library, or on specified items within a list or library. Use ReSet-PnPRetentionLabel to remove the label again. +Sets a retention label on the specified list or library, or on specified items within a list or library. Use Reset-PnPRetentionLabel to remove the label again. ## SYNTAX @@ -51,7 +51,7 @@ This sets an O365 label on the specified list or library and sets the label to a Set-PnPRetentionLabel -List "Demo List" -ItemIds @(1,2,3) -Label "My demo label" ``` -Sets "My demo label" retention label for items with ids 1, 2 and 3 on a list "Demo List" +Sets "My demo label" retention label for items with ids 1, 2 and 3 on a list "Demo List". ## PARAMETERS @@ -111,7 +111,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` ### -ItemIds -List of iist item IDs to set label. +List of item IDs to set label. ```yaml Type: List @@ -125,7 +125,7 @@ Accept wildcard characters: False ``` ### -Label -The name of the retention label +The name of the retention label. ```yaml Type: String @@ -153,7 +153,7 @@ Accept wildcard characters: False ``` ### -SyncToItems -Apply label to existing items in the library +Apply label to existing items in the library. ```yaml Type: Boolean diff --git a/documentation/Set-PnPRoleDefinition.md b/documentation/Set-PnPRoleDefinition.md index 2cda1a14a..a8ab1650b 100644 --- a/documentation/Set-PnPRoleDefinition.md +++ b/documentation/Set-PnPRoleDefinition.md @@ -52,39 +52,40 @@ Changes the order in which the permission level is displayed. ## PARAMETERS -### -Identity -The identity of the role definition, either a RoleDefinition object or the name of the RoleDefinition. +### -Clear +Specifies permission flag(s) to disable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum. ```yaml -Type: RoleDefinitionPipeBind +Type: PermissionKind[] Parameter Sets: (All) +Accepted values: EmptyMask, ViewListItems, AddListItems, EditListItems, DeleteListItems, ApproveItems, OpenItems, ViewVersions, DeleteVersions, CancelCheckout, ManagePersonalViews, ManageLists, ViewFormPages, AnonymousSearchAccessList, Open, ViewPages, AddAndCustomizePages, ApplyThemeAndBorder, ApplyStyleSheets, ViewUsageData, CreateSSCSite, ManageSubwebs, CreateGroups, ManagePermissions, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, ManageWeb, AnonymousSearchAccessWebLists, UseClientIntegration, UseRemoteAPIs, ManageAlerts, CreateAlerts, EditMyUserInfo, EnumeratePermissions, FullMask -Required: True -Position: 0 +Required: False +Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -RoleName -The new name for the permission level. +### -ClearAll +Clears ​all permission flags. ```yaml -Type: String +Type: SwitchParameter Parameter Sets: (All) -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` -### -Description -The new description for the permission level. +### -Connection +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. ```yaml -Type: String +Type: PnPConnection Parameter Sets: (All) Required: False @@ -94,11 +95,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Order -Sets the order of the permission level. +### -Description +The new description for the permission level. ```yaml -Type: Int32 +Type: String Parameter Sets: (All) Required: False @@ -108,25 +109,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -SelectAll -Sets all permission flags. +### -Identity +The identity of the role definition, either a RoleDefinition object or the name of the RoleDefinition. ```yaml -Type: SwitchParameter +Type: RoleDefinitionPipeBind Parameter Sets: (All) -Required: False -Position: Named +Required: True +Position: 0 Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -ClearAll -Clears ​all permission flags. +### -NewRoleName +The new name for the permission level. ```yaml -Type: SwitchParameter +Type: String Parameter Sets: (All) Required: False @@ -136,13 +137,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Select -Specifies permission flag(s) to enable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum. +### -Order +Sets the order of the permission level. ```yaml -Type: PermissionKind[] +Type: Int32 Parameter Sets: (All) -Accepted values: EmptyMask, ViewListItems, AddListItems, EditListItems, DeleteListItems, ApproveItems, OpenItems, ViewVersions, DeleteVersions, CancelCheckout, ManagePersonalViews, ManageLists, ViewFormPages, AnonymousSearchAccessList, Open, ViewPages, AddAndCustomizePages, ApplyThemeAndBorder, ApplyStyleSheets, ViewUsageData, CreateSSCSite, ManageSubwebs, CreateGroups, ManagePermissions, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, ManageWeb, AnonymousSearchAccessWebLists, UseClientIntegration, UseRemoteAPIs, ManageAlerts, CreateAlerts, EditMyUserInfo, EnumeratePermissions, FullMask Required: False Position: Named @@ -151,8 +151,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Clear -Specifies permission flag(s) to disable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum. +### -Select +Specifies permission flag(s) to enable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum. ```yaml Type: PermissionKind[] @@ -166,11 +166,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Connection -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. +### -SelectAll +Sets all permission flags. ```yaml -Type: PnPConnection +Type: SwitchParameter Parameter Sets: (All) Required: False diff --git a/documentation/Set-PnPSearchSettings.md b/documentation/Set-PnPSearchSettings.md index 8022dff34..29a97ef4f 100644 --- a/documentation/Set-PnPSearchSettings.md +++ b/documentation/Set-PnPSearchSettings.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSearchSettings.h # Set-PnPSearchSettings ## SYNOPSIS -Sets search settings for a site +Sets search settings for a site. ## SYNTAX @@ -31,49 +31,49 @@ Allows to modify search settings for a site. Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site ``` -Hide the suite bar search box on all pages and sites in the site collection +This example hides the suite bar search box on all pages and sites in the site collection. ### EXAMPLE 2 ```powershell Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web ``` -Hide the suite bar search box on all pages in the current site +Example 2 hides the suite bar search box on all pages in the current site. ### EXAMPLE 3 ```powershell Set-PnPSearchSettings -SearchPageUrl "https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx" ``` -Redirect the suite bar search box in the site to a custom URL +Redirects the suite bar search box in the site to a custom URL ### EXAMPLE 4 ```powershell Set-PnPSearchSettings -SearchPageUrl "" ``` -Clear the suite bar search box redirect URL and revert to the default behavior +This example clears the suite bar search box redirect URL and reverts to the default behavior. ### EXAMPLE 5 ```powershell Set-PnPSearchSettings -SearchPageUrl "https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx" -Scope Site ``` -Redirect classic search to a custom URL +Redirects classic search to a custom URL. ### EXAMPLE 6 ```powershell Set-PnPSearchSettings -SearchScope Tenant ``` -Set default behavior of the suite bar search box to show tenant wide results instead of site or hub scoped results +Example 6 sets default behavior of the suite bar search box to show tenant wide results instead of site or hub scoped results. ### EXAMPLE 7 ```powershell Set-PnPSearchSettings -SearchScope Hub ``` -Set default behavior of the suite bar search box to show hub results instead of site results on an associated hub site +Sets default behavior of the suite bar search box to show hub results instead of site results on an associated hub site. ## PARAMETERS diff --git a/documentation/Set-PnPSiteDesign.md b/documentation/Set-PnPSiteDesign.md index e71678ac8..47747f8b7 100644 --- a/documentation/Set-PnPSiteDesign.md +++ b/documentation/Set-PnPSiteDesign.md @@ -15,7 +15,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteDesign.html * SharePoint: Access to the SharePoint Tenant Administration site -Updates a Site Design on the current tenant. +Updates a site design on the current tenant. ## SYNTAX @@ -28,7 +28,7 @@ Set-PnPSiteDesign -Identity [-Title ] [-SiteS ## DESCRIPTION -Allows to update a Site Design on the current tenant. +Allows to update a site design on the current tenant. ## EXAMPLES @@ -37,7 +37,7 @@ Allows to update a Site Design on the current tenant. Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title "My Updated Company Design" ``` -Updates an existing Site Design and sets a new title. +Updates an existing site design and sets a new title. ### EXAMPLE 2 ```powershell @@ -45,14 +45,14 @@ $design = Get-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e Set-PnPSiteDesign -Identity $design -Title "My Updated Company Design" ``` -Updates an existing Site Design and sets a new title. +Updates an existing site design and sets a new title. ### EXAMPLE 3 ```powershell Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title "My Company Design" -Description "My description" -ThumbnailUrl "https://contoso.sharepoint.com/sites/templates/my images/logo.png" ``` -Updates an existing Site Design, providing a new title, description and logo to be shown in the template picker. Notice that when the location for the ThumbnailUrl contains a space, it should be provided URL decoded, so i.e. no %20 for spaces. +Updates an existing site design, providing a new title, description and logo to be shown in the template picker. Notice that when the location for the ThumbnailUrl contains a space, it should be provided URL decoded, so i.e. no %20 for spaces. ## PARAMETERS @@ -71,7 +71,7 @@ Accept wildcard characters: False ``` ### -Description -The description of the site design +The description of the site design. ```yaml Type: String @@ -84,8 +84,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DesignPackageId +Sets the design package Id of this site design. + +```yaml +Type: Guid +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Identity -The guid or an object representing the site design +The guid or an object representing the site design. ```yaml Type: TenantSiteDesignPipeBind @@ -99,7 +113,7 @@ Accept wildcard characters: False ``` ### -IsDefault -Specifies if the site design is a default site design +Specifies if the site design is a default site design. ```yaml Type: SwitchParameter @@ -141,7 +155,7 @@ Accept wildcard characters: False ``` ### -SiteScriptIds -An array of guids of site scripts +An array of guids of site scripts. ```yaml Type: Guid[] @@ -154,8 +168,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Title -The title of the site design +### -ThumbnailUrl +The full URL of a thumbnail image, i.e. https://contoso.sharepoint/siteassets/image.png. If none is specified, SharePoint uses a generic image. Recommended size is 400 x 300 pixels. This is the image that will be shown when selecting a template through "Apply a site template" or "Browse templates" shown in "Start designing your site" shown when creating a new site. If there are spaces in the URL, do not URL encode them, so i.e. do not use %20 where there is a space, but instead just provide the link with the space inside. ```yaml Type: String @@ -168,27 +182,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Version -Specifies the version of the design - -```yaml -Type: Int32 -Parameter Sets: (All) - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WebTemplate -Specifies the type of site to which this design applies +### -Title +The title of the site design. ```yaml -Type: SiteWebTemplate +Type: String Parameter Sets: (All) -Accepted values: TeamSite, CommunicationSite, GrouplessTeamSite, ChannelSite Required: False Position: Named @@ -197,11 +196,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ThumbnailUrl -The full URL of a thumbnail image, i.e. https://contoso.sharepoint/siteassets/image.png. If none is specified, SharePoint uses a generic image. Recommended size is 400 x 300 pixels. This is the image that will be shown when selecting a template through "Apply a site template" or "Browse templates" shown in "Start designing your site" shown when creating a new site. If there are spaces in the URL, do not URL encode them, so i.e. do not use %20 where there is a space, but instead just provide the link with the space inside. +### -Version +Specifies the version of the design. ```yaml -Type: String +Type: Int32 Parameter Sets: (All) Required: False @@ -211,13 +210,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DesignPackageId -Sets the design package Id of this site design. +### -WebTemplate +Specifies the type of site to which this design applies. ```yaml Type: SiteWebTemplate Parameter Sets: (All) -Accepted values: TeamSite, CommunicationSite +Accepted values: TeamSite, CommunicationSite, GrouplessTeamSite, ChannelSite Required: False Position: Named diff --git a/documentation/Set-PnPSiteGroup.md b/documentation/Set-PnPSiteGroup.md index e10ea092f..77c020ab6 100644 --- a/documentation/Set-PnPSiteGroup.md +++ b/documentation/Set-PnPSiteGroup.md @@ -17,7 +17,7 @@ Updates the SharePoint Online owner and permission levels on a group inside a si ```powershell Set-PnPSiteGroup -Identity [-Name ] [-Owner ] [-PermissionLevelsToAdd ] - [-PermissionLevelsToRemove ] [-Site ] + [-PermissionLevelsToRemove ] [-Site ] [-Connection ] ``` ## DESCRIPTION @@ -44,6 +44,20 @@ Example 2 sets user@domain.com as the owner of the ProjectViewers group. ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Identity Specifies the name of the group. @@ -76,7 +90,7 @@ Accept wildcard characters: False ### -Owner -Specifies the owner (individual or a security group) of the group to be created. +Specifies the owner (individual or a security group) of the group to be set. ```yaml Type: String diff --git a/documentation/Set-PnPSiteTemplateMetadata.md b/documentation/Set-PnPSiteTemplateMetadata.md index ed6d21793..e96a8dd01 100644 --- a/documentation/Set-PnPSiteTemplateMetadata.md +++ b/documentation/Set-PnPSiteTemplateMetadata.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteTemplateMeta # Set-PnPSiteTemplateMetadata ## SYNOPSIS -Sets metadata of a provisioning template +Sets metadata of a provisioning template. ## SYNTAX @@ -46,14 +46,14 @@ Sets the DisplayName property of a site template in Office Open XML format. Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl "Full URL of the Image Preview" ``` -Sets the Url to the preview image of a site template in XML format. +This example sets the image preview URL for a SharePoint site template stored in the file template.xml in Office Open XML format. ### EXAMPLE 4 ```powershell Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl "Full URL of the Image Preview" ``` -Sets the to the preview image of a site template in Office Open XML format. +This example sets the image preview URL for a SharePoint site template stored in the file template.pnp in Office Open XML format. ### EXAMPLE 5 ```powershell diff --git a/documentation/Set-PnPSiteVersionPolicy.md b/documentation/Set-PnPSiteVersionPolicy.md index d98c3b44a..76556e67f 100644 --- a/documentation/Set-PnPSiteVersionPolicy.md +++ b/documentation/Set-PnPSiteVersionPolicy.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteVersionPolic # Set-PnPSiteVersionPolicy ## SYNOPSIS -Set file version policy related properties on the site. +Sets file version policy related properties on the site. ## SYNTAX @@ -27,6 +27,9 @@ Set-PnPSiteVersionPolicy [-Connection ] ``` +## DESCRIPTION +Configures the versioning policy for a SharePoint Online site collection. + ## EXAMPLES ### EXAMPLE 1 @@ -34,91 +37,99 @@ Set-PnPSiteVersionPolicy Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true ``` -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. +This example sets AutoExpiration file version trim mode for a site. The new document libraries will use this version setting. Also creates a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning. ### EXAMPLE 2 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200 ``` -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. +This example sets ExpireAfter file version trim mode for a site. The new document libraries will use this version setting. Also creates a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning. ### EXAMPLE 3 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0 ``` -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. +Example 3 sets NoExpiration file version trim mode for a site. The new document libraries will use this version setting. Also creates a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning. ### EXAMPLE 4 ```powershell Set-PnPSiteVersionPolicy -InheritFromTenant ``` -Clear the file version setting on a site. The new document libraries will use the tenant level setting. +Example 4 clears the file version setting on a site. The new document libraries will use the tenant level setting. ### EXAMPLE 5 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries ``` -Set AutoExpiration file version trim mode for a site. The new document libraries will use this version setting. +This example sets AutoExpiration file version trim mode for a site. The new document libraries will use this version setting. ### EXAMPLE 6 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries ``` -Set ExpireAfter file version trim mode for a site. The new document libraries will use this version setting. +This example sets ExpireAfter file version trim mode for a site. The new document libraries will use this version setting. ### EXAMPLE 7 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries ``` -Set NoExpiration file version trim mode for a site. The new document libraries will use this version setting. +Example 7 sets NoExpiration file version trim mode for a site. The new document libraries will use this version setting. ### EXAMPLE 8 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries ``` -Create a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning. +Example 8 creates a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning. ### EXAMPLE 9 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries ``` -Create a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning. +This example creates a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning. ### EXAMPLE 10 ```powershell Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries ``` -Create a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning. +Example 10 creates a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning. ### EXAMPLE 11 ```powershell Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries ``` -Cancel the existing request which sets the file version trim mode for existing document libraries on a site. +This example cancels the existing request which sets the file version trim mode for existing document libraries on a site. ## PARAMETERS -### -EnableAutoExpirationVersionTrim -Enable or disable AutoExpiration version trim for the document libraries on the site. Set to $true to enable, $false to disable. +### -ApplyToNewDocumentLibraries +Sets site version policy for new document libraries. Works with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions. -Parameter ExpireVersionsAfterDays is required when EnableAutoExpirationVersionTrim is false. Set it to 0 for NoExpiration, set it to greater or equal to 30 for ExpireAfter. +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties -Parameter MajorVersions is required when EnableAutoExpirationVersionTrim is false. +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` -Parameter MajorWithMinorVersions is required when EnableAutoExpirationVersionTrim is false and the setting is for document libraries that including existing ones. It is used when minor version is enabled on the document libraries. +### -ApplyToExistingDocumentLibraries +Creates a request to set the file version trim mode for existing document libraries that enabled versioning. Works with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions. ```yaml -Type: Boolean +Type: SwitchParameter Parameter Sets: Set Properties Required: False @@ -128,11 +139,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExpireVersionsAfterDays -Expire the version after the days. Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. +### -CancelForExistingDocumentLibraries +Cancels the existing request which sets the file version trim mode for existing document libraries on a site. ```yaml -Type: UInt32 +Type: SwitchParameter Parameter Sets: Set Properties Required: False @@ -142,12 +153,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -MajorVersions -Maximum major versions to keep. Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. +### -Connection +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. ```yaml -Type: UInt32 -Parameter Sets: Set Properties +Type: PnPConnection +Parameter Sets: (All) Required: False Position: Named @@ -156,11 +167,17 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -MajorWithMinorVersions -Maximum major versions for which to keep minor versions. Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. +### -EnableAutoExpirationVersionTrim +Enables or disables AutoExpiration version trim for the document libraries on the site. Set to $true to enable, $false to disable. + +Parameter ExpireVersionsAfterDays is required when EnableAutoExpirationVersionTrim is false. Set it to 0 for NoExpiration, set it to greater or equal to 30 for ExpireAfter. + +Parameter MajorVersions is required when EnableAutoExpirationVersionTrim is false. + +Parameter MajorWithMinorVersions is required when EnableAutoExpirationVersionTrim is false and the setting is for document libraries that including existing ones. It is used when minor version is enabled on the document libraries. ```yaml -Type: UInt32 +Type: Boolean Parameter Sets: Set Properties Required: False @@ -170,11 +187,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InheritFromTenant -Clear the file version setting on a site. The new document libraries will use the tenant level setting. +### -ExpireVersionsAfterDays +Expires the version after the days. Works with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. ```yaml -Type: SwitchParameter +Type: UInt32 Parameter Sets: Set Properties Required: False @@ -184,8 +201,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ApplyToNewDocumentLibraries -Set site version policy for new document libraries. Work with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions. +### -InheritFromTenant +Clears the file version setting on a site. The new document libraries will use the tenant level setting. ```yaml Type: SwitchParameter @@ -198,11 +215,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ApplyToExistingDocumentLibraries -Create a request to set the file version trim mode for existing document libraries that enabled versioning. Work with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions. +### -MajorVersions +Maximum major versions to keep. Works with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. ```yaml -Type: SwitchParameter +Type: UInt32 Parameter Sets: Set Properties Required: False @@ -212,11 +229,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CancelForExistingDocumentLibraries -Cancel the existing request which sets the file version trim mode for existing document libraries on a site. +### -MajorWithMinorVersions +Maximum major versions for which to keep minor versions. Works with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. ```yaml -Type: SwitchParameter +Type: UInt32 Parameter Sets: Set Properties Required: False @@ -226,6 +243,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPStorageEntity.md b/documentation/Set-PnPStorageEntity.md index 3ddd9cd0f..216237da6 100644 --- a/documentation/Set-PnPStorageEntity.md +++ b/documentation/Set-PnPStorageEntity.md @@ -30,19 +30,19 @@ Allows to set Storage Entities / Farm Properties in either the tenant scoped app Set-PnPStorageEntity -Key MyKey -Value "MyValue" -Comment "My Comment" -Description "My Description" ``` -Sets an existing or adds a new storage entity / farm property at tenant level. +Sets an existing or adds a new storage entity / farm property at the tenant level. ### EXAMPLE 2 ```powershell Set-PnPStorageEntity -Scope Site -Key MyKey -Value "MyValue" -Comment "My Comment" -Description "My Description" ``` -Sets an existing or adds a new storage entity site collection level. +Sets an existing or adds a new storage entity at the site collection level. ## PARAMETERS ### -Comment -The comment to set. +Specifies additional comments related to the storage entity being set. ```yaml Type: String @@ -107,7 +107,7 @@ Accepted values: Site, Tenant Required: False Position: Named -Default value: None +Default value: Tenant Accept pipeline input: False Accept wildcard characters: False ``` @@ -126,20 +126,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` ## RELATED LINKS diff --git a/documentation/Set-PnPStructuralNavigationCacheSiteState.md b/documentation/Set-PnPStructuralNavigationCacheSiteState.md index 8a9d72d9d..e432547ce 100644 --- a/documentation/Set-PnPStructuralNavigationCacheSiteState.md +++ b/documentation/Set-PnPStructuralNavigationCacheSiteState.md @@ -23,14 +23,14 @@ The Set-PnPStructuralNavigationCacheSiteState cmdlet can be used to enable or di ## EXAMPLES -### Example 1 +### EXAMPLE 1 ```powershell Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl "https://contoso.sharepoint.com/sites/product/" ``` This example enables caching for all webs in the site collection https://contoso.sharepoint.com/sites/product/. -### Example 2 +### EXAMPLE 2 ```powershell Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl "https://contoso.sharepoint.com/sites/product/" ``` @@ -39,41 +39,41 @@ This example disables caching for all webs in the site collection https://contos ## PARAMETERS -### -IsEnabled -$true to enable caching, $false to disable caching. +### -Connection +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. ```yaml -Type: Boolean +Type: PnPConnection Parameter Sets: (All) -Aliases: -Required: True + +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -SiteUrl -Specifies the absolute URL for the site collection's root web that needs its caching state to be set. +### -IsEnabled +$true to enable caching, $false to disable caching. ```yaml -Type: String +Type: Boolean Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Connection -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. +### -SiteUrl +Specifies the absolute URL for the site collection's root web that needs its caching state to be set. ```yaml -Type: PnPConnection +Type: String Parameter Sets: (All) - +Aliases: Required: False Position: Named Default value: None diff --git a/documentation/Set-PnPStructuralNavigationCacheWebState.md b/documentation/Set-PnPStructuralNavigationCacheWebState.md index 8f7733e6b..537a06fe1 100644 --- a/documentation/Set-PnPStructuralNavigationCacheWebState.md +++ b/documentation/Set-PnPStructuralNavigationCacheWebState.md @@ -10,27 +10,27 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPStructuralNaviga # Set-PnPStructuralNavigationCacheWebState ## SYNOPSIS -Enable or disable caching for all webs in a site collection. +Enable or disable caching for a web. ## SYNTAX ```powershell -Set-PnPStructuralNavigationCacheWebState -IsEnabled [-WebUrl ] +Set-PnPStructuralNavigationCacheWebState -IsEnabled [-WebUrl ] [-Connection ] ``` ## 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. +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. ## EXAMPLES -### Example 1 +### EXAMPLE 1 ```powershell Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl "https://contoso.sharepoint.com/sites/product/electronics" ``` This example enables caching for the web https://contoso.sharepoint.com/sites/product/electronics. -### Example 2 +### EXAMPLE 2 ```powershell Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl "https://contoso.sharepoint.com/sites/product/electronics" ``` @@ -39,6 +39,19 @@ This example disables caching for the web https://contoso.sharepoint.com/sites/p ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IsEnabled $true to enable caching, $false to disable caching. diff --git a/documentation/Set-PnPTeamsChannel.md b/documentation/Set-PnPTeamsChannel.md index 5a704ba74..e6dcec06a 100644 --- a/documentation/Set-PnPTeamsChannel.md +++ b/documentation/Set-PnPTeamsChannel.md @@ -15,13 +15,12 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTeamsChannel.htm * Microsoft Graph API: Group.ReadWrite.All -Updates an existing Teams Channel +Updates an existing Teams Channel. ## SYNTAX ```powershell -Set-PnPTeamsChannel -Team -Identity [-DisplayName ] [-Description ] [-IsFavoriteByDefault ] [-AllowNewMessageFromBots ] [-AllowNewMessageFromConnectors ] [-ReplyRestriction ] [-UserNewMessageRestriction ] - +Set-PnPTeamsChannel -Team -Identity [-DisplayName ] [-Description ] [-IsFavoriteByDefault ] [-AllowNewMessageFromBots ] [-AllowNewMessageFromConnectors ] [-ReplyRestriction ] [-UserNewMessageRestriction ] [-Connection ] ``` ## DESCRIPTION @@ -35,7 +34,7 @@ Allows to update an existing Teams Channel. Set-PnPTeamsChannel -Team "MyTeam" -Channel "MyChannel" -DisplayName "My Channel" ``` -Updates the channel called 'MyChannel' to have the display name set to 'My Channel' +Updates the channel called 'MyChannel' to have the display name set to 'My Channel'. ### EXAMPLE 2 ```powershell @@ -47,7 +46,7 @@ Updates the channel called 'MyChannel' to make it visible to members. ## PARAMETERS ### -AllowNewMessageFromBots -Allows configuring if bots are allowed to post messages in the channel +Allows configuring if bots are allowed to post messages in the channel. ```yaml Type: Boolean @@ -61,7 +60,7 @@ Accept wildcard characters: False ``` ### -AllowNewMessageFromConnectors -Allows configuring if connectors are allowed to post messages in the channel +Allows configuring if connectors are allowed to post messages in the channel. ```yaml Type: Boolean @@ -74,25 +73,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ReplyRestriction -Allows configuring who can reply to posts in the channel +### -Connection +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. ```yaml -Type: TeamChannelModerationSettingReplyRestriction -Parameter Sets: (All) - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UserNewMessageRestriction -Allows configuring who can post new messages in the channel - -```yaml -Type: TeamChannelModerationSettingNewMessageRestriction +Type: PnPConnection Parameter Sets: (All) Required: False @@ -145,7 +130,7 @@ Accept wildcard characters: False ``` ### -IsFavoriteByDefault -Allows you to specify if the channel is by default visible for members +Allows you to specify if the channel is by default visible for members. ```yaml Type: Boolean @@ -158,6 +143,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ReplyRestriction +Allows configuring who can reply to posts in the channel. + +```yaml +Type: TeamChannelModerationSettingReplyRestriction +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Team Specify the group id, mailNickname or display name of the team to use. @@ -172,6 +171,20 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -UserNewMessageRestriction +Allows configuring who can post new messages in the channel. + +```yaml +Type: TeamChannelModerationSettingNewMessageRestriction +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPTeamsTab.md b/documentation/Set-PnPTeamsTab.md index 5f1d3b540..55a91eea5 100644 --- a/documentation/Set-PnPTeamsTab.md +++ b/documentation/Set-PnPTeamsTab.md @@ -15,18 +15,18 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTeamsTab.html * Microsoft Graph API: Group.ReadWrite.All -Updates Teams Tab settings +Updates Teams tab settings. ## SYNTAX ```powershell Set-PnPTeamsTab -Team -Channel [-Identity ] - [-DisplayName ] + [-DisplayName ] [-Connection ] ``` ## DESCRIPTION -Allows to update Teams Tab settings. +Allows to update Teams tab settings. ## EXAMPLES @@ -35,7 +35,7 @@ Allows to update Teams Tab settings. Set-PnPTeamsTab -Team "MyTeam" -Channel "My Channel" -Identity "Wiki" -DisplayName "Channel Wiki" ``` -Updates the tab named 'Wiki' and changes the display name of the tab to 'Channel Wiki' +Updates the tab named 'Wiki' and changes the display name of the tab to 'Channel Wiki'. ## PARAMETERS @@ -53,6 +53,19 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DisplayName The new name of the tab. diff --git a/documentation/Set-PnPTeamsTag.md b/documentation/Set-PnPTeamsTag.md index 31e708b1c..5f8861586 100644 --- a/documentation/Set-PnPTeamsTag.md +++ b/documentation/Set-PnPTeamsTag.md @@ -15,7 +15,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTeamsTag.html * Microsoft Graph API: TeamworkTag.ReadWrite, Group.Read.All -Sets the Microsoft Teams Tag in a Team. +Sets the Microsoft Teams tag in a Team. ## SYNTAX @@ -25,18 +25,20 @@ Set-PnPTeamsTag -Team -Identity -DisplayN ## DESCRIPTION +Allows to set a Teams tag in Microsoft Teams. + ## EXAMPLES ### EXAMPLE 1 ```powershell Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity "ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==" -DisplayName "Updated Tag" ``` -Sets the Tag with the specified Id from the Teams team. +Sets the tag with the specified Id from the Teams team. ## PARAMETERS ### -DisplayName -The updated display name of the Teams tag +The updated display name of the Teams tag. ```yaml Type: String @@ -50,7 +52,7 @@ Accept wildcard characters: False ``` ### -Identity -Specify the id of the Tag +Specify the id of the Tag. ```yaml Type: TeamsTagPipeBind diff --git a/documentation/Set-PnPTeamsTeamArchivedState.md b/documentation/Set-PnPTeamsTeamArchivedState.md index 317b9ff11..7f19619c2 100644 --- a/documentation/Set-PnPTeamsTeamArchivedState.md +++ b/documentation/Set-PnPTeamsTeamArchivedState.md @@ -21,7 +21,7 @@ Sets the archived state of a team. ```powershell Set-PnPTeamsTeamArchivedState -Identity -Archived - [-SetSiteReadOnlyForMembers ] + [-SetSiteReadOnlyForMembers ] [-Connection ] ``` ## DESCRIPTION @@ -49,7 +49,7 @@ Un-archives the team as identified. Set-PnPTeamsTeamArchivedState -Identity "My Team" -Archived $true -SetSiteReadOnlyForMembers $true ``` -Archives the team as identified and sets the underlying SharePoint Online Site Collection as read only for members +Archives the team as identified and sets the underlying SharePoint Online Site Collection as read only for members. ## PARAMETERS @@ -67,6 +67,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Identity Specify the group id, mailNickname or display name of the team to use. diff --git a/documentation/Set-PnPTeamsTeamPicture.md b/documentation/Set-PnPTeamsTeamPicture.md index dfc14f54a..02ce89c24 100644 --- a/documentation/Set-PnPTeamsTeamPicture.md +++ b/documentation/Set-PnPTeamsTeamPicture.md @@ -20,7 +20,7 @@ Sets the picture of an existing team. ## SYNTAX ```powershell -Set-PnPTeamsTeamPicture -Team -Path +Set-PnPTeamsTeamPicture -Team -Path [-Connection ] ``` ## DESCRIPTION @@ -36,6 +36,20 @@ Updates a picture for the team called 'MyTeam' with the available at "c:\myimage ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Path The path to the image file. @@ -66,4 +80,4 @@ Accept wildcard characters: False ## RELATED LINKS -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPTemporarilyDisableAppBar.md b/documentation/Set-PnPTemporarilyDisableAppBar.md index 33018d898..da7f05209 100644 --- a/documentation/Set-PnPTemporarilyDisableAppBar.md +++ b/documentation/Set-PnPTemporarilyDisableAppBar.md @@ -20,7 +20,7 @@ Allows the SharePoint Online App Bar to be disabled. It may take some time for t ## SYNTAX ```powershell -Set-PnPTemporarilyDisableAppBar -Enabled +Set-PnPTemporarilyDisableAppBar -Enabled [-Connection ] ``` ## DESCRIPTION @@ -45,7 +45,21 @@ Shows the SharePoint Online App Bar. ## PARAMETERS -### -Enable +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Enabled Specifies whether to show or hide SharePoint Online App Bar. ```yaml diff --git a/documentation/Set-PnPTenant.md b/documentation/Set-PnPTenant.md index 3e4c3ca1b..ee2cd4552 100644 --- a/documentation/Set-PnPTenant.md +++ b/documentation/Set-PnPTenant.md @@ -137,6 +137,24 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames [-BusinessConnectivityServiceDisabled ] [-EnableSensitivityLabelForPDF ] [-IsDataAccessInCardDesignerEnabled ] + [-CoreSharingCapability ] + [-EnableVersionExpirationSetting ] + [-BlockUserInfoVisibilityInOneDrive ] + [-AllowOverrideForBlockUserInfoVisibility ] + [-AllowEveryoneExceptExternalUsersClaimInPrivateSite ] + [-AIBuilderEnabled ] + [-AllowSensitivityLabelOnRecords ] + [-AnyoneLinkTrackUsers ] + [-EnableSiteArchive ] + [-ESignatureEnabled ] + [-BlockUserInfoVisibilityInSharePoint ] + [-MarkNewFilesSensitiveByDefault ] + [-OneDriveDefaultShareLinkScope ] + [-OneDriveDefaultShareLinkRole ] + [-OneDriveDefaultLinkToExistingAccess ] + [-OneDriveBlockGuestsAsSiteAdmin ] + [-RecycleBinRetentionPeriod ] + [-IsSharePointAddInsDisabled ] [-Force] [-Connection ] ``` @@ -687,6 +705,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -IsSharePointAddInsDisabled +When the feature is enabled, all the add-ins features will be disabled. + +The valid values are: +- False (default) - All the add-ins features are supported. +- True - All the add-ins features will be disabled. + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LegacyAuthProtocolsEnabled By default this value is set to $true. @@ -1790,14 +1826,10 @@ Gets or sets default share link role for fluid on SharePoint sites. The valid values are: - Edit -- LimitedEdit -- LimitedView -- ManageList - None -- Owner - RestrictedView - Review -- Submit +- View ```yaml Type: Role @@ -1972,14 +2004,10 @@ Gets or sets default share link role for fluid on OneDrive sites. The valid values are: - Edit -- LimitedEdit -- LimitedView -- ManageList - None -- Owner - RestrictedView - Review -- Submit +- View ```yaml Type: Role @@ -2370,6 +2398,288 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CoreSharingCapability +Sets what level of sharing is available for SharePoint sites (not including OneDrive sites). + +```yaml +Type: SharingCapabilities +Parameter Sets: (All) +Accepted values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableVersionExpirationSetting +Sets intelligent version deleting options and default organization limits. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BlockUserInfoVisibilityInOneDrive +Blocks users from accessing User Info if they have Limited Access permission only to the OneDrive. The policy applies to all OneDrives in the organization. + +The valid values are: + +ApplyToNoUsers (default) - No users are prevented from accessing User Info when they have Limited Access permission only. +ApplyToAllUsers - All users (internal or external) are prevented from accessing User Info if they have Limited Access permission only. +ApplyToGuestAndExternalUsers - Only external or guest users are prevented from accessing User Info if they have Limited Access permission only. +ApplyToInternalUsers - Only internal users are prevented from accessing User Info if they have Limited Access permission only. + +```yaml +Type: TenantBrowseUserInfoPolicyValue +Parameter Sets: (All) +Accepted values: ApplyToNoUsers (default), ApplyToAllUsers, ApplyToGuestAndExternalUsers, ApplyToInternalUsers + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + + +### -BlockUserInfoVisibilityInSharePoint +Blocks users from accessing User Info if they have Limited Access permission only to a SharePoint site. The policy applies to all SharePoint sites in the organization. + +The valid values are: + +ApplyToNoUsers (default) - No users are prevented from accessing User Info when they have Limited Access permission only to a SharePoint site. + +ApplyToAllUsers - All users (internal or external) are prevented from accessing User Info if they have Limited Access permission only to a SharePoint site. + +ApplyToGuestAndExternalUsers - Only external or guest users are prevented from accessing User Info if they have Limited Access permission only to a SharePoint site. + +ApplyToInternalUsers - Only internal users are prevented from accessing User Info if they have Limited Access permission only to a SharePoint site. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllowOverrideForBlockUserInfoVisibility +Allow organization level policy for Block User Info Visibility to be overridden for a SharePoint site or OneDrive. + +The valid values are: + +False (default) - Do not allow the Block User Info Visibility policy to be overridden for a SharePoint site or OneDrive. + +True - Allow the Block User Info Visibility policy to be overridden for a SharePoint site or OneDrive. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllowEveryoneExceptExternalUsersClaimInPrivateSite +When this parameter is true, the "Everyone except external users" claim is available in the People Picker of a private site. Set it to false to disable this feature. + +The valid values are: + +True - The "Everyone except external users" claim is available in People Picker of a private site. +False (default) - The "Everyone except external users" claim is not available in People Picker of a private site. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AIBuilderEnabled +Enables or disables AI Builder. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllowSensitivityLabelOnRecords +Allows sensitivity label on records. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AnyoneLinkTrackUsers +Enables or disables tracking of users with anyone link. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableSiteArchive +Enables or disables site archive. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ESignatureEnabled +Enables or disables eSignature. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MarkNewFilesSensitiveByDefault +Marks new files as sensitive by default before DLP policies are applied. + +```yaml +Type: SensitiveByDefaultState +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OneDriveDefaultShareLinkScope + +Sets the default sharing link scope for OneDrive. + +The valid values are: + +- Anyone +- Organization +- SpecificPeople +- Uninitialized + +```yaml +Type: SharingScope +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OneDriveDefaultShareLinkRole + +Sets the default sharing link role for OneDrive. + +Valid values are : + +- Edit +- None +- RestrictedView +- Review +- View + +```yaml +Type: Role +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OneDriveDefaultLinkToExistingAccess + +Sets whether OneDrive default links should grant access to existing users. + +```yaml +Type: Boolean +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OneDriveBlockGuestsAsSiteAdmin + +Sets the sharing state for blocking guests as site admin in OneDrive. + +Valid values are + +- On +- Off +- Unspecified + +```yaml +Type: SharingState +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RecycleBinRetentionPeriod + +Sets the retention period for the recycle bin. + +The value of Recycle Bin Retention Period must be between 14 and 93. By default it is set to 93. + +```yaml +Type: Int32 +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Force If provided, no confirmation will be requested and the action will be performed diff --git a/documentation/Set-PnPTenantCdnPolicy.md b/documentation/Set-PnPTenantCdnPolicy.md index 7ed7a91a9..3b6c7ebf5 100644 --- a/documentation/Set-PnPTenantCdnPolicy.md +++ b/documentation/Set-PnPTenantCdnPolicy.md @@ -46,7 +46,7 @@ This example sets the ExcludeRestrictedSiteClassifications policy for the select ## PARAMETERS ### -CdnType -The type of cdn to retrieve the policies from +The type of cdn to set the policies for. ```yaml Type: SPOTenantCdnType @@ -75,7 +75,7 @@ Accept wildcard characters: False ``` ### -PolicyType -The type of the policy to set +The type of the policy to set. ```yaml Type: SPOTenantCdnPolicyType @@ -90,7 +90,7 @@ Accept wildcard characters: False ``` ### -PolicyValue -The value of the policy to set +The value of the policy to set. ```yaml Type: String diff --git a/documentation/Set-PnPTenantRestrictedSearchMode.md b/documentation/Set-PnPTenantRestrictedSearchMode.md new file mode 100644 index 000000000..583a8a730 --- /dev/null +++ b/documentation/Set-PnPTenantRestrictedSearchMode.md @@ -0,0 +1,83 @@ +--- +Module Name: PnP.PowerShell +title: Set-PnPTenantRestrictedSearchMode +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTenantRestrictedSearchMode.html +--- + +# Set-PnPTenantRestrictedSearchMode + +## SYNOPSIS + +**Required Permissions** + + * Global Administrator or SharePoint Administrator + +Returns Restricted Search mode. + +## SYNTAX + +```powershell +Set-PnPTenantRestrictedSearchMode -Mode [-Connection ] +``` + +## DESCRIPTION + +Returns Restricted Search mode. Restricted SharePoint Search is disabled by default. + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Set-PnPTenantRestrictedSearchMode -Mode Enabled +``` + +Sets or enables the Restricted Tenant Search mode for the tenant. + +### EXAMPLE 2 + +```powershell +Set-PnPTenantRestrictedSearchMode -Mode Disabled +``` + +Disables the Restricted Tenant Search mode for the tenant. + +## PARAMETERS + +### -Mode + +Sets the mode for the Restricted Tenant Search. + +```yaml +Type: RestrictedSearchMode +Parameter Sets: (All) +Accepted values: Enabled, Disabled + +Required: False +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Connection + +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Set-PnPTenantSite.md b/documentation/Set-PnPTenantSite.md index ff9df2d55..8ee4822bf 100644 --- a/documentation/Set-PnPTenantSite.md +++ b/documentation/Set-PnPTenantSite.md @@ -37,6 +37,10 @@ Set-PnPTenantSite [-Identity] [-Title ] [-LocaleId ] [- [-BlockDownloadPolicy ] [-ExcludeBlockDownloadPolicySiteOwners ] [-ExcludedBlockDownloadGroupIds ] [-ListsShowHeaderAndNavigation ] + [-DefaultLinkToExistingAccessReset ] [-DefaultShareLinkRole ] + [-DefaultShareLinkScope ] [-LoopDefaultSharingLinkRole ] + [-LoopDefaultSharingLinkScope ] [-RestrictContentOrgWideSearch ] [-ReadOnlyForUnmanagedDevices ] + [-InheritVersionPolicyFromTenant ] [-Wait] [-Connection ] ``` @@ -821,6 +825,121 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DefaultLinkToExistingAccessReset +To reset the default link to existing access configuration for a site. + +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultShareLinkRole +To set the default share link role. Available values are `None`, `Edit`, `Review`, `RestrictedView` and `View`. + +```yaml +Type: Role +Parameter Sets: Set Properties +Accepted values: None, Edit, Review, RestrictedView, View + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultShareLinkScope +To set the default sharing link scope. Available values are `Anyone`, `Organization`, `SpecificPeople`, `Uninitialized`. + +```yaml +Type: SharingScope +Parameter Sets: Set Properties +Accepted values: Anyone, Organization, SpecificPeople, Uninitialized + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LoopDefaultSharingLinkRole +To set the loop default sharing link role. Available values are `None`, `Edit`, `Review`, `RestrictedView` and `View`. + +```yaml +Type: Role +Parameter Sets: Set Properties +Accepted values: None, Edit, Review, RestrictedView, View + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LoopDefaultSharingLinkScope +To set the loop default sharing link scope. Available values are Anyone, Organization, SpecificPeople, Uninitialized. + +```yaml +Type: SharingScope +Parameter Sets: Set Properties +Accepted values: Anyone, Organization, SpecificPeople, Uninitialized + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestrictContentOrgWideSearch +To restrict content from being searchable organization-wide and Copilot. + +```yaml +Type: Boolean +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReadOnlyForUnmanagedDevices +To set the site as read-only for unmanaged devices. + +```yaml +Type: Boolean +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InheritVersionPolicyFromTenant +Clears the file version setting at site level. + +```yaml +Type: Boolean +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Wait Wait for the operation to complete diff --git a/documentation/Set-PnPTerm.md b/documentation/Set-PnPTerm.md index b92e41cd5..ecc7bd4a9 100644 --- a/documentation/Set-PnPTerm.md +++ b/documentation/Set-PnPTerm.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTerm.html # Set-PnPTerm ## SYNOPSIS -Updates a term +Updates a term. ## SYNTAX @@ -19,7 +19,7 @@ Updates a term Set-PnPTerm -Identity [-Name ] [-Lcid ] [-Description ] [-CustomProperties ] [-LocalCustomProperties ] [-DeleteAllCustomProperties] [-DeleteAllLocalCustomProperties] [-Deprecated ] [-AvailableForTagging ] [-TermStore ] - + [-Connection ] ``` ### By Term Name @@ -27,7 +27,7 @@ Set-PnPTerm -Identity [-Name ] [-Lcid ] [-Description [-Name ] [-Lcid ] [-Description ] [-CustomProperties ] [-LocalCustomProperties ] [-DeleteAllCustomProperties] [-DeleteAllLocalCustomProperties] [-Deprecated ] [-AvailableForTagging ] -TermSet -TermGroup - [-TermStore ] + [-TermStore ] [-Connection ] ``` ## DESCRIPTION @@ -80,6 +80,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -CustomProperties Sets custom properties. @@ -96,7 +110,7 @@ Accept wildcard characters: False ``` ### -DeleteAllCustomProperties -Removes all custom properties +Removes all custom properties. ```yaml Type: SwitchParameter @@ -111,7 +125,7 @@ Accept wildcard characters: False ``` ### -DeleteAllLocalCustomProperties -Removes all local custom properties +Removes all local custom properties. ```yaml Type: SwitchParameter @@ -185,7 +199,7 @@ Accept wildcard characters: False ``` ### -LocalCustomProperties -Sets local custom properties +Sets local custom properties. ```yaml Type: Hashtable diff --git a/documentation/Set-PnPTermSet.md b/documentation/Set-PnPTermSet.md index 75c52ba81..1c4cca30a 100644 --- a/documentation/Set-PnPTermSet.md +++ b/documentation/Set-PnPTermSet.md @@ -20,7 +20,7 @@ Set-PnPTermSet -Identity [-TermGroup] ] [-IsAvailableForTagging ] [-IsOpenForTermCreation ] [-UseForSiteNavigation ] [-UseForFacetedNavigation ] [-SetTargetPageForTerms ] [-RemoveTargetPageForTerms] [-SetCatalogItemPageForCategories ] [-RemoveCatalogItemPageForCategories] - + [-Connection ] ``` ## DESCRIPTION @@ -33,27 +33,39 @@ This cmdlet allows you to update an existing term set. Set-PnPTermSet -Identity "Departments" -TermGroup "Corporate" -Name "Business Units" ``` -This example changes the name of a the "Departments" term set to "Business Units" +This example changes the name of a the "Departments" term set to "Business Units". ### Example 2 ```powershell Set-PnPTermSet -Identity "Departments" -TermGroup "Corporate" -UseForSiteNavigation $true ``` -This example allows the terms in the term set "Departments" to be used for site navigation links +This example allows the terms in the term set "Departments" to be used for site navigation links. ### Example 3 ```powershell Set-PnPTermSet -Identity "Departments" -TermGroup "Corporate" -IsAvailableForTagging $false ``` -This example makes the terms in the term set "Departments" unavailable to end users and content editors +This example makes the terms in the term set "Departments" unavailable to end users and content editors. ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` ### -Contact -The contact information +The contact information. ```yaml Type: String diff --git a/documentation/Set-PnPTheme.md b/documentation/Set-PnPTheme.md index 4a57d79e2..390550ad9 100644 --- a/documentation/Set-PnPTheme.md +++ b/documentation/Set-PnPTheme.md @@ -21,7 +21,7 @@ Set-PnPTheme [-ColorPaletteUrl ] [-FontSchemeUrl ] [-BackgroundI ``` ## DESCRIPTION - Sets the theme of the current web, if any of the attributes is not set, that value will be set to null + Sets the theme of the current web. If any of the attributes is not set, that value will be set to null. ## EXAMPLES @@ -52,7 +52,7 @@ Sets the theme to the web, and updates all subwebs to inherit the theme from thi ## PARAMETERS ### -BackgroundImageUrl -Specifies the Background Image Url based on the site or server relative url +Specifies the Background Image Url based on the site or server relative url. ```yaml Type: String @@ -66,7 +66,7 @@ Accept wildcard characters: False ``` ### -ColorPaletteUrl -Specifies the Color Palette Url based on the site or server relative url +Specifies the Color Palette Url based on the site or server relative url. ```yaml Type: String @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -FontSchemeUrl -Specifies the Font Scheme Url based on the site or server relative url +Specifies the Font Scheme Url based on the site or server relative url. ```yaml Type: String @@ -108,7 +108,7 @@ Accept wildcard characters: False ``` ### -ResetSubwebsToInherit -Resets subwebs to inherit the theme from the rootweb +Resets subwebs to inherit the theme from the rootweb. ```yaml Type: SwitchParameter diff --git a/documentation/Set-PnPTraceLog.md b/documentation/Set-PnPTraceLog.md index 1097d28c2..889723df2 100644 --- a/documentation/Set-PnPTraceLog.md +++ b/documentation/Set-PnPTraceLog.md @@ -16,13 +16,13 @@ Turn log tracing on or off ### On ```powershell -Set-PnPTraceLog [-On] [-LogFile ] [-WriteToConsole] [-Level ] [-Delimiter ] +Set-PnPTraceLog -On [-LogFile ] [-WriteToConsole] [-Level ] [-Delimiter ] [-IndentSize ] [-AutoFlush ] ``` ### Off ```powershell -Set-PnPTraceLog [-Off] +Set-PnPTraceLog -Off ``` ## DESCRIPTION diff --git a/documentation/Set-PnPUserOneDriveQuota.md b/documentation/Set-PnPUserOneDriveQuota.md index 31c2f172b..a9b4536d8 100644 --- a/documentation/Set-PnPUserOneDriveQuota.md +++ b/documentation/Set-PnPUserOneDriveQuota.md @@ -15,7 +15,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPUserOneDriveQuot * SharePoint: Access to the SharePoint Tenant Administration site -Sets the quota on the OneDrive for Business site for a specific user +Sets the quota on the OneDrive for Business site for a specific user. ## SYNTAX @@ -25,7 +25,7 @@ Set-PnPUserOneDriveQuota [-Account] [-Quota] [-QuotaWarning] -admin.sharepoint.com) with Connect-PnPOnline in order to use this cmdlet. +This command allows you to set the quota on the OneDrive for Business site of a specific user. You must connect to the tenant admin website (https://\-admin.sharepoint.com) with Connect-PnPOnline in order to use this cmdlet. ## EXAMPLES @@ -34,7 +34,7 @@ This command allows you to set the quota on the OneDrive for Business site of a Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208 ``` -Sets the quota on the OneDrive for Business site for the specified user to 5GB (5368709120 bytes) and sets a warning to be shown at 4.5 GB (4831838208) +Sets the quota on the OneDrive for Business site for the specified user to 5GB (5368709120 bytes) and sets a warning to be shown at 4.5 GB (4831838208). ## PARAMETERS @@ -67,7 +67,7 @@ Accept wildcard characters: False ``` ### -Quota -The quota to set on the OneDrive for Business site of the user, in bytes +The quota to set on the OneDrive for Business site of the user, in bytes. ```yaml Type: Int64 @@ -81,7 +81,7 @@ Accept wildcard characters: False ``` ### -QuotaWarning -The quota to set on the OneDrive for Business site of the user when to start showing warnings about the drive nearing being full, in bytes +The quota to set on the OneDrive for Business site of the user when to start showing warnings about the drive nearing being full, in bytes. ```yaml Type: Int64 diff --git a/documentation/Set-PnPUserProfileProperty.md b/documentation/Set-PnPUserProfileProperty.md index 4ba6071fc..04cdf3af1 100644 --- a/documentation/Set-PnPUserProfileProperty.md +++ b/documentation/Set-PnPUserProfileProperty.md @@ -13,9 +13,10 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPUserProfilePrope **Required Permissions** -* SharePoint: Access to the SharePoint Tenant Administration site +* SharePoint: Sites.FullControl.All, TermStore.ReadWrite.All, User.ReadWrite.All +* Microsoft Graph: User.Read -Office365 only: Uses the tenant API to retrieve site information. You must connect to the tenant admin website (https://\-admin.sharepoint.com) with Connect-PnPOnline in order to use this command. +Uses the tenant API to retrieve site information. You must connect to the tenant admin website (https://\-admin.sharepoint.com) with Connect-PnPOnline in order to use this command. ## SYNTAX @@ -32,23 +33,23 @@ Set-PnPUserProfileProperty -Account -PropertyName -Values " ``` -Updates the Corporate Documents view on the Documents library and sets the totals (aggregations) to Count on the Title field +Updates the Corporate Documents view on the Documents library and sets the totals (aggregations) to Count on the Title field. ### EXAMPLE 5 @@ -63,7 +63,7 @@ Updates the Dept Documents view on the Documents library to show items paged in ## PARAMETERS ### -Aggregations -A valid XML fragment containing one or more Aggregations +A valid XML fragment containing one or more Aggregations. ```yaml Type: String @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -Fields -An array of fields to use in the view. Notice that specifying this value will remove the existing fields +An array of fields to use in the view. Notice that specifying this value will remove the existing fields. ```yaml Type: String[] @@ -105,7 +105,7 @@ Accept wildcard characters: False ``` ### -Identity -The Id, Title or instance of the view +The Id, Title or instance of the view. ```yaml Type: ViewPipeBind @@ -119,7 +119,7 @@ Accept wildcard characters: False ``` ### -List -The Id, Title or Url of the list +The Id, Title or Url of the list. ```yaml Type: ListPipeBind diff --git a/documentation/Set-PnPVivaConnectionsDashboardACE.md b/documentation/Set-PnPVivaConnectionsDashboardACE.md index d6b1d6892..bafe60c28 100644 --- a/documentation/Set-PnPVivaConnectionsDashboardACE.md +++ b/documentation/Set-PnPVivaConnectionsDashboardACE.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Update-PnPVivaConnectio # Set-PnPVivaConnectionsDashboardACE ## SYNOPSIS -Update the Adaptive card extension in the Viva connections dashboard page. This requires that you connect to a SharePoint Home site and have configured the Viva connections page. +Update the Adaptive card extension in the Viva Connections dashboard page. This requires that you connect to a SharePoint Home site and have configured the Viva Connections page. ## SYNTAX @@ -28,7 +28,7 @@ Update-PnPVivaConnectionsDashboardACE -Identity [-Title [-Identity ] [-AddRole ] [-RemoveRole ] +Set-PnPWebPermission -Group [-Identity ] [-AddRole ] [-RemoveRole ] [-Connection ] ``` +### Set user permissions ```powershell -Set-PnPWebPermission -User [-Identity ] [-AddRole ] [-RemoveRole ] +Set-PnPWebPermission -User [-Identity ] [-AddRole ] [-RemoveRole ] [-Connection ] ``` @@ -58,6 +60,20 @@ Adds the specified permission roles to the user "user@contoso.com" in the curren ## PARAMETERS +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -User The name of the user. diff --git a/documentation/Set-PnPWebTheme.md b/documentation/Set-PnPWebTheme.md index 6dc876104..77e7421d7 100644 --- a/documentation/Set-PnPWebTheme.md +++ b/documentation/Set-PnPWebTheme.md @@ -29,21 +29,21 @@ Sets the theme of the current web. * Requires SharePoint Online Administrator Ri Set-PnPWebTheme -Theme MyTheme ``` -Sets the theme named "MyTheme" to the current web +Sets the theme named "MyTheme" to the current web. ### EXAMPLE 2 ```powershell Get-PnPTenantTheme -Name "MyTheme" | Set-PnPWebTheme ``` -Sets the theme named "MyTheme" to the current web +Sets the theme named "MyTheme" to the current web. ### EXAMPLE 3 ```powershell Set-PnPWebTheme -Theme "MyCompanyTheme" -WebUrl https://contoso.sharepoint.com/sites/MyWeb ``` -Sets the theme named "MyCompanyTheme" to MyWeb +Sets the theme named "MyCompanyTheme" to MyWeb. ## PARAMETERS @@ -62,7 +62,7 @@ Accept wildcard characters: False ``` ### -Theme -Specifies the Color Palette Url based on the site or server relative url +The name or ID of the theme that should be applied to the SharePoint site. ```yaml Type: ThemePipeBind @@ -75,8 +75,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - - ### -WebUrl The URL of the web to apply the theme to. If not specified it will default to the current web based upon the URL specified with Connect-PnPOnline. diff --git a/documentation/Sync-PnPSharePointUserProfilesFromAzureActiveDirectory.md b/documentation/Sync-PnPSharePointUserProfilesFromAzureActiveDirectory.md index 357e35206..83cf9e549 100644 --- a/documentation/Sync-PnPSharePointUserProfilesFromAzureActiveDirectory.md +++ b/documentation/Sync-PnPSharePointUserProfilesFromAzureActiveDirectory.md @@ -10,7 +10,13 @@ title: Sync-PnPSharePointUserProfilesFromAzureActiveDirectory # Sync-PnPSharePointUserProfilesFromAzureActiveDirectory ## SYNOPSIS -Synchronizes user profiles from Azure Active Directory into the SharePoint Online User Profiles +**Required Permissions** + +* SharePoint: Sites.FullControl.All, TermStore.ReadWrite.All, User.ReadWrite.All +* Microsoft Graph: User.Read +* ACS: No longer needed + +Synchronizes user profiles from Entra ID into the SharePoint Online User Profiles ## SYNTAX @@ -21,29 +27,26 @@ Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMappi ## DESCRIPTION -This cmdlet allows synchronizing user profiles from Azure Active Directory to their SharePoint Online User Profile equivalents. Note that certain properties are already synced by default. A list of these can be found here: https://learn.microsoft.com/sharepoint/user-profile-sync#properties-that-are-synced-into-sharepoint-user-profiles +This cmdlet allows synchronizing user profiles from Entra ID to their SharePoint Online User Profile equivalents. Note that certain properties are already synced by default. A list of these can be found here: https://learn.microsoft.com/sharepoint/user-profile-sync#properties-that-are-synced-into-sharepoint-user-profiles -For other properties not listed on this page, you can use this cmdlet to synchronize them. You can provide the property name(s) in Azure Active Directory and specify its equivalent property in SharePoint Online for the values to be mapped to. +For other properties not listed on this page, you can use this cmdlet to synchronize them. You can provide the property name(s) in Entra ID and specify its equivalent property in SharePoint Online for the values to be mapped to. Note that SharePoint Online User Profile properties you wish to sync to *must* have the checkbox unchecked for "Allow users to edit values for this property" in the user profile property in the SharePoint User Profile service application. It also *must* have "User can override" checked under Policy Settings of the user profile property in the SharePoint User Profile service application. -When running this cmdlet, it will upload a file named `userprofilesyncdata--.json` to the documents library of the SharePoint Online site you are connected to. From there an asynchronous process will be started that processed the JSON file and updates the user profiles on the SharePoint Online side. The time before this process starts varies. Once that process is done and only if something failed, you will find a new folder created in the same document library of which the folder name starts with the same name as the filename. It will contain a .log file in which you can find the results of it trying to update the user profiles in SharePoint Online which were specified in the JSON file. If all the user profile properties have been updated successfully, it will not create such a folder and log file. +When running this cmdlet, it will upload a file named `userprofilesyncdata--.json` to the document library of the SharePoint Online site you are connected to. From there an asynchronous process will be started that processes the JSON file and updates the user profiles on the SharePoint Online side. The time before this process starts varies. Once that process is done and only if something failed, you will find a new folder created in the same document library of which the folder name starts with the same name as the filename. It will contain a .log file in which you can find the results of it trying to update the user profiles in SharePoint Online which were specified in the JSON file. If all the user profile properties have been updated successfully, it will not create such a folder and log file. You can also query the import job status using `Get-PnPUPABulkImportStatus -JobId `. The jobid will be returned upon running this cmdlet and can be fed into this cmdlet to get the actual status. It will show `State: Submitted` after running this cmdlet and before processing it and `State: Succeeded` once its done and was successful or `State: Error` if it failed. It will also return full details on the file it will use to update the user profiles and the location of the log file once its done processing and only if it failed. For documentation on all the possible states it can be in, see https://learn.microsoft.com/sharepoint/dev/solution-guidance/bulk-user-profile-update-api-for-sharepoint-online#parameters-2. -When not providing -Users, it will fetch all the users and the properties defined in the mapping from Azure Active Directory itself. You can also opt to query for a subset of Azure Active Directory users to update using i.e. `Get-PnPAzureAdUser` and feed the outcome of that to the -Users parameter. In this case you must ensure that the user objects you supply contain the properties you wish to sync towards SharePoint Online. +When not providing -Users, it will fetch all the users and the properties defined in the mapping from Entra ID itself. You can also opt to query for a subset of Entra ID users to update using i.e. `Get-PnPAzureAdUser` and feed the outcome of that to the -Users parameter. In this case you must ensure that the user objects you supply contain the properties you wish to sync towards SharePoint Online. When not providing -Folder, it will assume a document library named "Shared Documents" is present within the site collection you're currently connected to. In case you are not using an English site collection, this name may be different and localized. In that case use the -Folder parameter passing in the localized name of the document library you wish to upload the mapping file to. **Required Permissions** -In order to be able to run this cmdlet you need to have **[User.Read.All]** and **[Sites.FullControl.All]** permissions on `SharePoint` and **[User.Read.All]** permissions on `Microsoft Graph` so it will be able to read the users directly from Azure Active Directory and upload the JSON file to SharePoint Online. It also needs to have the Tenant Full Control ACS permission through `https://tenant-admin.sharepoint.com/_layouts/appinv.aspx` for it to be allowed to kick off the import user profile process: +It is no longer needed to use ACS permissions for this cmdlet to work. The following permissions, granted through an Entra ID application registration, should suffice. It can also be used using a Managed Identity within Azure using the same permissions. -` - - - -` +* SharePoint: Sites.FullControl.All, TermStore.ReadWrite.All, User.ReadWrite.All +* Microsoft Graph: User.Read ## EXAMPLES @@ -52,7 +55,7 @@ In order to be able to run this cmdlet you need to have **[User.Read.All]** and Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"HomePhone"="phone";"CustomProperty"="DisplayName"} ``` -This will retrieve all users in Azure Active Directory and take its phone property to update in the HomePhone field in the SharePoint Online user profiles for each of these users. Similarly it will set the SharePoint Online User Profile property named CustomProperty to the value of the DisplayName as set in Azure Active Directory on the user object. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. +This will retrieve all users in Entra ID and take its phone property to update in the HomePhone field in the SharePoint Online user profiles for each of these users. Similarly it will set the SharePoint Online User Profile property named CustomProperty to the value of the DisplayName as set in Entra ID on the user object. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. ### EXAMPLE 2 ```powershell @@ -60,7 +63,7 @@ $users = Get-PnPAzureADUser -Filter "jobTitle eq 'IT Administrator'" Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"CostCenter"="extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter"} -Users $users ``` -This will update the CostCenter SharePoint Online User Profile property with the value of the property extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter coming from Azure Active Directory for the users getting returned by the Get-PnPAzureADUser query. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. +This will update the CostCenter SharePoint Online User Profile property with the value of the property extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter coming from Entra ID for the users getting returned by the Get-PnPAzureADUser query. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. ### EXAMPLE 3 ```powershell @@ -68,21 +71,21 @@ $delta = Get-PnPAzureADUser -Delta -DeltaToken $delta.DeltaToken Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"CostCenter"="extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter"} -Users $delta.Users ``` -This will retrieve all the users from Azure Active Directory and includes a DeltaToken in the response. Using the DeltaToken you can retrieve only those users which have had changes done to their attributes since the DeltaToken was given out. This makes it ideal to use with the profile sync as this way you only will sync those users that have had changes to their profiles. Only for those users this will update the CostCenter SharePoint Online User Profile property with the value of the property extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter coming from Azure Active Directory. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. +This will retrieve all the users from Entra ID and includes a DeltaToken in the response. Using the DeltaToken you can retrieve only those users which have had changes done to their attributes since the DeltaToken was given out. This makes it ideal to use with the profile sync as this way you only will sync those users that have had changes to their profiles. Only for those users this will update the CostCenter SharePoint Online User Profile property with the value of the property extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter coming from Entra ID. It will upload the JSON file with the instructions for the update to the 'Shared Documents' library of the site currently connected to. ### EXAMPLE 4 ```powershell Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"CostCenter"="extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter"} -Folder "User Profile Sync" ``` -This will retrieve all users in Azure Active Directory and take its extension property named CostCenter to update in the CostCenter field in the SharePoint Online user profiles for each of these users. It will upload the JSON file with the instructions for the update to a library named 'User Profile Sync' in the site currently connected to. +This will retrieve all users in Entra ID and take its extension property named CostCenter to update in the CostCenter field in the SharePoint Online user profiles for each of these users. It will upload the JSON file with the instructions for the update to a library named 'User Profile Sync' in the site currently connected to. ### EXAMPLE 5 ```powershell Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"CostCenter"="extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter"} -Folder "User Profile Sync\Jobs" -Wait -Verbose ``` -This will retrieve all users in Azure Active Directory and take its extension property named CostCenter to update in the CostCenter field in the SharePoint Online user profiles for each of these users. It will upload the JSON file with the instructions for the update to the folder Jobs inside a library named 'User Profile Sync' in the site currently connected to. It will wait with continuing the execution of the remainder of your script until the synchronization process has either completed or failed. It will output verbose logging to provide input on its status while executing. Notice that it may very well take 10 minutes or more for the synchronization to complete. +This will retrieve all users in Entra ID and take its extension property named CostCenter to update in the CostCenter field in the SharePoint Online user profiles for each of these users. It will upload the JSON file with the instructions for the update to the folder Jobs inside a library named 'User Profile Sync' in the site currently connected to. It will wait with continuing the execution of the remainder of your script until the synchronization process has either completed or failed. It will output verbose logging to provide input on its status while executing. Notice that it may very well take 10 minutes or more for the synchronization to complete. ## PARAMETERS @@ -115,7 +118,7 @@ Accept wildcard characters: False ``` ### -UserProfilePropertyMapping -A hashtable containing the SharePoint Online User Profile property to update as the key and as the value the Azure Active Directory user profile property from which the value should be copied. It is possible to copy one Azure Active Directory user profile property to multiple SharePoint Online User Profile property fields. It is also possible to provide multiple mappings at once. For SharePoint Online, please be sure to take the actual property name as shown on the User Profile property page at https://tenant-admin.sharepoint.com/_layouts/15/TenantProfileAdmin/MgrProperty.aspx?ProfileType=User&ApplicationID=00000000%2D0000%2D0000%2D0000%2D000000000000 and not its display name as these can easily be mixed up. +A hashtable containing the SharePoint Online User Profile property to update as the key and as the value the Entra ID user profile property from which the value should be copied. It is possible to copy one Entra ID user profile property to multiple SharePoint Online User Profile property fields. It is also possible to provide multiple mappings at once. For SharePoint Online, please be sure to take the actual property name as shown on the User Profile property page at https://tenant-admin.sharepoint.com/_layouts/15/TenantProfileAdmin/MgrProperty.aspx?ProfileType=User&ApplicationID=00000000%2D0000%2D0000%2D0000%2D000000000000 and not its display name as these can easily be mixed up. I.e. @{"SharePointUserProfileProperty1"="AzureADUserProperty1";"SharePointUserProfileProperty2"="AzureADUserProperty2"} @@ -145,7 +148,7 @@ Accept wildcard characters: False ``` ### -WhatIf -Will retrieve the users from Azure Active Directory and create and upload the mappings JSON file, but will not invoke a request to SharePoint Online to queue the import process. This way you can examine the mappings JSON file on SharePoint Online first to ensure the mappings are being done correctly. +Will retrieve the users from Entra ID and create and upload the mappings JSON file, but will not invoke a request to SharePoint Online to queue the import process. This way you can examine the mappings JSON file on SharePoint Online first to ensure the mappings are being done correctly. ```yaml Type: SwitchParameter diff --git a/documentation/Unlock-PnPSensitivityLabelEncryptedFile.md b/documentation/Unlock-PnPSensitivityLabelEncryptedFile.md new file mode 100644 index 000000000..ea07dd71e --- /dev/null +++ b/documentation/Unlock-PnPSensitivityLabelEncryptedFile.md @@ -0,0 +1,84 @@ +--- +Module Name: PnP.PowerShell +title: Unlock-PnPSensitivityLabelEncryptedFile +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Unlock-PnPSensitivityLabelEncryptedFile.html +--- + +# Unlock-PnPSensitivityLabelEncryptedFile + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +## SYNTAX + +```powershell +Unlock-PnPSensitivityLabelEncryptedFile -Url -JustificationText [-Connection ] +``` + +## DESCRIPTION + +It removes encryption on a Sensitivity label encrypted file in SharePoint Online. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Unlock-PnPSensitivityLabelEncryptedFile -Url "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx" -JustificationText "Need to access file" +``` + +This example will remove a regular label with admin defined encryption from the file Doc1.docx and also make an entry in audit logs. + +## PARAMETERS + +### -Connection +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. + +```yaml +Type: PnPConnection +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Url +Full URL for the file + +```yaml +Type: string. +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JustificationText +Text that explains the reason to run this cmdlet on the given file. + +```yaml +Type: string. +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) + diff --git a/pages/articles/batching.md b/pages/articles/batching.md index 2b330460b..9ec724bc7 100644 --- a/pages/articles/batching.md +++ b/pages/articles/batching.md @@ -17,7 +17,7 @@ If you add a list item with Add-PnPListItem without batching, the following happ All in all you see we make around 6 requests, although the exact number depends a bit on what type of fields you are setting. So if you loop through 100 items, you get at least 600 requests. -## Adding a item with batching (REST) +## Adding an item with batching (REST) ```powershell $batch = New-PnPBatch diff --git a/pages/articles/connecting.md b/pages/articles/connecting.md index d4479154c..c5262ddd2 100644 --- a/pages/articles/connecting.md +++ b/pages/articles/connecting.md @@ -36,7 +36,7 @@ You will have to create your own Azure AD Application registration, or you can c Register-PnPAzureADApp -ApplicationName "YourApplicationName" -Tenant [tenant].onmicrosoft.com -Interactive ``` -This will launch a authentication dialog where you need to authenticate. After closing this window the cmdlet will continue to register a new application with a set of default permissions. By default a certificate will be generated and stored in the current folder, named after the application you want to create. You can specify your own certificate by using the `-CertificatePath` parameter and optional `-CertificatePassword` parameter. +This will launch an authentication dialog where you need to authenticate. After closing this window the cmdlet will continue to register a new application with a set of default permissions. By default a certificate will be generated and stored in the current folder, named after the application you want to create. You can specify your own certificate by using the `-CertificatePath` parameter and optional `-CertificatePassword` parameter. You can add permissions by using the `-GraphApplicationPermissions`, `-GraphDelegatePermissions`, `-SharePointApplicationPermissions` or `-SharePointDelegatePermissions` parameters. The cmdlet will output the Azure AppId/client id, the name and location of the certificates created (if any) and the thumbprint of the certificate. It is possible to add the certificate created to the certificate management store in Windows by adding the `-Store` parameter. diff --git a/pages/articles/dev-containers.md b/pages/articles/dev-containers.md index 05b0a8f04..a13715135 100644 --- a/pages/articles/dev-containers.md +++ b/pages/articles/dev-containers.md @@ -39,8 +39,8 @@ This option requires the following: ```json { - "name": "PnP 1.11.0", - "image": "m365pnp/powershell:1.11.0-alpine-3.14", + "name": "PnP 2.4.0", + "image": "m365pnp/powershell:2.4.0-alpine-3.16.5", "customizations": { "vscode": { "settings": { @@ -88,4 +88,4 @@ The command should work even if you don't have PnP.PowerShell module installed l 4. Run `Connect-PnPOnline -Url https://.sharepoint.com` in the Visual Studio Code terminal -The command should work even if you don't have PnP.PowerShell module installed locally on your laptop. \ No newline at end of file +The command should work even if you don't have PnP.PowerShell module installed locally on your laptop. diff --git a/pages/articles/docker.md b/pages/articles/docker.md index e22888b0f..536c44e3d 100644 --- a/pages/articles/docker.md +++ b/pages/articles/docker.md @@ -158,14 +158,14 @@ Please see [Docker documentation](https://docs.docker.com/engine/reference/run/) * latest: The latest stable image - * alpine-3.14 + * alpine-3.16.5 * `docker pull m365pnp/powershell` or `docker pull m365pnp/powershell:latest` ### Nightly * nightly: The latest night image - * alpine-3.14 + * alpine-3.16.5 * `docker pull m365pnp/powershell:nightly` ## Tag explanation @@ -178,14 +178,14 @@ Currently supported platforms: * nanoserver-ltsc2022 * nanoserver-1809 -* alpine-3.14 +* alpine-3.16.5 Tag name examples: * 1.8.0-nanoserver-ltsc2022 * 1.9.0-nanoserver-ltsc2022 * 1.10.0-nanoserver-1809 -* 1.10.0-alpine-3.14 +* 1.10.0-alpine-3.16.5 * 1.10.26-nightly-nanoserver-ltsc2022 To find the version numbers please visit https://www.powershellgallery.com/packages/PnP.PowerShell diff --git a/pnpcoresdk_hash.txt b/pnpcoresdk_hash.txt index fd00fdcf1..ce70a05ec 100644 --- a/pnpcoresdk_hash.txt +++ b/pnpcoresdk_hash.txt @@ -1 +1 @@ -a77cd38b447b599a00dd125021dbbfb030302886 \ No newline at end of file +47de48eb3458bfeb429d5bce8cdb4ef124942a7c \ No newline at end of file diff --git a/pnpframework_hash.txt b/pnpframework_hash.txt index 3769a4332..43a8fa642 100644 --- a/pnpframework_hash.txt +++ b/pnpframework_hash.txt @@ -1 +1 @@ -1a5c27f31379f9aa6c67a8ba95a28f718a403e87 \ No newline at end of file +3f3a5c7a6ce705047b4cfe6c7e64639dcce95fb0 \ No newline at end of file diff --git a/pnppowershell_hash.txt b/pnppowershell_hash.txt index 518a1ed03..a7be83f91 100644 --- a/pnppowershell_hash.txt +++ b/pnppowershell_hash.txt @@ -1 +1 @@ -9bd7758d97143338b643980368bdc361b70243d7 \ No newline at end of file +df82fcbf1b11180346b37741b5636c7dc6879701 \ No newline at end of file diff --git a/resources/predictor/PnP.PowerShell.Suggestions.nightly.json b/resources/predictor/PnP.PowerShell.Suggestions.nightly.json index c1fff0b8c..3af17dd00 100644 --- a/resources/predictor/PnP.PowerShell.Suggestions.nightly.json +++ b/resources/predictor/PnP.PowerShell.Suggestions.nightly.json @@ -1,9782 +1,10004 @@ [ { - "Rank": 1, + "CommandName": "Add-PnPAlert", "Id": 1, - "Command": "Add-PnPAlert -List \"Demo List\"", - "CommandName": "Add-PnPAlert" + "Rank": 1, + "Command": "Add-PnPAlert -List \"Demo List\"" }, { - "Rank": 2, + "CommandName": "Add-PnPAlert", "Id": 2, - "Command": "Add-PnPAlert -Title \"Daily summary\" -List \"Demo List\" -Frequency Daily -ChangeType All -Time (Get-Date -Hour 11 -Minute 00 -Second 00)", - "CommandName": "Add-PnPAlert" + "Rank": 2, + "Command": "Add-PnPAlert -Title \"Daily summary\" -List \"Demo List\" -Frequency Daily -ChangeType All -Time (Get-Date -Hour 11 -Minute 00 -Second 00)" }, { - "Rank": 3, + "CommandName": "Add-PnPAlert", "Id": 3, - "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPAlert" + "Rank": 3, + "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" }, { - "Rank": 4, + "CommandName": "Add-PnPAlert", "Id": 4, - "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\" -Frequency Daily -Time ((Get-Date).AddDays(1))", - "CommandName": "Add-PnPAlert" + "Rank": 4, + "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\" -Frequency Daily -Time ((Get-Date).AddDays(1))" }, { - "Rank": 1, + "CommandName": "Add-PnPApp", "Id": 5, - "Command": "Add-PnPApp -Path ./myapp.sppkg", - "CommandName": "Add-PnPApp" + "Rank": 1, + "Command": "Add-PnPApp -Path ./myapp.sppkg" }, { - "Rank": 2, + "CommandName": "Add-PnPApp", "Id": 6, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish", - "CommandName": "Add-PnPApp" + "Rank": 2, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish" }, { - "Rank": 3, + "CommandName": "Add-PnPApp", "Id": 7, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Scope Site -Publish", - "CommandName": "Add-PnPApp" + "Rank": 3, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Scope Site -Publish" }, { - "Rank": 4, + "CommandName": "Add-PnPApp", "Id": 8, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish -SkipFeatureDeployment", - "CommandName": "Add-PnPApp" + "Rank": 4, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish -SkipFeatureDeployment" }, { - "Rank": 1, + "CommandName": "Add-PnPApplicationCustomizer", "Id": 9, - "Command": "Add-PnPApplicationCustomizer -Title \"CollabFooter\" -ClientSideComponentId c0ab3b94-8609-40cf-861e-2a1759170b43 -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}", - "CommandName": "Add-PnPApplicationCustomizer" + "Rank": 1, + "Command": "Add-PnPApplicationCustomizer -Title \"CollabFooter\" -ClientSideComponentId c0ab3b94-8609-40cf-861e-2a1759170b43 -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}" }, { - "Rank": 1, + "CommandName": "Add-PnPAvailableSiteClassification", "Id": 10, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\"", - "CommandName": "Add-PnPAvailableSiteClassification" + "Rank": 1, + "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\"" }, { - "Rank": 2, + "CommandName": "Add-PnPAvailableSiteClassification", "Id": 11, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\",\"HBI\"", - "CommandName": "Add-PnPAvailableSiteClassification" + "Rank": 2, + "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\",\"HBI\"" }, { - "Rank": 1, + "CommandName": "Add-PnPAzureADGroupMember", "Id": 12, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPAzureADGroupMember" + "Rank": 1, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPAzureADGroupMember", "Id": 13, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", - "CommandName": "Add-PnPAzureADGroupMember" + "Rank": 2, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Rank": 3, + "CommandName": "Add-PnPAzureADGroupMember", "Id": 14, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"", - "CommandName": "Add-PnPAzureADGroupMember" + "Rank": 3, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" }, { - "Rank": 1, + "CommandName": "Add-PnPAzureADGroupOwner", "Id": 15, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPAzureADGroupOwner" + "Rank": 1, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPAzureADGroupOwner", "Id": 16, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", - "CommandName": "Add-PnPAzureADGroupOwner" + "Rank": 2, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Rank": 3, + "CommandName": "Add-PnPAzureADGroupOwner", "Id": 17, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"", - "CommandName": "Add-PnPAzureADGroupOwner" + "Rank": 3, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" }, { - "Rank": 1, + "CommandName": "Add-PnPAzureADServicePrincipalAppRole", "Id": 18, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"Directory.Read.All\" -BuiltInType MicrosoftGraph", - "CommandName": "Add-PnPAzureADServicePrincipalAppRole" + "Rank": 1, + "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"Directory.Read.All\" -BuiltInType MicrosoftGraph" }, { - "Rank": 2, + "CommandName": "Add-PnPAzureADServicePrincipalAppRole", "Id": 19, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"MyApplication.Read\" -Resource \"b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e\"", - "CommandName": "Add-PnPAzureADServicePrincipalAppRole" + "Rank": 2, + "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"MyApplication.Read\" -Resource \"b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e\"" }, { - "Rank": 1, + "CommandName": "Add-PnPContentType", "Id": 20, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType $ct", - "CommandName": "Add-PnPContentType" + "Rank": 1, + "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType $ct" }, { - "Rank": 2, + "CommandName": "Add-PnPContentType", "Id": 21, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType (Get-PnPContentType -Identity 0x0101) -DocumentTemplate \"/_cts/Project Document/template.docx\"", - "CommandName": "Add-PnPContentType" + "Rank": 2, + "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType (Get-PnPContentType -Identity 0x0101) -DocumentTemplate \"/_cts/Project Document/template.docx\"" }, { - "Rank": 3, + "CommandName": "Add-PnPContentType", "Id": 22, - "Command": "Add-PnPContentType -Name \"Project Item\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\"", - "CommandName": "Add-PnPContentType" + "Rank": 3, + "Command": "Add-PnPContentType -Name \"Project Item\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\"" }, { - "Rank": 4, + "CommandName": "Add-PnPContentType", "Id": 23, - "Command": "Add-PnPContentType -Name \"Project Item\"", - "CommandName": "Add-PnPContentType" + "Rank": 4, + "Command": "Add-PnPContentType -Name \"Project Item\"" }, { - "Rank": 5, + "CommandName": "Add-PnPContentType", "Id": 24, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ContentTypeId 0x010100CD5BDB7DDE03324794E155CE37E4B6BB", - "CommandName": "Add-PnPContentType" + "Rank": 5, + "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ContentTypeId 0x010100CD5BDB7DDE03324794E155CE37E4B6BB" }, { - "Rank": 1, + "CommandName": "Add-PnPContentTypesFromContentTypeHub", "Id": 25, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x0101\", \"0x01\"", - "CommandName": "Add-PnPContentTypesFromContentTypeHub" + "Rank": 1, + "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x0101\", \"0x01\"" }, { - "Rank": 2, + "CommandName": "Add-PnPContentTypesFromContentTypeHub", "Id": 26, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x010057C83E557396744783531D80144BD08D\" -Site https://tenant.sharepoint.com/sites/HR", - "CommandName": "Add-PnPContentTypesFromContentTypeHub" + "Rank": 2, + "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x010057C83E557396744783531D80144BD08D\" -Site https://tenant.sharepoint.com/sites/HR" }, { - "Rank": 1, + "CommandName": "Add-PnPContentTypeToDocumentSet", "Id": 27, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"", - "CommandName": "Add-PnPContentTypeToDocumentSet" + "Rank": 1, + "Command": "Add-PnPContentTypeToDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" }, { - "Rank": 2, + "CommandName": "Add-PnPContentTypeToDocumentSet", "Id": 28, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B", - "CommandName": "Add-PnPContentTypeToDocumentSet" + "Rank": 2, + "Command": "Add-PnPContentTypeToDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" }, { - "Rank": 1, + "CommandName": "Add-PnPContentTypeToList", "Id": 29, - "Command": "Add-PnPContentTypeToList -List \"Documents\" -ContentType \"Project Document\" -DefaultContentType", - "CommandName": "Add-PnPContentTypeToList" + "Rank": 1, + "Command": "Add-PnPContentTypeToList -List \"Documents\" -ContentType \"Project Document\" -DefaultContentType" }, { - "Rank": 1, + "CommandName": "Add-PnPCustomAction", "Id": 30, - "Command": "Add-PnPCustomAction -Title \"CollabFooter\" -Name \"CollabFooter\" -Location \"ClientSideExtension.ApplicationCustomizer\" -ClientSideComponentId c0ab3b94-8609-40cf-861e-2a1759170b43 -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"", - "CommandName": "Add-PnPCustomAction" + "Rank": 1, + "Command": "Add-PnPCustomAction -Title \"CollabFooter\" -Name \"CollabFooter\" -Location \"ClientSideExtension.ApplicationCustomizer\" -ClientSideComponentId c0ab3b94-8609-40cf-861e-2a1759170b43 -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"" }, { - "Rank": 1, + "CommandName": "Add-PnPDataRowsToSiteTemplate", "Id": 31, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Fields 'Title','Choice'", - "CommandName": "Add-PnPDataRowsToSiteTemplate" + "Rank": 1, + "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Fields 'Title','Choice'" }, { - "Rank": 2, + "CommandName": "Add-PnPDataRowsToSiteTemplate", "Id": 32, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Query '' -Fields 'Title','Choice' -IncludeSecurity", - "CommandName": "Add-PnPDataRowsToSiteTemplate" + "Rank": 2, + "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Query '' -Fields 'Title','Choice' -IncludeSecurity" }, { - "Rank": 1, + "CommandName": "Add-PnPDocumentSet", "Id": 33, - "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"", - "CommandName": "Add-PnPDocumentSet" + "Rank": 1, + "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"" }, { - "Rank": 1, + "CommandName": "Add-PnPEventReceiver", "Id": 34, - "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous", - "CommandName": "Add-PnPEventReceiver" + "Rank": 1, + "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous" }, { - "Rank": 2, + "CommandName": "Add-PnPEventReceiver", "Id": 35, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous", - "CommandName": "Add-PnPEventReceiver" + "Rank": 2, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous" }, { - "Rank": 3, + "CommandName": "Add-PnPEventReceiver", "Id": 36, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site", - "CommandName": "Add-PnPEventReceiver" + "Rank": 3, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site" }, { - "Rank": 4, + "CommandName": "Add-PnPEventReceiver", "Id": 37, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web", - "CommandName": "Add-PnPEventReceiver" + "Rank": 4, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web" }, { - "Rank": 1, + "CommandName": "Add-PnPField", "Id": 38, - "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"", - "CommandName": "Add-PnPField" + "Rank": 1, + "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"" }, { - "Rank": 2, + "CommandName": "Add-PnPField", "Id": 39, - "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Location\" -InternalName \"SPSLocation\" -Type Choice -Group \"Demo Group\" -AddToDefaultView -Choices \"Stockholm\",\"Helsinki\",\"Oslo\"", - "CommandName": "Add-PnPField" + "Rank": 2, + "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Location\" -InternalName \"SPSLocation\" -Type Choice -Group \"Demo Group\" -AddToDefaultView -Choices \"Stockholm\",\"Helsinki\",\"Oslo\"" }, { - "Rank": 3, + "CommandName": "Add-PnPField", "Id": 40, - "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Speakers\" -InternalName \"SPSSpeakers\" -Type MultiChoice -Group \"Demo Group\" -AddToDefaultView -Choices \"Obiwan Kenobi\",\"Darth Vader\", \"Anakin Skywalker\"", - "CommandName": "Add-PnPField" + "Rank": 3, + "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Speakers\" -InternalName \"SPSSpeakers\" -Type MultiChoice -Group \"Demo Group\" -AddToDefaultView -Choices \"Obiwan Kenobi\",\"Darth Vader\", \"Anakin Skywalker\"" }, { - "Rank": 4, + "CommandName": "Add-PnPField", "Id": 41, - "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"", - "CommandName": "Add-PnPField" + "Rank": 4, + "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"" }, { - "Rank": 5, + "CommandName": "Add-PnPField", "Id": 42, - "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"", - "CommandName": "Add-PnPField" + "Rank": 5, + "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"" }, { - "Rank": 6, + "CommandName": "Add-PnPField", "Id": 43, - "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"", - "CommandName": "Add-PnPField" + "Rank": 6, + "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"" }, { - "Rank": 1, + "CommandName": "Add-PnPFieldToContentType", "Id": 44, - "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"", - "CommandName": "Add-PnPFieldToContentType" + "Rank": 1, + "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"" }, { - "Rank": 1, + "CommandName": "Add-PnPFile", "Id": 45, - "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"", - "CommandName": "Add-PnPFile" + "Rank": 1, + "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFile", "Id": 46, - "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"", - "CommandName": "Add-PnPFile" + "Rank": 2, + "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"" }, { - "Rank": 3, + "CommandName": "Add-PnPFile", "Id": 47, - "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}", - "CommandName": "Add-PnPFile" + "Rank": 3, + "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}" }, { - "Rank": 4, + "CommandName": "Add-PnPFile", "Id": 48, - "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}", - "CommandName": "Add-PnPFile" + "Rank": 4, + "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}" }, { - "Rank": 5, + "CommandName": "Add-PnPFile", "Id": 49, - "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}", - "CommandName": "Add-PnPFile" + "Rank": 5, + "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}" }, { - "Rank": 6, + "CommandName": "Add-PnPFile", "Id": 50, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}", - "CommandName": "Add-PnPFile" + "Rank": 6, + "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}" }, { - "Rank": 7, + "CommandName": "Add-PnPFile", "Id": 51, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"", - "CommandName": "Add-PnPFile" + "Rank": 7, + "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"" }, { - "Rank": 8, + "CommandName": "Add-PnPFile", "Id": 52, - "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'", - "CommandName": "Add-PnPFile" + "Rank": 8, + "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'" }, { - "Rank": 1, + "CommandName": "Add-PnPFileAnonymousSharingLink", "Id": 53, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", - "CommandName": "Add-PnPFileAnonymousSharingLink" + "Rank": 1, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFileAnonymousSharingLink", "Id": 54, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"", - "CommandName": "Add-PnPFileAnonymousSharingLink" + "Rank": 2, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"" }, { - "Rank": 3, + "CommandName": "Add-PnPFileAnonymousSharingLink", "Id": 55, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)", - "CommandName": "Add-PnPFileAnonymousSharingLink" + "Rank": 3, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)" }, { - "Rank": 1, + "CommandName": "Add-PnPFileOrganizationalSharingLink", "Id": 56, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", - "CommandName": "Add-PnPFileOrganizationalSharingLink" + "Rank": 1, + "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFileOrganizationalSharingLink", "Id": 57, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit", - "CommandName": "Add-PnPFileOrganizationalSharingLink" + "Rank": 2, + "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit" }, { - "Rank": 1, + "CommandName": "Add-PnPFileSharingInvite", "Id": 58, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn", - "CommandName": "Add-PnPFileSharingInvite" + "Rank": 1, + "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" }, { - "Rank": 2, + "CommandName": "Add-PnPFileSharingInvite", "Id": 59, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner", - "CommandName": "Add-PnPFileSharingInvite" + "Rank": 2, + "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" }, { - "Rank": 3, + "CommandName": "Add-PnPFileSharingInvite", "Id": 60, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)", - "CommandName": "Add-PnPFileSharingInvite" + "Rank": 3, + "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)" }, { - "Rank": 1, + "CommandName": "Add-PnPFileToSiteTemplate", "Id": 61, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"", - "CommandName": "Add-PnPFileToSiteTemplate" + "Rank": 1, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFileToSiteTemplate", "Id": 62, - "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"", - "CommandName": "Add-PnPFileToSiteTemplate" + "Rank": 2, + "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"" }, { - "Rank": 3, + "CommandName": "Add-PnPFileToSiteTemplate", "Id": 63, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false", - "CommandName": "Add-PnPFileToSiteTemplate" + "Rank": 3, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false" }, { - "Rank": 4, + "CommandName": "Add-PnPFileToSiteTemplate", "Id": 64, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container", - "CommandName": "Add-PnPFileToSiteTemplate" + "Rank": 4, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container" }, { - "Rank": 5, + "CommandName": "Add-PnPFileToSiteTemplate", "Id": 65, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"", - "CommandName": "Add-PnPFileToSiteTemplate" + "Rank": 5, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"" }, { - "Rank": 1, + "CommandName": "Add-PnPFileUserSharingLink", "Id": 66, - "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPFileUserSharingLink" + "Rank": 1, + "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFileUserSharingLink", "Id": 67, - "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPFileUserSharingLink" + "Rank": 2, + "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Add-PnPFlowOwner", "Id": 68, - "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -Role CanEdit", - "CommandName": "Add-PnPFlowOwner" + "Rank": 1, + "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -Role CanEdit" }, { - "Rank": 2, + "CommandName": "Add-PnPFlowOwner", "Id": 69, - "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanView", - "CommandName": "Add-PnPFlowOwner" + "Rank": 2, + "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanView" }, { - "Rank": 3, + "CommandName": "Add-PnPFlowOwner", "Id": 70, - "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanViewWithShare", - "CommandName": "Add-PnPFlowOwner" + "Rank": 3, + "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanViewWithShare" }, { - "Rank": 4, + "CommandName": "Add-PnPFlowOwner", "Id": 71, - "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Role CanEdit", - "CommandName": "Add-PnPFlowOwner" + "Rank": 4, + "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Role CanEdit" }, { - "Rank": 1, + "CommandName": "Add-PnPFolder", "Id": 72, - "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage", - "CommandName": "Add-PnPFolder" + "Rank": 1, + "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" }, { - "Rank": 2, + "CommandName": "Add-PnPFolder", "Id": 73, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"", - "CommandName": "Add-PnPFolder" + "Rank": 2, + "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"" }, { - "Rank": 3, + "CommandName": "Add-PnPFolder", "Id": 74, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"", - "CommandName": "Add-PnPFolder" + "Rank": 3, + "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"" }, { - "Rank": 1, + "CommandName": "Add-PnPFolderAnonymousSharingLink", "Id": 75, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", - "CommandName": "Add-PnPFolderAnonymousSharingLink" + "Rank": 1, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFolderAnonymousSharingLink", "Id": 76, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"", - "CommandName": "Add-PnPFolderAnonymousSharingLink" + "Rank": 2, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"" }, { - "Rank": 3, + "CommandName": "Add-PnPFolderAnonymousSharingLink", "Id": 77, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)", - "CommandName": "Add-PnPFolderAnonymousSharingLink" + "Rank": 3, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)" }, { - "Rank": 1, + "CommandName": "Add-PnPFolderOrganizationalSharingLink", "Id": 78, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", - "CommandName": "Add-PnPFolderOrganizationalSharingLink" + "Rank": 1, + "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFolderOrganizationalSharingLink", "Id": 79, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit", - "CommandName": "Add-PnPFolderOrganizationalSharingLink" + "Rank": 2, + "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit" }, { - "Rank": 1, + "CommandName": "Add-PnPFolderSharingInvite", "Id": 80, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn", - "CommandName": "Add-PnPFolderSharingInvite" + "Rank": 1, + "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" }, { - "Rank": 2, + "CommandName": "Add-PnPFolderSharingInvite", "Id": 81, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner", - "CommandName": "Add-PnPFolderSharingInvite" + "Rank": 2, + "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" }, { - "Rank": 3, + "CommandName": "Add-PnPFolderSharingInvite", "Id": 82, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)", - "CommandName": "Add-PnPFolderSharingInvite" + "Rank": 3, + "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)" }, { - "Rank": 1, + "CommandName": "Add-PnPFolderUserSharingLink", "Id": 83, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPFolderUserSharingLink" + "Rank": 1, + "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPFolderUserSharingLink", "Id": 84, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPFolderUserSharingLink" + "Rank": 2, + "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -ShareType Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Add-PnPGroupMember", "Id": 85, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'", - "CommandName": "Add-PnPGroupMember" + "Rank": 1, + "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" }, { - "Rank": 2, + "CommandName": "Add-PnPGroupMember", "Id": 86, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5", - "CommandName": "Add-PnPGroupMember" + "Rank": 2, + "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5" }, { - "Rank": 1, + "CommandName": "Add-PnPHomeSite", "Id": 87, - "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901", - "CommandName": "Add-PnPHtmlPublishingPageLayout" + "Rank": 1, + "Command": "Add-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"" }, { - "Rank": 1, + "CommandName": "Add-PnPHtmlPublishingPageLayout", "Id": 88, - "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"", - "CommandName": "Add-PnPHubSiteAssociation" + "Rank": 1, + "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" }, { - "Rank": 1, + "CommandName": "Add-PnPHubSiteAssociation", "Id": 89, - "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443", - "CommandName": "Add-PnPHubToHubAssociation" + "Rank": 1, + "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"" }, { - "Rank": 2, + "CommandName": "Add-PnPHubToHubAssociation", "Id": 90, - "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"", - "CommandName": "Add-PnPHubToHubAssociation" + "Rank": 1, + "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443" }, { - "Rank": 3, + "CommandName": "Add-PnPHubToHubAssociation", "Id": 91, - "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/toplevelhub\"\r ; Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/thirdlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\"", - "CommandName": "Add-PnPHubToHubAssociation" + "Rank": 2, + "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"" }, { - "Rank": 1, + "CommandName": "Add-PnPHubToHubAssociation", "Id": 92, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site", - "CommandName": "Add-PnPJavaScriptBlock" + "Rank": 3, + "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/toplevelhub\"\r ; Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/thirdlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\"" }, { - "Rank": 2, + "CommandName": "Add-PnPJavaScriptBlock", "Id": 93, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''", - "CommandName": "Add-PnPJavaScriptBlock" + "Rank": 1, + "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site" }, { - "Rank": 1, + "CommandName": "Add-PnPJavaScriptBlock", "Id": 94, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site", - "CommandName": "Add-PnPJavaScriptLink" + "Rank": 2, + "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''" }, { - "Rank": 2, + "CommandName": "Add-PnPJavaScriptLink", "Id": 95, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js", - "CommandName": "Add-PnPJavaScriptLink" + "Rank": 1, + "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site" }, { - "Rank": 1, + "CommandName": "Add-PnPJavaScriptLink", "Id": 96, - "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"", - "CommandName": "Add-PnPListDesign" + "Rank": 2, + "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js" }, { - "Rank": 2, + "CommandName": "Add-PnPListDesign", "Id": 97, - "Command": "Add-PnPListDesign -Title \"My Company Design\" -SiteScriptIds \"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -ListColor Orange -ListIcon BullseyeTarget -ThumbnailUrl \"https://contoso.sharepoint.com/SiteAssets/site-thumbnail.png\"", - "CommandName": "Add-PnPListDesign" + "Rank": 1, + "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"" }, { - "Rank": 1, + "CommandName": "Add-PnPListDesign", "Id": 98, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'", - "CommandName": "Add-PnPListFoldersToSiteTemplate" + "Rank": 2, + "Command": "Add-PnPListDesign -Title \"My Company Design\" -SiteScriptIds \"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -ListColor Orange -ListIcon BullseyeTarget -ThumbnailUrl \"https://contoso.sharepoint.com/SiteAssets/site-thumbnail.png\"" }, { - "Rank": 2, + "CommandName": "Add-PnPListFoldersToSiteTemplate", "Id": 99, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive", - "CommandName": "Add-PnPListFoldersToSiteTemplate" + "Rank": 1, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'" }, { - "Rank": 3, + "CommandName": "Add-PnPListFoldersToSiteTemplate", "Id": 100, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity", - "CommandName": "Add-PnPListFoldersToSiteTemplate" + "Rank": 2, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive" }, { - "Rank": 1, + "CommandName": "Add-PnPListFoldersToSiteTemplate", "Id": 101, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "Add-PnPListItem" + "Rank": 3, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity" }, { - "Rank": 2, + "CommandName": "Add-PnPListItem", "Id": 102, - "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "Add-PnPListItem" + "Rank": 1, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 3, + "CommandName": "Add-PnPListItem", "Id": 103, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}", - "CommandName": "Add-PnPListItem" + "Rank": 2, + "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 4, + "CommandName": "Add-PnPListItem", "Id": 104, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"", - "CommandName": "Add-PnPListItem" + "Rank": 3, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}" }, { - "Rank": 5, + "CommandName": "Add-PnPListItem", "Id": 105, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"", - "CommandName": "Add-PnPListItem" + "Rank": 4, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"" }, { - "Rank": 1, + "CommandName": "Add-PnPListItem", "Id": 106, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4", - "CommandName": "Add-PnPListItemAttachment" + "Rank": 5, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"" }, { - "Rank": 2, + "CommandName": "Add-PnPListItemAttachment", "Id": 107, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'", - "CommandName": "Add-PnPListItemAttachment" + "Rank": 1, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4" }, { - "Rank": 3, + "CommandName": "Add-PnPListItemAttachment", "Id": 108, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream", - "CommandName": "Add-PnPListItemAttachment" + "Rank": 2, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'" }, { - "Rank": 1, + "CommandName": "Add-PnPListItemAttachment", "Id": 109, - "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"", - "CommandName": "Add-PnPListItemComment" + "Rank": 3, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream" }, { - "Rank": 1, + "CommandName": "Add-PnPListItemComment", "Id": 110, - "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"", - "CommandName": "Add-PnPMasterPage" + "Rank": 1, + "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"" }, { - "Rank": 1, + "CommandName": "Add-PnPMasterPage", "Id": 111, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPMicrosoft365GroupMember" + "Rank": 1, + "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"" }, { - "Rank": 2, + "CommandName": "Add-PnPMicrosoft365GroupMember", "Id": 112, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", - "CommandName": "Add-PnPMicrosoft365GroupMember" + "Rank": 1, + "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Add-PnPMicrosoft365GroupMember", "Id": 113, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPMicrosoft365GroupOwner" + "Rank": 2, + "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Rank": 2, + "CommandName": "Add-PnPMicrosoft365GroupOwner", "Id": 114, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", - "CommandName": "Add-PnPMicrosoft365GroupOwner" + "Rank": 1, + "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Add-PnPMicrosoft365GroupOwner", "Id": 115, - "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"", - "CommandName": "Add-PnPMicrosoft365GroupToSite" + "Rank": 2, + "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Rank": 2, + "CommandName": "Add-PnPMicrosoft365GroupToSite", "Id": 116, - "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"", - "CommandName": "Add-PnPMicrosoft365GroupToSite" + "Rank": 1, + "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"" }, { - "Rank": 3, + "CommandName": "Add-PnPMicrosoft365GroupToSite", "Id": 117, - "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage", - "CommandName": "Add-PnPMicrosoft365GroupToSite" + "Rank": 2, + "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"" }, { - "Rank": 1, + "CommandName": "Add-PnPMicrosoft365GroupToSite", "Id": 118, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"", - "CommandName": "Add-PnPNavigationNode" + "Rank": 3, + "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage" }, { - "Rank": 2, + "CommandName": "Add-PnPNavigationNode", "Id": 119, - "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012", - "CommandName": "Add-PnPNavigationNode" + "Rank": 1, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"" }, { - "Rank": 3, + "CommandName": "Add-PnPNavigationNode", "Id": 120, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First", - "CommandName": "Add-PnPNavigationNode" + "Rank": 2, + "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012" }, { - "Rank": 4, + "CommandName": "Add-PnPNavigationNode", "Id": 121, - "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External", - "CommandName": "Add-PnPNavigationNode" + "Rank": 3, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First" }, { - "Rank": 5, + "CommandName": "Add-PnPNavigationNode", "Id": 122, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"", - "CommandName": "Add-PnPNavigationNode" + "Rank": 4, + "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External" }, { - "Rank": 6, + "CommandName": "Add-PnPNavigationNode", "Id": 123, - "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"", - "CommandName": "Add-PnPNavigationNode" + "Rank": 5, + "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"" }, { - "Rank": 7, + "CommandName": "Add-PnPNavigationNode", "Id": 124, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012", - "CommandName": "Add-PnPNavigationNode" + "Rank": 6, + "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"" }, { - "Rank": 8, + "CommandName": "Add-PnPNavigationNode", "Id": 125, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab", - "CommandName": "Add-PnPNavigationNode" + "Rank": 7, + "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012" }, { - "Rank": 1, + "CommandName": "Add-PnPNavigationNode", "Id": 126, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"", - "CommandName": "Add-PnPOrgAssetsLibrary" + "Rank": 8, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab" }, { - "Rank": 2, + "CommandName": "Add-PnPOrgAssetsLibrary", "Id": 127, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -ThumbnailUrl \"https://yourtenant.sharepoint.com/sites/branding/logos/thumbnail.jpg\"", - "CommandName": "Add-PnPOrgAssetsLibrary" + "Rank": 1, + "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"" }, { - "Rank": 3, + "CommandName": "Add-PnPOrgAssetsLibrary", "Id": 128, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private", - "CommandName": "Add-PnPOrgAssetsLibrary" + "Rank": 2, + "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -ThumbnailUrl \"https://yourtenant.sharepoint.com/sites/branding/logos/thumbnail.jpg\"" }, { - "Rank": 1, + "CommandName": "Add-PnPOrgAssetsLibrary", "Id": 129, - "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"", - "CommandName": "Add-PnPOrgNewsSite" + "Rank": 3, + "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private" }, { - "Rank": 1, + "CommandName": "Add-PnPOrgNewsSite", "Id": 130, - "Command": "Add-PnPPage -Name \"NewPage\"", - "CommandName": "Add-PnPPage" + "Rank": 1, + "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"" }, { - "Rank": 2, + "CommandName": "Add-PnPPage", "Id": 131, - "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"", - "CommandName": "Add-PnPPage" + "Rank": 1, + "Command": "Add-PnPPage -Name \"NewPage\"" }, { - "Rank": 3, + "CommandName": "Add-PnPPage", "Id": 132, - "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"", - "CommandName": "Add-PnPPage" + "Rank": 2, + "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"" }, { - "Rank": 4, + "CommandName": "Add-PnPPage", "Id": 133, - "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template", - "CommandName": "Add-PnPPage" + "Rank": 3, + "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"" }, { - "Rank": 5, + "CommandName": "Add-PnPPage", "Id": 134, - "Command": "Add-PnPPage -Name \"Folder/NewPage\"", - "CommandName": "Add-PnPPage" + "Rank": 4, + "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template" }, { - "Rank": 6, + "CommandName": "Add-PnPPage", "Id": 135, - "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock", - "CommandName": "Add-PnPPage" + "Rank": 5, + "Command": "Add-PnPPage -Name \"Folder/NewPage\"" }, { - "Rank": 7, + "CommandName": "Add-PnPPage", "Id": 136, - "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)", - "CommandName": "Add-PnPPage" + "Rank": 6, + "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock" }, { - "Rank": 8, + "CommandName": "Add-PnPPage", "Id": 137, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate", - "CommandName": "Add-PnPPage" + "Rank": 7, + "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)" }, { - "Rank": 9, + "CommandName": "Add-PnPPage", "Id": 138, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043", - "CommandName": "Add-PnPPage" + "Rank": 8, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate" }, { - "Rank": 10, + "CommandName": "Add-PnPPage", "Id": 139, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035", - "CommandName": "Add-PnPPage" + "Rank": 9, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043" }, { - "Rank": 1, + "CommandName": "Add-PnPPage", "Id": 140, - "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"", - "CommandName": "Add-PnPPageImageWebPart" + "Rank": 10, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035" }, { - "Rank": 2, + "CommandName": "Add-PnPPageImageWebPart", "Id": 141, - "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -ImageWidth 400 -ImageHeight 200 -Caption \"Caption text\" -AlternativeText \"Alt text\" -Link \"https://pnp.github.io\"", - "CommandName": "Add-PnPPageImageWebPart" + "Rank": 1, + "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPageImageWebPart", "Id": 142, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn", - "CommandName": "Add-PnPPageSection" + "Rank": 2, + "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -ImageWidth 400 -ImageHeight 200 -Caption \"Caption text\" -AlternativeText \"Alt text\" -Link \"https://pnp.github.io\"" }, { - "Rank": 2, + "CommandName": "Add-PnPPageSection", "Id": 143, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10", - "CommandName": "Add-PnPPageSection" + "Rank": 1, + "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn" }, { - "Rank": 1, + "CommandName": "Add-PnPPageSection", "Id": 144, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"", - "CommandName": "Add-PnPPageTextPart" + "Rank": 2, + "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10" }, { - "Rank": 2, + "CommandName": "Add-PnPPageTextPart", "Id": 145, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"", - "CommandName": "Add-PnPPageTextPart" + "Rank": 1, + "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"" }, { - "Rank": 3, + "CommandName": "Add-PnPPageTextPart", "Id": 146, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -TextBeforeImage \"Text before\" -TextAfterImage \"Text after\"", - "CommandName": "Add-PnPPageTextPart" + "Rank": 2, + "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPageTextPart", "Id": 147, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap", - "CommandName": "Add-PnPPageWebPart" + "Rank": 3, + "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -TextBeforeImage \"Text before\" -TextAfterImage \"Text after\"" }, { - "Rank": 2, + "CommandName": "Add-PnPPageWebPart", "Id": 148, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"", - "CommandName": "Add-PnPPageWebPart" + "Rank": 1, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap" }, { - "Rank": 3, + "CommandName": "Add-PnPPageWebPart", "Id": 149, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2", - "CommandName": "Add-PnPPageWebPart" + "Rank": 2, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPageWebPart", "Id": 150, - "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"", - "CommandName": "Add-PnPPlannerBucket" + "Rank": 3, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2" }, { - "Rank": 2, + "CommandName": "Add-PnPPlannerBucket", "Id": 151, - "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"", - "CommandName": "Add-PnPPlannerBucket" + "Rank": 1, + "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPlannerBucket", "Id": 152, - "Command": "Add-PnPPlannerRoster", - "CommandName": "Add-PnPPlannerRoster" + "Rank": 2, + "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPlannerRoster", "Id": 153, - "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPPlannerRosterMember" + "Rank": 1, + "Command": "Add-PnPPlannerRoster" }, { - "Rank": 1, + "CommandName": "Add-PnPPlannerRosterMember", "Id": 154, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"", - "CommandName": "Add-PnPPlannerTask" + "Rank": 1, + "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPPlannerTask", "Id": 155, - "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"", - "CommandName": "Add-PnPPlannerTask" + "Rank": 1, + "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"" }, { - "Rank": 3, + "CommandName": "Add-PnPPlannerTask", "Id": 156, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"", - "CommandName": "Add-PnPPlannerTask" + "Rank": 2, + "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPlannerTask", "Id": 157, - "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600", - "CommandName": "Add-PnPPublishingImageRendition" + "Rank": 3, + "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" }, { - "Rank": 1, + "CommandName": "Add-PnPPublishingImageRendition", "Id": 158, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'", - "CommandName": "Add-PnPPublishingPage" + "Rank": 1, + "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" }, { - "Rank": 2, + "CommandName": "Add-PnPPublishingPage", "Id": 159, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'", - "CommandName": "Add-PnPPublishingPage" + "Rank": 1, + "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'" }, { - "Rank": 1, + "CommandName": "Add-PnPPublishingPage", "Id": 160, - "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901", - "CommandName": "Add-PnPPublishingPageLayout" + "Rank": 2, + "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'" }, { - "Rank": 1, + "CommandName": "Add-PnPPublishingPageLayout", "Id": 161, - "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"", - "CommandName": "Add-PnPRoleDefinition" + "Rank": 1, + "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" }, { - "Rank": 2, + "CommandName": "Add-PnPRoleDefinition", "Id": 162, - "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems", - "CommandName": "Add-PnPRoleDefinition" + "Rank": 1, + "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"" }, { - "Rank": 3, + "CommandName": "Add-PnPRoleDefinition", "Id": 163, - "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems", - "CommandName": "Add-PnPRoleDefinition" + "Rank": 2, + "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems" }, { - "Rank": 1, + "CommandName": "Add-PnPRoleDefinition", "Id": 164, - "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPSiteCollectionAdmin" + "Rank": 3, + "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems" }, { - "Rank": 2, + "CommandName": "Add-PnPSiteCollectionAdmin", "Id": 165, - "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", - "CommandName": "Add-PnPSiteCollectionAdmin" + "Rank": 1, + "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" }, { - "Rank": 3, + "CommandName": "Add-PnPSiteCollectionAdmin", "Id": 166, - "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"", - "CommandName": "Add-PnPSiteCollectionAdmin" + "Rank": 2, + "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteCollectionAdmin", "Id": 167, - "Command": "Add-PnPSiteCollectionAppCatalog", - "CommandName": "Add-PnPSiteCollectionAppCatalog" + "Rank": 3, + "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Add-PnPSiteCollectionAppCatalog", "Id": 168, - "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"", - "CommandName": "Add-PnPSiteCollectionAppCatalog" + "Rank": 1, + "Command": "Add-PnPSiteCollectionAppCatalog" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteCollectionAppCatalog", "Id": 169, - "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite", - "CommandName": "Add-PnPSiteDesign" + "Rank": 2, + "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" }, { - "Rank": 2, + "CommandName": "Add-PnPSiteDesign", "Id": 170, - "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl https://contoso.sharepoint.com/sites/templates/siteassets/logo.png", - "CommandName": "Add-PnPSiteDesign" + "Rank": 1, + "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite" }, { - "Rank": 3, + "CommandName": "Add-PnPSiteDesign", "Id": 171, - "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl \"https://contoso.sharepoint.com/sites/templates/my images/logo.png\"", - "CommandName": "Add-PnPSiteDesign" + "Rank": 2, + "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl https://contoso.sharepoint.com/sites/templates/siteassets/logo.png" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteDesign", "Id": 172, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll", - "CommandName": "Add-PnPSiteDesignFromWeb" + "Rank": 3, + "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl \"https://contoso.sharepoint.com/sites/templates/my images/logo.png\"" }, { - "Rank": 2, + "CommandName": "Add-PnPSiteDesignFromWeb", "Id": 173, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)", - "CommandName": "Add-PnPSiteDesignFromWeb" + "Rank": 1, + "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll" }, { - "Rank": 3, + "CommandName": "Add-PnPSiteDesignFromWeb", "Id": 174, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -Lists \"/lists/Issue list\" -ThumbnailUrl https://contoso.sharepoint.com/SiteAssets/logo.png", - "CommandName": "Add-PnPSiteDesignFromWeb" + "Rank": 2, + "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteDesignFromWeb", "Id": 175, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82", - "CommandName": "Add-PnPSiteDesignTask" + "Rank": 3, + "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -Lists \"/lists/Issue list\" -ThumbnailUrl https://contoso.sharepoint.com/SiteAssets/logo.png" }, { - "Rank": 2, + "CommandName": "Add-PnPSiteDesignTask", "Id": 176, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"", - "CommandName": "Add-PnPSiteDesignTask" + "Rank": 1, + "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteDesignTask", "Id": 177, - "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script", - "CommandName": "Add-PnPSiteScript" + "Rank": 2, + "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteScript", "Id": 178, - "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"", - "CommandName": "Add-PnPSiteScriptPackage" + "Rank": 1, + "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteScriptPackage", "Id": 179, - "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate", - "CommandName": "Add-PnPSiteTemplate" + "Rank": 1, + "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"" }, { - "Rank": 1, + "CommandName": "Add-PnPSiteTemplate", "Id": 180, - "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com", - "CommandName": "Add-PnPStoredCredential" + "Rank": 1, + "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate" }, { - "Rank": 2, + "CommandName": "Add-PnPStoredCredential", "Id": 181, - "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)", - "CommandName": "Add-PnPStoredCredential" + "Rank": 1, + "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com" }, { - "Rank": 3, + "CommandName": "Add-PnPStoredCredential", "Id": 182, - "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)\r ; Connect-PnPOnline -Url \"https://tenant.sharepoint.com/sites/mydemosite\"", - "CommandName": "Add-PnPStoredCredential" + "Rank": 2, + "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" }, { - "Rank": 1, + "CommandName": "Add-PnPStoredCredential", "Id": 183, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"", - "CommandName": "Add-PnPTaxonomyField" + "Rank": 3, + "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)\r ; Connect-PnPOnline -Url \"https://tenant.sharepoint.com/sites/mydemosite\"" }, { - "Rank": 2, + "CommandName": "Add-PnPTaxonomyField", "Id": 184, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"", - "CommandName": "Add-PnPTaxonomyField" + "Rank": 1, + "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"" }, { - "Rank": 1, + "CommandName": "Add-PnPTaxonomyField", "Id": 185, - "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true", - "CommandName": "Add-PnPTeamsChannel" + "Rank": 2, + "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"" }, { - "Rank": 2, + "CommandName": "Add-PnPTeamsChannel", "Id": 186, - "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"", - "CommandName": "Add-PnPTeamsChannel" + "Rank": 1, + "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true" }, { - "Rank": 3, + "CommandName": "Add-PnPTeamsChannel", "Id": 187, - "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com", - "CommandName": "Add-PnPTeamsChannel" + "Rank": 2, + "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"" }, { - "Rank": 4, + "CommandName": "Add-PnPTeamsChannel", "Id": 188, - "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com", - "CommandName": "Add-PnPTeamsChannel" + "Rank": 3, + "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com" }, { - "Rank": 1, + "CommandName": "Add-PnPTeamsChannel", "Id": 189, - "Command": "Add-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -User john@doe.com -Role Owner", - "CommandName": "Add-PnpTeamsChannelUser" + "Rank": 4, + "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com" }, { - "Rank": 2, + "CommandName": "Add-PnpTeamsChannelUser", "Id": 190, - "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member", - "CommandName": "Add-PnpTeamsChannelUser" + "Rank": 1, + "Command": "Add-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -User john@doe.com -Role Owner" }, { - "Rank": 1, + "CommandName": "Add-PnpTeamsChannelUser", "Id": 191, - "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type WebSite -ContentUrl \"https://aka.ms/m365pnp\"", - "CommandName": "Add-PnPTeamsTab" + "Rank": 2, + "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member" }, { - "Rank": 2, + "CommandName": "Add-PnPTeamsTab", "Id": 192, - "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type PDF -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/General/MyFile.pdf\" -EntityId \"null\"", - "CommandName": "Add-PnPTeamsTab" + "Rank": 1, + "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type WebSite -ContentUrl \"https://aka.ms/m365pnp\"" }, { - "Rank": 3, + "CommandName": "Add-PnPTeamsTab", "Id": 193, - "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type SharePointPageAndList -WebSiteUrl \"https://contoso.sharepoint.com/sites/Marketing/SitePages/Home.aspx\"", - "CommandName": "Add-PnPTeamsTab" + "Rank": 2, + "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type PDF -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/General/MyFile.pdf\" -EntityId \"null\"" }, { - "Rank": 4, + "CommandName": "Add-PnPTeamsTab", "Id": 194, - "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Excel Tab\" -Type Excel -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/My Excel File.csv\" -EntityId 6", - "CommandName": "Add-PnPTeamsTab" + "Rank": 3, + "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type SharePointPageAndList -WebSiteUrl \"https://contoso.sharepoint.com/sites/Marketing/SitePages/Home.aspx\"" }, { - "Rank": 1, + "CommandName": "Add-PnPTeamsTab", "Id": 195, - "Command": "Add-PnPTeamsTeam", - "CommandName": "Add-PnPTeamsTeam" + "Rank": 4, + "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Excel Tab\" -Type Excel -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/My Excel File.csv\" -EntityId 6" }, { - "Rank": 1, + "CommandName": "Add-PnPTeamsTeam", "Id": 196, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", - "CommandName": "Add-PnPTeamsUser" + "Rank": 1, + "Command": "Add-PnPTeamsTeam" }, { - "Rank": 2, + "CommandName": "Add-PnPTeamsUser", "Id": 197, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member", - "CommandName": "Add-PnPTeamsUser" + "Rank": 1, + "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { - "Rank": 3, + "CommandName": "Add-PnPTeamsUser", "Id": 198, - "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member", - "CommandName": "Add-PnPTeamsUser" + "Rank": 2, + "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" }, { - "Rank": 4, + "CommandName": "Add-PnPTeamsUser", "Id": 199, - "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private", - "CommandName": "Add-PnPTeamsUser" + "Rank": 3, + "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member" }, { - "Rank": 1, + "CommandName": "Add-PnPTeamsUser", "Id": 200, - "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public", - "CommandName": "Add-PnPTenantCdnOrigin" + "Rank": 4, + "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private" }, { - "Rank": 1, + "CommandName": "Add-PnPTenantCdnOrigin", "Id": 201, - "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence", - "CommandName": "Add-PnPTenantSequence" + "Rank": 1, + "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" }, { - "Rank": 1, + "CommandName": "Add-PnPTenantSequence", "Id": 202, - "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence", - "CommandName": "Add-PnPTenantSequenceSite" + "Rank": 1, + "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence" }, { - "Rank": 1, + "CommandName": "Add-PnPTenantSequenceSite", "Id": 203, - "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite", - "CommandName": "Add-PnPTenantSequenceSubSite" + "Rank": 1, + "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence" }, { - "Rank": 1, + "CommandName": "Add-PnPTenantSequenceSubSite", "Id": 204, - "Command": "Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}", - "CommandName": "Add-PnPTermToTerm" + "Rank": 1, + "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite" }, { - "Rank": 1, + "CommandName": "Add-PnPTermToTerm", "Id": 205, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"", - "CommandName": "Add-PnPView" + "Rank": 1, + "Command": "Add-PnPTermToTerm -ParentTermId 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}" }, { - "Rank": 2, + "CommandName": "Add-PnPView", "Id": 206, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100", - "CommandName": "Add-PnPView" + "Rank": 1, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"" }, { - "Rank": 3, + "CommandName": "Add-PnPView", "Id": 207, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"", - "CommandName": "Add-PnPView" + "Rank": 2, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100" }, { - "Rank": 1, + "CommandName": "Add-PnPView", "Id": 208, - "Command": "Add-PnPVivaConnectionsDashboardACE -Identity CardDesigner -Order 3 -Title \"Hello there\" -PropertiesJSON $myProperties -CardSize Large -Description \"ACE description\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"", - "CommandName": "Add-PnPVivaConnectionsDashboardACE" + "Rank": 3, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"" }, { - "Rank": 2, + "CommandName": "Add-PnPVivaConnectionsDashboardACE", "Id": 209, - "Command": "Add-PnPVivaConnectionsDashboardACE -Identity ThirdPartyApp -Order 1 -Title \"Hello there\" -PropertiesJSON $myProperties -CardSize Medium -Description \"ACE with description\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"", - "CommandName": "Add-PnPVivaConnectionsDashboardACE" + "Rank": 1, + "Command": "Add-PnPVivaConnectionsDashboardACE -Identity CardDesigner -Order 3 -Title \"Hello there\" -PropertiesJSON $myProperties -CardSize Large -Description \"ACE description\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"" }, { - "Rank": 3, + "CommandName": "Add-PnPVivaConnectionsDashboardACE", "Id": 210, - "Command": "Add-PnPVivaConnectionsDashboardACE -Identity AssignedTasks -Order 2 -Title \"Tasks\" -PropertiesJSON $myProperties -CardSize Medium -Description \"My Assigned tasks\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"", - "CommandName": "Add-PnPVivaConnectionsDashboardACE" + "Rank": 2, + "Command": "Add-PnPVivaConnectionsDashboardACE -Identity ThirdPartyApp -Order 1 -Title \"Hello there\" -PropertiesJSON $myProperties -CardSize Medium -Description \"ACE with description\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"" }, { - "Rank": 1, + "CommandName": "Add-PnPVivaConnectionsDashboardACE", "Id": 211, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook", - "CommandName": "Add-PnPWebhookSubscription" + "Rank": 3, + "Command": "Add-PnPVivaConnectionsDashboardACE -Identity AssignedTasks -Order 2 -Title \"Tasks\" -PropertiesJSON $myProperties -CardSize Medium -Description \"My Assigned tasks\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"" }, { - "Rank": 2, + "CommandName": "Add-PnPWebhookSubscription", "Id": 212, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"", - "CommandName": "Add-PnPWebhookSubscription" + "Rank": 1, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook" }, { - "Rank": 3, + "CommandName": "Add-PnPWebhookSubscription", "Id": 213, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"", - "CommandName": "Add-PnPWebhookSubscription" + "Rank": 2, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" }, { - "Rank": 1, + "CommandName": "Add-PnPWebhookSubscription", "Id": 214, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1", - "CommandName": "Add-PnPWebPartToWebPartPage" + "Rank": 3, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"" }, { - "Rank": 2, + "CommandName": "Add-PnPWebPartToWebPartPage", "Id": 215, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1", - "CommandName": "Add-PnPWebPartToWebPartPage" + "Rank": 1, + "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1" }, { - "Rank": 1, + "CommandName": "Add-PnPWebPartToWebPartPage", "Id": 216, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1", - "CommandName": "Add-PnPWebPartToWikiPage" + "Rank": 2, + "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1" }, { - "Rank": 2, + "CommandName": "Add-PnPWebPartToWikiPage", "Id": 217, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1", - "CommandName": "Add-PnPWebPartToWikiPage" + "Rank": 1, + "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1" }, { - "Rank": 1, + "CommandName": "Add-PnPWebPartToWikiPage", "Id": 218, - "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'", - "CommandName": "Add-PnPWikiPage" + "Rank": 2, + "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1" }, { - "Rank": 1, + "CommandName": "Add-PnPWikiPage", "Id": 219, - "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"", - "CommandName": "Clear-PnPAzureADGroupMember" + "Rank": 1, + "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'" }, { - "Rank": 1, + "CommandName": "Clear-PnPAzureADGroupMember", "Id": 220, - "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"", - "CommandName": "Clear-PnPAzureADGroupOwner" + "Rank": 1, + "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"" }, { - "Rank": 1, + "CommandName": "Clear-PnPAzureADGroupOwner", "Id": 221, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField", - "CommandName": "Clear-PnPDefaultColumnValues" + "Rank": 1, + "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"" }, { - "Rank": 2, + "CommandName": "Clear-PnPDefaultColumnValues", "Id": 222, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A", - "CommandName": "Clear-PnPDefaultColumnValues" + "Rank": 1, + "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField" }, { - "Rank": 1, + "CommandName": "Clear-PnPDefaultColumnValues", "Id": 223, - "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4", - "CommandName": "Clear-PnPListItemAsRecord" + "Rank": 2, + "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A" }, { - "Rank": 1, + "CommandName": "Clear-PnPListItemAsRecord", "Id": 224, - "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"", - "CommandName": "Clear-PnPMicrosoft365GroupMember" + "Rank": 1, + "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4" }, { - "Rank": 1, + "CommandName": "Clear-PnPMicrosoft365GroupMember", "Id": 225, - "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"", - "CommandName": "Clear-PnPMicrosoft365GroupOwner" + "Rank": 1, + "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"" }, { - "Rank": 1, + "CommandName": "Clear-PnPMicrosoft365GroupOwner", "Id": 226, - "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442", - "CommandName": "Clear-PnpRecycleBinItem" + "Rank": 1, + "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"" }, { - "Rank": 2, + "CommandName": "Clear-PnpRecycleBinItem", "Id": 227, - "Command": "Clear-PnPRecycleBinItem -Identity $item -Force", - "CommandName": "Clear-PnpRecycleBinItem" + "Rank": 1, + "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" }, { - "Rank": 3, + "CommandName": "Clear-PnpRecycleBinItem", "Id": 228, - "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000", - "CommandName": "Clear-PnpRecycleBinItem" + "Rank": 2, + "Command": "Clear-PnPRecycleBinItem -Identity $item -Force" }, { - "Rank": 1, + "CommandName": "Clear-PnpRecycleBinItem", "Id": 229, - "Command": "Clear-PnPTenantAppCatalogUrl", - "CommandName": "Clear-PnPTenantAppCatalogUrl" + "Rank": 3, + "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000" }, { - "Rank": 1, + "CommandName": "Clear-PnPTenantAppCatalogUrl", "Id": 230, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Clear-PnPTenantRecycleBinItem" + "Rank": 1, + "Command": "Clear-PnPTenantAppCatalogUrl" }, { - "Rank": 2, + "CommandName": "Clear-PnPTenantRecycleBinItem", "Id": 231, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait", - "CommandName": "Clear-PnPTenantRecycleBinItem" + "Rank": 1, + "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 1, + "CommandName": "Clear-PnPTenantRecycleBinItem", "Id": 232, - "Command": "Connect-PnPOnline -Url contoso.sharepoint.com -AzureEnvironment Custom -MicrosoftGraphEndPoint \"custom.graph.microsoft.com\" -AzureADLoginEndPoint \"https://custom.login.microsoftonline.com\"", - "CommandName": "Connect-PnPOnline" + "Rank": 2, + "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" }, { - "Rank": 1, + "CommandName": "Connect-PnPOnline", "Id": 233, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -AsMemoryStream", - "CommandName": "Convert-PnPFile" + "Rank": 1, + "Command": "Connect-PnPOnline -Url contoso.sharepoint.com -AzureEnvironment Custom -MicrosoftGraphEndPoint \"custom.graph.microsoft.com\" -AzureADLoginEndPoint \"https://custom.login.microsoftonline.com\"" }, { - "Rank": 2, + "CommandName": "Convert-PnPFile", "Id": 234, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\"", - "CommandName": "Convert-PnPFile" + "Rank": 1, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -AsMemoryStream" }, { - "Rank": 3, + "CommandName": "Convert-PnPFile", "Id": 235, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\"", - "CommandName": "Convert-PnPFile" + "Rank": 2, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\"" }, { - "Rank": 4, + "CommandName": "Convert-PnPFile", "Id": 236, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\" -Force", - "CommandName": "Convert-PnPFile" + "Rank": 3, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\"" }, { - "Rank": 5, + "CommandName": "Convert-PnPFile", "Id": 237, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.xlsx\" -Folder \"/sites/demo/Shared Documents/Archive\"", - "CommandName": "Convert-PnPFile" + "Rank": 4, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\" -Force" }, { - "Rank": 6, + "CommandName": "Convert-PnPFile", "Id": 238, - "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.png\" -ConvertToFormat Jpg -Folder \"/sites/demo/Shared Documents/Archive\"", - "CommandName": "Convert-PnPFile" + "Rank": 5, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.xlsx\" -Folder \"/sites/demo/Shared Documents/Archive\"" }, { - "Rank": 1, + "CommandName": "Convert-PnPFile", "Id": 239, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp", - "CommandName": "Convert-PnPFolderToSiteTemplate" + "Rank": 6, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.png\" -ConvertToFormat Jpg -Folder \"/sites/demo/Shared Documents/Archive\"" }, { - "Rank": 2, + "CommandName": "Convert-PnPFolderToSiteTemplate", "Id": 240, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp", - "CommandName": "Convert-PnPFolderToSiteTemplate" + "Rank": 1, + "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp" }, { - "Rank": 1, + "CommandName": "Convert-PnPFolderToSiteTemplate", "Id": 241, - "Command": "Convert-PnPSiteTemplate -Path template.xml", - "CommandName": "Convert-PnPSiteTemplate" + "Rank": 2, + "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp" }, { - "Rank": 2, + "CommandName": "Convert-PnPSiteTemplate", "Id": 242, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml", - "CommandName": "Convert-PnPSiteTemplate" + "Rank": 1, + "Command": "Convert-PnPSiteTemplate -Path template.xml" }, { - "Rank": 3, + "CommandName": "Convert-PnPSiteTemplate", "Id": 243, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512", - "CommandName": "Convert-PnPSiteTemplate" + "Rank": 2, + "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml" }, { - "Rank": 1, + "CommandName": "Convert-PnPSiteTemplate", "Id": 244, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml", - "CommandName": "Convert-PnPSiteTemplateToMarkdown" + "Rank": 3, + "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512" }, { - "Rank": 2, + "CommandName": "Convert-PnPSiteTemplateToMarkdown", "Id": 245, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md", - "CommandName": "Convert-PnPSiteTemplateToMarkdown" + "Rank": 1, + "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml" }, { - "Rank": 1, + "CommandName": "Convert-PnPSiteTemplateToMarkdown", "Id": 246, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite", - "CommandName": "ConvertTo-PnPPage" + "Rank": 2, + "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md" }, { - "Rank": 2, + "CommandName": "ConvertTo-PnPPage", "Id": 247, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml", - "CommandName": "ConvertTo-PnPPage" + "Rank": 1, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite" }, { - "Rank": 3, + "CommandName": "ConvertTo-PnPPage", "Id": 248, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner", - "CommandName": "ConvertTo-PnPPage" + "Rank": 2, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml" }, { - "Rank": 4, + "CommandName": "ConvertTo-PnPPage", "Id": 249, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata", - "CommandName": "ConvertTo-PnPPage" + "Rank": 3, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner" }, { - "Rank": 5, + "CommandName": "ConvertTo-PnPPage", "Id": 250, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", - "CommandName": "ConvertTo-PnPPage" + "Rank": 4, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata" }, { - "Rank": 6, + "CommandName": "ConvertTo-PnPPage", "Id": 251, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target", - "CommandName": "ConvertTo-PnPPage" + "Rank": 5, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Rank": 7, + "CommandName": "ConvertTo-PnPPage", "Id": 252, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite", - "CommandName": "ConvertTo-PnPPage" + "Rank": 6, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target" }, { - "Rank": 8, + "CommandName": "ConvertTo-PnPPage", "Id": 253, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite", - "CommandName": "ConvertTo-PnPPage" + "Rank": 7, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite" }, { - "Rank": 9, + "CommandName": "ConvertTo-PnPPage", "Id": 254, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", - "CommandName": "ConvertTo-PnPPage" + "Rank": 8, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite" }, { - "Rank": 10, + "CommandName": "ConvertTo-PnPPage", "Id": 255, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite", - "CommandName": "ConvertTo-PnPPage" + "Rank": 9, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Rank": 11, + "CommandName": "ConvertTo-PnPPage", "Id": 256, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush", - "CommandName": "ConvertTo-PnPPage" + "Rank": 10, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite" }, { - "Rank": 12, + "CommandName": "ConvertTo-PnPPage", "Id": 257, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", - "CommandName": "ConvertTo-PnPPage" + "Rank": 11, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush" }, { - "Rank": 13, + "CommandName": "ConvertTo-PnPPage", "Id": 258, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", - "CommandName": "ConvertTo-PnPPage" + "Rank": 12, + "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Rank": 14, + "CommandName": "ConvertTo-PnPPage", "Id": 259, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv", - "CommandName": "ConvertTo-PnPPage" + "Rank": 13, + "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Rank": 1, + "CommandName": "ConvertTo-PnPPage", "Id": 260, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFile" + "Rank": 14, + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv" }, { - "Rank": 2, + "CommandName": "Copy-PnPFile", "Id": 261, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"", - "CommandName": "Copy-PnPFile" + "Rank": 1, + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 3, + "CommandName": "Copy-PnPFile", "Id": 262, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory", - "CommandName": "Copy-PnPFile" + "Rank": 2, + "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" }, { - "Rank": 4, + "CommandName": "Copy-PnPFile", "Id": 263, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFile" + "Rank": 3, + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" }, { - "Rank": 5, + "CommandName": "Copy-PnPFile", "Id": 264, - "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"", - "CommandName": "Copy-PnPFile" + "Rank": 4, + "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 6, + "CommandName": "Copy-PnPFile", "Id": 265, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"", - "CommandName": "Copy-PnPFile" + "Rank": 5, + "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" }, { - "Rank": 7, + "CommandName": "Copy-PnPFile", "Id": 266, - "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"", - "CommandName": "Copy-PnPFile" + "Rank": 6, + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" }, { - "Rank": 8, + "CommandName": "Copy-PnPFile", "Id": 267, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFile" + "Rank": 7, + "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" }, { - "Rank": 9, + "CommandName": "Copy-PnPFile", "Id": 268, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite", - "CommandName": "Copy-PnPFile" + "Rank": 8, + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 10, + "CommandName": "Copy-PnPFile", "Id": 269, - "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"", - "CommandName": "Copy-PnPFile" + "Rank": 9, + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" }, { - "Rank": 1, + "CommandName": "Copy-PnPFile", "Id": 270, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFolder" + "Rank": 10, + "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" }, { - "Rank": 2, + "CommandName": "Copy-PnPFolder", "Id": 271, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"", - "CommandName": "Copy-PnPFolder" + "Rank": 1, + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 3, + "CommandName": "Copy-PnPFolder", "Id": 272, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory", - "CommandName": "Copy-PnPFolder" + "Rank": 2, + "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" }, { - "Rank": 4, + "CommandName": "Copy-PnPFolder", "Id": 273, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFolder" + "Rank": 3, + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" }, { - "Rank": 5, + "CommandName": "Copy-PnPFolder", "Id": 274, - "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"", - "CommandName": "Copy-PnPFolder" + "Rank": 4, + "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 6, + "CommandName": "Copy-PnPFolder", "Id": 275, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"", - "CommandName": "Copy-PnPFolder" + "Rank": 5, + "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" }, { - "Rank": 7, + "CommandName": "Copy-PnPFolder", "Id": 276, - "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"", - "CommandName": "Copy-PnPFolder" + "Rank": 6, + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" }, { - "Rank": 8, + "CommandName": "Copy-PnPFolder", "Id": 277, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", - "CommandName": "Copy-PnPFolder" + "Rank": 7, + "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" }, { - "Rank": 9, + "CommandName": "Copy-PnPFolder", "Id": 278, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite", - "CommandName": "Copy-PnPFolder" + "Rank": 8, + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Rank": 10, + "CommandName": "Copy-PnPFolder", "Id": 279, - "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"", - "CommandName": "Copy-PnPFolder" + "Rank": 9, + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" }, { - "Rank": 1, + "CommandName": "Copy-PnPFolder", "Id": 280, - "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"", - "CommandName": "Copy-PnPItemProxy" + "Rank": 10, + "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" }, { - "Rank": 1, + "CommandName": "Copy-PnPFolder", "Id": 281, - "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"", - "CommandName": "Copy-PnPList" + "Rank": 11, + "Command": "Copy-PnPFolder -LocalPath \"c:\\temp\" -TargetUrl \"Subsite1/Shared Documents\" -Recurse -Overwrite" }, { - "Rank": 2, + "CommandName": "Copy-PnPItemProxy", "Id": 282, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment", - "CommandName": "Copy-PnPList" + "Rank": 1, + "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"" }, { - "Rank": 3, + "CommandName": "Copy-PnPList", "Id": 283, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"", - "CommandName": "Copy-PnPList" + "Rank": 1, + "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"" }, { - "Rank": 4, + "CommandName": "Copy-PnPList", "Id": 284, - "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\", - "CommandName": "Copy-PnPList" + "Rank": 2, + "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment" }, { - "Rank": 1, + "CommandName": "Copy-PnPList", "Id": 285, - "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members", - "CommandName": "Copy-PnPTeamsTeam" + "Rank": 3, + "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"" }, { - "Rank": 2, + "CommandName": "Copy-PnPList", "Id": 286, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"", - "CommandName": "Copy-PnPTeamsTeam" + "Rank": 4, + "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\" }, { - "Rank": 3, + "CommandName": "Copy-PnPTeamsTeam", "Id": 287, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members -Description \"Self help community for library\" -Classification \"Library\" -Visibility public", - "CommandName": "Copy-PnPTeamsTeam" + "Rank": 1, + "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members" }, { - "Rank": 4, + "CommandName": "Copy-PnPTeamsTeam", "Id": 288, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone settings,channels -Description \"Self help community for library\" -Classification \"Library\" -Visibility public", - "CommandName": "Copy-PnPTeamsTeam" + "Rank": 2, + "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"" }, { - "Rank": 1, + "CommandName": "Copy-PnPTeamsTeam", "Id": 289, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Disable-PnPFeature" + "Rank": 3, + "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" }, { - "Rank": 2, + "CommandName": "Copy-PnPTeamsTeam", "Id": 290, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force", - "CommandName": "Disable-PnPFeature" + "Rank": 4, + "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone settings,channels -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" }, { - "Rank": 3, + "CommandName": "Disable-PnPFeature", "Id": 291, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web", - "CommandName": "Disable-PnPFeature" + "Rank": 1, + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Rank": 1, + "CommandName": "Disable-PnPFeature", "Id": 292, - "Command": "Disable-PnPPageScheduling", - "CommandName": "Disable-PnPPageScheduling" + "Rank": 2, + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" }, { - "Rank": 1, + "CommandName": "Disable-PnPFeature", "Id": 293, - "Command": "Disable-PnPPowerShellTelemetry", - "CommandName": "Disable-PnPPowerShellTelemetry" + "Rank": 3, + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" }, { - "Rank": 2, + "CommandName": "Disable-PnPPageScheduling", "Id": 294, - "Command": "Disable-PnPPowerShellTelemetry -Force", - "CommandName": "Disable-PnPPowerShellTelemetry" + "Rank": 1, + "Command": "Disable-PnPPageScheduling" }, { - "Rank": 1, + "CommandName": "Disable-PnPPowerShellTelemetry", "Id": 295, - "Command": "Disable-PnPSharingForNonOwnersOfSite", - "CommandName": "Disable-PnPSharingForNonOwnersOfSite" + "Rank": 1, + "Command": "Disable-PnPPowerShellTelemetry" }, { - "Rank": 1, + "CommandName": "Disable-PnPPowerShellTelemetry", "Id": 296, - "Command": "Disable-PnPSiteClassification", - "CommandName": "Disable-PnPSiteClassification" + "Rank": 2, + "Command": "Disable-PnPPowerShellTelemetry -Force" }, { - "Rank": 1, + "CommandName": "Disable-PnPSharingForNonOwnersOfSite", "Id": 297, - "Command": "Disconnect-PnPOnline", - "CommandName": "Disconnect-PnPOnline" + "Rank": 1, + "Command": "Disable-PnPSharingForNonOwnersOfSite" }, { - "Rank": 1, + "CommandName": "Disable-PnPSiteClassification", "Id": 298, - "Command": "Enable-PnPCommSite", - "CommandName": "Enable-PnPCommSite" + "Rank": 1, + "Command": "Disable-PnPSiteClassification" }, { - "Rank": 2, + "CommandName": "Disconnect-PnPOnline", "Id": 299, - "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767", - "CommandName": "Enable-PnPCommSite" + "Rank": 1, + "Command": "Disconnect-PnPOnline" }, { - "Rank": 1, + "CommandName": "Enable-PnPCommSite", "Id": 300, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Enable-PnPFeature" + "Rank": 1, + "Command": "Enable-PnPCommSite" }, { - "Rank": 2, + "CommandName": "Enable-PnPCommSite", "Id": 301, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force", - "CommandName": "Enable-PnPFeature" + "Rank": 2, + "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767" }, { - "Rank": 3, + "CommandName": "Enable-PnPFeature", "Id": 302, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web", - "CommandName": "Enable-PnPFeature" + "Rank": 1, + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Rank": 1, + "CommandName": "Enable-PnPFeature", "Id": 303, - "Command": "Enable-PnPPageScheduling", - "CommandName": "Enable-PnPPageScheduling" + "Rank": 2, + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" }, { - "Rank": 1, + "CommandName": "Enable-PnPFeature", "Id": 304, - "Command": "Enable-PnPPowerShellTelemetry", - "CommandName": "Enable-PnPPowerShellTelemetry" + "Rank": 3, + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" }, { - "Rank": 2, + "CommandName": "Enable-PnPPageScheduling", "Id": 305, - "Command": "Enable-PnPPowerShellTelemetry -Force", - "CommandName": "Enable-PnPPowerShellTelemetry" + "Rank": 1, + "Command": "Enable-PnPPageScheduling" }, { - "Rank": 1, + "CommandName": "Enable-PnPPowerShellTelemetry", "Id": 306, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"", - "CommandName": "Enable-PnPSiteClassification" + "Rank": 1, + "Command": "Enable-PnPPowerShellTelemetry" }, { - "Rank": 2, + "CommandName": "Enable-PnPPowerShellTelemetry", "Id": 307, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp", - "CommandName": "Enable-PnPSiteClassification" + "Rank": 2, + "Command": "Enable-PnPPowerShellTelemetry -Force" }, { - "Rank": 1, + "CommandName": "Enable-PnPSiteClassification", "Id": 308, - "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"", - "CommandName": "Export-PnPListToSiteTemplate" + "Rank": 1, + "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"" }, { - "Rank": 2, + "CommandName": "Enable-PnPSiteClassification", "Id": 309, - "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"", - "CommandName": "Export-PnPListToSiteTemplate" + "Rank": 2, + "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp" }, { - "Rank": 1, + "CommandName": "Export-PnPListToSiteTemplate", "Id": 310, - "Command": "Export-PnPPage -Identity Home.aspx", - "CommandName": "Export-PnPPage" + "Rank": 1, + "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"" }, { - "Rank": 2, + "CommandName": "Export-PnPListToSiteTemplate", "Id": 311, - "Command": "Export-PnPPage -Identity HR/Home.aspx -Out template.pnp", - "CommandName": "Export-PnPPage" + "Rank": 2, + "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"" }, { - "Rank": 1, + "CommandName": "Export-PnPPage", "Id": 312, - "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite", - "CommandName": "Export-PnPPageMapping" + "Rank": 1, + "Command": "Export-PnPPage -Identity Home.aspx" }, { - "Rank": 2, + "CommandName": "Export-PnPPage", "Id": 313, - "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite", - "CommandName": "Export-PnPPageMapping" + "Rank": 2, + "Command": "Export-PnPPage -Identity HR/Home.aspx -Out template.pnp" }, { - "Rank": 3, + "CommandName": "Export-PnPPageMapping", "Id": 314, - "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite", - "CommandName": "Export-PnPPageMapping" + "Rank": 1, + "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite" }, { - "Rank": 1, + "CommandName": "Export-PnPPageMapping", "Id": 315, - "Command": "Export-PnPTaxonomy", - "CommandName": "Export-PnPTaxonomy" + "Rank": 2, + "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite" }, { - "Rank": 2, + "CommandName": "Export-PnPPageMapping", "Id": 316, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt", - "CommandName": "Export-PnPTaxonomy" + "Rank": 3, + "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite" }, { - "Rank": 3, + "CommandName": "Export-PnPTaxonomy", "Id": 317, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254", - "CommandName": "Export-PnPTaxonomy" + "Rank": 1, + "Command": "Export-PnPTaxonomy" }, { - "Rank": 4, + "CommandName": "Export-PnPTaxonomy", "Id": 318, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044", - "CommandName": "Export-PnPTaxonomy" + "Rank": 2, + "Command": "Export-PnPTaxonomy -Path c:\\output.txt" }, { - "Rank": 1, + "CommandName": "Export-PnPTaxonomy", "Id": 319, - "Command": "Export-PnPTermGroupToXml", - "CommandName": "Export-PnPTermGroupToXml" + "Rank": 3, + "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254" }, { - "Rank": 2, + "CommandName": "Export-PnPTaxonomy", "Id": 320, - "Command": "Export-PnPTermGroupToXml -Out output.xml", - "CommandName": "Export-PnPTermGroupToXml" + "Rank": 4, + "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044" }, { - "Rank": 3, + "CommandName": "Export-PnPTermGroupToXml", "Id": 321, - "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"", - "CommandName": "Export-PnPTermGroupToXml" + "Rank": 1, + "Command": "Export-PnPTermGroupToXml" }, { - "Rank": 1, + "CommandName": "Export-PnPTermGroupToXml", "Id": 322, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"", - "CommandName": "Export-PnPUserInfo" + "Rank": 2, + "Command": "Export-PnPTermGroupToXml -Out output.xml" }, { - "Rank": 2, + "CommandName": "Export-PnPTermGroupToXml", "Id": 323, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\" | ConvertTo-Csv | Out-File MyFile.csv", - "CommandName": "Export-PnPUserInfo" + "Rank": 3, + "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"" }, { - "Rank": 1, + "CommandName": "Export-PnPUserInfo", "Id": 324, - "Command": "Export-PnPUserProfile -LoginName user@domain.com", - "CommandName": "Export-PnPUserProfile" + "Rank": 1, + "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" }, { - "Rank": 2, + "CommandName": "Export-PnPUserInfo", "Id": 325, - "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv", - "CommandName": "Export-PnPUserProfile" + "Rank": 2, + "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\" | ConvertTo-Csv | Out-File MyFile.csv" }, { - "Rank": 1, + "CommandName": "Export-PnPUserProfile", "Id": 326, - "Command": "Find-PnPFile -Match *.master", - "CommandName": "Find-PnPFile" + "Rank": 1, + "Command": "Export-PnPUserProfile -LoginName user@domain.com" }, { - "Rank": 2, + "CommandName": "Export-PnPUserProfile", "Id": 327, - "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf", - "CommandName": "Find-PnPFile" + "Rank": 2, + "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv" }, { - "Rank": 3, + "CommandName": "Find-PnPFile", "Id": 328, - "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx", - "CommandName": "Find-PnPFile" + "Rank": 1, + "Command": "Find-PnPFile -Match *.master" }, { - "Rank": 1, + "CommandName": "Find-PnPFile", "Id": 329, - "Command": "Get-PnPAccessToken", - "CommandName": "Get-PnPAccessToken" + "Rank": 2, + "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf" }, { - "Rank": 2, + "CommandName": "Find-PnPFile", "Id": 330, - "Command": "Get-PnPAccessToken -Decoded", - "CommandName": "Get-PnPAccessToken" + "Rank": 3, + "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx" }, { - "Rank": 3, + "CommandName": "Get-PnPAccessToken", "Id": 331, - "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint", - "CommandName": "Get-PnPAccessToken" + "Rank": 1, + "Command": "Get-PnPAccessToken" }, { - "Rank": 4, + "CommandName": "Get-PnPAccessToken", "Id": 332, - "Command": "Get-PnPAccessToken -ResourceTypeName ARM", - "CommandName": "Get-PnPAccessToken" + "Rank": 2, + "Command": "Get-PnPAccessToken -Decoded" }, { - "Rank": 5, + "CommandName": "Get-PnPAccessToken", "Id": 333, - "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"", - "CommandName": "Get-PnPAccessToken" + "Rank": 3, + "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint" }, { - "Rank": 1, + "CommandName": "Get-PnPAccessToken", "Id": 334, - "Command": "Get-PnPAlert", - "CommandName": "Get-PnPAlert" + "Rank": 4, + "Command": "Get-PnPAccessToken -ResourceTypeName ARM" }, { - "Rank": 2, + "CommandName": "Get-PnPAccessToken", "Id": 335, - "Command": "Get-PnPAlert -List \"Demo List\"", - "CommandName": "Get-PnPAlert" + "Rank": 5, + "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAlert", "Id": 336, - "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", - "CommandName": "Get-PnPAlert" + "Rank": 1, + "Command": "Get-PnPAlert" }, { - "Rank": 4, + "CommandName": "Get-PnPAlert", "Id": 337, - "Command": "Get-PnPAlert -Title \"Demo Alert\"", - "CommandName": "Get-PnPAlert" + "Rank": 2, + "Command": "Get-PnPAlert -List \"Demo List\"" }, { - "Rank": 5, + "CommandName": "Get-PnPAlert", "Id": 338, - "Command": "Get-PnPAlert -AllUsers", - "CommandName": "Get-PnPAlert" + "Rank": 3, + "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" }, { - "Rank": 6, + "CommandName": "Get-PnPAlert", "Id": 339, - "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers", - "CommandName": "Get-PnPAlert" + "Rank": 4, + "Command": "Get-PnPAlert -Title \"Demo Alert\"" }, { - "Rank": 1, + "CommandName": "Get-PnPAlert", "Id": 340, - "Command": "Get-PnPApp", - "CommandName": "Get-PnPApp" + "Rank": 5, + "Command": "Get-PnPAlert -AllUsers" }, { - "Rank": 2, + "CommandName": "Get-PnPAlert", "Id": 341, - "Command": "Get-PnPApp -Scope Site", - "CommandName": "Get-PnPApp" + "Rank": 6, + "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers" }, { - "Rank": 3, + "CommandName": "Get-PnPApp", "Id": 342, - "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f", - "CommandName": "Get-PnPApp" + "Rank": 1, + "Command": "Get-PnPApp" }, { - "Rank": 1, + "CommandName": "Get-PnPApp", "Id": 343, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b", - "CommandName": "Get-PnPAppErrors" + "Rank": 2, + "Command": "Get-PnPApp -Scope Site" }, { - "Rank": 2, + "CommandName": "Get-PnPApp", "Id": 344, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()", - "CommandName": "Get-PnPAppErrors" + "Rank": 3, + "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Rank": 1, + "CommandName": "Get-PnPAppErrors", "Id": 345, - "Command": "Get-PnPAppInfo -Name \"Excel Service\"", - "CommandName": "Get-PnPAppInfo" + "Rank": 1, + "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b" }, { - "Rank": 2, + "CommandName": "Get-PnPAppErrors", "Id": 346, - "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f", - "CommandName": "Get-PnPAppInfo" + "Rank": 2, + "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()" }, { - "Rank": 3, + "CommandName": "Get-PnPAppInfo", "Id": 347, - "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name", - "CommandName": "Get-PnPAppInfo" + "Rank": 1, + "Command": "Get-PnPAppInfo -Name \"Excel Service\"" }, { - "Rank": 1, + "CommandName": "Get-PnPAppInfo", "Id": 348, - "Command": "Get-PnPApplicationCustomizer", - "CommandName": "Get-PnPApplicationCustomizer" + "Rank": 2, + "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Rank": 2, + "CommandName": "Get-PnPAppInfo", "Id": 349, - "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", - "CommandName": "Get-PnPApplicationCustomizer" + "Rank": 3, + "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name" }, { - "Rank": 3, + "CommandName": "Get-PnPApplicationCustomizer", "Id": 350, - "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web", - "CommandName": "Get-PnPApplicationCustomizer" + "Rank": 1, + "Command": "Get-PnPApplicationCustomizer" }, { - "Rank": 1, + "CommandName": "Get-PnPApplicationCustomizer", "Id": 351, - "Command": "Get-PnPAuditing", - "CommandName": "Get-PnPAuditing" + "Rank": 2, + "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Rank": 1, + "CommandName": "Get-PnPApplicationCustomizer", "Id": 352, - "Command": "Get-PnPAuthenticationRealm", - "CommandName": "Get-PnPAuthenticationRealm" + "Rank": 3, + "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web" }, { - "Rank": 2, + "CommandName": "Get-PnPAuditing", "Id": 353, - "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"", - "CommandName": "Get-PnPAuthenticationRealm" + "Rank": 1, + "Command": "Get-PnPAuditing" }, { - "Rank": 1, + "CommandName": "Get-PnPAuthenticationRealm", "Id": 354, - "Command": "Get-PnPAvailableLanguage", - "CommandName": "Get-PnPAvailableLanguage" + "Rank": 1, + "Command": "Get-PnPAuthenticationRealm" }, { - "Rank": 1, + "CommandName": "Get-PnPAuthenticationRealm", "Id": 355, - "Command": "Get-PnPAvailableSensitivityLabel", - "CommandName": "Get-PnPAvailableSensitivityLabel" + "Rank": 2, + "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"" }, { - "Rank": 2, + "CommandName": "Get-PnPAvailableLanguage", "Id": 356, - "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com", - "CommandName": "Get-PnPAvailableSensitivityLabel" + "Rank": 1, + "Command": "Get-PnPAvailableLanguage" }, { - "Rank": 3, + "CommandName": "Get-PnPAvailableSensitivityLabel", "Id": 357, - "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884", - "CommandName": "Get-PnPAvailableSensitivityLabel" + "Rank": 1, + "Command": "Get-PnPAvailableSensitivityLabel" }, { - "Rank": 1, + "CommandName": "Get-PnPAvailableSensitivityLabel", "Id": 358, - "Command": "Get-PnPAvailableSiteClassification", - "CommandName": "Get-PnPAvailableSiteClassification" + "Rank": 2, + "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com" }, { - "Rank": 1, + "CommandName": "Get-PnPAvailableSensitivityLabel", "Id": 359, - "Command": "Get-PnPAzureACSPrincipal", - "CommandName": "Get-PnPAzureACSPrincipal" + "Rank": 3, + "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884" }, { - "Rank": 2, + "CommandName": "Get-PnPAvailableSiteClassification", "Id": 360, - "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites", - "CommandName": "Get-PnPAzureACSPrincipal" + "Rank": 1, + "Command": "Get-PnPAvailableSiteClassification" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureACSPrincipal", "Id": 361, - "Command": "Get-PnPAzureACSPrincipal -Scope Tenant", - "CommandName": "Get-PnPAzureACSPrincipal" + "Rank": 1, + "Command": "Get-PnPAzureACSPrincipal" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureACSPrincipal", "Id": 362, - "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites", - "CommandName": "Get-PnPAzureACSPrincipal" + "Rank": 2, + "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureACSPrincipal", "Id": 363, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit", - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" + "Rank": 3, + "Command": "Get-PnPAzureACSPrincipal -Scope Tenant" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureACSPrincipal", "Id": 364, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"", - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" + "Rank": 4, + "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", "Id": 365, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"", - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" + "Rank": 1, + "Command": "Get-PnPAzureADActivityReportDirectoryAudit" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", "Id": 366, - "Command": "Get-PnPAzureADActivityReportSignIn", - "CommandName": "Get-PnPAzureADActivityReportSignIn" + "Rank": 2, + "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", "Id": 367, - "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"", - "CommandName": "Get-PnPAzureADActivityReportSignIn" + "Rank": 3, + "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADActivityReportSignIn", "Id": 368, - "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"", - "CommandName": "Get-PnPAzureADActivityReportSignIn" + "Rank": 1, + "Command": "Get-PnPAzureADActivityReportSignIn" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADActivityReportSignIn", "Id": 369, - "Command": "Get-PnPAzureADApp", - "CommandName": "Get-PnPAzureADApp" + "Rank": 2, + "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADActivityReportSignIn", "Id": 370, - "Command": "Get-PnPAzureADApp -Identity MyApp", - "CommandName": "Get-PnPAzureADApp" + "Rank": 3, + "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADApp", "Id": 371, - "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", - "CommandName": "Get-PnPAzureADApp" + "Rank": 1, + "Command": "Get-PnPAzureADApp" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureADApp", "Id": 372, - "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"", - "CommandName": "Get-PnPAzureADApp" + "Rank": 2, + "Command": "Get-PnPAzureADApp -Identity MyApp" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADApp", "Id": 373, - "Command": "Get-PnPAzureADAppPermission", - "CommandName": "Get-PnPAzureADAppPermission" + "Rank": 3, + "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADApp", "Id": 374, - "Command": "Get-PnPAzureADAppPermission -Identity MyApp", - "CommandName": "Get-PnPAzureADAppPermission" + "Rank": 4, + "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADAppPermission", "Id": 375, - "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", - "CommandName": "Get-PnPAzureADAppPermission" + "Rank": 1, + "Command": "Get-PnPAzureADAppPermission" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADAppPermission", "Id": 376, - "Command": "Get-PnPAzureADAppSitePermission", - "CommandName": "Get-PnPAzureADAppSitePermission" + "Rank": 2, + "Command": "Get-PnPAzureADAppPermission -Identity MyApp" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADAppPermission", "Id": 377, - "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects", - "CommandName": "Get-PnPAzureADAppSitePermission" + "Rank": 3, + "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADAppSitePermission", "Id": 378, - "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1", - "CommandName": "Get-PnPAzureADAppSitePermission" + "Rank": 1, + "Command": "Get-PnPAzureADAppSitePermission" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureADAppSitePermission", "Id": 379, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"", - "CommandName": "Get-PnPAzureADAppSitePermission" + "Rank": 2, + "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects" }, { - "Rank": 5, + "CommandName": "Get-PnPAzureADAppSitePermission", "Id": 380, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"", - "CommandName": "Get-PnPAzureADAppSitePermission" + "Rank": 3, + "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADAppSitePermission", "Id": 381, - "Command": "Get-PnPAzureADGroup", - "CommandName": "Get-PnPAzureADGroup" + "Rank": 4, + "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADAppSitePermission", "Id": 382, - "Command": "Get-PnPAzureADGroup -Identity $groupId", - "CommandName": "Get-PnPAzureADGroup" + "Rank": 5, + "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADGroup", "Id": 383, - "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName", - "CommandName": "Get-PnPAzureADGroup" + "Rank": 1, + "Command": "Get-PnPAzureADGroup" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureADGroup", "Id": 384, - "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName", - "CommandName": "Get-PnPAzureADGroup" + "Rank": 2, + "Command": "Get-PnPAzureADGroup -Identity $groupId" }, { - "Rank": 5, + "CommandName": "Get-PnPAzureADGroup", "Id": 385, - "Command": "Get-PnPAzureADGroup -Identity $group", - "CommandName": "Get-PnPAzureADGroup" + "Rank": 3, + "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADGroup", "Id": 386, - "Command": "Get-PnPAzureADGroupMember -Identity $groupId", - "CommandName": "Get-PnPAzureADGroupMember" + "Rank": 4, + "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADGroup", "Id": 387, - "Command": "Get-PnPAzureADGroupMember -Identity $group", - "CommandName": "Get-PnPAzureADGroupMember" + "Rank": 5, + "Command": "Get-PnPAzureADGroup -Identity $group" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADGroupMember", "Id": 388, - "Command": "Get-PnPAzureADGroupOwner -Identity $groupId", - "CommandName": "Get-PnPAzureADGroupOwner" + "Rank": 1, + "Command": "Get-PnPAzureADGroupMember -Identity $groupId" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADGroupMember", "Id": 389, - "Command": "Get-PnPAzureADGroupOwner -Identity $group", - "CommandName": "Get-PnPAzureADGroupOwner" + "Rank": 2, + "Command": "Get-PnPAzureADGroupMember -Identity $group" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADGroupOwner", "Id": 390, - "Command": "Get-PnPAzureADServicePrincipal", - "CommandName": "Get-PnPAzureADServicePrincipal" + "Rank": 1, + "Command": "Get-PnPAzureADGroupOwner -Identity $groupId" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADGroupOwner", "Id": 391, - "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e", - "CommandName": "Get-PnPAzureADServicePrincipal" + "Rank": 2, + "Command": "Get-PnPAzureADGroupOwner -Identity $group" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADServicePrincipal", "Id": 392, - "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec", - "CommandName": "Get-PnPAzureADServicePrincipal" + "Rank": 1, + "Command": "Get-PnPAzureADServicePrincipal" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureADServicePrincipal", "Id": 393, - "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"", - "CommandName": "Get-PnPAzureADServicePrincipal" + "Rank": 2, + "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e" }, { - "Rank": 5, + "CommandName": "Get-PnPAzureADServicePrincipal", "Id": 394, - "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"", - "CommandName": "Get-PnPAzureADServicePrincipal" + "Rank": 3, + "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADServicePrincipal", "Id": 395, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 4, + "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADServicePrincipal", "Id": 396, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"", - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 5, + "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", "Id": 397, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole" + "Rank": 1, + "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", "Id": 398, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"", - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole" + "Rank": 2, + "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", "Id": 399, - "Command": "Get-PnPAzureADUser", - "CommandName": "Get-PnPAzureADUser" + "Rank": 1, + "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", "Id": 400, - "Command": "Get-PnPAzureADUser -EndIndex 50", - "CommandName": "Get-PnPAzureADUser" + "Rank": 2, + "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureADUser", "Id": 401, - "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98", - "CommandName": "Get-PnPAzureADUser" + "Rank": 1, + "Command": "Get-PnPAzureADUser" }, { - "Rank": 4, + "CommandName": "Get-PnPAzureADUser", "Id": 402, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com", - "CommandName": "Get-PnPAzureADUser" + "Rank": 2, + "Command": "Get-PnPAzureADUser -EndIndex 50" }, { - "Rank": 5, + "CommandName": "Get-PnPAzureADUser", "Id": 403, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"", - "CommandName": "Get-PnPAzureADUser" + "Rank": 3, + "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" }, { - "Rank": 6, + "CommandName": "Get-PnPAzureADUser", "Id": 404, - "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"", - "CommandName": "Get-PnPAzureADUser" + "Rank": 4, + "Command": "Get-PnPAzureADUser -Identity john@contoso.com" }, { - "Rank": 7, + "CommandName": "Get-PnPAzureADUser", "Id": 405, - "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"", - "CommandName": "Get-PnPAzureADUser" + "Rank": 5, + "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"" }, { - "Rank": 8, + "CommandName": "Get-PnPAzureADUser", "Id": 406, - "Command": "Get-PnPAzureADUser -Delta", - "CommandName": "Get-PnPAzureADUser" + "Rank": 6, + "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"" }, { - "Rank": 9, + "CommandName": "Get-PnPAzureADUser", "Id": 407, - "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef", - "CommandName": "Get-PnPAzureADUser" + "Rank": 7, + "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"" }, { - "Rank": 10, + "CommandName": "Get-PnPAzureADUser", "Id": 408, - "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20", - "CommandName": "Get-PnPAzureADUser" + "Rank": 8, + "Command": "Get-PnPAzureADUser -Delta" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureADUser", "Id": 409, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"", - "CommandName": "Get-PnPAzureCertificate" + "Rank": 9, + "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef" }, { - "Rank": 2, + "CommandName": "Get-PnPAzureADUser", "Id": 410, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)", - "CommandName": "Get-PnPAzureCertificate" + "Rank": 10, + "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20" }, { - "Rank": 3, + "CommandName": "Get-PnPAzureCertificate", "Id": 411, - "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip", - "CommandName": "Get-PnPAzureCertificate" + "Rank": 1, + "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureCertificate", "Id": 412, - "Command": "Get-PnPBrowserIdleSignout", - "CommandName": "Get-PnPBrowserIdleSignout" + "Rank": 2, + "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" }, { - "Rank": 1, + "CommandName": "Get-PnPAzureCertificate", "Id": 413, - "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase", - "CommandName": "Get-PnPBuiltInDesignPackageVisibility" + "Rank": 3, + "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip" }, { - "Rank": 2, + "CommandName": "Get-PnPBrowserIdleSignout", "Id": 414, - "Command": "Get-PnPBuiltInDesignPackageVisibility", - "CommandName": "Get-PnPBuiltInDesignPackageVisibility" + "Rank": 1, + "Command": "Get-PnPBrowserIdleSignout" }, { - "Rank": 1, + "CommandName": "Get-PnPBuiltInDesignPackageVisibility", "Id": 415, - "Command": "Get-PnPBuiltInSiteTemplateSettings", - "CommandName": "Get-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase" }, { - "Rank": 2, + "CommandName": "Get-PnPBuiltInDesignPackageVisibility", "Id": 416, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344", - "CommandName": "Get-PnPBuiltInSiteTemplateSettings" + "Rank": 2, + "Command": "Get-PnPBuiltInDesignPackageVisibility" }, { - "Rank": 3, + "CommandName": "Get-PnPBuiltInSiteTemplateSettings", "Id": 417, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement", - "CommandName": "Get-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Get-PnPBuiltInSiteTemplateSettings" }, { - "Rank": 4, + "CommandName": "Get-PnPBuiltInSiteTemplateSettings", "Id": 418, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000", - "CommandName": "Get-PnPBuiltInSiteTemplateSettings" + "Rank": 2, + "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344" }, { - "Rank": 5, + "CommandName": "Get-PnPBuiltInSiteTemplateSettings", "Id": 419, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All", - "CommandName": "Get-PnPBuiltInSiteTemplateSettings" + "Rank": 3, + "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement" }, { - "Rank": 1, + "CommandName": "Get-PnPBuiltInSiteTemplateSettings", "Id": 420, - "Command": "Get-PnPChangeLog", - "CommandName": "Get-PnPChangeLog" + "Rank": 4, + "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000" }, { - "Rank": 2, + "CommandName": "Get-PnPBuiltInSiteTemplateSettings", "Id": 421, - "Command": "Get-PnPChangeLog -Nightly", - "CommandName": "Get-PnPChangeLog" + "Rank": 5, + "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All" }, { - "Rank": 1, + "CommandName": "Get-PnPChangeLog", "Id": 422, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'", - "CommandName": "Get-PnPCompatibleHubContentTypes" + "Rank": 1, + "Command": "Get-PnPChangeLog" }, { - "Rank": 2, + "CommandName": "Get-PnPChangeLog", "Id": 423, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'", - "CommandName": "Get-PnPCompatibleHubContentTypes" + "Rank": 2, + "Command": "Get-PnPChangeLog -Nightly" }, { - "Rank": 1, + "CommandName": "Get-PnPCompatibleHubContentTypes", "Id": 424, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996", - "CommandName": "Get-PnPContainer" + "Rank": 1, + "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'" }, { - "Rank": 2, + "CommandName": "Get-PnPCompatibleHubContentTypes", "Id": 425, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", - "CommandName": "Get-PnPContainer" + "Rank": 2, + "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'" }, { - "Rank": 3, + "CommandName": "Get-PnPContainer", "Id": 426, - "Command": "Get-PnPContainer -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\" -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"", - "CommandName": "Get-PnPContainer" + "Rank": 1, + "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996" }, { - "Rank": 1, + "CommandName": "Get-PnPContainer", "Id": 427, - "Command": "Get-PnPContainerTypeConfiguration -Identity a187e399-0c36-4b98-8f04-1edc167a0996", - "CommandName": "Get-PnPContainerTypeConfiguration" + "Rank": 2, + "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" }, { - "Rank": 1, + "CommandName": "Get-PnPContainer", "Id": 428, - "Command": "Get-PnPContentType", - "CommandName": "Get-PnPContentType" + "Rank": 3, + "Command": "Get-PnPContainer -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\" -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" }, { - "Rank": 2, + "CommandName": "Get-PnPContainerType", "Id": 429, - "Command": "Get-PnPContentType -InSiteHierarchy", - "CommandName": "Get-PnPContentType" + "Rank": 1, + "Command": "Get-PnPContainerType" }, { - "Rank": 3, + "CommandName": "Get-PnPContainerTypeConfiguration", "Id": 430, - "Command": "Get-PnPContentType -Identity \"Project Document\"", - "CommandName": "Get-PnPContentType" + "Rank": 1, + "Command": "Get-PnPContainerTypeConfiguration -Identity a187e399-0c36-4b98-8f04-1edc167a0996" }, { - "Rank": 4, + "CommandName": "Get-PnPContentType", "Id": 431, - "Command": "Get-PnPContentType -List \"Documents\"", - "CommandName": "Get-PnPContentType" + "Rank": 1, + "Command": "Get-PnPContentType" }, { - "Rank": 5, + "CommandName": "Get-PnPContentType", "Id": 432, - "Command": "Get-PnPContentType -Includes \"SchemaXml\"", - "CommandName": "Get-PnPContentType" + "Rank": 2, + "Command": "Get-PnPContentType -InSiteHierarchy" }, { - "Rank": 1, + "CommandName": "Get-PnPContentType", "Id": 433, - "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101", - "CommandName": "Get-PnPContentTypePublishingStatus" + "Rank": 3, + "Command": "Get-PnPContentType -Identity \"Project Document\"" }, { - "Rank": 1, + "CommandName": "Get-PnPContentType", "Id": 434, - "Command": "Get-PnPCustomAction", - "CommandName": "Get-PnPCustomAction" + "Rank": 4, + "Command": "Get-PnPContentType -List \"Documents\"" }, { - "Rank": 2, + "CommandName": "Get-PnPContentType", "Id": 435, - "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", - "CommandName": "Get-PnPCustomAction" + "Rank": 5, + "Command": "Get-PnPContentType -Includes \"SchemaXml\"" }, { - "Rank": 3, + "CommandName": "Get-PnPContentTypePublishingStatus", "Id": 436, - "Command": "Get-PnPCustomAction -Scope web", - "CommandName": "Get-PnPCustomAction" + "Rank": 1, + "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101" }, { - "Rank": 1, + "CommandName": "Get-PnPCustomAction", "Id": 437, - "Command": "Get-PnPDeletedContainer", - "CommandName": "Get-PnPDeletedContainer" + "Rank": 1, + "Command": "Get-PnPCustomAction" }, { - "Rank": 1, + "CommandName": "Get-PnPCustomAction", "Id": 438, - "Command": "Get-PnPDeletedMicrosoft365Group", - "CommandName": "Get-PnPDeletedMicrosoft365Group" + "Rank": 2, + "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Rank": 2, + "CommandName": "Get-PnPCustomAction", "Id": 439, - "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", - "CommandName": "Get-PnPDeletedMicrosoft365Group" + "Rank": 3, + "Command": "Get-PnPCustomAction -Scope web" }, { - "Rank": 1, + "CommandName": "Get-PnPDeletedContainer", "Id": 440, - "Command": "Get-PnPDeletedTeam", - "CommandName": "Get-PnPDeletedTeam" + "Rank": 1, + "Command": "Get-PnPDeletedContainer" }, { - "Rank": 1, + "CommandName": "Get-PnPDeletedMicrosoft365Group", "Id": 441, - "Command": "Get-PnPDiagnostics", - "CommandName": "Get-PnPDiagnostics" + "Rank": 1, + "Command": "Get-PnPDeletedMicrosoft365Group" }, { - "Rank": 1, + "CommandName": "Get-PnPDeletedMicrosoft365Group", "Id": 442, - "Command": "Get-PnPDisableSpacesActivation", - "CommandName": "Get-PnPDisableSpacesActivation" + "Rank": 2, + "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Rank": 1, + "CommandName": "Get-PnPDeletedTeam", "Id": 443, - "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"", - "CommandName": "Get-PnPDocumentSetTemplate" + "Rank": 1, + "Command": "Get-PnPDeletedTeam" }, { - "Rank": 2, + "CommandName": "Get-PnPDiagnostics", "Id": 444, - "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"", - "CommandName": "Get-PnPDocumentSetTemplate" + "Rank": 1, + "Command": "Get-PnPDiagnostics" }, { - "Rank": 1, + "CommandName": "Get-PnPDisableSpacesActivation", "Id": 445, - "Command": "Get-PnPEventReceiver", - "CommandName": "Get-PnPEventReceiver" + "Rank": 1, + "Command": "Get-PnPDisableSpacesActivation" }, { - "Rank": 2, + "CommandName": "Get-PnPDocumentSetTemplate", "Id": 446, - "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", - "CommandName": "Get-PnPEventReceiver" + "Rank": 1, + "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"" }, { - "Rank": 3, + "CommandName": "Get-PnPDocumentSetTemplate", "Id": 447, - "Command": "Get-PnPEventReceiver -Identity MyReceiver", - "CommandName": "Get-PnPEventReceiver" + "Rank": 2, + "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"" }, { - "Rank": 4, + "CommandName": "Get-PnPEventReceiver", "Id": 448, - "Command": "Get-PnPEventReceiver -List \"ProjectList\"", - "CommandName": "Get-PnPEventReceiver" + "Rank": 1, + "Command": "Get-PnPEventReceiver" }, { - "Rank": 5, + "CommandName": "Get-PnPEventReceiver", "Id": 449, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", - "CommandName": "Get-PnPEventReceiver" + "Rank": 2, + "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Rank": 6, + "CommandName": "Get-PnPEventReceiver", "Id": 450, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver", - "CommandName": "Get-PnPEventReceiver" + "Rank": 3, + "Command": "Get-PnPEventReceiver -Identity MyReceiver" }, { - "Rank": 7, + "CommandName": "Get-PnPEventReceiver", "Id": 451, - "Command": "Get-PnPEventReceiver -Scope Site", - "CommandName": "Get-PnPEventReceiver" + "Rank": 4, + "Command": "Get-PnPEventReceiver -List \"ProjectList\"" }, { - "Rank": 8, + "CommandName": "Get-PnPEventReceiver", "Id": 452, - "Command": "Get-PnPEventReceiver -Scope Web", - "CommandName": "Get-PnPEventReceiver" + "Rank": 5, + "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Rank": 9, + "CommandName": "Get-PnPEventReceiver", "Id": 453, - "Command": "Get-PnPEventReceiver -Scope All", - "CommandName": "Get-PnPEventReceiver" + "Rank": 6, + "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver" }, { - "Rank": 1, + "CommandName": "Get-PnPEventReceiver", "Id": 454, - "Command": "Get-PnPException", - "CommandName": "Get-PnPException" + "Rank": 7, + "Command": "Get-PnPEventReceiver -Scope Site" }, { - "Rank": 2, + "CommandName": "Get-PnPEventReceiver", "Id": 455, - "Command": "Get-PnPException -All", - "CommandName": "Get-PnPException" + "Rank": 8, + "Command": "Get-PnPEventReceiver -Scope Web" }, { - "Rank": 1, + "CommandName": "Get-PnPEventReceiver", "Id": 456, - "Command": "Get-PnPExternalUser -Position 0 -PageSize 2", - "CommandName": "Get-PnPExternalUser" + "Rank": 9, + "Command": "Get-PnPEventReceiver -Scope All" }, { - "Rank": 2, + "CommandName": "Get-PnPException", "Id": 457, - "Command": "Get-PnPExternalUser -Position 2 -PageSize 2", - "CommandName": "Get-PnPExternalUser" + "Rank": 1, + "Command": "Get-PnPException" }, { - "Rank": 1, + "CommandName": "Get-PnPException", "Id": 458, - "Command": "Get-PnPFeature", - "CommandName": "Get-PnPFeature" + "Rank": 2, + "Command": "Get-PnPException -All" }, { - "Rank": 2, + "CommandName": "Get-PnPExternalUser", "Id": 459, - "Command": "Get-PnPFeature -Scope Site", - "CommandName": "Get-PnPFeature" + "Rank": 1, + "Command": "Get-PnPExternalUser -Position 0 -PageSize 2" }, { - "Rank": 3, + "CommandName": "Get-PnPExternalUser", "Id": 460, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", - "CommandName": "Get-PnPFeature" + "Rank": 2, + "Command": "Get-PnPExternalUser -Position 2 -PageSize 2" }, { - "Rank": 4, + "CommandName": "Get-PnPFeature", "Id": 461, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site", - "CommandName": "Get-PnPFeature" + "Rank": 1, + "Command": "Get-PnPFeature" }, { - "Rank": 1, + "CommandName": "Get-PnPFeature", "Id": 462, - "Command": "Get-PnPField", - "CommandName": "Get-PnPField" + "Rank": 2, + "Command": "Get-PnPFeature -Scope Site" }, { - "Rank": 2, + "CommandName": "Get-PnPFeature", "Id": 463, - "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"", - "CommandName": "Get-PnPField" + "Rank": 3, + "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Rank": 3, + "CommandName": "Get-PnPFeature", "Id": 464, - "Command": "Get-PnPField -Group \"Custom Columns\"", - "CommandName": "Get-PnPField" + "Rank": 4, + "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site" }, { - "Rank": 1, + "CommandName": "Get-PnPField", "Id": 465, - "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"", - "CommandName": "Get-PnPFile" + "Rank": 1, + "Command": "Get-PnPField" }, { - "Rank": 2, + "CommandName": "Get-PnPField", "Id": 466, - "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile", - "CommandName": "Get-PnPFile" + "Rank": 2, + "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"" }, { - "Rank": 3, + "CommandName": "Get-PnPField", "Id": 467, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString", - "CommandName": "Get-PnPFile" + "Rank": 3, + "Command": "Get-PnPField -Group \"Custom Columns\"" }, { - "Rank": 4, + "CommandName": "Get-PnPFile", "Id": 468, - "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject", - "CommandName": "Get-PnPFile" + "Rank": 1, + "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"" }, { - "Rank": 5, + "CommandName": "Get-PnPFile", "Id": 469, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem", - "CommandName": "Get-PnPFile" + "Rank": 2, + "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile" }, { - "Rank": 6, + "CommandName": "Get-PnPFile", "Id": 470, - "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile", - "CommandName": "Get-PnPFile" + "Rank": 3, + "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString" }, { - "Rank": 7, + "CommandName": "Get-PnPFile", "Id": 471, - "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream", - "CommandName": "Get-PnPFile" + "Rank": 4, + "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject" }, { - "Rank": 1, + "CommandName": "Get-PnPFile", "Id": 472, - "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\"", - "CommandName": "Get-PnPFileAnalyticsData" + "Rank": 5, + "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem" }, { - "Rank": 2, + "CommandName": "Get-PnPFile", "Id": 473, - "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -LastSevenDays", - "CommandName": "Get-PnPFileAnalyticsData" + "Rank": 6, + "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile" }, { - "Rank": 3, + "CommandName": "Get-PnPFile", "Id": 474, - "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", - "CommandName": "Get-PnPFileAnalyticsData" + "Rank": 7, + "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream" }, { - "Rank": 1, + "CommandName": "Get-PnPFileAnalyticsData", "Id": 475, - "Command": "Get-PnPFileInFolder", - "CommandName": "Get-PnPFileInFolder" + "Rank": 1, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFileAnalyticsData", "Id": 476, - "Command": "Get-PnPFileInFolder -Recurse", - "CommandName": "Get-PnPFileInFolder" + "Rank": 2, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -LastSevenDays" }, { - "Rank": 3, + "CommandName": "Get-PnPFileAnalyticsData", "Id": 477, - "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"", - "CommandName": "Get-PnPFileInFolder" + "Rank": 3, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" }, { - "Rank": 4, + "CommandName": "Get-PnPFileInFolder", "Id": 478, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"", - "CommandName": "Get-PnPFileInFolder" + "Rank": 1, + "Command": "Get-PnPFileInFolder" }, { - "Rank": 5, + "CommandName": "Get-PnPFileInFolder", "Id": 479, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse", - "CommandName": "Get-PnPFileInFolder" + "Rank": 2, + "Command": "Get-PnPFileInFolder -Recurse" }, { - "Rank": 1, + "CommandName": "Get-PnPFileInFolder", "Id": 480, - "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", - "CommandName": "Get-PnPFileSharingLink" + "Rank": 3, + "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"" }, { - "Rank": 1, + "CommandName": "Get-PnPFileInFolder", "Id": 481, - "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx", - "CommandName": "Get-PnPFileVersion" + "Rank": 4, + "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFileInFolder", "Id": 482, - "Command": "Get-PnPFileVersion -Url \"/sites/blah/Shared Documents/MyDocument.docx\"", - "CommandName": "Get-PnPFileVersion" + "Rank": 5, + "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" }, { - "Rank": 1, + "CommandName": "Get-PnPFileSensitivityLabelInfo", "Id": 483, - "Command": "Get-PnPFlow -AsAdmin", - "CommandName": "Get-PnPFlow" + "Rank": 1, + "Command": "Get-PnPFileSensitivityLabelInfo -Url \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/Report.pdf\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFileSharingLink", "Id": 484, - "Command": "Get-PnPFlow -SharingStatus SharedWithMe", - "CommandName": "Get-PnPFlow" + "Rank": 1, + "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Rank": 3, + "CommandName": "Get-PnPFileVersion", "Id": 485, - "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182", - "CommandName": "Get-PnPFlow" + "Rank": 1, + "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx" }, { - "Rank": 1, + "CommandName": "Get-PnPFileVersion", "Id": 486, - "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30", - "CommandName": "Get-PnPFlowOwner" + "Rank": 2, + "Command": "Get-PnPFileVersion -Url \"/sites/marketing/Shared Documents/MyDocument.docx\"" }, { - "Rank": 1, + "CommandName": "Get-PnPFileVersion", "Id": 487, - "Command": "Get-PnPFolder", - "CommandName": "Get-PnPFolder" + "Rank": 3, + "Command": "Get-PnPFileVersion -Url \"/sites/marketing/Shared Documents/MyDocument.docx\" -UseVersionExpirationReport" }, { - "Rank": 2, + "CommandName": "Get-PnPFlow", "Id": 488, - "Command": "Get-PnPFolder -CurrentWebRootFolder", - "CommandName": "Get-PnPFolder" + "Rank": 1, + "Command": "Get-PnPFlow -AsAdmin" }, { - "Rank": 3, + "CommandName": "Get-PnPFlow", "Id": 489, - "Command": "Get-PnPFolder -Url \"Shared Documents\"", - "CommandName": "Get-PnPFolder" + "Rank": 2, + "Command": "Get-PnPFlow -SharingStatus SharedWithMe" }, { - "Rank": 4, + "CommandName": "Get-PnPFlow", "Id": 490, - "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"", - "CommandName": "Get-PnPFolder" + "Rank": 3, + "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182" }, { - "Rank": 5, + "CommandName": "Get-PnPFlowOwner", "Id": 491, - "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"", - "CommandName": "Get-PnPFolder" + "Rank": 1, + "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30" }, { - "Rank": 6, + "CommandName": "Get-PnPFolder", "Id": 492, - "Command": "Get-PnPFolder -List \"Shared Documents\"", - "CommandName": "Get-PnPFolder" + "Rank": 1, + "Command": "Get-PnPFolder" }, { - "Rank": 1, + "CommandName": "Get-PnPFolder", "Id": 493, - "Command": "Get-PnPFolderInFolder", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 2, + "Command": "Get-PnPFolder -CurrentWebRootFolder" }, { - "Rank": 2, + "CommandName": "Get-PnPFolder", "Id": 494, - "Command": "Get-PnPFolderInFolder -Recurse", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 3, + "Command": "Get-PnPFolder -Url \"Shared Documents\"" }, { - "Rank": 3, + "CommandName": "Get-PnPFolder", "Id": 495, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 4, + "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"" }, { - "Rank": 4, + "CommandName": "Get-PnPFolder", "Id": 496, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 5, + "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"" }, { - "Rank": 5, + "CommandName": "Get-PnPFolder", "Id": 497, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 6, + "Command": "Get-PnPFolder -List \"Shared Documents\"" }, { - "Rank": 6, + "CommandName": "Get-PnPFolderInFolder", "Id": 498, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse", - "CommandName": "Get-PnPFolderInFolder" + "Rank": 1, + "Command": "Get-PnPFolderInFolder" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderInFolder", "Id": 499, - "Command": "Get-PnPFolderItem", - "CommandName": "Get-PnPFolderItem" + "Rank": 2, + "Command": "Get-PnPFolderInFolder -Recurse" }, { - "Rank": 2, + "CommandName": "Get-PnPFolderInFolder", "Id": 500, - "Command": "Get-PnPFolderItem -Recurse", - "CommandName": "Get-PnPFolderItem" + "Rank": 3, + "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"" }, { - "Rank": 3, + "CommandName": "Get-PnPFolderInFolder", "Id": 501, - "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"", - "CommandName": "Get-PnPFolderItem" + "Rank": 4, + "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders" }, { - "Rank": 4, + "CommandName": "Get-PnPFolderInFolder", "Id": 502, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"", - "CommandName": "Get-PnPFolderItem" + "Rank": 5, + "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"" }, { - "Rank": 5, + "CommandName": "Get-PnPFolderInFolder", "Id": 503, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder", - "CommandName": "Get-PnPFolderItem" + "Rank": 6, + "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" }, { - "Rank": 6, + "CommandName": "Get-PnPFolderItem", "Id": 504, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive", - "CommandName": "Get-PnPFolderItem" + "Rank": 1, + "Command": "Get-PnPFolderItem" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderItem", "Id": 505, - "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", - "CommandName": "Get-PnPFolderSharingLink" + "Rank": 2, + "Command": "Get-PnPFolderItem -Recurse" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderItem", "Id": 506, - "Command": "Get-PnPFolderStorageMetric", - "CommandName": "Get-PnPFolderStorageMetric" + "Rank": 3, + "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFolderItem", "Id": 507, - "Command": "Get-PnPFolderStorageMetric -List \"Documents\"", - "CommandName": "Get-PnPFolderStorageMetric" + "Rank": 4, + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" }, { - "Rank": 3, + "CommandName": "Get-PnPFolderItem", "Id": 508, - "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"", - "CommandName": "Get-PnPFolderStorageMetric" + "Rank": 5, + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderItem", "Id": 509, - "Command": "Get-PnPFooter", - "CommandName": "Get-PnPFooter" + "Rank": 6, + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderSharingLink", "Id": 510, - "Command": "Get-PnPGraphAccessToken", - "CommandName": "Get-PnPGraphAccessToken" + "Rank": 1, + "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFolderStorageMetric", "Id": 511, - "Command": "Get-PnPGraphAccessToken -Decoded", - "CommandName": "Get-PnPGraphAccessToken" + "Rank": 1, + "Command": "Get-PnPFolderStorageMetric" }, { - "Rank": 1, + "CommandName": "Get-PnPFolderStorageMetric", "Id": 512, - "Command": "Get-PnPGraphSubscription", - "CommandName": "Get-PnPGraphSubscription" + "Rank": 2, + "Command": "Get-PnPFolderStorageMetric -List \"Documents\"" }, { - "Rank": 2, + "CommandName": "Get-PnPFolderStorageMetric", "Id": 513, - "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98", - "CommandName": "Get-PnPGraphSubscription" + "Rank": 3, + "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"" }, { - "Rank": 1, + "CommandName": "Get-PnPFooter", "Id": 514, - "Command": "Get-PnPGroup", - "CommandName": "Get-PnPGroup" + "Rank": 1, + "Command": "Get-PnPFooter" }, { - "Rank": 2, + "CommandName": "Get-PnPGraphAccessToken", "Id": 515, - "Command": "Get-PnPGroup -Identity 'My Site Users'", - "CommandName": "Get-PnPGroup" + "Rank": 1, + "Command": "Get-PnPGraphAccessToken" }, { - "Rank": 3, + "CommandName": "Get-PnPGraphAccessToken", "Id": 516, - "Command": "Get-PnPGroup -AssociatedMemberGroup", - "CommandName": "Get-PnPGroup" + "Rank": 2, + "Command": "Get-PnPGraphAccessToken -Decoded" }, { - "Rank": 1, + "CommandName": "Get-PnPGraphSubscription", "Id": 517, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"", - "CommandName": "Get-PnPGroupMember" + "Rank": 1, + "Command": "Get-PnPGraphSubscription" }, { - "Rank": 2, + "CommandName": "Get-PnPGraphSubscription", "Id": 518, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"", - "CommandName": "Get-PnPGroupMember" + "Rank": 2, + "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" }, { - "Rank": 1, + "CommandName": "Get-PnPGroup", "Id": 519, - "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'", - "CommandName": "Get-PnPGroupPermissions" + "Rank": 1, + "Command": "Get-PnPGroup" }, { - "Rank": 1, + "CommandName": "Get-PnPGroup", "Id": 520, - "Command": "Get-PnPHideDefaultThemes", - "CommandName": "Get-PnPHideDefaultThemes" + "Rank": 2, + "Command": "Get-PnPGroup -Identity 'My Site Users'" }, { - "Rank": 1, + "CommandName": "Get-PnPGroup", "Id": 521, - "Command": "Get-PnPHomePage", - "CommandName": "Get-PnPHomePage" + "Rank": 3, + "Command": "Get-PnPGroup -AssociatedMemberGroup" }, { - "Rank": 1, + "CommandName": "Get-PnPGroupMember", "Id": 522, - "Command": "Get-PnPHomeSite", - "CommandName": "Get-PnPHomeSite" + "Rank": 1, + "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"" }, { - "Rank": 2, + "CommandName": "Get-PnPGroupMember", "Id": 523, - "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled", - "CommandName": "Get-PnPHomeSite" + "Rank": 2, + "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"" }, { - "Rank": 3, + "CommandName": "Get-PnPGroupPermissions", "Id": 524, - "Command": "Get-PnPHomeSite -Detailed", - "CommandName": "Get-PnPHomeSite" + "Rank": 1, + "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'" }, { - "Rank": 1, + "CommandName": "Get-PnPHideDefaultThemes", "Id": 525, - "Command": "Get-PnPHubSite", - "CommandName": "Get-PnPHubSite" + "Rank": 1, + "Command": "Get-PnPHideDefaultThemes" }, { - "Rank": 2, + "CommandName": "Get-PnPHomePage", "Id": 526, - "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"", - "CommandName": "Get-PnPHubSite" + "Rank": 1, + "Command": "Get-PnPHomePage" }, { - "Rank": 3, + "CommandName": "Get-PnPHomeSite", "Id": 527, - "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"", - "CommandName": "Get-PnPHubSite" + "Rank": 1, + "Command": "Get-PnPHomeSite" }, { - "Rank": 1, + "CommandName": "Get-PnPHomeSite", "Id": 528, - "Command": "Get-PnPHubSiteChild", - "CommandName": "Get-PnPHubSiteChild" + "Rank": 2, + "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled" }, { - "Rank": 2, + "CommandName": "Get-PnPHomeSite", "Id": 529, - "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"", - "CommandName": "Get-PnPHubSiteChild" + "Rank": 3, + "Command": "Get-PnPHomeSite -Detailed" }, { - "Rank": 1, + "CommandName": "Get-PnPHubSite", "Id": 530, - "Command": "Get-PnPInPlaceRecordsManagement", - "CommandName": "Get-PnPInPlaceRecordsManagement" + "Rank": 1, + "Command": "Get-PnPHubSite" }, { - "Rank": 1, + "CommandName": "Get-PnPHubSite", "Id": 531, - "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"", - "CommandName": "Get-PnPIsSiteAliasAvailable" + "Rank": 2, + "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" }, { - "Rank": 1, + "CommandName": "Get-PnPHubSite", "Id": 532, - "Command": "Get-PnPJavaScriptLink", - "CommandName": "Get-PnPJavaScriptLink" + "Rank": 3, + "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"" }, { - "Rank": 2, + "CommandName": "Get-PnPHubSiteChild", "Id": 533, - "Command": "Get-PnPJavaScriptLink -Scope All", - "CommandName": "Get-PnPJavaScriptLink" + "Rank": 1, + "Command": "Get-PnPHubSiteChild" }, { - "Rank": 3, + "CommandName": "Get-PnPHubSiteChild", "Id": 534, - "Command": "Get-PnPJavaScriptLink -Scope Web", - "CommandName": "Get-PnPJavaScriptLink" + "Rank": 2, + "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" }, { - "Rank": 4, + "CommandName": "Get-PnPInPlaceRecordsManagement", "Id": 535, - "Command": "Get-PnPJavaScriptLink -Scope Site", - "CommandName": "Get-PnPJavaScriptLink" + "Rank": 1, + "Command": "Get-PnPInPlaceRecordsManagement" }, { - "Rank": 5, + "CommandName": "Get-PnPIsSiteAliasAvailable", "Id": 536, - "Command": "Get-PnPJavaScriptLink -Name Test", - "CommandName": "Get-PnPJavaScriptLink" + "Rank": 1, + "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"" }, { - "Rank": 1, + "CommandName": "Get-PnPJavaScriptLink", "Id": 537, - "Command": "Get-PnPKnowledgeHubSite", - "CommandName": "Get-PnPKnowledgeHubSite" + "Rank": 1, + "Command": "Get-PnPJavaScriptLink" }, { - "Rank": 1, + "CommandName": "Get-PnPJavaScriptLink", "Id": 538, - "Command": "Get-PnPLabel", - "CommandName": "Get-PnPLabel" + "Rank": 2, + "Command": "Get-PnPJavaScriptLink -Scope All" }, { - "Rank": 2, + "CommandName": "Get-PnPJavaScriptLink", "Id": 539, - "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly", - "CommandName": "Get-PnPLabel" + "Rank": 3, + "Command": "Get-PnPJavaScriptLink -Scope Web" }, { - "Rank": 1, + "CommandName": "Get-PnPJavaScriptLink", "Id": 540, - "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481", - "CommandName": "Get-PnPLargeListOperationStatus" + "Rank": 4, + "Command": "Get-PnPJavaScriptLink -Scope Site" }, { - "Rank": 1, + "CommandName": "Get-PnPJavaScriptLink", "Id": 541, - "Command": "Get-PnPList", - "CommandName": "Get-PnPList" + "Rank": 5, + "Command": "Get-PnPJavaScriptLink -Name Test" }, { - "Rank": 2, + "CommandName": "Get-PnPKnowledgeHubSite", "Id": 542, - "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Get-PnPList" + "Rank": 1, + "Command": "Get-PnPKnowledgeHubSite" }, { - "Rank": 3, + "CommandName": "Get-PnPLabel", "Id": 543, - "Command": "Get-PnPList -Identity Lists/Announcements", - "CommandName": "Get-PnPList" + "Rank": 1, + "Command": "Get-PnPLabel" }, { - "Rank": 4, + "CommandName": "Get-PnPLabel", "Id": 544, - "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}", - "CommandName": "Get-PnPList" + "Rank": 2, + "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly" }, { - "Rank": 5, + "CommandName": "Get-PnPLargeListOperationStatus", "Id": 545, - "Command": "Get-PnPList -Includes HasUniqueRoleAssignments", - "CommandName": "Get-PnPList" + "Rank": 1, + "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481" }, { - "Rank": 1, + "CommandName": "Get-PnPLibraryFileVersionBatchDeleteJobStatus", "Id": 546, - "Command": "Get-PnPListDesign", - "CommandName": "Get-PnPListDesign" + "Rank": 1, + "Command": "Get-PnPLibraryFileVersionBatchDeleteJobStatus -Identity \"Documents\"" }, { - "Rank": 2, + "CommandName": "Get-PnPLibraryFileVersionExpirationReportJobStatus", "Id": 547, - "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Get-PnPListDesign" + "Rank": 1, + "Command": "Get-PnPLibraryFileVersionExpirationReportJobStatus -Identity \"Documents\" -ReportUrl \"https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv\"" }, { - "Rank": 3, + "CommandName": "Get-PnPList", "Id": 548, - "Command": "Get-PnPListDesign -Identity ListEvent", - "CommandName": "Get-PnPListDesign" + "Rank": 1, + "Command": "Get-PnPList" }, { - "Rank": 1, + "CommandName": "Get-PnPList", "Id": 549, - "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"", - "CommandName": "Get-PnPListInformationRightsManagement" + "Rank": 2, + "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Rank": 1, + "CommandName": "Get-PnPList", "Id": 550, - "Command": "Get-PnPListItem -List Tasks", - "CommandName": "Get-PnPListItem" + "Rank": 3, + "Command": "Get-PnPList -Identity Lists/Announcements" }, { - "Rank": 2, + "CommandName": "Get-PnPList", "Id": 551, - "Command": "Get-PnPListItem -List Tasks -Id 1", - "CommandName": "Get-PnPListItem" + "Rank": 4, + "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}" }, { - "Rank": 3, + "CommandName": "Get-PnPList", "Id": 552, - "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3", - "CommandName": "Get-PnPListItem" + "Rank": 5, + "Command": "Get-PnPList -Includes HasUniqueRoleAssignments" }, { - "Rank": 4, + "CommandName": "Get-PnPListDesign", "Id": 553, - "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"", - "CommandName": "Get-PnPListItem" + "Rank": 1, + "Command": "Get-PnPListDesign" }, { - "Rank": 5, + "CommandName": "Get-PnPListDesign", "Id": 554, - "Command": "Get-PnPListItem -List Tasks -Query \"\"", - "CommandName": "Get-PnPListItem" + "Rank": 2, + "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 6, + "CommandName": "Get-PnPListDesign", "Id": 555, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000", - "CommandName": "Get-PnPListItem" + "Rank": 3, + "Command": "Get-PnPListDesign -Identity ListEvent" }, { - "Rank": 7, + "CommandName": "Get-PnPListInformationRightsManagement", "Id": 556, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }", - "CommandName": "Get-PnPListItem" + "Rank": 1, + "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"" }, { - "Rank": 8, + "CommandName": "Get-PnPListItem", "Id": 557, - "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"", - "CommandName": "Get-PnPListItem" + "Rank": 1, + "Command": "Get-PnPListItem -List Tasks" }, { - "Rank": 9, + "CommandName": "Get-PnPListItem", "Id": 558, - "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType", - "CommandName": "Get-PnPListItem" + "Rank": 2, + "Command": "Get-PnPListItem -List Tasks -Id 1" }, { - "Rank": 1, + "CommandName": "Get-PnPListItem", "Id": 559, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"", - "CommandName": "Get-PnPListItemAttachment" + "Rank": 3, + "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3" }, { - "Rank": 2, + "CommandName": "Get-PnPListItem", "Id": 560, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force", - "CommandName": "Get-PnPListItemAttachment" + "Rank": 4, + "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"" }, { - "Rank": 1, + "CommandName": "Get-PnPListItem", "Id": 561, - "Command": "Get-PnPListItemComment -List Tasks -Identity 1", - "CommandName": "Get-PnPListItemComment" + "Rank": 5, + "Command": "Get-PnPListItem -List Tasks -Query \"\"" }, { - "Rank": 1, + "CommandName": "Get-PnPListItem", "Id": 562, - "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1", - "CommandName": "Get-PnPListItemPermission" + "Rank": 6, + "Command": "Get-PnPListItem -List Tasks -PageSize 1000" }, { - "Rank": 1, + "CommandName": "Get-PnPListItem", "Id": 563, - "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1", - "CommandName": "Get-PnPListItemVersion" + "Rank": 7, + "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }" }, { - "Rank": 1, + "CommandName": "Get-PnPListItem", "Id": 564, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60", - "CommandName": "Get-PnPListPermissions" + "Rank": 8, + "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"" }, { - "Rank": 2, + "CommandName": "Get-PnPListItem", "Id": 565, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id", - "CommandName": "Get-PnPListPermissions" + "Rank": 9, + "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType" }, { - "Rank": 1, + "CommandName": "Get-PnPListItemAttachment", "Id": 566, - "Command": "Get-PnPListRecordDeclaration -List \"Documents\"", - "CommandName": "Get-PnPListRecordDeclaration" + "Rank": 1, + "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"" }, { - "Rank": 1, + "CommandName": "Get-PnPListItemAttachment", "Id": 567, - "Command": "Get-PnPMasterPage", - "CommandName": "Get-PnPMasterPage" + "Rank": 2, + "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force" }, { - "Rank": 1, + "CommandName": "Get-PnPListItemComment", "Id": 568, - "Command": "Get-PnPMessageCenterAnnouncement", - "CommandName": "Get-PnPMessageCenterAnnouncement" + "Rank": 1, + "Command": "Get-PnPListItemComment -List Tasks -Identity 1" }, { - "Rank": 2, + "CommandName": "Get-PnPListItemPermission", "Id": 569, - "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"", - "CommandName": "Get-PnPMessageCenterAnnouncement" + "Rank": 1, + "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1" }, { - "Rank": 1, + "CommandName": "Get-PnPListItemVersion", "Id": 570, - "Command": "Get-PnPMicrosoft365ExpiringGroup", - "CommandName": "Get-PnPMicrosoft365ExpiringGroup" + "Rank": 1, + "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1" }, { - "Rank": 2, + "CommandName": "Get-PnPListPermissions", "Id": 571, - "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93", - "CommandName": "Get-PnPMicrosoft365ExpiringGroup" + "Rank": 1, + "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60" }, { - "Rank": 1, + "CommandName": "Get-PnPListPermissions", "Id": 572, - "Command": "Get-PnPMicrosoft365Group", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 2, + "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" }, { - "Rank": 2, + "CommandName": "Get-PnPListRecordDeclaration", "Id": 573, - "Command": "Get-PnPMicrosoft365Group -Identity $groupId", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Get-PnPListRecordDeclaration -List \"Documents\"" }, { - "Rank": 3, + "CommandName": "Get-PnPMasterPage", "Id": 574, - "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Get-PnPMasterPage" }, { - "Rank": 4, + "CommandName": "Get-PnPMessageCenterAnnouncement", "Id": 575, - "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Get-PnPMessageCenterAnnouncement" }, { - "Rank": 5, + "CommandName": "Get-PnPMessageCenterAnnouncement", "Id": 576, - "Command": "Get-PnPMicrosoft365Group -Identity $group", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 2, + "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"" }, { - "Rank": 6, + "CommandName": "Get-PnPMicrosoft365ExpiringGroup", "Id": 577, - "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl", - "CommandName": "Get-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Get-PnPMicrosoft365ExpiringGroup" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365ExpiringGroup", "Id": 578, - "Command": "Get-PnPMicrosoft365GroupEndpoint", - "CommandName": "Get-PnPMicrosoft365GroupEndpoint" + "Rank": 2, + "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 579, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"", - "CommandName": "Get-PnPMicrosoft365GroupEndpoint" + "Rank": 1, + "Command": "Get-PnPMicrosoft365Group" }, { - "Rank": 3, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 580, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", - "CommandName": "Get-PnPMicrosoft365GroupEndpoint" + "Rank": 2, + "Command": "Get-PnPMicrosoft365Group -Identity $groupId" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 581, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId", - "CommandName": "Get-PnPMicrosoft365GroupMember" + "Rank": 3, + "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 582, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $group", - "CommandName": "Get-PnPMicrosoft365GroupMember" + "Rank": 4, + "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName" }, { - "Rank": 3, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 583, - "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest", - "CommandName": "Get-PnPMicrosoft365GroupMember" + "Rank": 5, + "Command": "Get-PnPMicrosoft365Group -Identity $group" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365Group", "Id": 584, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId", - "CommandName": "Get-PnPMicrosoft365GroupOwner" + "Rank": 6, + "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupEndpoint", "Id": 585, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group", - "CommandName": "Get-PnPMicrosoft365GroupOwner" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupEndpoint" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupEndpoint", "Id": 586, - "Command": "Get-PnPMicrosoft365GroupSettings", - "CommandName": "Get-PnPMicrosoft365GroupSettings" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupEndpoint", "Id": 587, - "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId", - "CommandName": "Get-PnPMicrosoft365GroupSettings" + "Rank": 3, + "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupMember", "Id": 588, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates", - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupMember", "Id": 589, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"", - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupMember -Identity $group" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupMember", "Id": 590, - "Command": "Get-PnPMicrosoft365GroupTeam", - "CommandName": "Get-PnPMicrosoft365GroupTeam" + "Rank": 3, + "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupOwner", "Id": 591, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"", - "CommandName": "Get-PnPMicrosoft365GroupTeam" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId" }, { - "Rank": 3, + "CommandName": "Get-PnPMicrosoft365GroupOwner", "Id": 592, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", - "CommandName": "Get-PnPMicrosoft365GroupTeam" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupSettings", "Id": 593, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity", - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupSettings" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupSettings", "Id": 594, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"", - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId" }, { - "Rank": 3, + "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", "Id": 595, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupSettingTemplates" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", "Id": 596, - "Command": "Get-PnPNavigationNode", - "CommandName": "Get-PnPNavigationNode" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupTeam", "Id": 597, - "Command": "Get-PnPNavigationNode -Location QuickLaunch", - "CommandName": "Get-PnPNavigationNode" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupTeam" }, { - "Rank": 3, + "CommandName": "Get-PnPMicrosoft365GroupTeam", "Id": 598, - "Command": "Get-PnPNavigationNode -Location TopNavigationBar", - "CommandName": "Get-PnPNavigationNode" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupTeam", "Id": 599, - "Command": "Get-PnPOrgAssetsLibrary", - "CommandName": "Get-PnPOrgAssetsLibrary" + "Rank": 3, + "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Id": 600, - "Command": "Get-PnPOrgNewsSite", - "CommandName": "Get-PnPOrgNewsSite" + "Rank": 1, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity" }, { - "Rank": 1, + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Id": 601, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\"", - "CommandName": "Get-PnPPage" + "Rank": 2, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"" }, { - "Rank": 2, + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Id": 602, - "Command": "Get-PnPPage \"MyPage\"", - "CommandName": "Get-PnPPage" + "Rank": 3, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Rank": 3, + "CommandName": "Get-PnPNavigationNode", "Id": 603, - "Command": "Get-PnPPage \"Templates/MyPageTemplate\"", - "CommandName": "Get-PnPPage" + "Rank": 1, + "Command": "Get-PnPNavigationNode" }, { - "Rank": 4, + "CommandName": "Get-PnPNavigationNode", "Id": 604, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")", - "CommandName": "Get-PnPPage" + "Rank": 2, + "Command": "Get-PnPNavigationNode -Location QuickLaunch" }, { - "Rank": 1, + "CommandName": "Get-PnPNavigationNode", "Id": 605, - "Command": "Get-PnPPageComponent -Page Home", - "CommandName": "Get-PnPPageComponent" + "Rank": 3, + "Command": "Get-PnPNavigationNode -Location TopNavigationBar" }, { - "Rank": 2, + "CommandName": "Get-PnPOrgAssetsLibrary", "Id": 606, - "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82", - "CommandName": "Get-PnPPageComponent" + "Rank": 1, + "Command": "Get-PnPOrgAssetsLibrary" }, { - "Rank": 3, + "CommandName": "Get-PnPOrgNewsSite", "Id": 607, - "Command": "Get-PnPPageComponent -Page Home -ListAvailable", - "CommandName": "Get-PnPPageComponent" + "Rank": 1, + "Command": "Get-PnPOrgNewsSite" }, { - "Rank": 1, + "CommandName": "Get-PnPPage", "Id": 608, - "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"", - "CommandName": "Get-PnPPlannerBucket" + "Rank": 1, + "Command": "Get-PnPPage -Identity \"MyPage.aspx\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPage", "Id": 609, - "Command": "Get-PnPPlannerConfiguration", - "CommandName": "Get-PnPPlannerConfiguration" + "Rank": 2, + "Command": "Get-PnPPage \"MyPage\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPage", "Id": 610, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\"", - "CommandName": "Get-PnPPlannerPlan" + "Rank": 3, + "Command": "Get-PnPPage \"Templates/MyPageTemplate\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPage", "Id": 611, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"", - "CommandName": "Get-PnPPlannerPlan" + "Rank": 4, + "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")" }, { - "Rank": 3, + "CommandName": "Get-PnPPageComponent", "Id": 612, - "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities", - "CommandName": "Get-PnPPlannerPlan" + "Rank": 1, + "Command": "Get-PnPPageComponent -Page Home" }, { - "Rank": 1, + "CommandName": "Get-PnPPageComponent", "Id": 613, - "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"", - "CommandName": "Get-PnPPlannerRosterMember" + "Rank": 2, + "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Rank": 1, + "CommandName": "Get-PnPPageComponent", "Id": 614, - "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"", - "CommandName": "Get-PnPPlannerRosterPlan" + "Rank": 3, + "Command": "Get-PnPPageComponent -Page Home -ListAvailable" }, { - "Rank": 2, + "CommandName": "Get-PnPPageLikedByInformation", "Id": 615, - "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"", - "CommandName": "Get-PnPPlannerRosterPlan" + "Rank": 1, + "Command": "Get-PnPPageLikedByInformation -Identity \"MyPage.aspx\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPageLikedByInformation", "Id": 616, - "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"", - "CommandName": "Get-PnPPlannerTask" + "Rank": 2, + "Command": "Get-PnPPageLikedByInformation \"MyPage\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPageLikedByInformation", "Id": 617, - "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"", - "CommandName": "Get-PnPPlannerTask" + "Rank": 3, + "Command": "Get-PnPPageLikedByInformation -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")" }, { - "Rank": 3, + "CommandName": "Get-PnPPageSchedulingEnabled", "Id": 618, - "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"", - "CommandName": "Get-PnPPlannerTask" + "Rank": 1, + "Command": "Get-PnPPageSchedulingEnabled" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerBucket", "Id": 619, - "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"", - "CommandName": "Get-PnPPlannerUserPolicy" + "Rank": 1, + "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerConfiguration", "Id": 620, - "Command": "Get-PnPPowerPlatformCustomConnector -Environment (Get-PnPPowerPlatformEnvironment)", - "CommandName": "Get-PnPPowerPlatformCustomConnector" + "Rank": 1, + "Command": "Get-PnPPlannerConfiguration" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerPlan", "Id": 621, - "Command": "Get-PnPPowerPlatformEnvironment", - "CommandName": "Get-PnPPowerPlatformEnvironment" + "Rank": 1, + "Command": "Get-PnPPlannerPlan -Group \"Marketing\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPlannerPlan", "Id": 622, - "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true", - "CommandName": "Get-PnPPowerPlatformEnvironment" + "Rank": 2, + "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"" }, { - "Rank": 3, + "CommandName": "Get-PnPPlannerPlan", "Id": 623, - "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"", - "CommandName": "Get-PnPPowerPlatformEnvironment" + "Rank": 3, + "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerRosterMember", "Id": 624, - "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment)", - "CommandName": "Get-PnPPowerPlatformSolution" + "Rank": 1, + "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPlannerRosterPlan", "Id": 625, - "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Name 'My Solution Name'", - "CommandName": "Get-PnPPowerPlatformSolution" + "Rank": 1, + "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerRosterPlan", "Id": 626, - "Command": "Get-PnPPowerShellTelemetryEnabled", - "CommandName": "Get-PnPPowerShellTelemetryEnabled" + "Rank": 2, + "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPlannerTask", "Id": 627, - "Command": "Get-PnPPropertyBag", - "CommandName": "Get-PnPPropertyBag" + "Rank": 1, + "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPlannerTask", "Id": 628, - "Command": "Get-PnPPropertyBag -Key MyKey", - "CommandName": "Get-PnPPropertyBag" + "Rank": 2, + "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" }, { - "Rank": 3, + "CommandName": "Get-PnPPlannerTask", "Id": 629, - "Command": "Get-PnPPropertyBag -Folder /MyFolder", - "CommandName": "Get-PnPPropertyBag" + "Rank": 3, + "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" }, { - "Rank": 4, + "CommandName": "Get-PnPPlannerUserPolicy", "Id": 630, - "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey", - "CommandName": "Get-PnPPropertyBag" + "Rank": 1, + "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" }, { - "Rank": 5, + "CommandName": "Get-PnPPowerPlatformCustomConnector", "Id": 631, - "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey", - "CommandName": "Get-PnPPropertyBag" + "Rank": 1, + "Command": "Get-PnPPowerPlatformCustomConnector -Environment (Get-PnPPowerPlatformEnvironment)" }, { - "Rank": 1, + "CommandName": "Get-PnPPowerPlatformEnvironment", "Id": 632, - "Command": "Get-PnPPublishingImageRendition", - "CommandName": "Get-PnPPublishingImageRendition" + "Rank": 1, + "Command": "Get-PnPPowerPlatformEnvironment" }, { - "Rank": 2, + "CommandName": "Get-PnPPowerPlatformEnvironment", "Id": 633, - "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"", - "CommandName": "Get-PnPPublishingImageRendition" + "Rank": 2, + "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true" }, { - "Rank": 3, + "CommandName": "Get-PnPPowerPlatformEnvironment", "Id": 634, - "Command": "Get-PnPPublishingImageRendition -Identity 2", - "CommandName": "Get-PnPPublishingImageRendition" + "Rank": 3, + "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"" }, { - "Rank": 1, + "CommandName": "Get-PnPPowerPlatformSolution", "Id": 635, - "Command": "Get-PnPRecycleBinItem", - "CommandName": "Get-PnPRecycleBinItem" + "Rank": 1, + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment)" }, { - "Rank": 2, + "CommandName": "Get-PnPPowerPlatformSolution", "Id": 636, - "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2", - "CommandName": "Get-PnPRecycleBinItem" + "Rank": 2, + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Name 'My Solution Name'" }, { - "Rank": 3, + "CommandName": "Get-PnPPowerShellTelemetryEnabled", "Id": 637, - "Command": "Get-PnPRecycleBinItem -FirstStage", - "CommandName": "Get-PnPRecycleBinItem" + "Rank": 1, + "Command": "Get-PnPPowerShellTelemetryEnabled" }, { - "Rank": 4, + "CommandName": "Get-PnPPropertyBag", "Id": 638, - "Command": "Get-PnPRecycleBinItem -SecondStage", - "CommandName": "Get-PnPRecycleBinItem" + "Rank": 1, + "Command": "Get-PnPPropertyBag" }, { - "Rank": 5, + "CommandName": "Get-PnPPropertyBag", "Id": 639, - "Command": "Get-PnPRecycleBinItem -RowLimit 10000", - "CommandName": "Get-PnPRecycleBinItem" + "Rank": 2, + "Command": "Get-PnPPropertyBag -Key MyKey" }, { - "Rank": 1, + "CommandName": "Get-PnPPropertyBag", "Id": 640, - "Command": "Get-PnPRequestAccessEmails", - "CommandName": "Get-PnPRequestAccessEmails" + "Rank": 3, + "Command": "Get-PnPPropertyBag -Folder /MyFolder" }, { - "Rank": 1, + "CommandName": "Get-PnPPropertyBag", "Id": 641, - "Command": "Get-PnPRoleDefinition", - "CommandName": "Get-PnPRoleDefinition" + "Rank": 4, + "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey" }, { - "Rank": 2, + "CommandName": "Get-PnPPropertyBag", "Id": 642, - "Command": "Get-PnPRoleDefinition -Identity Read", - "CommandName": "Get-PnPRoleDefinition" + "Rank": 5, + "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey" }, { - "Rank": 3, + "CommandName": "Get-PnPPublishingImageRendition", "Id": 643, - "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }", - "CommandName": "Get-PnPRoleDefinition" + "Rank": 1, + "Command": "Get-PnPPublishingImageRendition" }, { - "Rank": 1, + "CommandName": "Get-PnPPublishingImageRendition", "Id": 644, - "Command": "Get-PnPSearchConfiguration", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 2, + "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"" }, { - "Rank": 2, + "CommandName": "Get-PnPPublishingImageRendition", "Id": 645, - "Command": "Get-PnPSearchConfiguration -Scope Site", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 3, + "Command": "Get-PnPPublishingImageRendition -Identity 2" }, { - "Rank": 3, + "CommandName": "Get-PnPRecycleBinItem", "Id": 646, - "Command": "Get-PnPSearchConfiguration -Scope Subscription", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 1, + "Command": "Get-PnPRecycleBinItem" }, { - "Rank": 4, + "CommandName": "Get-PnPRecycleBinItem", "Id": 647, - "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 2, + "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2" }, { - "Rank": 5, + "CommandName": "Get-PnPRecycleBinItem", "Id": 648, - "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 3, + "Command": "Get-PnPRecycleBinItem -FirstStage" }, { - "Rank": 6, + "CommandName": "Get-PnPRecycleBinItem", "Id": 649, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 4, + "Command": "Get-PnPRecycleBinItem -SecondStage" }, { - "Rank": 7, + "CommandName": "Get-PnPRecycleBinItem", "Id": 650, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 5, + "Command": "Get-PnPRecycleBinItem -RowLimit 10000" }, { - "Rank": 8, + "CommandName": "Get-PnPRequestAccessEmails", "Id": 651, - "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false", - "CommandName": "Get-PnPSearchConfiguration" + "Rank": 1, + "Command": "Get-PnPRequestAccessEmails" }, { - "Rank": 1, + "CommandName": "Get-PnPRoleDefinition", "Id": 652, - "Command": "Get-PnPSearchCrawlLog", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 1, + "Command": "Get-PnPRoleDefinition" }, { - "Rank": 2, + "CommandName": "Get-PnPRoleDefinition", "Id": 653, - "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 2, + "Command": "Get-PnPRoleDefinition -Identity Read" }, { - "Rank": 3, + "CommandName": "Get-PnPRoleDefinition", "Id": 654, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 3, + "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }" }, { - "Rank": 4, + "CommandName": "Get-PnPSearchConfiguration", "Id": 655, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 1, + "Command": "Get-PnPSearchConfiguration" }, { - "Rank": 5, + "CommandName": "Get-PnPSearchConfiguration", "Id": 656, - "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 2, + "Command": "Get-PnPSearchConfiguration -Scope Site" }, { - "Rank": 6, + "CommandName": "Get-PnPSearchConfiguration", "Id": 657, - "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 3, + "Command": "Get-PnPSearchConfiguration -Scope Subscription" }, { - "Rank": 7, + "CommandName": "Get-PnPSearchConfiguration", "Id": 658, - "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat", - "CommandName": "Get-PnPSearchCrawlLog" + "Rank": 4, + "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchConfiguration", "Id": 659, - "Command": "Get-PnPSearchSettings", - "CommandName": "Get-PnPSearchSettings" + "Rank": 5, + "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchConfiguration", "Id": 660, - "Command": "Get-PnPServiceCurrentHealth", - "CommandName": "Get-PnPServiceCurrentHealth" + "Rank": 6, + "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv" }, { - "Rank": 2, + "CommandName": "Get-PnPSearchConfiguration", "Id": 661, - "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"", - "CommandName": "Get-PnPServiceCurrentHealth" + "Rank": 7, + "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchConfiguration", "Id": 662, - "Command": "Get-PnPServiceHealthIssue", - "CommandName": "Get-PnPServiceHealthIssue" + "Rank": 8, + "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false" }, { - "Rank": 2, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 663, - "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"", - "CommandName": "Get-PnPServiceHealthIssue" + "Rank": 1, + "Command": "Get-PnPSearchCrawlLog" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 664, - "Command": "Get-PnPSharePointAddIn", - "CommandName": "Get-PnPSharePointAddIn" + "Rank": 2, + "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"" }, { - "Rank": 2, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 665, - "Command": "Get-PnPSharePointAddIn -IncludeSubsites", - "CommandName": "Get-PnPSharePointAddIn" + "Rank": 3, + "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 666, - "Command": "Get-PnPSharingForNonOwnersOfSite", - "CommandName": "Get-PnPSharingForNonOwnersOfSite" + "Rank": 4, + "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 667, - "Command": "Get-PnPSite", - "CommandName": "Get-PnPSite" + "Rank": 5, + "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10" }, { - "Rank": 2, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 668, - "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl", - "CommandName": "Get-PnPSite" + "Rank": 6, + "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)" }, { - "Rank": 1, + "CommandName": "Get-PnPSearchCrawlLog", "Id": 669, - "Command": "Get-PnPSiteAnalyticsData -All", - "CommandName": "Get-PnPSiteAnalyticsData" + "Rank": 7, + "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat" }, { - "Rank": 2, + "CommandName": "Get-PnPSearchSettings", "Id": 670, - "Command": "Get-PnPSiteAnalyticsData -LastSevenDays", - "CommandName": "Get-PnPSiteAnalyticsData" + "Rank": 1, + "Command": "Get-PnPSearchSettings" }, { - "Rank": 3, + "CommandName": "Get-PnPServiceCurrentHealth", "Id": 671, - "Command": "Get-PnPSiteAnalyticsData -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", - "CommandName": "Get-PnPSiteAnalyticsData" + "Rank": 1, + "Command": "Get-PnPServiceCurrentHealth" }, { - "Rank": 4, + "CommandName": "Get-PnPServiceCurrentHealth", "Id": 672, - "Command": "Get-PnPSiteAnalyticsData -Identity \"https://tenant.sharepoint.com/sites/mysite\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", - "CommandName": "Get-PnPSiteAnalyticsData" + "Rank": 2, + "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"" }, { - "Rank": 1, + "CommandName": "Get-PnPServiceHealthIssue", "Id": 673, - "Command": "Get-PnPSiteClosure", - "CommandName": "Get-PnPSiteClosure" + "Rank": 1, + "Command": "Get-PnPServiceHealthIssue" }, { - "Rank": 1, + "CommandName": "Get-PnPServiceHealthIssue", "Id": 674, - "Command": "Get-PnPSiteCollectionAdmin", - "CommandName": "Get-PnPSiteCollectionAdmin" + "Rank": 2, + "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSharePointAddIn", "Id": 675, - "Command": "Get-PnPSiteCollectionAppCatalog", - "CommandName": "Get-PnPSiteCollectionAppCatalog" + "Rank": 1, + "Command": "Get-PnPSharePointAddIn" }, { - "Rank": 2, + "CommandName": "Get-PnPSharePointAddIn", "Id": 676, - "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite", - "CommandName": "Get-PnPSiteCollectionAppCatalog" + "Rank": 2, + "Command": "Get-PnPSharePointAddIn -IncludeSubsites" }, { - "Rank": 3, + "CommandName": "Get-PnPSharingForNonOwnersOfSite", "Id": 677, - "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites", - "CommandName": "Get-PnPSiteCollectionAppCatalog" + "Rank": 1, + "Command": "Get-PnPSharingForNonOwnersOfSite" }, { - "Rank": 1, + "CommandName": "Get-PnPSite", "Id": 678, - "Command": "Get-PnPSiteCollectionTermStore", - "CommandName": "Get-PnPSiteCollectionTermStore" + "Rank": 1, + "Command": "Get-PnPSite" }, { - "Rank": 1, + "CommandName": "Get-PnPSite", "Id": 679, - "Command": "Get-PnPSiteDesign", - "CommandName": "Get-PnPSiteDesign" + "Rank": 2, + "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteAnalyticsData", "Id": 680, - "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Get-PnPSiteDesign" + "Rank": 1, + "Command": "Get-PnPSiteAnalyticsData -All" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteAnalyticsData", "Id": 681, - "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Get-PnPSiteDesignRights" + "Rank": 2, + "Command": "Get-PnPSiteAnalyticsData -LastSevenDays" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteAnalyticsData", "Id": 682, - "Command": "Get-PnPSiteDesignRun", - "CommandName": "Get-PnPSiteDesignRun" + "Rank": 3, + "Command": "Get-PnPSiteAnalyticsData -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteAnalyticsData", "Id": 683, - "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"", - "CommandName": "Get-PnPSiteDesignRun" + "Rank": 4, + "Command": "Get-PnPSiteAnalyticsData -Identity \"https://tenant.sharepoint.com/sites/mysite\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteClosure", "Id": 684, - "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82", - "CommandName": "Get-PnPSiteDesignTask" + "Rank": 1, + "Command": "Get-PnPSiteClosure" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteCollectionAdmin", "Id": 685, - "Command": "Get-PnPSiteDesignTask", - "CommandName": "Get-PnPSiteDesignTask" + "Rank": 1, + "Command": "Get-PnPSiteCollectionAdmin" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteCollectionAppCatalog", "Id": 686, - "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"", - "CommandName": "Get-PnPSiteDesignTask" + "Rank": 1, + "Command": "Get-PnPSiteCollectionAppCatalog" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteCollectionAppCatalog", "Id": 687, - "Command": "Get-PnPSiteGroup", - "CommandName": "Get-PnPSiteGroup" + "Rank": 2, + "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteCollectionAppCatalog", "Id": 688, - "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"", - "CommandName": "Get-PnPSiteGroup" + "Rank": 3, + "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteCollectionTermStore", "Id": 689, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"", - "CommandName": "Get-PnPSiteGroup" + "Rank": 1, + "Command": "Get-PnPSiteCollectionTermStore" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteDesign", "Id": 690, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"", - "CommandName": "Get-PnPSiteGroup" + "Rank": 1, + "Command": "Get-PnPSiteDesign" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteDesign", "Id": 691, - "Command": "Get-PnPSitePolicy", - "CommandName": "Get-PnPSitePolicy" + "Rank": 2, + "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteDesignRights", "Id": 692, - "Command": "Get-PnPSitePolicy -AllAvailable", - "CommandName": "Get-PnPSitePolicy" + "Rank": 1, + "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteDesignRun", "Id": 693, - "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"", - "CommandName": "Get-PnPSitePolicy" + "Rank": 1, + "Command": "Get-PnPSiteDesignRun" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteDesignRun", "Id": 694, - "Command": "Get-PnPSiteScript", - "CommandName": "Get-PnPSiteScript" + "Rank": 2, + "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteDesignTask", "Id": 695, - "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Get-PnPSiteScript" + "Rank": 1, + "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteDesignTask", "Id": 696, - "Command": "Get-PnPSiteScriptFromList -List \"MyList\"", - "CommandName": "Get-PnPSiteScriptFromList" + "Rank": 2, + "Command": "Get-PnPSiteDesignTask" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteDesignTask", "Id": 697, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"", - "CommandName": "Get-PnPSiteScriptFromList" + "Rank": 3, + "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteFileVersionBatchDeleteJobStatus", "Id": 698, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"", - "CommandName": "Get-PnPSiteScriptFromList" + "Rank": 1, + "Command": "Get-PnPSiteFileVersionBatchDeleteJobStatus" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteFileVersionExpirationReportJobStatus", "Id": 699, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAll", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 1, + "Command": "Get-PnPSiteFileVersionExpirationReportJobStatus -ReportUrl \"https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv\"" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteGroup", "Id": 700, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 1, + "Command": "Get-PnPSiteGroup" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteGroup", "Id": 701, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 2, + "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteGroup", "Id": 702, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 3, + "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"" }, { - "Rank": 5, + "CommandName": "Get-PnPSiteGroup", "Id": 703, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 4, + "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"" }, { - "Rank": 6, + "CommandName": "Get-PnPSitePolicy", "Id": 704, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite", - "CommandName": "Get-PnPSiteScriptFromWeb" + "Rank": 1, + "Command": "Get-PnPSitePolicy" }, { - "Rank": 1, + "CommandName": "Get-PnPSitePolicy", "Id": 705, - "Command": "Get-PnPSiteSearchQueryResults", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 2, + "Command": "Get-PnPSitePolicy -AllAvailable" }, { - "Rank": 2, + "CommandName": "Get-PnPSitePolicy", "Id": 706, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 3, + "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteScript", "Id": 707, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 1, + "Command": "Get-PnPSiteScript" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteScript", "Id": 708, - "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 2, + "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 5, + "CommandName": "Get-PnPSiteScriptFromList", "Id": 709, - "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 1, + "Command": "Get-PnPSiteScriptFromList -List \"MyList\"" }, { - "Rank": 6, + "CommandName": "Get-PnPSiteScriptFromList", "Id": 710, - "Command": "Get-PnPSiteSearchQueryResults -All", - "CommandName": "Get-PnPSiteSearchQueryResults" + "Rank": 2, + "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteScriptFromList", "Id": 711, - "Command": "Get-PnPSiteSensitivityLabel", - "CommandName": "Get-PnPSiteSensitivityLabel" + "Rank": 3, + "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 712, - "Command": "Get-PnPSiteTemplate -Out template.pnp", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 1, + "Command": "Get-PnPSiteScriptFromWeb -IncludeAll" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 713, - "Command": "Get-PnPSiteTemplate -Out template.xml", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 2, + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 714, - "Command": "Get-PnPSiteTemplate -Out template.md", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 3, + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 715, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 4, + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems" }, { - "Rank": 5, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 716, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 5, + "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists" }, { - "Rank": 6, + "CommandName": "Get-PnPSiteScriptFromWeb", "Id": 717, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 6, + "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite" }, { - "Rank": 7, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 718, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 1, + "Command": "Get-PnPSiteSearchQueryResults" }, { - "Rank": 8, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 719, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 2, + "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"" }, { - "Rank": 9, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 720, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 3, + "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"" }, { - "Rank": 10, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 721, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 4, + "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"" }, { - "Rank": 11, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 722, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 5, + "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10" }, { - "Rank": 12, + "CommandName": "Get-PnPSiteSearchQueryResults", "Id": 723, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 6, + "Command": "Get-PnPSiteSearchQueryResults -All" }, { - "Rank": 13, + "CommandName": "Get-PnPSiteSensitivityLabel", "Id": 724, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 1, + "Command": "Get-PnPSiteSensitivityLabel" }, { - "Rank": 14, + "CommandName": "Get-PnPSiteTemplate", "Id": 725, - "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources", - "CommandName": "Get-PnPSiteTemplate" + "Rank": 1, + "Command": "Get-PnPSiteTemplate -Out template.pnp" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 726, - "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com", - "CommandName": "Get-PnPSiteUserInvitations" + "Rank": 2, + "Command": "Get-PnPSiteTemplate -Out template.xml" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 727, - "Command": "Get-PnPSiteVersionPolicy", - "CommandName": "Get-PnPSiteVersionPolicy" + "Rank": 3, + "Command": "Get-PnPSiteTemplate -Out template.md" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 728, - "Command": "Get-PnPSiteVersionPolicyProgress", - "CommandName": "Get-PnPSiteVersionPolicyProgress" + "Rank": 4, + "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 729, - "Command": "Get-PnPStorageEntity", - "CommandName": "Get-PnPStorageEntity" + "Rank": 5, + "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteTemplate", "Id": 730, - "Command": "Get-PnPStorageEntity -Key MyKey", - "CommandName": "Get-PnPStorageEntity" + "Rank": 6, + "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteTemplate", "Id": 731, - "Command": "Get-PnPStorageEntity -Scope Site", - "CommandName": "Get-PnPStorageEntity" + "Rank": 7, + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteTemplate", "Id": 732, - "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site", - "CommandName": "Get-PnPStorageEntity" + "Rank": 8, + "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 733, - "Command": "Get-PnPStoredCredential -Name O365", - "CommandName": "Get-PnPStoredCredential" + "Rank": 9, + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 734, - "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", - "CommandName": "Get-PnPStructuralNavigationCacheSiteState" + "Rank": 10, + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 735, - "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", - "CommandName": "Get-PnPStructuralNavigationCacheWebState" + "Rank": 11, + "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 736, - "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'", - "CommandName": "Get-PnPSubscribeSharePointNewsDigest" + "Rank": 12, + "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication" }, { - "Rank": 1, + "CommandName": "Get-PnPSiteTemplate", "Id": 737, - "Command": "Get-PnPSubWeb", - "CommandName": "Get-PnPSubWeb" + "Rank": 13, + "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"" }, { - "Rank": 2, + "CommandName": "Get-PnPSiteTemplate", "Id": 738, - "Command": "Get-PnPSubWeb -Recurse", - "CommandName": "Get-PnPSubWeb" + "Rank": 14, + "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources" }, { - "Rank": 3, + "CommandName": "Get-PnPSiteUserInvitations", "Id": 739, - "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description", - "CommandName": "Get-PnPSubWeb" + "Rank": 1, + "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" }, { - "Rank": 4, + "CommandName": "Get-PnPSiteVersionPolicy", "Id": 740, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse", - "CommandName": "Get-PnPSubWeb" + "Rank": 1, + "Command": "Get-PnPSiteVersionPolicy" }, { - "Rank": 5, + "CommandName": "Get-PnPSiteVersionPolicyStatus", "Id": 741, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb", - "CommandName": "Get-PnPSubWeb" + "Rank": 1, + "Command": "Get-PnPSiteVersionPolicyStatus" }, { - "Rank": 1, + "CommandName": "Get-PnPStorageEntity", "Id": 742, - "Command": "Get-PnPSyntexModel", - "CommandName": "Get-PnPSyntexModel" + "Rank": 1, + "Command": "Get-PnPStorageEntity" }, { - "Rank": 2, + "CommandName": "Get-PnPStorageEntity", "Id": 743, - "Command": "Get-PnPSyntexModel -Identity 1", - "CommandName": "Get-PnPSyntexModel" + "Rank": 2, + "Command": "Get-PnPStorageEntity -Key MyKey" }, { - "Rank": 3, + "CommandName": "Get-PnPStorageEntity", "Id": 744, - "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"", - "CommandName": "Get-PnPSyntexModel" + "Rank": 3, + "Command": "Get-PnPStorageEntity -Scope Site" }, { - "Rank": 1, + "CommandName": "Get-PnPStorageEntity", "Id": 745, - "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"", - "CommandName": "Get-PnPSyntexModelPublication" + "Rank": 4, + "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site" }, { - "Rank": 1, + "CommandName": "Get-PnPStoredCredential", "Id": 746, - "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"", - "CommandName": "Get-PnPTaxonomyItem" + "Rank": 1, + "Command": "Get-PnPStoredCredential -Name O365" }, { - "Rank": 1, + "CommandName": "Get-PnPStructuralNavigationCacheSiteState", "Id": 747, - "Command": "Get-PnPTeamsApp", - "CommandName": "Get-PnPTeamsApp" + "Rank": 1, + "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { - "Rank": 2, + "CommandName": "Get-PnPStructuralNavigationCacheWebState", "Id": 748, - "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4", - "CommandName": "Get-PnPTeamsApp" + "Rank": 1, + "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { - "Rank": 3, + "CommandName": "Get-PnPSubscribeSharePointNewsDigest", "Id": 749, - "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"", - "CommandName": "Get-PnPTeamsApp" + "Rank": 1, + "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'" }, { - "Rank": 1, + "CommandName": "Get-PnPSubWeb", "Id": 750, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8", - "CommandName": "Get-PnPTeamsChannel" + "Rank": 1, + "Command": "Get-PnPSubWeb" }, { - "Rank": 2, + "CommandName": "Get-PnPSubWeb", "Id": 751, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"", - "CommandName": "Get-PnPTeamsChannel" + "Rank": 2, + "Command": "Get-PnPSubWeb -Recurse" }, { - "Rank": 3, + "CommandName": "Get-PnPSubWeb", "Id": 752, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"", - "CommandName": "Get-PnPTeamsChannel" + "Rank": 3, + "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description" }, { - "Rank": 4, + "CommandName": "Get-PnPSubWeb", "Id": 753, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -IncludeModerationSettings", - "CommandName": "Get-PnPTeamsChannel" + "Rank": 4, + "Command": "Get-PnPSubWeb -Identity Team1 -Recurse" }, { - "Rank": 1, + "CommandName": "Get-PnPSubWeb", "Id": 754, - "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"", - "CommandName": "Get-PnPTeamsChannelFilesFolder" + "Rank": 5, + "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb" }, { - "Rank": 2, + "CommandName": "Get-PnPSyntexModel", "Id": 755, - "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"", - "CommandName": "Get-PnPTeamsChannelFilesFolder" + "Rank": 1, + "Command": "Get-PnPSyntexModel" }, { - "Rank": 1, + "CommandName": "Get-PnPSyntexModel", "Id": 756, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"", - "CommandName": "Get-PnPTeamsChannelMessage" + "Rank": 2, + "Command": "Get-PnPSyntexModel -Identity 1" }, { - "Rank": 2, + "CommandName": "Get-PnPSyntexModel", "Id": 757, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293", - "CommandName": "Get-PnPTeamsChannelMessage" + "Rank": 3, + "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"" }, { - "Rank": 1, + "CommandName": "Get-PnPSyntexModelPublication", "Id": 758, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted", - "CommandName": "Get-PnPTeamsChannelMessageReply" + "Rank": 1, + "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTaxonomyItem", "Id": 759, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630", - "CommandName": "Get-PnPTeamsChannelMessageReply" + "Rank": 1, + "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsApp", "Id": 760, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"", - "CommandName": "Get-PnPTeamsChannelUser" + "Rank": 1, + "Command": "Get-PnPTeamsApp" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsApp", "Id": 761, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member", - "CommandName": "Get-PnPTeamsChannelUser" + "Rank": 2, + "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4" }, { - "Rank": 3, + "CommandName": "Get-PnPTeamsApp", "Id": 762, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com", - "CommandName": "Get-PnPTeamsChannelUser" + "Rank": 3, + "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTeamsChannel", "Id": 763, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000", - "CommandName": "Get-PnPTeamsChannelUser" + "Rank": 1, + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsChannel", "Id": 764, - "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e", - "CommandName": "Get-PnPTeamsPrimaryChannel" + "Rank": 2, + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsChannel", "Id": 765, - "Command": "Get-PnPTeamsPrimaryChannel -Team Sales", - "CommandName": "Get-PnPTeamsPrimaryChannel" + "Rank": 3, + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsChannel", "Id": 766, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype", - "CommandName": "Get-PnPTeamsTab" + "Rank": 4, + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -IncludeModerationSettings" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsChannelFilesFolder", "Id": 767, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"", - "CommandName": "Get-PnPTeamsTab" + "Rank": 1, + "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"" }, { - "Rank": 3, + "CommandName": "Get-PnPTeamsChannelFilesFolder", "Id": 768, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25", - "CommandName": "Get-PnPTeamsTab" + "Rank": 2, + "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTeamsChannelMessage", "Id": 769, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"", - "CommandName": "Get-PnPTeamsTab" + "Rank": 1, + "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"" }, { - "Rank": 5, + "CommandName": "Get-PnPTeamsChannelMessage", "Id": 770, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"", - "CommandName": "Get-PnPTeamsTab" + "Rank": 2, + "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsChannelMessageReply", "Id": 771, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5", - "CommandName": "Get-PnPTeamsTag" + "Rank": 1, + "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsChannelMessageReply", "Id": 772, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"", - "CommandName": "Get-PnPTeamsTag" + "Rank": 2, + "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsChannelUser", "Id": 773, - "Command": "Get-PnPTeamsTeam", - "CommandName": "Get-PnPTeamsTeam" + "Rank": 1, + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsChannelUser", "Id": 774, - "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"", - "CommandName": "Get-PnPTeamsTeam" + "Rank": 2, + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member" }, { - "Rank": 3, + "CommandName": "Get-PnPTeamsChannelUser", "Id": 775, - "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"", - "CommandName": "Get-PnPTeamsTeam" + "Rank": 3, + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com" }, { - "Rank": 4, + "CommandName": "Get-PnPTeamsChannelUser", "Id": 776, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"", - "CommandName": "Get-PnPTeamsTeam" + "Rank": 4, + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" }, { - "Rank": 5, + "CommandName": "Get-PnPTeamsPrimaryChannel", "Id": 777, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"", - "CommandName": "Get-PnPTeamsTeam" + "Rank": 1, + "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsPrimaryChannel", "Id": 778, - "Command": "Get-PnPTeamsUser -Team MyTeam", - "CommandName": "Get-PnPTeamsUser" + "Rank": 2, + "Command": "Get-PnPTeamsPrimaryChannel -Team Sales" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsTab", "Id": 779, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner", - "CommandName": "Get-PnPTeamsUser" + "Rank": 1, + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" }, { - "Rank": 3, + "CommandName": "Get-PnPTeamsTab", "Id": 780, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member", - "CommandName": "Get-PnPTeamsUser" + "Rank": 2, + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTeamsTab", "Id": 781, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest", - "CommandName": "Get-PnPTeamsUser" + "Rank": 3, + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTab", "Id": 782, - "Command": "Get-PnPTemporarilyDisableAppBar", - "CommandName": "Get-PnPTemporarilyDisableAppBar" + "Rank": 4, + "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTab", "Id": 783, - "Command": "Get-PnPTenant", - "CommandName": "Get-PnPTenant" + "Rank": 5, + "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTag", "Id": 784, - "Command": "Get-PnPTenantAppCatalogUrl", - "CommandName": "Get-PnPTenantAppCatalogUrl" + "Rank": 1, + "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTag", "Id": 785, - "Command": "Get-PnPTenantCdnEnabled -CdnType Public", - "CommandName": "Get-PnPTenantCdnEnabled" + "Rank": 2, + "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTeam", "Id": 786, - "Command": "Get-PnPTenantCdnOrigin -CdnType Public", - "CommandName": "Get-PnPTenantCdnOrigin" + "Rank": 1, + "Command": "Get-PnPTeamsTeam" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTeam", "Id": 787, - "Command": "Get-PnPTenantCdnPolicies -CdnType Public", - "CommandName": "Get-PnPTenantCdnPolicies" + "Rank": 2, + "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsTeam", "Id": 788, - "Command": "Get-PnPTenantDeletedSite", - "CommandName": "Get-PnPTenantDeletedSite" + "Rank": 3, + "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsTeam", "Id": 789, - "Command": "Get-PnPTenantDeletedSite -Detailed", - "CommandName": "Get-PnPTenantDeletedSite" + "Rank": 4, + "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"" }, { - "Rank": 3, + "CommandName": "Get-PnPTeamsTeam", "Id": 790, - "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Get-PnPTenantDeletedSite" + "Rank": 5, + "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTeamsUser", "Id": 791, - "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite", - "CommandName": "Get-PnPTenantDeletedSite" + "Rank": 1, + "Command": "Get-PnPTeamsUser -Team MyTeam" }, { - "Rank": 5, + "CommandName": "Get-PnPTeamsUser", "Id": 792, - "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite", - "CommandName": "Get-PnPTenantDeletedSite" + "Rank": 2, + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner" }, { - "Rank": 1, + "CommandName": "Get-PnPTeamsUser", "Id": 793, - "Command": "Get-PnPTenantId", - "CommandName": "Get-PnPTenantId" + "Rank": 3, + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member" }, { - "Rank": 2, + "CommandName": "Get-PnPTeamsUser", "Id": 794, - "Command": "Get-PnPTenantId contoso", - "CommandName": "Get-PnPTenantId" + "Rank": 4, + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest" }, { - "Rank": 3, + "CommandName": "Get-PnPTemporarilyDisableAppBar", "Id": 795, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com", - "CommandName": "Get-PnPTenantId" + "Rank": 1, + "Command": "Get-PnPTemporarilyDisableAppBar" }, { - "Rank": 4, + "CommandName": "Get-PnPTenant", "Id": 796, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment", - "CommandName": "Get-PnPTenantId" + "Rank": 1, + "Command": "Get-PnPTenant" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantAppCatalogUrl", "Id": 797, - "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"", - "CommandName": "Get-PnPTenantInfo" + "Rank": 1, + "Command": "Get-PnPTenantAppCatalogUrl" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantCdnEnabled", "Id": 798, - "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"", - "CommandName": "Get-PnPTenantInfo" + "Rank": 1, + "Command": "Get-PnPTenantCdnEnabled -CdnType Public" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantCdnOrigin", "Id": 799, - "Command": "Get-PnPTenantInfo", - "CommandName": "Get-PnPTenantInfo" + "Rank": 1, + "Command": "Get-PnPTenantCdnOrigin -CdnType Public" }, { - "Rank": 4, + "CommandName": "Get-PnPTenantCdnPolicies", "Id": 800, - "Command": "Get-PnPTenantInfo -CurrentTenant", - "CommandName": "Get-PnPTenantInfo" + "Rank": 1, + "Command": "Get-PnPTenantCdnPolicies -CdnType Public" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantDeletedSite", "Id": 801, - "Command": "Get-PnPTenantInstance", - "CommandName": "Get-PnPTenantInstance" + "Rank": 1, + "Command": "Get-PnPTenantDeletedSite" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantDeletedSite", "Id": 802, - "Command": "Get-PnPTenantRecycleBinItem", - "CommandName": "Get-PnPTenantRecycleBinItem" + "Rank": 2, + "Command": "Get-PnPTenantDeletedSite -Detailed" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantDeletedSite", "Id": 803, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject", - "CommandName": "Get-PnPTenantSequence" + "Rank": 3, + "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantDeletedSite", "Id": 804, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"", - "CommandName": "Get-PnPTenantSequence" + "Rank": 4, + "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantDeletedSite", "Id": 805, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence", - "CommandName": "Get-PnPTenantSequenceSite" + "Rank": 5, + "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantId", "Id": 806, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e", - "CommandName": "Get-PnPTenantSequenceSite" + "Rank": 1, + "Command": "Get-PnPTenantId" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantId", "Id": 807, - "Command": "Get-PnPTenantSite", - "CommandName": "Get-PnPTenantSite" + "Rank": 2, + "Command": "Get-PnPTenantId contoso" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantId", "Id": 808, - "Command": "Get-PnPTenantSite -Detailed", - "CommandName": "Get-PnPTenantSite" + "Rank": 3, + "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantId", "Id": 809, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites", - "CommandName": "Get-PnPTenantSite" + "Rank": 4, + "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment" }, { - "Rank": 4, + "CommandName": "Get-PnPTenantInfo", "Id": 810, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"", - "CommandName": "Get-PnPTenantSite" + "Rank": 1, + "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"" }, { - "Rank": 5, + "CommandName": "Get-PnPTenantInfo", "Id": 811, - "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"", - "CommandName": "Get-PnPTenantSite" + "Rank": 2, + "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"" }, { - "Rank": 6, + "CommandName": "Get-PnPTenantInfo", "Id": 812, - "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a", - "CommandName": "Get-PnPTenantSite" + "Rank": 3, + "Command": "Get-PnPTenantInfo" }, { - "Rank": 7, + "CommandName": "Get-PnPTenantInfo", "Id": 813, - "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0", - "CommandName": "Get-PnPTenantSite" + "Rank": 4, + "Command": "Get-PnPTenantInfo -CurrentTenant" }, { - "Rank": 8, + "CommandName": "Get-PnPTenantInstance", "Id": 814, - "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"", - "CommandName": "Get-PnPTenantSite" + "Rank": 1, + "Command": "Get-PnPTenantInstance" }, { - "Rank": 9, + "CommandName": "Get-PnPTenantInternalSetting", "Id": 815, - "Command": "Get-PnPTenantSite -GroupIdDefined $true", - "CommandName": "Get-PnPTenantSite" + "Rank": 1, + "Command": "Get-PnPTenantInternalSetting" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantRecycleBinItem", "Id": 816, - "Command": "Get-PnPTenantSyncClientRestriction", - "CommandName": "Get-PnPTenantSyncClientRestriction" + "Rank": 1, + "Command": "Get-PnPTenantRecycleBinItem" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantRestrictedSearchAllowedList", "Id": 817, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml", - "CommandName": "Get-PnPTenantTemplate" + "Rank": 1, + "Command": "Get-PnPTenantRestrictedSearchAllowedList" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantRestrictedSearchMode", "Id": 818, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite", - "CommandName": "Get-PnPTenantTemplate" + "Rank": 1, + "Command": "Get-PnPTenantRestrictedSearchMode" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantSequence", "Id": 819, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force", - "CommandName": "Get-PnPTenantTemplate" + "Rank": 1, + "Command": "Get-PnPTenantSequence -Template $myTemplateObject" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantSequence", "Id": 820, - "Command": "Get-PnPTenantTheme", - "CommandName": "Get-PnPTenantTheme" + "Rank": 2, + "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantSequenceSite", "Id": 821, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"", - "CommandName": "Get-PnPTenantTheme" + "Rank": 1, + "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantSequenceSite", "Id": 822, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson", - "CommandName": "Get-PnPTenantTheme" + "Rank": 2, + "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantSite", "Id": 823, - "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTerm" + "Rank": 1, + "Command": "Get-PnPTenantSite" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantSite", "Id": 824, - "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTerm" + "Rank": 2, + "Command": "Get-PnPTenantSite -Detailed" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantSite", "Id": 825, - "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTerm" + "Rank": 3, + "Command": "Get-PnPTenantSite -IncludeOneDriveSites" }, { - "Rank": 4, + "CommandName": "Get-PnPTenantSite", "Id": 826, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive", - "CommandName": "Get-PnPTerm" + "Rank": 4, + "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"" }, { - "Rank": 5, + "CommandName": "Get-PnPTenantSite", "Id": 827, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated", - "CommandName": "Get-PnPTerm" + "Rank": 5, + "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantSite", "Id": 828, - "Command": "Get-PnPTermGroup", - "CommandName": "Get-PnPTermGroup" + "Rank": 6, + "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantSite", "Id": 829, - "Command": "Get-PnPTermGroup -Identity \"Departments\"", - "CommandName": "Get-PnPTermGroup" + "Rank": 7, + "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantSite", "Id": 830, - "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d", - "CommandName": "Get-PnPTermGroup" + "Rank": 8, + "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantSite", "Id": 831, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83", - "CommandName": "Get-PnPTermLabel" + "Rank": 9, + "Command": "Get-PnPTenantSite -GroupIdDefined $true" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantSyncClientRestriction", "Id": 832, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033", - "CommandName": "Get-PnPTermLabel" + "Rank": 1, + "Command": "Get-PnPTenantSyncClientRestriction" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantTemplate", "Id": 833, - "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTermLabel" + "Rank": 1, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantTemplate", "Id": 834, - "Command": "Get-PnPTermSet -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTermSet" + "Rank": 2, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantTemplate", "Id": 835, - "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Get-PnPTermSet" + "Rank": 3, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force" }, { - "Rank": 3, + "CommandName": "Get-PnPTenantTheme", "Id": 836, - "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate", - "CommandName": "Get-PnPTermSet" + "Rank": 1, + "Command": "Get-PnPTenantTheme" }, { - "Rank": 1, + "CommandName": "Get-PnPTenantTheme", "Id": 837, - "Command": "Get-PnPTheme", - "CommandName": "Get-PnPTheme" + "Rank": 2, + "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTenantTheme", "Id": 838, - "Command": "Get-PnPTheme -DetectCurrentComposedLook", - "CommandName": "Get-PnPTheme" + "Rank": 3, + "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson" }, { - "Rank": 1, + "CommandName": "Get-PnPTerm", "Id": 839, - "Command": "Get-PnPTimeZoneId", - "CommandName": "Get-PnPTimeZoneId" + "Rank": 1, + "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 2, + "CommandName": "Get-PnPTerm", "Id": 840, - "Command": "Get-PnPTimeZoneId -Match Stockholm", - "CommandName": "Get-PnPTimeZoneId" + "Rank": 2, + "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTerm", "Id": 841, - "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"", - "CommandName": "Get-PnPUnfurlLink" + "Rank": 3, + "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 1, + "CommandName": "Get-PnPTerm", "Id": 842, - "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date -asUtc).AddDays(-2) -EndTime (Get-Date -asUtc).AddDays(-1)", - "CommandName": "Get-PnPUnifiedAuditLog" + "Rank": 4, + "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive" }, { - "Rank": 1, + "CommandName": "Get-PnPTerm", "Id": 843, - "Command": "Get-PnPUPABulkImportStatus", - "CommandName": "Get-PnPUPABulkImportStatus" + "Rank": 5, + "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated" }, { - "Rank": 2, + "CommandName": "Get-PnPTermGroup", "Id": 844, - "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails", - "CommandName": "Get-PnPUPABulkImportStatus" + "Rank": 1, + "Command": "Get-PnPTermGroup" }, { - "Rank": 3, + "CommandName": "Get-PnPTermGroup", "Id": 845, - "Command": "Get-PnPUPABulkImportStatus -JobId ", - "CommandName": "Get-PnPUPABulkImportStatus" + "Rank": 2, + "Command": "Get-PnPTermGroup -Identity \"Departments\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTermGroup", "Id": 846, - "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails", - "CommandName": "Get-PnPUPABulkImportStatus" + "Rank": 3, + "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d" }, { - "Rank": 1, + "CommandName": "Get-PnPTermLabel", "Id": 847, - "Command": "Get-PnPUser", - "CommandName": "Get-PnPUser" + "Rank": 1, + "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83" }, { - "Rank": 2, + "CommandName": "Get-PnPTermLabel", "Id": 848, - "Command": "Get-PnPUser -Identity 23", - "CommandName": "Get-PnPUser" + "Rank": 2, + "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033" }, { - "Rank": 3, + "CommandName": "Get-PnPTermLabel", "Id": 849, - "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"", - "CommandName": "Get-PnPUser" + "Rank": 3, + "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 4, + "CommandName": "Get-PnPTermSet", "Id": 850, - "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"", - "CommandName": "Get-PnPUser" + "Rank": 1, + "Command": "Get-PnPTermSet -TermGroup \"Corporate\"" }, { - "Rank": 5, + "CommandName": "Get-PnPTermSet", "Id": 851, - "Command": "Get-PnPUser -WithRightsAssigned", - "CommandName": "Get-PnPUser" + "Rank": 2, + "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 6, + "CommandName": "Get-PnPTermSet", "Id": 852, - "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1", - "CommandName": "Get-PnPUser" + "Rank": 3, + "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate" }, { - "Rank": 7, + "CommandName": "Get-PnPTheme", "Id": 853, - "Command": "Get-PnPUser -WithRightsAssignedDetailed", - "CommandName": "Get-PnPUser" + "Rank": 1, + "Command": "Get-PnPTheme" }, { - "Rank": 1, + "CommandName": "Get-PnPTheme", "Id": 854, - "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'", - "CommandName": "Get-PnPUserOneDriveQuota" + "Rank": 2, + "Command": "Get-PnPTheme -DetectCurrentComposedLook" }, { - "Rank": 1, + "CommandName": "Get-PnPTimeZoneId", "Id": 855, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'", - "CommandName": "Get-PnPUserProfileProperty" + "Rank": 1, + "Command": "Get-PnPTimeZoneId" }, { - "Rank": 2, + "CommandName": "Get-PnPTimeZoneId", "Id": 856, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'", - "CommandName": "Get-PnPUserProfileProperty" + "Rank": 2, + "Command": "Get-PnPTimeZoneId -Match Stockholm" }, { - "Rank": 3, + "CommandName": "Get-PnPUnfurlLink", "Id": 857, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'", - "CommandName": "Get-PnPUserProfileProperty" + "Rank": 1, + "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"" }, { - "Rank": 1, + "CommandName": "Get-PnPUnifiedAuditLog", "Id": 858, - "Command": "Get-PnPView -List \"Demo List\"", - "CommandName": "Get-PnPView" + "Rank": 1, + "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date -asUtc).AddDays(-2) -EndTime (Get-Date -asUtc).AddDays(-1)" }, { - "Rank": 2, + "CommandName": "Get-PnPUPABulkImportStatus", "Id": 859, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"", - "CommandName": "Get-PnPView" + "Rank": 1, + "Command": "Get-PnPUPABulkImportStatus" }, { - "Rank": 3, + "CommandName": "Get-PnPUPABulkImportStatus", "Id": 860, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"", - "CommandName": "Get-PnPView" + "Rank": 2, + "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails" }, { - "Rank": 1, + "CommandName": "Get-PnPUPABulkImportStatus", "Id": 861, - "Command": "Get-PnPVivaConnectionsDashboardACE", - "CommandName": "Get-PnPVivaConnectionsDashboardACE" + "Rank": 3, + "Command": "Get-PnPUPABulkImportStatus -JobId " }, { - "Rank": 2, + "CommandName": "Get-PnPUPABulkImportStatus", "Id": 862, - "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"", - "CommandName": "Get-PnPVivaConnectionsDashboardACE" + "Rank": 4, + "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails" }, { - "Rank": 1, + "CommandName": "Get-PnPUser", "Id": 863, - "Command": "Get-PnPWeb", - "CommandName": "Get-PnPWeb" + "Rank": 1, + "Command": "Get-PnPUser" }, { - "Rank": 1, + "CommandName": "Get-PnPUser", "Id": 864, - "Command": "Get-PnPWebHeader", - "CommandName": "Get-PnPWebHeader" + "Rank": 2, + "Command": "Get-PnPUser -Identity 23" }, { - "Rank": 1, + "CommandName": "Get-PnPUser", "Id": 865, - "Command": "Get-PnPWebhookSubscription -List MyList", - "CommandName": "Get-PnPWebhookSubscription" + "Rank": 3, + "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Get-PnPUser", "Id": 866, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"", - "CommandName": "Get-PnPWebPart" + "Rank": 4, + "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Get-PnPUser", "Id": 867, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", - "CommandName": "Get-PnPWebPart" + "Rank": 5, + "Command": "Get-PnPUser -WithRightsAssigned" }, { - "Rank": 1, + "CommandName": "Get-PnPUser", "Id": 868, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914", - "CommandName": "Get-PnPWebPartProperty" + "Rank": 6, + "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1" }, { - "Rank": 2, + "CommandName": "Get-PnPUser", "Id": 869, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"", - "CommandName": "Get-PnPWebPartProperty" + "Rank": 7, + "Command": "Get-PnPUser -WithRightsAssignedDetailed" }, { - "Rank": 1, + "CommandName": "Get-PnPUserOneDriveQuota", "Id": 870, - "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", - "CommandName": "Get-PnPWebPartXml" + "Rank": 1, + "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'" }, { - "Rank": 1, + "CommandName": "Get-PnPUserProfileProperty", "Id": 871, - "Command": "Get-PnPWebPermission -Identity (Get-PnPWeb) -PrincipalId 60", - "CommandName": "Get-PnPWebPermission" + "Rank": 1, + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'" }, { - "Rank": 2, + "CommandName": "Get-PnPUserProfileProperty", "Id": 872, - "Command": "Get-PnPWebPermission -Identity \"subsite\" -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id", - "CommandName": "Get-PnPWebPermission" + "Rank": 2, + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'" }, { - "Rank": 1, + "CommandName": "Get-PnPUserProfileProperty", "Id": 873, - "Command": "Get-PnPWebTemplates", - "CommandName": "Get-PnPWebTemplates" + "Rank": 3, + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'" }, { - "Rank": 2, + "CommandName": "Get-PnPView", "Id": 874, - "Command": "Get-PnPWebTemplates -LCID 1033", - "CommandName": "Get-PnPWebTemplates" + "Rank": 1, + "Command": "Get-PnPView -List \"Demo List\"" }, { - "Rank": 3, + "CommandName": "Get-PnPView", "Id": 875, - "Command": "Get-PnPWebTemplates -CompatibilityLevel 15", - "CommandName": "Get-PnPWebTemplates" + "Rank": 2, + "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"" }, { - "Rank": 1, + "CommandName": "Get-PnPView", "Id": 876, - "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'", - "CommandName": "Get-PnPWikiPageContent" + "Rank": 3, + "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"" }, { - "Rank": 1, + "CommandName": "Get-PnPVivaConnectionsDashboardACE", "Id": 877, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read", - "CommandName": "Grant-PnPAzureADAppSitePermission" + "Rank": 1, + "Command": "Get-PnPVivaConnectionsDashboardACE" }, { - "Rank": 2, + "CommandName": "Get-PnPVivaConnectionsDashboardACE", "Id": 878, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects", - "CommandName": "Grant-PnPAzureADAppSitePermission" + "Rank": 2, + "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" }, { - "Rank": 1, + "CommandName": "Get-PnPWeb", "Id": 879, - "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", - "CommandName": "Grant-PnPHubSiteRights" + "Rank": 1, + "Command": "Get-PnPWeb" }, { - "Rank": 1, + "CommandName": "Get-PnPWebHeader", "Id": 880, - "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", - "CommandName": "Grant-PnPSiteDesignRights" + "Rank": 1, + "Command": "Get-PnPWebHeader" }, { - "Rank": 1, + "CommandName": "Get-PnPWebhookSubscription", "Id": 881, - "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"", - "CommandName": "Grant-PnPTenantServicePrincipalPermission" + "Rank": 1, + "Command": "Get-PnPWebhookSubscription -List MyList" }, { - "Rank": 1, + "CommandName": "Get-PnPWebPart", "Id": 882, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'", - "CommandName": "Import-PnPTaxonomy" + "Rank": 1, + "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"" }, { - "Rank": 2, + "CommandName": "Get-PnPWebPart", "Id": 883, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'", - "CommandName": "Import-PnPTaxonomy" + "Rank": 2, + "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Rank": 3, + "CommandName": "Get-PnPWebPartProperty", "Id": 884, - "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt", - "CommandName": "Import-PnPTaxonomy" + "Rank": 1, + "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914" }, { - "Rank": 1, + "CommandName": "Get-PnPWebPartProperty", "Id": 885, - "Command": "Import-PnPTermGroupFromXml -Xml $xml", - "CommandName": "Import-PnPTermGroupFromXml" + "Rank": 2, + "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"" }, { - "Rank": 2, + "CommandName": "Get-PnPWebPartXml", "Id": 886, - "Command": "Import-PnPTermGroupFromXml -Path input.xml", - "CommandName": "Import-PnPTermGroupFromXml" + "Rank": 1, + "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Rank": 1, + "CommandName": "Get-PnPWebPermission", "Id": 887, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions", - "CommandName": "Import-PnPTermSet" + "Rank": 1, + "Command": "Get-PnPWebPermission -Identity (Get-PnPWeb) -PrincipalId 60" }, { - "Rank": 2, + "CommandName": "Get-PnPWebPermission", "Id": 888, - "Command": "Import-PnPTermSet -TermStoreName 'My Term Store' -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -TermSetId '{15A98DB6-D8E2-43E6-8771-066C1EC2B8D8}'", - "CommandName": "Import-PnPTermSet" + "Rank": 2, + "Command": "Get-PnPWebPermission -Identity \"subsite\" -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" }, { - "Rank": 3, + "CommandName": "Get-PnPWebTemplates", "Id": 889, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -IsOpen $true -Contact 'user@example.org' -Owner 'user@example.org'", - "CommandName": "Import-PnPTermSet" + "Rank": 1, + "Command": "Get-PnPWebTemplates" }, { - "Rank": 1, + "CommandName": "Get-PnPWebTemplates", "Id": 890, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Install-PnPApp" + "Rank": 2, + "Command": "Get-PnPWebTemplates -LCID 1033" }, { - "Rank": 2, + "CommandName": "Get-PnPWebTemplates", "Id": 891, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", - "CommandName": "Install-PnPApp" + "Rank": 3, + "Command": "Get-PnPWebTemplates -CompatibilityLevel 15" }, { - "Rank": 1, + "CommandName": "Get-PnPWikiPageContent", "Id": 892, - "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'" }, { - "Rank": 2, + "CommandName": "Grant-PnPAzureADAppSitePermission", "Id": 893, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read" }, { - "Rank": 3, + "CommandName": "Grant-PnPAzureADAppSitePermission", "Id": 894, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 2, + "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects" }, { - "Rank": 4, + "CommandName": "Grant-PnPHubSiteRights", "Id": 895, - "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Rank": 5, + "CommandName": "Grant-PnPSiteDesignRights", "Id": 896, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Rank": 6, + "CommandName": "Grant-PnPTenantServicePrincipalPermission", "Id": 897, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" }, { - "Rank": 7, + "CommandName": "Import-PnPTaxonomy", "Id": 898, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutStream | Add-PnPFile -FileName user.jpg -Folder \"Shared Documents\"", - "CommandName": "Invoke-PnPGraphMethod" + "Rank": 1, + "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'" }, { - "Rank": 1, + "CommandName": "Import-PnPTaxonomy", "Id": 899, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Invoke-PnPListDesign" + "Rank": 2, + "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|\"Stockholm,Central\"'" }, { - "Rank": 2, + "CommandName": "Import-PnPTaxonomy", "Id": 900, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"", - "CommandName": "Invoke-PnPListDesign" + "Rank": 3, + "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'" }, { - "Rank": 1, + "CommandName": "Import-PnPTaxonomy", "Id": 901, - "Command": "Invoke-PnPQuery -RetryCount 5", - "CommandName": "Invoke-PnPQuery" + "Rank": 4, + "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt" }, { - "Rank": 1, + "CommandName": "Import-PnPTermGroupFromXml", "Id": 902, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Invoke-PnPSiteDesign" + "Rank": 1, + "Command": "Import-PnPTermGroupFromXml -Xml $xml" }, { - "Rank": 2, + "CommandName": "Import-PnPTermGroupFromXml", "Id": 903, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"", - "CommandName": "Invoke-PnPSiteDesign" + "Rank": 2, + "Command": "Import-PnPTermGroupFromXml -Path input.xml" }, { - "Rank": 1, + "CommandName": "Import-PnPTermSet", "Id": 904, - "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite", - "CommandName": "Invoke-PnPSiteScript" + "Rank": 1, + "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions" }, { - "Rank": 1, + "CommandName": "Import-PnPTermSet", "Id": 905, - "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive", - "CommandName": "Invoke-PnPSiteSwap" + "Rank": 2, + "Command": "Import-PnPTermSet -TermStoreName 'My Term Store' -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -TermSetId '{15A98DB6-D8E2-43E6-8771-066C1EC2B8D8}'" }, { - "Rank": 2, + "CommandName": "Import-PnPTermSet", "Id": 906, - "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/SearchSite -TargetUrl https://contoso.sharepoint.com/search -ArchiveUrl https://contoso.sharepoint.com/sites/Archive", - "CommandName": "Invoke-PnPSiteSwap" + "Rank": 3, + "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -IsOpen $true -Contact 'user@example.org' -Owner 'user@example.org'" }, { - "Rank": 3, + "CommandName": "Install-PnPApp", "Id": 907, - "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive -DisableRedirection", - "CommandName": "Invoke-PnPSiteSwap" + "Rank": 1, + "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Rank": 1, + "CommandName": "Install-PnPApp", "Id": 908, - "Command": "Invoke-PnPSiteTemplate -Path template.xml", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 2, + "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Rank": 2, + "CommandName": "Invoke-PnPGraphMethod", "Id": 909, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 1, + "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'" }, { - "Rank": 3, + "CommandName": "Invoke-PnPGraphMethod", "Id": 910, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 2, + "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete" }, { - "Rank": 4, + "CommandName": "Invoke-PnPGraphMethod", "Id": 911, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 3, + "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }" }, { - "Rank": 5, + "CommandName": "Invoke-PnPGraphMethod", "Id": 912, - "Command": "Invoke-PnPSiteTemplate -Path template.pnp", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 4, + "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual" }, { - "Rank": 6, + "CommandName": "Invoke-PnPGraphMethod", "Id": 913, - "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 5, + "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"" }, { - "Rank": 7, + "CommandName": "Invoke-PnPGraphMethod", "Id": 914, - "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 6, + "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg" }, { - "Rank": 8, + "CommandName": "Invoke-PnPGraphMethod", "Id": 915, - "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"", - "CommandName": "Invoke-PnPSiteTemplate" + "Rank": 7, + "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutStream | Add-PnPFile -FileName user.jpg -Folder \"Shared Documents\"" }, { - "Rank": 1, + "CommandName": "Invoke-PnPListDesign", "Id": 916, - "Command": "Invoke-PnPSPRestMethod -Url /_api/web", - "CommandName": "Invoke-PnPSPRestMethod" + "Rank": 1, + "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 1, + "CommandName": "Invoke-PnPListDesign", "Id": 917, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp", - "CommandName": "Invoke-PnPTenantTemplate" + "Rank": 2, + "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" }, { - "Rank": 2, + "CommandName": "Invoke-PnPQuery", "Id": 918, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"", - "CommandName": "Invoke-PnPTenantTemplate" + "Rank": 1, + "Command": "Invoke-PnPQuery -RetryCount 5" }, { - "Rank": 3, + "CommandName": "Invoke-PnPSiteDesign", "Id": 919, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}", - "CommandName": "Invoke-PnPTenantTemplate" + "Rank": 1, + "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteDesign", "Id": 920, - "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}", - "CommandName": "Invoke-PnPWebAction" + "Rank": 2, + "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" }, { - "Rank": 2, + "CommandName": "Invoke-PnPSiteScript", "Id": 921, - "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}", - "CommandName": "Invoke-PnPWebAction" + "Rank": 1, + "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteSwap", "Id": 922, - "Command": "Measure-PnPList \"Documents\"", - "CommandName": "Measure-PnPList" + "Rank": 1, + "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive" }, { - "Rank": 2, + "CommandName": "Invoke-PnPSiteSwap", "Id": 923, - "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel", - "CommandName": "Measure-PnPList" + "Rank": 2, + "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/SearchSite -TargetUrl https://contoso.sharepoint.com/search -ArchiveUrl https://contoso.sharepoint.com/sites/Archive" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteSwap", "Id": 924, - "Command": "Measure-PnPWeb", - "CommandName": "Measure-PnPWeb" + "Rank": 3, + "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive -DisableRedirection" }, { - "Rank": 2, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 925, - "Command": "Measure-PnPWeb $web -Recursive", - "CommandName": "Measure-PnPWeb" + "Rank": 1, + "Command": "Invoke-PnPSiteTemplate -Path template.xml" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 926, - "Command": "Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b", - "CommandName": "Merge-PnPTerm" + "Rank": 2, + "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 927, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"", - "CommandName": "Move-PnPFile" + "Rank": 3, + "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" }, { - "Rank": 2, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 928, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite", - "CommandName": "Move-PnPFile" + "Rank": 4, + "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity" }, { - "Rank": 3, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 929, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination", - "CommandName": "Move-PnPFile" + "Rank": 5, + "Command": "Invoke-PnPSiteTemplate -Path template.pnp" }, { - "Rank": 4, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 930, - "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination", - "CommandName": "Move-PnPFile" + "Rank": 6, + "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 931, - "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'", - "CommandName": "Move-PnPFolder" + "Rank": 7, + "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template" }, { - "Rank": 2, + "CommandName": "Invoke-PnPSiteTemplate", "Id": 932, - "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'", - "CommandName": "Move-PnPFolder" + "Rank": 8, + "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"" }, { - "Rank": 1, + "CommandName": "Invoke-PnPSPRestMethod", "Id": 933, - "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force", - "CommandName": "Move-PnPListItemToRecycleBin" + "Rank": 1, + "Command": "Invoke-PnPSPRestMethod -Url /_api/web" }, { - "Rank": 1, + "CommandName": "Invoke-PnPTenantTemplate", "Id": 934, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1", - "CommandName": "Move-PnPPageComponent" + "Rank": 1, + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp" }, { - "Rank": 2, + "CommandName": "Invoke-PnPTenantTemplate", "Id": 935, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2", - "CommandName": "Move-PnPPageComponent" + "Rank": 2, + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"" }, { - "Rank": 3, + "CommandName": "Invoke-PnPTenantTemplate", "Id": 936, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2", - "CommandName": "Move-PnPPageComponent" + "Rank": 3, + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" }, { - "Rank": 4, + "CommandName": "Invoke-PnPWebAction", "Id": 937, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2", - "CommandName": "Move-PnPPageComponent" + "Rank": 1, + "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}" }, { - "Rank": 1, + "CommandName": "Invoke-PnPWebAction", "Id": 938, - "Command": "Move-PnPRecycleBinItem", - "CommandName": "Move-PnpRecycleBinItem" + "Rank": 2, + "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}" }, { - "Rank": 2, + "CommandName": "Measure-PnPList", "Id": 939, - "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125", - "CommandName": "Move-PnpRecycleBinItem" + "Rank": 1, + "Command": "Measure-PnPList \"Documents\"" }, { - "Rank": 3, + "CommandName": "Measure-PnPList", "Id": 940, - "Command": "Move-PnPRecycleBinItem -Force", - "CommandName": "Move-PnpRecycleBinItem" + "Rank": 2, + "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel" }, { - "Rank": 1, + "CommandName": "Measure-PnPWeb", "Id": 941, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTermSet 95e13729-3ccf-4ec8-998c-78e9ef1daa0b -TargetTermGroup b2645144-5757-4cd7-b7f9-e5d24757addf", - "CommandName": "Move-PnPTerm" + "Rank": 1, + "Command": "Measure-PnPWeb" }, { - "Rank": 2, + "CommandName": "Measure-PnPWeb", "Id": 942, - "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"", - "CommandName": "Move-PnPTerm" + "Rank": 2, + "Command": "Measure-PnPWeb $web -Recursive" }, { - "Rank": 3, + "CommandName": "Merge-PnPTerm", "Id": 943, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm", - "CommandName": "Move-PnPTerm" + "Rank": 1, + "Command": "Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b" }, { - "Rank": 1, + "CommandName": "Move-PnPFile", "Id": 944, - "Command": "Move-PnPTermSet -Identity 81e0a4b8-701d-459c-ad61-a1c7a81810ff -TermGroup 17e16b98-a8c2-4db6-a860-5c42dbc818f4 -TargetTermGroup cf33d1cd-42d8-431c-9e43-3d8dab9ea8fd", - "CommandName": "Move-PnPTermSet" + "Rank": 1, + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"" }, { - "Rank": 2, + "CommandName": "Move-PnPFile", "Id": 945, - "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"", - "CommandName": "Move-PnPTermSet" + "Rank": 2, + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite" }, { - "Rank": 1, + "CommandName": "Move-PnPFile", "Id": 946, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname", - "CommandName": "New-PnPAzureADGroup" + "Rank": 3, + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" }, { - "Rank": 2, + "CommandName": "Move-PnPFile", "Id": 947, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers", - "CommandName": "New-PnPAzureADGroup" + "Rank": 4, + "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" }, { - "Rank": 3, + "CommandName": "Move-PnPFolder", "Id": 948, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled", - "CommandName": "New-PnPAzureADGroup" + "Rank": 1, + "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'" }, { - "Rank": 1, + "CommandName": "Move-PnPFolder", "Id": 949, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com", - "CommandName": "New-PnPAzureADUserTemporaryAccessPass" + "Rank": 2, + "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'" }, { - "Rank": 2, + "CommandName": "Move-PnPListItemToRecycleBin", "Id": 950, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true", - "CommandName": "New-PnPAzureADUserTemporaryAccessPass" + "Rank": 1, + "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force" }, { - "Rank": 3, + "CommandName": "Move-PnPPageComponent", "Id": 951, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true", - "CommandName": "New-PnPAzureADUserTemporaryAccessPass" + "Rank": 1, + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1" }, { - "Rank": 1, + "CommandName": "Move-PnPPageComponent", "Id": 952, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer", - "CommandName": "New-PnPAzureCertificate" + "Rank": 2, + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2" }, { - "Rank": 2, + "CommandName": "Move-PnPPageComponent", "Id": 953, - "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30", - "CommandName": "New-PnPAzureCertificate" + "Rank": 3, + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2" }, { - "Rank": 3, + "CommandName": "Move-PnPPageComponent", "Id": 954, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)", - "CommandName": "New-PnPAzureCertificate" + "Rank": 4, + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2" }, { - "Rank": 4, + "CommandName": "Move-PnpRecycleBinItem", "Id": 955, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null", - "CommandName": "New-PnPAzureCertificate" + "Rank": 1, + "Command": "Move-PnPRecycleBinItem" }, { - "Rank": 1, + "CommandName": "Move-PnpRecycleBinItem", "Id": 956, - "Command": "New-PnPContainerType -ContainerTypeName \"test1\" -OwningApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscription c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup \"SPEmbed\" -Region \"Uk-South\"", - "CommandName": "New-PnPContainerType" + "Rank": 2, + "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125" }, { - "Rank": 1, + "CommandName": "Move-PnpRecycleBinItem", "Id": 957, - "Command": "New-PnPGraphSubscription -ChangeType Create -NotificationUrl https://mywebapiservice/notifications -Resource \"me/mailFolders('Inbox')/messages\" -ExpirationDateTime (Get-Date).AddDays(1) -ClientState [Guid]::NewGuid().ToString()", - "CommandName": "New-PnPGraphSubscription" + "Rank": 3, + "Command": "Move-PnPRecycleBinItem -Force" }, { - "Rank": 2, + "CommandName": "Move-PnPTerm", "Id": 958, - "Command": "New-PnPGraphSubscription -ChangeType Updates -NotificationUrl https://mywebapiservice/notifications -Resource \"Users\" -ExpirationDateTime (Get-Date).AddHours(1) -ClientState [Guid]::NewGuid().ToString()", - "CommandName": "New-PnPGraphSubscription" + "Rank": 1, + "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTermSet 95e13729-3ccf-4ec8-998c-78e9ef1daa0b -TargetTermGroup b2645144-5757-4cd7-b7f9-e5d24757addf" }, { - "Rank": 1, + "CommandName": "Move-PnPTerm", "Id": 959, - "Command": "New-PnPGroup -Title \"My Site Users\"", - "CommandName": "New-PnPGroup" + "Rank": 2, + "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"" }, { - "Rank": 1, + "CommandName": "Move-PnPTerm", "Id": 960, - "Command": "New-PnPList -Title Announcements -Template Announcements", - "CommandName": "New-PnPList" + "Rank": 3, + "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm" }, { - "Rank": 2, + "CommandName": "Move-PnPTermSet", "Id": 961, - "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements", - "CommandName": "New-PnPList" + "Rank": 1, + "Command": "Move-PnPTermSet -Identity 81e0a4b8-701d-459c-ad61-a1c7a81810ff -TermGroup 17e16b98-a8c2-4db6-a860-5c42dbc818f4 -TargetTermGroup cf33d1cd-42d8-431c-9e43-3d8dab9ea8fd" }, { - "Rank": 3, + "CommandName": "Move-PnPTermSet", "Id": 962, - "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden", - "CommandName": "New-PnPList" + "Rank": 2, + "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"" }, { - "Rank": 1, + "CommandName": "New-PnPAzureADGroup", "Id": 963, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 1, + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname" }, { - "Rank": 2, + "CommandName": "New-PnPAzureADGroup", "Id": 964, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 2, + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers" }, { - "Rank": 3, + "CommandName": "New-PnPAzureADGroup", "Id": 965, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 3, + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled" }, { - "Rank": 4, + "CommandName": "New-PnPAzureADUserTemporaryAccessPass", "Id": 966, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 1, + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com" }, { - "Rank": 5, + "CommandName": "New-PnPAzureADUserTemporaryAccessPass", "Id": 967, - "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 2, + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true" }, { - "Rank": 6, + "CommandName": "New-PnPAzureADUserTemporaryAccessPass", "Id": 968, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 3, + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true" }, { - "Rank": 7, + "CommandName": "New-PnPAzureCertificate", "Id": 969, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"", - "CommandName": "New-PnPMicrosoft365Group" + "Rank": 1, + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer" }, { - "Rank": 1, + "CommandName": "New-PnPAzureCertificate", "Id": 970, - "Command": "New-PnPMicrosoft365GroupSettings -DisplayName \"Group.Unified\" -TemplateId \"62375ab9-6b52-47ed-826b-58e47e0e304b\" -Values @{\"GuestUsageGuidelinesUrl\"=\"https://privacy.contoso.com/privacystatement\";\"EnableMSStandardBlockedWords\"=\"true\"}", - "CommandName": "New-PnPMicrosoft365GroupSettings" + "Rank": 2, + "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30" }, { - "Rank": 2, + "CommandName": "New-PnPAzureCertificate", "Id": 971, - "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}", - "CommandName": "New-PnPMicrosoft365GroupSettings" + "Rank": 3, + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)" }, { - "Rank": 1, + "CommandName": "New-PnPAzureCertificate", "Id": 972, - "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')", - "CommandName": "New-PnPPersonalSite" + "Rank": 4, + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null" }, { - "Rank": 1, + "CommandName": "New-PnPContainerType", "Id": 973, - "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"", - "CommandName": "New-PnPPlannerPlan" + "Rank": 1, + "Command": "New-PnPContainerType -ContainerTypeName \"test1\" -OwningApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscription c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup \"SPEmbed\" -Region \"Uk-South\"" }, { - "Rank": 1, + "CommandName": "New-PnPGraphSubscription", "Id": 974, - "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"", - "CommandName": "New-PnPSdnProvider" + "Rank": 1, + "Command": "New-PnPGraphSubscription -ChangeType Create -NotificationUrl https://mywebapiservice/notifications -Resource \"me/mailFolders('Inbox')/messages\" -ExpirationDateTime (Get-Date).AddDays(1) -ClientState [Guid]::NewGuid().ToString()" }, { - "Rank": 1, + "CommandName": "New-PnPGraphSubscription", "Id": 975, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso", - "CommandName": "New-PnPSite" + "Rank": 2, + "Command": "New-PnPGraphSubscription -ChangeType Updates -NotificationUrl https://mywebapiservice/notifications -Resource \"Users\" -ExpirationDateTime (Get-Date).AddHours(1) -ClientState [Guid]::NewGuid().ToString()" }, { - "Rank": 2, + "CommandName": "New-PnPGroup", "Id": 976, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase", - "CommandName": "New-PnPSite" + "Rank": 1, + "Command": "New-PnPGroup -Title \"My Site Users\"" }, { - "Rank": 3, + "CommandName": "New-PnPLibraryFileVersionBatchDeleteJob", "Id": 977, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac", - "CommandName": "New-PnPSite" + "Rank": 1, + "Command": "New-PnPLibraryFileVersionBatchDeleteJob -Identity \"Documents\" -DeleteBeforeDays 360" }, { - "Rank": 4, + "CommandName": "New-PnPLibraryFileVersionBatchDeleteJob", "Id": 978, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"", - "CommandName": "New-PnPSite" + "Rank": 2, + "Command": "New-PnPLibraryFileVersionBatchDeleteJob -Identity \"Documents\" -DeleteBeforeDays 360 -Force" }, { - "Rank": 5, + "CommandName": "New-PnPLibraryFileVersionBatchDeleteJob", "Id": 979, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled", - "CommandName": "New-PnPSite" + "Rank": 3, + "Command": "New-PnPLibraryFileVersionBatchDeleteJob -Automatic" }, { - "Rank": 6, + "CommandName": "New-PnPLibraryFileVersionBatchDeleteJob", "Id": 980, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040", - "CommandName": "New-PnPSite" + "Rank": 4, + "Command": "New-PnPLibraryFileVersionBatchDeleteJob -MajorVersionLimit 30 -MajorWithMinorVersionsLimit 10" }, { - "Rank": 7, + "CommandName": "New-PnPLibraryFileVersionExpirationReportJob", "Id": 981, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso", - "CommandName": "New-PnPSite" + "Rank": 1, + "Command": "New-PnPLibraryFileVersionExpirationReportJob -Identity \"Documents\" -ReportUrl \"https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv\"" }, { - "Rank": 8, + "CommandName": "New-PnPList", "Id": 982, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic", - "CommandName": "New-PnPSite" + "Rank": 1, + "Command": "New-PnPList -Title Announcements -Template Announcements" }, { - "Rank": 9, + "CommandName": "New-PnPList", "Id": 983, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040", - "CommandName": "New-PnPSite" + "Rank": 2, + "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements" }, { - "Rank": 10, + "CommandName": "New-PnPList", "Id": 984, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site", - "CommandName": "New-PnPSite" + "Rank": 3, + "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden" }, { - "Rank": 11, + "CommandName": "New-PnPMicrosoft365Group", "Id": 985, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso", - "CommandName": "New-PnPSite" + "Rank": 1, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname" }, { - "Rank": 12, + "CommandName": "New-PnPMicrosoft365Group", "Id": 986, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac", - "CommandName": "New-PnPSite" + "Rank": 2, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"" }, { - "Rank": 13, + "CommandName": "New-PnPMicrosoft365Group", "Id": 987, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"", - "CommandName": "New-PnPSite" + "Rank": 3, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate" }, { - "Rank": 14, + "CommandName": "New-PnPMicrosoft365Group", "Id": 988, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled", - "CommandName": "New-PnPSite" + "Rank": 4, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate" }, { - "Rank": 15, + "CommandName": "New-PnPMicrosoft365Group", "Id": 989, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040", - "CommandName": "New-PnPSite" + "Rank": 5, + "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" }, { - "Rank": 16, + "CommandName": "New-PnPMicrosoft365Group", "Id": 990, - "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"", - "CommandName": "New-PnPSite" + "Rank": 6, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Rank": 1, + "CommandName": "New-PnPMicrosoft365Group", "Id": 991, - "Command": "New-PnPSiteCollectionTermStore", - "CommandName": "New-PnPSiteCollectionTermStore" + "Rank": 7, + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"" }, { - "Rank": 1, + "CommandName": "New-PnPMicrosoft365GroupSettings", "Id": 992, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"", - "CommandName": "New-PnPSiteGroup" + "Rank": 1, + "Command": "New-PnPMicrosoft365GroupSettings -DisplayName \"Group.Unified\" -TemplateId \"62375ab9-6b52-47ed-826b-58e47e0e304b\" -Values @{\"GuestUsageGuidelinesUrl\"=\"https://privacy.contoso.com/privacystatement\";\"EnableMSStandardBlockedWords\"=\"true\"}" }, { - "Rank": 2, + "CommandName": "New-PnPMicrosoft365GroupSettings", "Id": 993, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"", - "CommandName": "New-PnPSiteGroup" + "Rank": 2, + "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}" }, { - "Rank": 1, + "CommandName": "New-PnPPersonalSite", "Id": 994, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 1, + "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')" }, { - "Rank": 2, + "CommandName": "New-PnPPlannerPlan", "Id": 995, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 1, + "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"" }, { - "Rank": 3, + "CommandName": "New-PnPSdnProvider", "Id": 996, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 1, + "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"" }, { - "Rank": 4, + "CommandName": "New-PnPSite", "Id": 997, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 1, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" }, { - "Rank": 5, + "CommandName": "New-PnPSite", "Id": 998, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 2, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase" }, { - "Rank": 6, + "CommandName": "New-PnPSite", "Id": 999, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -Properties @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 3, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" }, { - "Rank": 7, + "CommandName": "New-PnPSite", "Id": 1000, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 4, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" }, { - "Rank": 8, + "CommandName": "New-PnPSite", "Id": 1001, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp", - "CommandName": "New-PnPSiteTemplateFromFolder" + "Rank": 5, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" }, { - "Rank": 1, + "CommandName": "New-PnPSite", "Id": 1002, - "Command": "New-PnPTeamsApp -Path c:\\myapp.zip", - "CommandName": "New-PnPTeamsApp" + "Rank": 6, + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" }, { - "Rank": 1, + "CommandName": "New-PnPSite", "Id": 1003, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false", - "CommandName": "New-PnPTeamsTeam" + "Rank": 7, + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso" }, { - "Rank": 2, + "CommandName": "New-PnPSite", "Id": 1004, - "Command": "New-PnPTeamsTeam -GroupId $groupId", - "CommandName": "New-PnPTeamsTeam" + "Rank": 8, + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic" }, { - "Rank": 3, + "CommandName": "New-PnPSite", "Id": 1005, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled", - "CommandName": "New-PnPTeamsTeam" + "Rank": 9, + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040" }, { - "Rank": 4, + "CommandName": "New-PnPSite", "Id": 1006, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook", - "CommandName": "New-PnPTeamsTeam" + "Rank": 10, + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site" }, { - "Rank": 5, + "CommandName": "New-PnPSite", "Id": 1007, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\"", - "CommandName": "New-PnPTeamsTeam" + "Rank": 11, + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" }, { - "Rank": 6, + "CommandName": "New-PnPSite", "Id": 1008, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\" -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"", - "CommandName": "New-PnPTeamsTeam" + "Rank": 12, + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" }, { - "Rank": 1, + "CommandName": "New-PnPSite", "Id": 1009, - "Command": "New-PnPTenantSite -Title Contoso -Url \"https://tenant.sharepoint.com/sites/contoso\" -Owner user@example.org -TimeZone 4 -Template STS#0", - "CommandName": "New-PnPTenantSite" + "Rank": 13, + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" }, { - "Rank": 2, + "CommandName": "New-PnPSite", "Id": 1010, - "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0", - "CommandName": "New-PnPTenantSite" + "Rank": 14, + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" }, { - "Rank": 1, + "CommandName": "New-PnPSite", "Id": 1011, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"", - "CommandName": "New-PnPTerm" + "Rank": 15, + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" }, { - "Rank": 2, + "CommandName": "New-PnPSite", "Id": 1012, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}", - "CommandName": "New-PnPTerm" + "Rank": 16, + "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"" }, { - "Rank": 1, + "CommandName": "New-PnPSiteCollectionTermStore", "Id": 1013, - "Command": "New-PnPTermGroup -GroupName \"Countries\"", - "CommandName": "New-PnPTermGroup" + "Rank": 1, + "Command": "New-PnPSiteCollectionTermStore" }, { - "Rank": 1, + "CommandName": "New-PnPSiteFileVersionBatchDeleteJob", "Id": 1014, - "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")", - "CommandName": "New-PnPTermLabel" + "Rank": 1, + "Command": "New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays 360" }, { - "Rank": 1, + "CommandName": "New-PnPSiteFileVersionBatchDeleteJob", "Id": 1015, - "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"", - "CommandName": "New-PnPTermSet" + "Rank": 2, + "Command": "New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays 360 -Force" }, { - "Rank": 1, + "CommandName": "New-PnPSiteFileVersionBatchDeleteJob", "Id": 1016, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}", - "CommandName": "New-PnPUPABulkImportJob" + "Rank": 3, + "Command": "New-PnPSiteFileVersionBatchDeleteJob -Automatic" }, { - "Rank": 2, + "CommandName": "New-PnPSiteFileVersionBatchDeleteJob", "Id": 1017, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/sites/userprofilesync/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"} -Wait -Verbose", - "CommandName": "New-PnPUPABulkImportJob" + "Rank": 4, + "Command": "New-PnPSiteFileVersionBatchDeleteJob -MajorVersionLimit 30 -MajorWithMinorVersionsLimit 10" }, { - "Rank": 1, + "CommandName": "New-PnPSiteFileVersionExpirationReportJob", "Id": 1018, - "Command": "New-PnPUser -LoginName user@company.com", - "CommandName": "New-PnPUser" + "Rank": 1, + "Command": "New-PnPSiteFileVersionExpirationReportJob -ReportUrl \"https://contoso.sharepoint.com/sites/reports/MyReports/VersionReport.csv\"" }, { - "Rank": 1, + "CommandName": "New-PnPSiteGroup", "Id": 1019, - "Command": "New-PnPWeb -Title \"Project A Web\" -Url projectA -Description \"Information about Project A\" -Locale 1033 -Template \"STS#0\"", - "CommandName": "New-PnPWeb" + "Rank": 1, + "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"" }, { - "Rank": 1, + "CommandName": "New-PnPSiteGroup", "Id": 1020, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f", - "CommandName": "Publish-PnPApp" + "Rank": 2, + "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"" }, { - "Rank": 2, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1021, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site", - "CommandName": "Publish-PnPApp" + "Rank": 1, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml" }, { - "Rank": 1, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1022, - "Command": "Publish-PnPCompanyApp -PortalUrl https://contoso.sharepoint.com/sites/portal -AppName \"Contoso Portal\" -CompanyName \"Contoso\" -CompanyWebSite \"https://www.contoso.com\" -ColoredIconPath ./coloricon.png -OutlineIconPath ./outlinedicon", - "CommandName": "Publish-PnPCompanyApp" + "Rank": 2, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp" }, { - "Rank": 1, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1023, - "Command": "Publish-PnPContentType -ContentType 0x0101", - "CommandName": "Publish-PnPContentType" + "Rank": 3, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js" }, { - "Rank": 1, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1024, - "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"", - "CommandName": "Publish-PnPSyntexModel" + "Rank": 4, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"" }, { - "Rank": 2, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1025, - "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch", - "CommandName": "Publish-PnPSyntexModel" + "Rank": 5, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"" }, { - "Rank": 1, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1026, - "Command": "Read-PnPSiteTemplate -Path template.pnp", - "CommandName": "Read-PnPSiteTemplate" + "Rank": 6, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -Properties @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 2, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1027, - "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions", - "CommandName": "Read-PnPSiteTemplate" + "Rank": 7, + "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp" }, { - "Rank": 3, + "CommandName": "New-PnPSiteTemplateFromFolder", "Id": 1028, - "Command": "Read-PnPSiteTemplate -Xml $xml", - "CommandName": "Read-PnPSiteTemplate" + "Rank": 8, + "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp" }, { - "Rank": 1, + "CommandName": "New-PnPTeamsApp", "Id": 1029, - "Command": "Read-PnPTenantTemplate -Path template.pnp", - "CommandName": "Read-PnPTenantTemplate" + "Rank": 1, + "Command": "New-PnPTeamsApp -Path c:\\myapp.zip" }, { - "Rank": 1, + "CommandName": "New-PnPTeamsTeam", "Id": 1030, - "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4", - "CommandName": "Register-PnPAppCatalogSite" + "Rank": 1, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false" }, { - "Rank": 1, + "CommandName": "New-PnPTeamsTeam", "Id": 1031, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")", - "CommandName": "Register-PnPAzureADApp" + "Rank": 2, + "Command": "New-PnPTeamsTeam -GroupId $groupId" }, { - "Rank": 2, + "CommandName": "New-PnPTeamsTeam", "Id": 1032, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\")", - "CommandName": "Register-PnPAzureADApp" + "Rank": 3, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled" }, { - "Rank": 3, + "CommandName": "New-PnPTeamsTeam", "Id": 1033, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -GraphApplicationPermissions \"User.Read.All\" -SharePointApplicationPermissions \"Sites.Read.All\" -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")", - "CommandName": "Register-PnPAzureADApp" + "Rank": 4, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" }, { - "Rank": 4, + "CommandName": "New-PnPTeamsTeam", "Id": 1034, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -OutPath c:\\ -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")", - "CommandName": "Register-PnPAzureADApp" + "Rank": 5, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\"" }, { - "Rank": 5, + "CommandName": "New-PnPTeamsTeam", "Id": 1035, - "Command": "Register-PnPAzureADApp -DeviceLogin -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)", - "CommandName": "Register-PnPAzureADApp" + "Rank": 6, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\" -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Rank": 6, + "CommandName": "New-PnPTenantSite", "Id": 1036, - "Command": "Register-PnPAzureADApp -Interactive -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)", - "CommandName": "Register-PnPAzureADApp" + "Rank": 1, + "Command": "New-PnPTenantSite -Title Contoso -Url \"https://tenant.sharepoint.com/sites/contoso\" -Owner user@example.org -TimeZone 4 -Template STS#0" }, { - "Rank": 7, + "CommandName": "New-PnPTenantSite", "Id": 1037, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\") -LogoFilePath c:\\logo.png", - "CommandName": "Register-PnPAzureADApp" + "Rank": 2, + "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0" }, { - "Rank": 1, + "CommandName": "New-PnPTerm", "Id": 1038, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"", - "CommandName": "Register-PnPHubSite" + "Rank": 1, + "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"" }, { - "Rank": 2, + "CommandName": "New-PnPTerm", "Id": 1039, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"", - "CommandName": "Register-PnPHubSite" + "Rank": 2, + "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { - "Rank": 1, + "CommandName": "New-PnPTermGroup", "Id": 1040, - "Command": "Register-PnPManagementShellAccess", - "CommandName": "Register-PnPManagementShellAccess" + "Rank": 1, + "Command": "New-PnPTermGroup -GroupName \"Countries\"" }, { - "Rank": 2, + "CommandName": "New-PnPTermLabel", "Id": 1041, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl", - "CommandName": "Register-PnPManagementShellAccess" + "Rank": 1, + "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")" }, { - "Rank": 3, + "CommandName": "New-PnPTermSet", "Id": 1042, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com", - "CommandName": "Register-PnPManagementShellAccess" + "Rank": 1, + "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"" }, { - "Rank": 1, + "CommandName": "New-PnPUPABulkImportJob", "Id": 1043, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey", - "CommandName": "Remove-PnPAdaptiveScopeProperty" + "Rank": 1, + "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}" }, { - "Rank": 2, + "CommandName": "New-PnPUPABulkImportJob", "Id": 1044, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force", - "CommandName": "Remove-PnPAdaptiveScopeProperty" + "Rank": 2, + "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/sites/userprofilesync/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"} -Wait -Verbose" }, { - "Rank": 1, + "CommandName": "New-PnPUser", "Id": 1045, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7", - "CommandName": "Remove-PnPAlert" + "Rank": 1, + "Command": "New-PnPUser -LoginName user@company.com" }, { - "Rank": 2, + "CommandName": "New-PnPWeb", "Id": 1046, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPAlert" + "Rank": 1, + "Command": "New-PnPWeb -Title \"Project A Web\" -Url projectA -Description \"Information about Project A\" -Locale 1033 -Template \"STS#0\"" }, { - "Rank": 1, + "CommandName": "Publish-PnPApp", "Id": 1047, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Remove-PnPApp" + "Rank": 1, + "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Rank": 2, + "CommandName": "Publish-PnPApp", "Id": 1048, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", - "CommandName": "Remove-PnPApp" + "Rank": 2, + "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site" }, { - "Rank": 1, + "CommandName": "Publish-PnPCompanyApp", "Id": 1049, - "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", - "CommandName": "Remove-PnPApplicationCustomizer" + "Rank": 1, + "Command": "Publish-PnPCompanyApp -PortalUrl https://contoso.sharepoint.com/sites/portal -AppName \"Contoso Portal\" -CompanyName \"Contoso\" -CompanyWebSite \"https://www.contoso.com\" -ColoredIconPath ./coloricon.png -OutlineIconPath ./outlinedicon" }, { - "Rank": 2, + "CommandName": "Publish-PnPContentType", "Id": 1050, - "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web", - "CommandName": "Remove-PnPApplicationCustomizer" + "Rank": 1, + "Command": "Publish-PnPContentType -ContentType 0x0101" }, { - "Rank": 1, + "CommandName": "Publish-PnPSyntexModel", "Id": 1051, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"", - "CommandName": "Remove-PnPAvailableSiteClassification" + "Rank": 1, + "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" }, { - "Rank": 2, + "CommandName": "Publish-PnPSyntexModel", "Id": 1052, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"", - "CommandName": "Remove-PnPAvailableSiteClassification" + "Rank": 2, + "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch" }, { - "Rank": 1, + "CommandName": "Read-PnPSiteTemplate", "Id": 1053, - "Command": "Remove-PnPAzureADApp -Identity MyApp", - "CommandName": "Remove-PnPAzureADApp" + "Rank": 1, + "Command": "Read-PnPSiteTemplate -Path template.pnp" }, { - "Rank": 2, + "CommandName": "Read-PnPSiteTemplate", "Id": 1054, - "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", - "CommandName": "Remove-PnPAzureADApp" + "Rank": 2, + "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions" }, { - "Rank": 1, + "CommandName": "Read-PnPSiteTemplate", "Id": 1055, - "Command": "Remove-PnPAzureADGroup -Identity $groupId", - "CommandName": "Remove-PnPAzureADGroup" + "Rank": 3, + "Command": "Read-PnPSiteTemplate -Xml $xml" }, { - "Rank": 2, + "CommandName": "Read-PnPTenantTemplate", "Id": 1056, - "Command": "Remove-PnPAzureADGroup -Identity $group", - "CommandName": "Remove-PnPAzureADGroup" + "Rank": 1, + "Command": "Read-PnPTenantTemplate -Path template.pnp" }, { - "Rank": 1, + "CommandName": "Register-PnPAppCatalogSite", "Id": 1057, - "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPAzureADGroupMember" + "Rank": 1, + "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4" }, { - "Rank": 1, + "CommandName": "Register-PnPAzureADApp", "Id": 1058, - "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPAzureADGroupOwner" + "Rank": 1, + "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Rank": 1, + "CommandName": "Register-PnPAzureADApp", "Id": 1059, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"", - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 2, + "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\")" }, { - "Rank": 2, + "CommandName": "Register-PnPAzureADApp", "Id": 1060, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"", - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 3, + "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -GraphApplicationPermissions \"User.Read.All\" -SharePointApplicationPermissions \"Sites.Read.All\" -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Rank": 3, + "CommandName": "Register-PnPAzureADApp", "Id": 1061, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 4, + "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -OutPath c:\\ -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Rank": 4, + "CommandName": "Register-PnPAzureADApp", "Id": 1062, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"", - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" + "Rank": 5, + "Command": "Register-PnPAzureADApp -DeviceLogin -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" }, { - "Rank": 1, + "CommandName": "Register-PnPAzureADApp", "Id": 1063, - "Command": "Remove-PnPContainer -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", - "CommandName": "Remove-PnPContainer" + "Rank": 6, + "Command": "Register-PnPAzureADApp -Interactive -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" }, { - "Rank": 2, + "CommandName": "Register-PnPAzureADApp", "Id": 1064, - "Command": "Remove-PnPContainer -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"", - "CommandName": "Remove-PnPContainer" + "Rank": 7, + "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\") -LogoFilePath c:\\logo.png" }, { - "Rank": 1, + "CommandName": "Register-PnPHubSite", "Id": 1065, - "Command": "Remove-PnPContainerType -Identity 00be1092-0c75-028a-18db-89e57908e7d6", - "CommandName": "Remove-PnPContainerType" + "Rank": 1, + "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" }, { - "Rank": 1, + "CommandName": "Register-PnPHubSite", "Id": 1066, - "Command": "Remove-PnPContentType -Identity \"Project Document\"", - "CommandName": "Remove-PnPContentType" + "Rank": 2, + "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"" }, { - "Rank": 2, + "CommandName": "Register-PnPManagementShellAccess", "Id": 1067, - "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force", - "CommandName": "Remove-PnPContentType" + "Rank": 1, + "Command": "Register-PnPManagementShellAccess" }, { - "Rank": 1, + "CommandName": "Register-PnPManagementShellAccess", "Id": 1068, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"", - "CommandName": "Remove-PnPContentTypeFromDocumentSet" + "Rank": 2, + "Command": "Register-PnPManagementShellAccess -ShowConsentUrl" }, { - "Rank": 2, + "CommandName": "Register-PnPManagementShellAccess", "Id": 1069, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B", - "CommandName": "Remove-PnPContentTypeFromDocumentSet" + "Rank": 3, + "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com" }, { - "Rank": 1, + "CommandName": "Remove-PnPAdaptiveScopeProperty", "Id": 1070, - "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"", - "CommandName": "Remove-PnPContentTypeFromList" + "Rank": 1, + "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey" }, { - "Rank": 1, + "CommandName": "Remove-PnPAdaptiveScopeProperty", "Id": 1071, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", - "CommandName": "Remove-PnPCustomAction" + "Rank": 2, + "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force" }, { - "Rank": 2, + "CommandName": "Remove-PnPAlert", "Id": 1072, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web", - "CommandName": "Remove-PnPCustomAction" + "Rank": 1, + "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7" }, { - "Rank": 3, + "CommandName": "Remove-PnPAlert", "Id": 1073, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force", - "CommandName": "Remove-PnPCustomAction" + "Rank": 2, + "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPApp", "Id": 1074, - "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", - "CommandName": "Remove-PnPDeletedMicrosoft365Group" + "Rank": 1, + "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Rank": 1, + "CommandName": "Remove-PnPApp", "Id": 1075, - "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 2, + "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Rank": 2, + "CommandName": "Remove-PnPApplicationCustomizer", "Id": 1076, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 1, + "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Rank": 3, + "CommandName": "Remove-PnPApplicationCustomizer", "Id": 1077, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 2, + "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" }, { - "Rank": 4, + "CommandName": "Remove-PnPAvailableSiteClassification", "Id": 1078, - "Command": "Remove-PnPEventReceiver -List ProjectList", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 1, + "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"" }, { - "Rank": 5, + "CommandName": "Remove-PnPAvailableSiteClassification", "Id": 1079, - "Command": "Remove-PnPEventReceiver", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 2, + "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" }, { - "Rank": 6, + "CommandName": "Remove-PnPAzureADApp", "Id": 1080, - "Command": "Remove-PnPEventReceiver -Scope Site", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 1, + "Command": "Remove-PnPAzureADApp -Identity MyApp" }, { - "Rank": 7, + "CommandName": "Remove-PnPAzureADApp", "Id": 1081, - "Command": "Remove-PnPEventReceiver -Scope Web", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 2, + "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Rank": 8, + "CommandName": "Remove-PnPAzureADGroup", "Id": 1082, - "Command": "Remove-PnPEventReceiver -Scope All", - "CommandName": "Remove-PnPEventReceiver" + "Rank": 1, + "Command": "Remove-PnPAzureADGroup -Identity $groupId" }, { - "Rank": 1, + "CommandName": "Remove-PnPAzureADGroup", "Id": 1083, - "Command": "Remove-PnPField -Identity \"Speakers\"", - "CommandName": "Remove-PnPField" + "Rank": 2, + "Command": "Remove-PnPAzureADGroup -Identity $group" }, { - "Rank": 2, + "CommandName": "Remove-PnPAzureADGroupMember", "Id": 1084, - "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"", - "CommandName": "Remove-PnPField" + "Rank": 1, + "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPAzureADGroupOwner", "Id": 1085, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"", - "CommandName": "Remove-PnPFieldFromContentType" + "Rank": 1, + "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Id": 1086, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren", - "CommandName": "Remove-PnPFieldFromContentType" + "Rank": 1, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Id": 1087, - "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor", - "CommandName": "Remove-PnPFile" + "Rank": 2, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Id": 1088, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor", - "CommandName": "Remove-PnPFile" + "Rank": 3, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Rank": 3, + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Id": 1089, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle", - "CommandName": "Remove-PnPFile" + "Rank": 4, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPContainer", "Id": 1090, - "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath", - "CommandName": "Remove-PnPFileFromSiteTemplate" + "Rank": 1, + "Command": "Remove-PnPContainer -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPContainer", "Id": 1091, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", - "CommandName": "Remove-PnPFileSharingLink" + "Rank": 2, + "Command": "Remove-PnPContainer -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPContainerType", "Id": 1092, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force", - "CommandName": "Remove-PnPFileSharingLink" + "Rank": 1, + "Command": "Remove-PnPContainerType -Identity 00be1092-0c75-028a-18db-89e57908e7d6" }, { - "Rank": 1, + "CommandName": "Remove-PnPContentType", "Id": 1093, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512", - "CommandName": "Remove-PnPFileVersion" + "Rank": 1, + "Command": "Remove-PnPContentType -Identity \"Project Document\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPContentType", "Id": 1094, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"", - "CommandName": "Remove-PnPFileVersion" + "Rank": 2, + "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPContentTypeFromDocumentSet", "Id": 1095, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All", - "CommandName": "Remove-PnPFileVersion" + "Rank": 1, + "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPContentTypeFromDocumentSet", "Id": 1096, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com", - "CommandName": "Remove-PnPFlowOwner" + "Rank": 2, + "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" }, { - "Rank": 2, + "CommandName": "Remove-PnPContentTypeFromList", "Id": 1097, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04", - "CommandName": "Remove-PnPFlowOwner" + "Rank": 1, + "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"" }, { - "Rank": 3, + "CommandName": "Remove-PnPCustomAction", "Id": 1098, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin", - "CommandName": "Remove-PnPFlowOwner" + "Rank": 1, + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Rank": 4, + "CommandName": "Remove-PnPCustomAction", "Id": 1099, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force", - "CommandName": "Remove-PnPFlowOwner" + "Rank": 2, + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" }, { - "Rank": 1, + "CommandName": "Remove-PnPCustomAction", "Id": 1100, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage", - "CommandName": "Remove-PnPFolder" + "Rank": 3, + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force" }, { - "Rank": 2, + "CommandName": "Remove-PnPDeletedMicrosoft365Group", "Id": 1101, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle", - "CommandName": "Remove-PnPFolder" + "Rank": 1, + "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1102, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", - "CommandName": "Remove-PnPFolderSharingLink" + "Rank": 1, + "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Rank": 2, + "CommandName": "Remove-PnPEventReceiver", "Id": 1103, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force", - "CommandName": "Remove-PnPFolderSharingLink" + "Rank": 2, + "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1104, - "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da", - "CommandName": "Remove-PnPGraphSubscription" + "Rank": 3, + "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1105, - "Command": "Remove-PnPGroup -Identity \"My Users\"", - "CommandName": "Remove-PnPGroup" + "Rank": 4, + "Command": "Remove-PnPEventReceiver -List ProjectList" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1106, - "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'", - "CommandName": "Remove-PnPGroupMember" + "Rank": 5, + "Command": "Remove-PnPEventReceiver" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1107, - "Command": "Remove-PnPHomeSite", - "CommandName": "Remove-PnPHomeSite" + "Rank": 6, + "Command": "Remove-PnPEventReceiver -Scope Site" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1108, - "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"", - "CommandName": "Remove-PnPHubSiteAssociation" + "Rank": 7, + "Command": "Remove-PnPEventReceiver -Scope Web" }, { - "Rank": 1, + "CommandName": "Remove-PnPEventReceiver", "Id": 1109, - "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15", - "CommandName": "Remove-PnPHubToHubAssociation" + "Rank": 8, + "Command": "Remove-PnPEventReceiver -Scope All" }, { - "Rank": 2, + "CommandName": "Remove-PnPField", "Id": 1110, - "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"", - "CommandName": "Remove-PnPHubToHubAssociation" + "Rank": 1, + "Command": "Remove-PnPField -Identity \"Speakers\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPField", "Id": 1111, - "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"", - "CommandName": "Remove-PnPIndexedProperty" + "Rank": 2, + "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPFieldFromContentType", "Id": 1112, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery", - "CommandName": "Remove-PnPJavaScriptLink" + "Rank": 1, + "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPFieldFromContentType", "Id": 1113, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site", - "CommandName": "Remove-PnPJavaScriptLink" + "Rank": 2, + "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren" }, { - "Rank": 3, + "CommandName": "Remove-PnPFile", "Id": 1114, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false", - "CommandName": "Remove-PnPJavaScriptLink" + "Rank": 1, + "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor" }, { - "Rank": 4, + "CommandName": "Remove-PnPFile", "Id": 1115, - "Command": "Remove-PnPJavaScriptLink -Scope Site", - "CommandName": "Remove-PnPJavaScriptLink" + "Rank": 2, + "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor" }, { - "Rank": 5, + "CommandName": "Remove-PnPFile", "Id": 1116, - "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All", - "CommandName": "Remove-PnPJavaScriptLink" + "Rank": 3, + "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle" }, { - "Rank": 1, + "CommandName": "Remove-PnPFileFromSiteTemplate", "Id": 1117, - "Command": "Remove-PnPKnowledgeHubSite", - "CommandName": "Remove-PnPKnowledgeHubSite" + "Rank": 1, + "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath" }, { - "Rank": 1, + "CommandName": "Remove-PnPFileSharingLink", "Id": 1118, - "Command": "Remove-PnPList -Identity Announcements", - "CommandName": "Remove-PnPList" + "Rank": 1, + "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPFileSharingLink", "Id": 1119, - "Command": "Remove-PnPList -Identity Announcements -Force", - "CommandName": "Remove-PnPList" + "Rank": 2, + "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPFileVersion", "Id": 1120, - "Command": "Remove-PnPList -Identity Announcements -Recycle", - "CommandName": "Remove-PnPList" + "Rank": 1, + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" }, { - "Rank": 4, + "CommandName": "Remove-PnPFileVersion", "Id": 1121, - "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList", - "CommandName": "Remove-PnPList" + "Rank": 2, + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPFileVersion", "Id": 1122, - "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Remove-PnPListDesign" + "Rank": 3, + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All" }, { - "Rank": 1, + "CommandName": "Remove-PnPFlowOwner", "Id": 1123, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force", - "CommandName": "Remove-PnPListItem" + "Rank": 1, + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com" }, { - "Rank": 2, + "CommandName": "Remove-PnPFlowOwner", "Id": 1124, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle", - "CommandName": "Remove-PnPListItem" + "Rank": 2, + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04" }, { - "Rank": 3, + "CommandName": "Remove-PnPFlowOwner", "Id": 1125, - "Command": "Remove-PnPListItem -List \"Demo List\"", - "CommandName": "Remove-PnPListItem" + "Rank": 3, + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin" }, { - "Rank": 1, + "CommandName": "Remove-PnPFlowOwner", "Id": 1126, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt", - "CommandName": "Remove-PnPListItemAttachment" + "Rank": 4, + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force" }, { - "Rank": 2, + "CommandName": "Remove-PnPFolder", "Id": 1127, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle", - "CommandName": "Remove-PnPListItemAttachment" + "Rank": 1, + "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" }, { - "Rank": 3, + "CommandName": "Remove-PnPFolder", "Id": 1128, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force", - "CommandName": "Remove-PnPListItemAttachment" + "Rank": 2, + "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle" }, { - "Rank": 4, + "CommandName": "Remove-PnPFolderSharingLink", "Id": 1129, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force", - "CommandName": "Remove-PnPListItemAttachment" + "Rank": 1, + "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Rank": 5, + "CommandName": "Remove-PnPFolderSharingLink", "Id": 1130, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All", - "CommandName": "Remove-PnPListItemAttachment" + "Rank": 2, + "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPGraphSubscription", "Id": 1131, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512", - "CommandName": "Remove-PnPListItemVersion" + "Rank": 1, + "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da" }, { - "Rank": 2, + "CommandName": "Remove-PnPGroup", "Id": 1132, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"", - "CommandName": "Remove-PnPListItemVersion" + "Rank": 1, + "Command": "Remove-PnPGroup -Identity \"My Users\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPGroupMember", "Id": 1133, - "Command": "Remove-PnPMicrosoft365Group -Identity $groupId", - "CommandName": "Remove-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" }, { - "Rank": 2, + "CommandName": "Remove-PnPHomeSite", "Id": 1134, - "Command": "Remove-PnPMicrosoft365Group -Identity $group", - "CommandName": "Remove-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Remove-PnPHomeSite" }, { - "Rank": 1, + "CommandName": "Remove-PnPHubSiteAssociation", "Id": 1135, - "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPMicrosoft365GroupMember" + "Rank": 1, + "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPHubToHubAssociation", "Id": 1136, - "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPMicrosoft365GroupOwner" + "Rank": 1, + "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15" }, { - "Rank": 1, + "CommandName": "Remove-PnPHubToHubAssociation", "Id": 1137, - "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"", - "CommandName": "Remove-PnPMicrosoft365GroupPhoto" + "Rank": 2, + "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPIndexedProperty", "Id": 1138, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"", - "CommandName": "Remove-PnPMicrosoft365GroupSettings" + "Rank": 1, + "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPJavaScriptLink", "Id": 1139, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId", - "CommandName": "Remove-PnPMicrosoft365GroupSettings" + "Rank": 1, + "Command": "Remove-PnPJavaScriptLink -Identity jQuery" }, { - "Rank": 1, + "CommandName": "Remove-PnPJavaScriptLink", "Id": 1140, - "Command": "Remove-PnPNavigationNode -Identity 1032", - "CommandName": "Remove-PnPNavigationNode" + "Rank": 2, + "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site" }, { - "Rank": 2, + "CommandName": "Remove-PnPJavaScriptLink", "Id": 1141, - "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch", - "CommandName": "Remove-PnPNavigationNode" + "Rank": 3, + "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false" }, { - "Rank": 3, + "CommandName": "Remove-PnPJavaScriptLink", "Id": 1142, - "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force", - "CommandName": "Remove-PnPNavigationNode" + "Rank": 4, + "Command": "Remove-PnPJavaScriptLink -Scope Site" }, { - "Rank": 1, + "CommandName": "Remove-PnPJavaScriptLink", "Id": 1143, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"", - "CommandName": "Remove-PnPOrgAssetsLibrary" + "Rank": 5, + "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All" }, { - "Rank": 2, + "CommandName": "Remove-PnPKnowledgeHubSite", "Id": 1144, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true", - "CommandName": "Remove-PnPOrgAssetsLibrary" + "Rank": 1, + "Command": "Remove-PnPKnowledgeHubSite" }, { - "Rank": 3, + "CommandName": "Remove-PnPLibraryFileVersionBatchDeleteJob", "Id": 1145, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private", - "CommandName": "Remove-PnPOrgAssetsLibrary" + "Rank": 1, + "Command": "Remove-PnPLibraryFileVersionBatchDeleteJob -Identity \"Documents\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPLibraryFileVersionBatchDeleteJob", "Id": 1146, - "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"", - "CommandName": "Remove-PnPOrgNewsSite" + "Rank": 2, + "Command": "Remove-PnPLibraryFileVersionBatchDeleteJob -Identity \"Documents\" -DeleteBeforeDays 360 -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPList", "Id": 1147, - "Command": "Remove-PnPPage -Identity \"MyPage\"", - "CommandName": "Remove-PnPPage" + "Rank": 1, + "Command": "Remove-PnPList -Identity Announcements" }, { - "Rank": 2, + "CommandName": "Remove-PnPList", "Id": 1148, - "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"", - "CommandName": "Remove-PnPPage" + "Rank": 2, + "Command": "Remove-PnPList -Identity Announcements -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPList", "Id": 1149, - "Command": "Remove-PnPPage $page", - "CommandName": "Remove-PnPPage" + "Rank": 3, + "Command": "Remove-PnPList -Identity Announcements -Recycle" }, { - "Rank": 4, + "CommandName": "Remove-PnPList", "Id": 1150, - "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle", - "CommandName": "Remove-PnPPage" + "Rank": 4, + "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList" }, { - "Rank": 1, + "CommandName": "Remove-PnPListDesign", "Id": 1151, - "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82", - "CommandName": "Remove-PnPPageComponent" + "Rank": 1, + "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItem", "Id": 1152, - "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"", - "CommandName": "Remove-PnPPlannerBucket" + "Rank": 1, + "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItem", "Id": 1153, - "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"", - "CommandName": "Remove-PnPPlannerPlan" + "Rank": 2, + "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItem", "Id": 1154, - "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"", - "CommandName": "Remove-PnPPlannerRoster" + "Rank": 3, + "Command": "Remove-PnPListItem -List \"Demo List\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItemAttachment", "Id": 1155, - "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPPlannerRosterMember" + "Rank": 1, + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItemAttachment", "Id": 1156, - "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk", - "CommandName": "Remove-PnPPlannerTask" + "Rank": 2, + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItemAttachment", "Id": 1157, - "Command": "Remove-PnPPropertyBagValue -Key MyKey", - "CommandName": "Remove-PnPPropertyBagValue" + "Rank": 3, + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force" }, { - "Rank": 2, + "CommandName": "Remove-PnPListItemAttachment", "Id": 1158, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder", - "CommandName": "Remove-PnPPropertyBagValue" + "Rank": 4, + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPListItemAttachment", "Id": 1159, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /", - "CommandName": "Remove-PnPPropertyBagValue" + "Rank": 5, + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItemVersion", "Id": 1160, - "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600", - "CommandName": "Remove-PnPPublishingImageRendition" + "Rank": 1, + "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" }, { - "Rank": 1, + "CommandName": "Remove-PnPListItemVersion", "Id": 1161, - "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition", - "CommandName": "Remove-PnPRoleDefinition" + "Rank": 2, + "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPMicrosoft365Group", "Id": 1162, - "Command": "Remove-PnPSdnProvider -Confirm:false", - "CommandName": "Remove-PnPSdnProvider" + "Rank": 1, + "Command": "Remove-PnPMicrosoft365Group -Identity $groupId" }, { - "Rank": 1, + "CommandName": "Remove-PnPMicrosoft365Group", "Id": 1163, - "Command": "Remove-PnPSearchConfiguration -Configuration $config", - "CommandName": "Remove-PnPSearchConfiguration" + "Rank": 2, + "Command": "Remove-PnPMicrosoft365Group -Identity $group" }, { - "Rank": 2, + "CommandName": "Remove-PnPMicrosoft365GroupMember", "Id": 1164, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site", - "CommandName": "Remove-PnPSearchConfiguration" + "Rank": 1, + "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 3, + "CommandName": "Remove-PnPMicrosoft365GroupOwner", "Id": 1165, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription", - "CommandName": "Remove-PnPSearchConfiguration" + "Rank": 1, + "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Rank": 4, + "CommandName": "Remove-PnPMicrosoft365GroupPhoto", "Id": 1166, - "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", - "CommandName": "Remove-PnPSearchConfiguration" + "Rank": 1, + "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPMicrosoft365GroupSettings", "Id": 1167, - "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"", - "CommandName": "Remove-PnPSiteCollectionAdmin" + "Rank": 1, + "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPMicrosoft365GroupSettings", "Id": 1168, - "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", - "CommandName": "Remove-PnPSiteCollectionAdmin" + "Rank": 2, + "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId" }, { - "Rank": 1, + "CommandName": "Remove-PnPNavigationNode", "Id": 1169, - "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"", - "CommandName": "Remove-PnPSiteCollectionAppCatalog" + "Rank": 1, + "Command": "Remove-PnPNavigationNode -Identity 1032" }, { - "Rank": 1, + "CommandName": "Remove-PnPNavigationNode", "Id": 1170, - "Command": "Remove-PnPSiteCollectionTermStore", - "CommandName": "Remove-PnPSiteCollectionTermStore" + "Rank": 2, + "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch" }, { - "Rank": 1, + "CommandName": "Remove-PnPNavigationNode", "Id": 1171, - "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Remove-PnPSiteDesign" + "Rank": 3, + "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPOrgAssetsLibrary", "Id": 1172, - "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Remove-PnPSiteDesignTask" + "Rank": 1, + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPOrgAssetsLibrary", "Id": 1173, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"", - "CommandName": "Remove-PnPSiteGroup" + "Rank": 2, + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true" }, { - "Rank": 2, + "CommandName": "Remove-PnPOrgAssetsLibrary", "Id": 1174, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove", - "CommandName": "Remove-PnPSiteGroup" + "Rank": 3, + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private" }, { - "Rank": 1, + "CommandName": "Remove-PnPOrgNewsSite", "Id": 1175, - "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", - "CommandName": "Remove-PnPSiteScript" + "Rank": 1, + "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPPage", "Id": 1176, - "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com", - "CommandName": "Remove-PnPSiteUserInvitations" + "Rank": 1, + "Command": "Remove-PnPPage -Identity \"MyPage\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPPage", "Id": 1177, - "Command": "Remove-PnPStorageEntity -Key MyKey", - "CommandName": "Remove-PnPStorageEntity" + "Rank": 2, + "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPPage", "Id": 1178, - "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site", - "CommandName": "Remove-PnPStorageEntity" + "Rank": 3, + "Command": "Remove-PnPPage $page" }, { - "Rank": 1, + "CommandName": "Remove-PnPPage", "Id": 1179, - "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"", - "CommandName": "Remove-PnPStoredCredential" + "Rank": 4, + "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle" }, { - "Rank": 1, + "CommandName": "Remove-PnPPageComponent", "Id": 1180, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"", - "CommandName": "Remove-PnPTaxonomyItem" + "Rank": 1, + "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Rank": 2, + "CommandName": "Remove-PnPPlannerBucket", "Id": 1181, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force", - "CommandName": "Remove-PnPTaxonomyItem" + "Rank": 1, + "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPPlannerPlan", "Id": 1182, - "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b", - "CommandName": "Remove-PnPTeamsApp" + "Rank": 1, + "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPPlannerRoster", "Id": 1183, - "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"", - "CommandName": "Remove-PnPTeamsApp" + "Rank": 1, + "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPPlannerRosterMember", "Id": 1184, - "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"", - "CommandName": "Remove-PnPTeamsChannel" + "Rank": 1, + "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPPlannerTask", "Id": 1185, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==", - "CommandName": "Remove-PnPTeamsChannelUser" + "Rank": 1, + "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk" }, { - "Rank": 2, + "CommandName": "Remove-PnPPropertyBagValue", "Id": 1186, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000", - "CommandName": "Remove-PnPTeamsChannelUser" + "Rank": 1, + "Command": "Remove-PnPPropertyBagValue -Key MyKey" }, { - "Rank": 3, + "CommandName": "Remove-PnPPropertyBagValue", "Id": 1187, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force", - "CommandName": "Remove-PnPTeamsChannelUser" + "Rank": 2, + "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder" }, { - "Rank": 1, + "CommandName": "Remove-PnPPropertyBagValue", "Id": 1188, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki", - "CommandName": "Remove-PnPTeamsTab" + "Rank": 3, + "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /" }, { - "Rank": 2, + "CommandName": "Remove-PnPPublishingImageRendition", "Id": 1189, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki", - "CommandName": "Remove-PnPTeamsTab" + "Rank": 1, + "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" }, { - "Rank": 3, + "CommandName": "Remove-PnPRoleDefinition", "Id": 1190, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852", - "CommandName": "Remove-PnPTeamsTab" + "Rank": 1, + "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition" }, { - "Rank": 1, + "CommandName": "Remove-PnPSdnProvider", "Id": 1191, - "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"", - "CommandName": "Remove-PnPTeamsTag" + "Rank": 1, + "Command": "Remove-PnPSdnProvider -Confirm:false" }, { - "Rank": 1, + "CommandName": "Remove-PnPSearchConfiguration", "Id": 1192, - "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5", - "CommandName": "Remove-PnPTeamsTeam" + "Rank": 1, + "Command": "Remove-PnPSearchConfiguration -Configuration $config" }, { - "Rank": 2, + "CommandName": "Remove-PnPSearchConfiguration", "Id": 1193, - "Command": "Remove-PnPTeamsTeam -Identity testteam", - "CommandName": "Remove-PnPTeamsTeam" + "Rank": 2, + "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site" }, { - "Rank": 1, + "CommandName": "Remove-PnPSearchConfiguration", "Id": 1194, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com", - "CommandName": "Remove-PnPTeamsUser" + "Rank": 3, + "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription" }, { - "Rank": 2, + "CommandName": "Remove-PnPSearchConfiguration", "Id": 1195, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", - "CommandName": "Remove-PnPTeamsUser" + "Rank": 4, + "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteCollectionAdmin", "Id": 1196, - "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public", - "CommandName": "Remove-PnPTenantCdnOrigin" + "Rank": 1, + "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteCollectionAdmin", "Id": 1197, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Remove-PnPTenantDeletedSite" + "Rank": 2, + "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { - "Rank": 2, + "CommandName": "Remove-PnPSiteCollectionAppCatalog", "Id": 1198, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force", - "CommandName": "Remove-PnPTenantDeletedSite" + "Rank": 1, + "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteCollectionTermStore", "Id": 1199, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Remove-PnPTenantSite" + "Rank": 1, + "Command": "Remove-PnPSiteCollectionTermStore" }, { - "Rank": 2, + "CommandName": "Remove-PnPSiteDesign", "Id": 1200, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin", - "CommandName": "Remove-PnPTenantSite" + "Rank": 1, + "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 3, + "CommandName": "Remove-PnPSiteDesignTask", "Id": 1201, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin", - "CommandName": "Remove-PnPTenantSite" + "Rank": 1, + "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteFileVersionBatchDeleteJob", "Id": 1202, - "Command": "Remove-PnPTenantSyncClientRestriction", - "CommandName": "Remove-PnPTenantSyncClientRestriction" + "Rank": 1, + "Command": "Remove-PnPSiteFileVersionBatchDeleteJob" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteFileVersionBatchDeleteJob", "Id": 1203, - "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"", - "CommandName": "Remove-PnPTenantTheme" + "Rank": 2, + "Command": "Remove-PnPSiteFileVersionBatchDeleteJob -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteGroup", "Id": 1204, - "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380", - "CommandName": "Remove-PnPTerm" + "Rank": 1, + "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPSiteGroup", "Id": 1205, - "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Remove-PnPTerm" + "Rank": 2, + "Command": "Remove-PnPSiteGroup -Identity GroupToRemove" }, { - "Rank": 1, + "CommandName": "Remove-PnPSiteScript", "Id": 1206, - "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380", - "CommandName": "Remove-PnPTermGroup" + "Rank": 1, + "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Rank": 2, + "CommandName": "Remove-PnPSiteUserInvitations", "Id": 1207, - "Command": "Remove-PnPTermGroup -Identity \"Corporate\"", - "CommandName": "Remove-PnPTermGroup" + "Rank": 1, + "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" }, { - "Rank": 3, + "CommandName": "Remove-PnPStorageEntity", "Id": 1208, - "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force", - "CommandName": "Remove-PnPTermGroup" + "Rank": 1, + "Command": "Remove-PnPStorageEntity -Key MyKey" }, { - "Rank": 1, + "CommandName": "Remove-PnPStorageEntity", "Id": 1209, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62", - "CommandName": "Remove-PnPTermLabel" + "Rank": 2, + "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site" }, { - "Rank": 2, + "CommandName": "Remove-PnPStoredCredential", "Id": 1210, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", - "CommandName": "Remove-PnPTermLabel" + "Rank": 1, + "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPTaxonomyItem", "Id": 1211, - "Command": "Remove-PnPUser -Identity 23", - "CommandName": "Remove-PnPUser" + "Rank": 1, + "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPTaxonomyItem", "Id": 1212, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com", - "CommandName": "Remove-PnPUser" + "Rank": 2, + "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPTeamsApp", "Id": 1213, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false", - "CommandName": "Remove-PnPUser" + "Rank": 1, + "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsApp", "Id": 1214, - "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"", - "CommandName": "Remove-PnPUserInfo" + "Rank": 2, + "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsChannel", "Id": 1215, - "Command": "Remove-PnPUserProfile -LoginName user@domain.com", - "CommandName": "Remove-PnPUserProfile" + "Rank": 1, + "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsChannelUser", "Id": 1216, - "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"", - "CommandName": "Remove-PnPView" + "Rank": 1, + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsChannelUser", "Id": 1217, - "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"", - "CommandName": "Remove-PnPVivaConnectionsDashboardACE" + "Rank": 2, + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsChannelUser", "Id": 1218, - "Command": "Remove-PnPWeb -Identity projectA", - "CommandName": "Remove-PnPWeb" + "Rank": 3, + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force" }, { - "Rank": 2, + "CommandName": "Remove-PnPTeamsTab", "Id": 1219, - "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0", - "CommandName": "Remove-PnPWeb" + "Rank": 1, + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsTab", "Id": 1220, - "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6", - "CommandName": "Remove-PnPWebhookSubscription" + "Rank": 2, + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsTab", "Id": 1221, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", - "CommandName": "Remove-PnPWebPart" + "Rank": 3, + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852" }, { - "Rank": 2, + "CommandName": "Remove-PnPTeamsTag", "Id": 1222, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart", - "CommandName": "Remove-PnPWebPart" + "Rank": 1, + "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsTeam", "Id": 1223, - "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'", - "CommandName": "Remove-PnPWikiPage" + "Rank": 1, + "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5" }, { - "Rank": 1, + "CommandName": "Remove-PnPTeamsTeam", "Id": 1224, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx", - "CommandName": "Rename-PnPFile" + "Rank": 2, + "Command": "Remove-PnPTeamsTeam -Identity testteam" }, { - "Rank": 2, + "CommandName": "Remove-PnPTeamsUser", "Id": 1225, - "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx", - "CommandName": "Rename-PnPFile" + "Rank": 1, + "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com" }, { - "Rank": 3, + "CommandName": "Remove-PnPTeamsUser", "Id": 1226, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists", - "CommandName": "Rename-PnPFile" + "Rank": 2, + "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { - "Rank": 1, + "CommandName": "Remove-PnPTenantCdnOrigin", "Id": 1227, - "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'", - "CommandName": "Rename-PnPFolder" + "Rank": 1, + "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" }, { - "Rank": 1, + "CommandName": "Remove-PnPTenantDeletedSite", "Id": 1228, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"", - "CommandName": "Repair-PnPSite" + "Rank": 1, + "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPTenantDeletedSite", "Id": 1229, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"", - "CommandName": "Repair-PnPSite" + "Rank": 2, + "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" }, { - "Rank": 1, + "CommandName": "Remove-PnPTenantSite", "Id": 1230, - "Command": "Request-PnPAccessToken", - "CommandName": "Request-PnPAccessToken" + "Rank": 1, + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPTenantSite", "Id": 1231, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2", - "CommandName": "Request-PnPAccessToken" + "Rank": 2, + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin" }, { - "Rank": 3, + "CommandName": "Remove-PnPTenantSite", "Id": 1232, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All", - "CommandName": "Request-PnPAccessToken" + "Rank": 3, + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin" }, { - "Rank": 4, + "CommandName": "Remove-PnPTenantSyncClientRestriction", "Id": 1233, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl", - "CommandName": "Request-PnPAccessToken" + "Rank": 1, + "Command": "Remove-PnPTenantSyncClientRestriction" }, { - "Rank": 1, + "CommandName": "Remove-PnPTenantTheme", "Id": 1234, - "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")", - "CommandName": "Request-PnPPersonalSite" + "Rank": 1, + "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPTerm", "Id": 1235, - "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"", - "CommandName": "Request-PnPPersonalSite" + "Rank": 1, + "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" }, { - "Rank": 1, + "CommandName": "Remove-PnPTerm", "Id": 1236, - "Command": "Request-PnPReIndexList -Identity \"Demo List\"", - "CommandName": "Request-PnPReIndexList" + "Rank": 2, + "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPTermGroup", "Id": 1237, - "Command": "Request-PnPReIndexWeb", - "CommandName": "Request-PnPReIndexWeb" + "Rank": 1, + "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" }, { - "Rank": 1, + "CommandName": "Remove-PnPTermGroup", "Id": 1238, - "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"", - "CommandName": "Request-PnPSyntexClassifyAndExtract" + "Rank": 2, + "Command": "Remove-PnPTermGroup -Identity \"Corporate\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPTermGroup", "Id": 1239, - "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"", - "CommandName": "Request-PnPSyntexClassifyAndExtract" + "Rank": 3, + "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force" }, { - "Rank": 3, + "CommandName": "Remove-PnPTermLabel", "Id": 1240, - "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")", - "CommandName": "Request-PnPSyntexClassifyAndExtract" + "Rank": 1, + "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62" }, { - "Rank": 1, + "CommandName": "Remove-PnPTermLabel", "Id": 1241, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"", - "CommandName": "Reset-PnPFileVersion" + "Rank": 2, + "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Rank": 2, + "CommandName": "Remove-PnPUser", "Id": 1242, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"", - "CommandName": "Reset-PnPFileVersion" + "Rank": 1, + "Command": "Remove-PnPUser -Identity 23" }, { - "Rank": 1, + "CommandName": "Remove-PnPUser", "Id": 1243, - "Command": "Reset-PnPMicrosoft365GroupExpiration", - "CommandName": "Reset-PnPMicrosoft365GroupExpiration" + "Rank": 2, + "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com" }, { - "Rank": 1, + "CommandName": "Remove-PnPUser", "Id": 1244, - "Command": "Reset-PnPRetentionLabel -List \"Demo List\"", - "CommandName": "Reset-PnPRetentionLabel" + "Rank": 3, + "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false" }, { - "Rank": 2, + "CommandName": "Remove-PnPUserInfo", "Id": 1245, - "Command": "Reset-PnPRetentionLabel -List \"Demo List\" -SyncToItems $true", - "CommandName": "Reset-PnPRetentionLabel" + "Rank": 1, + "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPUserProfile", "Id": 1246, - "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'", - "CommandName": "Reset-PnPUserOneDriveQuotaToDefault" + "Rank": 1, + "Command": "Remove-PnPUserProfile -LoginName user@domain.com" }, { - "Rank": 1, + "CommandName": "Remove-PnPView", "Id": 1247, - "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"", - "CommandName": "Resolve-PnPFolder" + "Rank": 1, + "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPVivaConnectionsDashboardACE", "Id": 1248, - "Command": "Restore-PnPDeletedContainer -Identity \"b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", - "CommandName": "Restore-PnPDeletedContainer" + "Rank": 1, + "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" }, { - "Rank": 1, + "CommandName": "Remove-PnPWeb", "Id": 1249, - "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", - "CommandName": "Restore-PnPDeletedMicrosoft365Group" + "Rank": 1, + "Command": "Remove-PnPWeb -Identity projectA" }, { - "Rank": 1, + "CommandName": "Remove-PnPWeb", "Id": 1250, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512", - "CommandName": "Restore-PnPFileVersion" + "Rank": 2, + "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0" }, { - "Rank": 2, + "CommandName": "Remove-PnPWebhookSubscription", "Id": 1251, - "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512", - "CommandName": "Restore-PnPFileVersion" + "Rank": 1, + "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6" }, { - "Rank": 3, + "CommandName": "Remove-PnPWebPart", "Id": 1252, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"", - "CommandName": "Restore-PnPFileVersion" + "Rank": 1, + "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Rank": 1, + "CommandName": "Remove-PnPWebPart", "Id": 1253, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512", - "CommandName": "Restore-PnPListItemVersion" + "Rank": 2, + "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart" }, { - "Rank": 2, + "CommandName": "Remove-PnPWikiPage", "Id": 1254, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"", - "CommandName": "Restore-PnPListItemVersion" + "Rank": 1, + "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'" }, { - "Rank": 1, + "CommandName": "Rename-PnPFile", "Id": 1255, - "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442", - "CommandName": "Restore-PnPRecycleBinItem" + "Rank": 1, + "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx" }, { - "Rank": 1, + "CommandName": "Rename-PnPFile", "Id": 1256, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Restore-PnPTenantRecycleBinItem" + "Rank": 2, + "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx" }, { - "Rank": 2, + "CommandName": "Rename-PnPFile", "Id": 1257, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait", - "CommandName": "Restore-PnPTenantRecycleBinItem" + "Rank": 3, + "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists" }, { - "Rank": 1, + "CommandName": "Rename-PnPFolder", "Id": 1258, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", - "CommandName": "Restore-PnPTenantSite" + "Rank": 1, + "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'" }, { - "Rank": 2, + "CommandName": "Repair-PnPSite", "Id": 1259, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force", - "CommandName": "Restore-PnPTenantSite" + "Rank": 1, + "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" }, { - "Rank": 3, + "CommandName": "Repair-PnPSite", "Id": 1260, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait", - "CommandName": "Restore-PnPTenantSite" + "Rank": 2, + "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" }, { - "Rank": 1, + "CommandName": "Request-PnPAccessToken", "Id": 1261, - "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa", - "CommandName": "Revoke-PnPAzureADAppSitePermission" + "Rank": 1, + "Command": "Request-PnPAccessToken" }, { - "Rank": 1, + "CommandName": "Request-PnPAccessToken", "Id": 1262, - "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", - "CommandName": "Revoke-PnPHubSiteRights" + "Rank": 2, + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2" }, { - "Rank": 1, + "CommandName": "Request-PnPAccessToken", "Id": 1263, - "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", - "CommandName": "Revoke-PnPSiteDesignRights" + "Rank": 3, + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All" }, { - "Rank": 1, + "CommandName": "Request-PnPAccessToken", "Id": 1264, - "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"", - "CommandName": "Revoke-PnPTenantServicePrincipalPermission" + "Rank": 4, + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl" }, { - "Rank": 1, + "CommandName": "Request-PnPPersonalSite", "Id": 1265, - "Command": "Revoke-PnPUserSession -User user1@contoso.com", - "CommandName": "Revoke-PnPUserSession" + "Rank": 1, + "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")" }, { - "Rank": 1, + "CommandName": "Request-PnPPersonalSite", "Id": 1266, - "Command": "Save-PnPPageConversionLog", - "CommandName": "Save-PnPPageConversionLog" + "Rank": 2, + "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"" }, { - "Rank": 1, + "CommandName": "Request-PnPReIndexList", "Id": 1267, - "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp", - "CommandName": "Save-PnPSiteTemplate" + "Rank": 1, + "Command": "Request-PnPReIndexList -Identity \"Demo List\"" }, { - "Rank": 1, + "CommandName": "Request-PnPReIndexWeb", "Id": 1268, - "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp", - "CommandName": "Save-PnPTenantTemplate" + "Rank": 1, + "Command": "Request-PnPReIndexWeb" }, { - "Rank": 1, + "CommandName": "Request-PnPSyntexClassifyAndExtract", "Id": 1269, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\"", - "CommandName": "Send-PnPMail" + "Rank": 1, + "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"" }, { - "Rank": 2, + "CommandName": "Request-PnPSyntexClassifyAndExtract", "Id": 1270, - "Command": "Send-PnPMail -From \"sharedmailbox@contoso.onmicrosoft.com\" -To \"recipient1@contoso.com\",\"recipient2@contoso.com\",\"recipient3@contoso.com\" -Cc \"recipient4@contoso.com\" -Bcc \"recipient5@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Importance Low", - "CommandName": "Send-PnPMail" + "Rank": 2, + "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"" }, { - "Rank": 3, + "CommandName": "Request-PnPSyntexClassifyAndExtract", "Id": 1271, - "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"", - "CommandName": "Send-PnPMail" + "Rank": 3, + "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")" }, { - "Rank": 4, + "CommandName": "Reset-PnPFileVersion", "Id": 1272, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.onmicrosoft.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server contoso.mail.protection.outlook.com", - "CommandName": "Send-PnPMail" + "Rank": 1, + "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"" }, { - "Rank": 5, + "CommandName": "Reset-PnPFileVersion", "Id": 1273, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com", - "CommandName": "Send-PnPMail" + "Rank": 2, + "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"" }, { - "Rank": 6, + "CommandName": "Reset-PnPMicrosoft365GroupExpiration", "Id": 1274, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com -Port 587 -EnableSsl:$true -Username \"userxyz\" -Password \"password123\"", - "CommandName": "Send-PnPMail" + "Rank": 1, + "Command": "Reset-PnPMicrosoft365GroupExpiration" }, { - "Rank": 1, + "CommandName": "Reset-PnPRetentionLabel", "Id": 1275, - "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue", - "CommandName": "Set-PnPAdaptiveScopeProperty" + "Rank": 1, + "Command": "Reset-PnPRetentionLabel -List \"Demo List\"" }, { - "Rank": 1, + "CommandName": "Reset-PnPRetentionLabel", "Id": 1276, - "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", - "CommandName": "Set-PnPApplicationCustomizer" + "Rank": 2, + "Command": "Reset-PnPRetentionLabel -List \"Demo List\" -SyncToItems $true" }, { - "Rank": 2, + "CommandName": "Reset-PnPUserOneDriveQuotaToDefault", "Id": 1277, - "Command": "Set-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"", - "CommandName": "Set-PnPApplicationCustomizer" + "Rank": 1, + "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'" }, { - "Rank": 1, + "CommandName": "Resolve-PnPFolder", "Id": 1278, - "Command": "Set-PnPAppSideLoading -On", - "CommandName": "Set-PnPAppSideLoading" + "Rank": 1, + "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"" }, { - "Rank": 2, + "CommandName": "Restore-PnPDeletedContainer", "Id": 1279, - "Command": "Set-PnPAppSideLoading -Off", - "CommandName": "Set-PnPAppSideLoading" + "Rank": 1, + "Command": "Restore-PnPDeletedContainer -Identity \"b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" }, { - "Rank": 1, + "CommandName": "Restore-PnPDeletedMicrosoft365Group", "Id": 1280, - "Command": "Set-PnPAuditing -EnableAll", - "CommandName": "Set-PnPAuditing" + "Rank": 1, + "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Rank": 2, + "CommandName": "Restore-PnPFileVersion", "Id": 1281, - "Command": "Set-PnPAuditing -DisableAll", - "CommandName": "Set-PnPAuditing" + "Rank": 1, + "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" }, { - "Rank": 3, + "CommandName": "Restore-PnPFileVersion", "Id": 1282, - "Command": "Set-PnPAuditing -RetentionTime 7", - "CommandName": "Set-PnPAuditing" + "Rank": 2, + "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512" }, { - "Rank": 4, + "CommandName": "Restore-PnPFileVersion", "Id": 1283, - "Command": "Set-PnPAuditing -TrimAuditLog", - "CommandName": "Set-PnPAuditing" + "Rank": 3, + "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" }, { - "Rank": 5, + "CommandName": "Restore-PnPListItemVersion", "Id": 1284, - "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent", - "CommandName": "Set-PnPAuditing" + "Rank": 1, + "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" }, { - "Rank": 1, + "CommandName": "Restore-PnPListItemVersion", "Id": 1285, - "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts", - "CommandName": "Set-PnPAvailablePageLayouts" + "Rank": 2, + "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" }, { - "Rank": 1, + "CommandName": "Restore-PnPRecycleBinItem", "Id": 1286, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read", - "CommandName": "Set-PnPAzureADAppSitePermission" + "Rank": 1, + "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" }, { - "Rank": 2, + "CommandName": "Restore-PnPTenantRecycleBinItem", "Id": 1287, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects", - "CommandName": "Set-PnPAzureADAppSitePermission" + "Rank": 1, + "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 1, + "CommandName": "Restore-PnPTenantRecycleBinItem", "Id": 1288, - "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"", - "CommandName": "Set-PnPAzureADGroup" + "Rank": 2, + "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" }, { - "Rank": 2, + "CommandName": "Restore-PnPTenantSite", "Id": 1289, - "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"", - "CommandName": "Set-PnPAzureADGroup" + "Rank": 1, + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Rank": 3, + "CommandName": "Restore-PnPTenantSite", "Id": 1290, - "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com", - "CommandName": "Set-PnPAzureADGroup" + "Rank": 2, + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" }, { - "Rank": 1, + "CommandName": "Restore-PnPTenantSite", "Id": 1291, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"", - "CommandName": "Set-PnPBrowserIdleSignout" + "Rank": 3, + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait" }, { - "Rank": 2, + "CommandName": "Revoke-PnPAzureADAppSitePermission", "Id": 1292, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)", - "CommandName": "Set-PnPBrowserIdleSignout" + "Rank": 1, + "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa" }, { - "Rank": 3, + "CommandName": "Revoke-PnPHubSiteRights", "Id": 1293, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false", - "CommandName": "Set-PnPBrowserIdleSignout" + "Rank": 1, + "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Rank": 1, + "CommandName": "Revoke-PnPSiteDesignRights", "Id": 1294, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false", - "CommandName": "Set-PnPBuiltInDesignPackageVisibility" + "Rank": 1, + "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Rank": 2, + "CommandName": "Revoke-PnPTenantServicePrincipalPermission", "Id": 1295, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true", - "CommandName": "Set-PnPBuiltInDesignPackageVisibility" + "Rank": 1, + "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" }, { - "Rank": 1, + "CommandName": "Revoke-PnPUserSession", "Id": 1296, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false", - "CommandName": "Set-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Revoke-PnPUserSession -User user1@contoso.com" }, { - "Rank": 2, + "CommandName": "Save-PnPPageConversionLog", "Id": 1297, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true", - "CommandName": "Set-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Save-PnPPageConversionLog" }, { - "Rank": 3, + "CommandName": "Save-PnPSiteTemplate", "Id": 1298, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true", - "CommandName": "Set-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp" }, { - "Rank": 4, + "CommandName": "Save-PnPTenantTemplate", "Id": 1299, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false", - "CommandName": "Set-PnPBuiltInSiteTemplateSettings" + "Rank": 1, + "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp" }, { - "Rank": 1, + "CommandName": "Send-PnPMail", "Id": 1300, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"", - "CommandName": "Set-PnPContentType" + "Rank": 1, + "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\"" }, { - "Rank": 2, + "CommandName": "Send-PnPMail", "Id": 1301, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden", - "CommandName": "Set-PnPContentType" + "Rank": 2, + "Command": "Send-PnPMail -From \"sharedmailbox@contoso.onmicrosoft.com\" -To \"recipient1@contoso.com\",\"recipient2@contoso.com\",\"recipient3@contoso.com\" -Cc \"recipient4@contoso.com\" -Bcc \"recipient5@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Importance Low" }, { - "Rank": 3, + "CommandName": "Send-PnPMail", "Id": 1302, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"", - "CommandName": "Set-PnPContentType" + "Rank": 3, + "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"" }, { - "Rank": 4, + "CommandName": "Send-PnPMail", "Id": 1303, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'", - "CommandName": "Set-PnPContentType" + "Rank": 4, + "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.onmicrosoft.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server contoso.mail.protection.outlook.com" }, { - "Rank": 5, + "CommandName": "Send-PnPMail", "Id": 1304, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'", - "CommandName": "Set-PnPContentType" + "Rank": 5, + "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com" }, { - "Rank": 1, + "CommandName": "Send-PnPMail", "Id": 1305, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"", - "CommandName": "Set-PnPDefaultColumnValues" + "Rank": 6, + "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com -Port 587 -EnableSsl:$true -Username \"userxyz\" -Password \"password123\"" }, { - "Rank": 2, + "CommandName": "Set-PnPAdaptiveScopeProperty", "Id": 1306, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"", - "CommandName": "Set-PnPDefaultColumnValues" + "Rank": 1, + "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue" }, { - "Rank": 3, + "CommandName": "Set-PnPApplicationCustomizer", "Id": 1307, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"", - "CommandName": "Set-PnPDefaultColumnValues" + "Rank": 1, + "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Rank": 4, + "CommandName": "Set-PnPApplicationCustomizer", "Id": 1308, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"", - "CommandName": "Set-PnPDefaultColumnValues" + "Rank": 2, + "Command": "Set-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"" }, { - "Rank": 1, + "CommandName": "Set-PnPAppSideLoading", "Id": 1309, - "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"", - "CommandName": "Set-PnPDefaultContentTypeToList" + "Rank": 1, + "Command": "Set-PnPAppSideLoading -On" }, { - "Rank": 1, + "CommandName": "Set-PnPAppSideLoading", "Id": 1310, - "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx", - "CommandName": "Set-PnPDefaultPageLayout" + "Rank": 2, + "Command": "Set-PnPAppSideLoading -Off" }, { - "Rank": 2, + "CommandName": "Set-PnPAuditing", "Id": 1311, - "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx", - "CommandName": "Set-PnPDefaultPageLayout" + "Rank": 1, + "Command": "Set-PnPAuditing -EnableAll" }, { - "Rank": 3, + "CommandName": "Set-PnPAuditing", "Id": 1312, - "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite", - "CommandName": "Set-PnPDefaultPageLayout" + "Rank": 2, + "Command": "Set-PnPAuditing -DisableAll" }, { - "Rank": 1, + "CommandName": "Set-PnPAuditing", "Id": 1313, - "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant", - "CommandName": "Set-PnPDisableSpacesActivation" + "Rank": 3, + "Command": "Set-PnPAuditing -RetentionTime 7" }, { - "Rank": 2, + "CommandName": "Set-PnPAuditing", "Id": 1314, - "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"", - "CommandName": "Set-PnPDisableSpacesActivation" + "Rank": 4, + "Command": "Set-PnPAuditing -TrimAuditLog" }, { - "Rank": 3, + "CommandName": "Set-PnPAuditing", "Id": 1315, - "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"", - "CommandName": "Set-PnPDisableSpacesActivation" + "Rank": 5, + "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent" }, { - "Rank": 1, + "CommandName": "Set-PnPAvailablePageLayouts", "Id": 1316, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField", - "CommandName": "Set-PnPDocumentSetField" + "Rank": 1, + "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts" }, { - "Rank": 2, + "CommandName": "Set-PnPAzureADAppSitePermission", "Id": 1317, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField", - "CommandName": "Set-PnPDocumentSetField" + "Rank": 1, + "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read" }, { - "Rank": 1, + "CommandName": "Set-PnPAzureADAppSitePermission", "Id": 1318, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}", - "CommandName": "Set-PnPField" + "Rank": 2, + "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects" }, { - "Rank": 2, + "CommandName": "Set-PnPAzureADGroup", "Id": 1319, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists", - "CommandName": "Set-PnPField" + "Rank": 1, + "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"" }, { - "Rank": 3, + "CommandName": "Set-PnPAzureADGroup", "Id": 1320, - "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}", - "CommandName": "Set-PnPField" + "Rank": 2, + "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" }, { - "Rank": 1, + "CommandName": "Set-PnPAzureADGroup", "Id": 1321, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"", - "CommandName": "Set-PnPFileCheckedIn" + "Rank": 3, + "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com" }, { - "Rank": 2, + "CommandName": "Set-PnPBrowserIdleSignout", "Id": 1322, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"", - "CommandName": "Set-PnPFileCheckedIn" + "Rank": 1, + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"" }, { - "Rank": 1, + "CommandName": "Set-PnPBrowserIdleSignout", "Id": 1323, - "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"", - "CommandName": "Set-PnPFileCheckedOut" + "Rank": 2, + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)" }, { - "Rank": 1, + "CommandName": "Set-PnPBrowserIdleSignout", "Id": 1324, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'", - "CommandName": "Set-PnPFolderPermission" + "Rank": 3, + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false" }, { - "Rank": 2, + "CommandName": "Set-PnPBuiltInDesignPackageVisibility", "Id": 1325, - "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'", - "CommandName": "Set-PnPFolderPermission" + "Rank": 1, + "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false" }, { - "Rank": 3, + "CommandName": "Set-PnPBuiltInDesignPackageVisibility", "Id": 1326, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting", - "CommandName": "Set-PnPFolderPermission" + "Rank": 2, + "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true" }, { - "Rank": 1, + "CommandName": "Set-PnPBuiltInSiteTemplateSettings", "Id": 1327, - "Command": "Set-PnPFooter -Enabled:$true", - "CommandName": "Set-PnPFooter" + "Rank": 1, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false" }, { - "Rank": 2, + "CommandName": "Set-PnPBuiltInSiteTemplateSettings", "Id": 1328, - "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral", - "CommandName": "Set-PnPFooter" + "Rank": 2, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true" }, { - "Rank": 3, + "CommandName": "Set-PnPBuiltInSiteTemplateSettings", "Id": 1329, - "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"", - "CommandName": "Set-PnPFooter" + "Rank": 3, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true" }, { - "Rank": 4, + "CommandName": "Set-PnPBuiltInSiteTemplateSettings", "Id": 1330, - "Command": "Set-PnPFooter -LogoUrl \"\"", - "CommandName": "Set-PnPFooter" + "Rank": 4, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false" }, { - "Rank": 1, + "CommandName": "Set-PnPContentType", "Id": 1331, - "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"", - "CommandName": "Set-PnPGraphSubscription" + "Rank": 1, + "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"" }, { - "Rank": 1, + "CommandName": "Set-PnPContentType", "Id": 1332, - "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members", - "CommandName": "Set-PnPGroup" + "Rank": 2, + "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden" }, { - "Rank": 2, + "CommandName": "Set-PnPContentType", "Id": 1333, - "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'", - "CommandName": "Set-PnPGroup" + "Rank": 3, + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"" }, { - "Rank": 1, + "CommandName": "Set-PnPContentType", "Id": 1334, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute", - "CommandName": "Set-PnPGroupPermissions" + "Rank": 4, + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" }, { - "Rank": 2, + "CommandName": "Set-PnPContentType", "Id": 1335, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'", - "CommandName": "Set-PnPGroupPermissions" + "Rank": 5, + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" }, { - "Rank": 3, + "CommandName": "Set-PnPDefaultColumnValues", "Id": 1336, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')", - "CommandName": "Set-PnPGroupPermissions" + "Rank": 1, + "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"" }, { - "Rank": 4, + "CommandName": "Set-PnPDefaultColumnValues", "Id": 1337, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')", - "CommandName": "Set-PnPGroupPermissions" + "Rank": 2, + "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"" }, { - "Rank": 5, + "CommandName": "Set-PnPDefaultColumnValues", "Id": 1338, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')", - "CommandName": "Set-PnPGroupPermissions" + "Rank": 3, + "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"" }, { - "Rank": 1, + "CommandName": "Set-PnPDefaultColumnValues", "Id": 1339, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true", - "CommandName": "Set-PnPHideDefaultThemes" + "Rank": 4, + "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"" }, { - "Rank": 2, + "CommandName": "Set-PnPDefaultContentTypeToList", "Id": 1340, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false", - "CommandName": "Set-PnPHideDefaultThemes" + "Rank": 1, + "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"" }, { - "Rank": 1, + "CommandName": "Set-PnPDefaultPageLayout", "Id": 1341, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx", - "CommandName": "Set-PnPHomePage" + "Rank": 1, + "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx" }, { - "Rank": 2, + "CommandName": "Set-PnPDefaultPageLayout", "Id": 1342, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx", - "CommandName": "Set-PnPHomePage" + "Rank": 2, + "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx" }, { - "Rank": 1, + "CommandName": "Set-PnPDefaultPageLayout", "Id": 1343, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"", - "CommandName": "Set-PnPHomeSite" + "Rank": 3, + "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite" }, { - "Rank": 2, + "CommandName": "Set-PnPDisableSpacesActivation", "Id": 1344, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true", - "CommandName": "Set-PnPHomeSite" + "Rank": 1, + "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant" }, { - "Rank": 1, + "CommandName": "Set-PnPDisableSpacesActivation", "Id": 1345, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"", - "CommandName": "Set-PnPHubSite" + "Rank": 2, + "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"" }, { - "Rank": 2, + "CommandName": "Set-PnPDisableSpacesActivation", "Id": 1346, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"", - "CommandName": "Set-PnPHubSite" + "Rank": 3, + "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"" }, { - "Rank": 3, + "CommandName": "Set-PnPDocumentSetField", "Id": 1347, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745", - "CommandName": "Set-PnPHubSite" + "Rank": 1, + "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField" }, { - "Rank": 4, + "CommandName": "Set-PnPDocumentSetField", "Id": 1348, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"", - "CommandName": "Set-PnPHubSite" + "Rank": 2, + "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField" }, { - "Rank": 5, + "CommandName": "Set-PnPField", "Id": 1349, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync", - "CommandName": "Set-PnPHubSite" + "Rank": 1, + "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}" }, { - "Rank": 6, + "CommandName": "Set-PnPField", "Id": 1350, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false", - "CommandName": "Set-PnPHubSite" + "Rank": 2, + "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists" }, { - "Rank": 1, + "CommandName": "Set-PnPField", "Id": 1351, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"", - "CommandName": "Set-PnPImageListItemColumn" + "Rank": 3, + "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}" }, { - "Rank": 2, + "CommandName": "Set-PnPFileCheckedIn", "Id": 1352, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png", - "CommandName": "Set-PnPImageListItemColumn" + "Rank": 1, + "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"" }, { - "Rank": 1, + "CommandName": "Set-PnPFileCheckedIn", "Id": 1353, - "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName", - "CommandName": "Set-PnPIndexedProperties" + "Rank": 2, + "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"" }, { - "Rank": 1, + "CommandName": "Set-PnPFileCheckedOut", "Id": 1354, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true", - "CommandName": "Set-PnPInPlaceRecordsManagement" + "Rank": 1, + "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"" }, { - "Rank": 2, + "CommandName": "Set-PnPFolderPermission", "Id": 1355, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false", - "CommandName": "Set-PnPInPlaceRecordsManagement" + "Rank": 1, + "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Rank": 1, + "CommandName": "Set-PnPFolderPermission", "Id": 1356, - "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"", - "CommandName": "Set-PnPKnowledgeHubSite" + "Rank": 2, + "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Rank": 1, + "CommandName": "Set-PnPFolderPermission", "Id": 1357, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true", - "CommandName": "Set-PnPList" + "Rank": 3, + "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" }, { - "Rank": 2, + "CommandName": "Set-PnPFooter", "Id": 1358, - "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true", - "CommandName": "Set-PnPList" + "Rank": 1, + "Command": "Set-PnPFooter -Enabled:$true" }, { - "Rank": 3, + "CommandName": "Set-PnPFooter", "Id": 1359, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true", - "CommandName": "Set-PnPList" + "Rank": 2, + "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral" }, { - "Rank": 4, + "CommandName": "Set-PnPFooter", "Id": 1360, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20", - "CommandName": "Set-PnPList" + "Rank": 3, + "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"" }, { - "Rank": 5, + "CommandName": "Set-PnPFooter", "Id": 1361, - "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5", - "CommandName": "Set-PnPList" + "Rank": 4, + "Command": "Set-PnPFooter -LogoUrl \"\"" }, { - "Rank": 6, + "CommandName": "Set-PnPGraphSubscription", "Id": 1362, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true", - "CommandName": "Set-PnPList" + "Rank": 1, + "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"" }, { - "Rank": 7, + "CommandName": "Set-PnPGroup", "Id": 1363, - "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"", - "CommandName": "Set-PnPList" + "Rank": 1, + "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members" }, { - "Rank": 8, + "CommandName": "Set-PnPGroup", "Id": 1364, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true", - "CommandName": "Set-PnPList" + "Rank": 2, + "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'" }, { - "Rank": 9, + "CommandName": "Set-PnPGroupPermissions", "Id": 1365, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500", - "CommandName": "Set-PnPList" + "Rank": 1, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute" }, { - "Rank": 10, + "CommandName": "Set-PnPGroupPermissions", "Id": 1366, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500", - "CommandName": "Set-PnPList" + "Rank": 2, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'" }, { - "Rank": 11, + "CommandName": "Set-PnPGroupPermissions", "Id": 1367, - "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"", - "CommandName": "Set-PnPList" + "Rank": 3, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')" }, { - "Rank": 1, + "CommandName": "Set-PnPGroupPermissions", "Id": 1368, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true", - "CommandName": "Set-PnPListInformationRightsManagement" + "Rank": 4, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')" }, { - "Rank": 2, + "CommandName": "Set-PnPGroupPermissions", "Id": 1369, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14", - "CommandName": "Set-PnPListInformationRightsManagement" + "Rank": 5, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')" }, { - "Rank": 1, + "CommandName": "Set-PnPHideDefaultThemes", "Id": 1370, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "Set-PnPListItem" + "Rank": 1, + "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true" }, { - "Rank": 2, + "CommandName": "Set-PnPHideDefaultThemes", "Id": 1371, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "Set-PnPListItem" + "Rank": 2, + "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false" }, { - "Rank": 3, + "CommandName": "Set-PnPHomePage", "Id": 1372, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", - "CommandName": "Set-PnPListItem" + "Rank": 1, + "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx" }, { - "Rank": 4, + "CommandName": "Set-PnPHomePage", "Id": 1373, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"", - "CommandName": "Set-PnPListItem" + "Rank": 2, + "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx" }, { - "Rank": 5, + "CommandName": "Set-PnPHomeSite", "Id": 1374, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion", - "CommandName": "Set-PnPListItem" + "Rank": 1, + "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"" }, { - "Rank": 1, + "CommandName": "Set-PnPHomeSite", "Id": 1375, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4", - "CommandName": "Set-PnPListItemAsRecord" + "Rank": 2, + "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true" }, { - "Rank": 2, + "CommandName": "Set-PnPHomeSite", "Id": 1376, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date", - "CommandName": "Set-PnPListItemAsRecord" + "Rank": 3, + "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true -DraftMode:$true" }, { - "Rank": 1, + "CommandName": "Set-PnPHubSite", "Id": 1377, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'", - "CommandName": "Set-PnPListItemPermission" + "Rank": 1, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"" }, { - "Rank": 2, + "CommandName": "Set-PnPHubSite", "Id": 1378, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'", - "CommandName": "Set-PnPListItemPermission" + "Rank": 2, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"" }, { - "Rank": 3, + "CommandName": "Set-PnPHubSite", "Id": 1379, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting", - "CommandName": "Set-PnPListItemPermission" + "Rank": 3, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745" }, { - "Rank": 4, + "CommandName": "Set-PnPHubSite", "Id": 1380, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions", - "CommandName": "Set-PnPListItemPermission" + "Rank": 4, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"" }, { - "Rank": 5, + "CommandName": "Set-PnPHubSite", "Id": 1381, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"", - "CommandName": "Set-PnPListItemPermission" + "Rank": 5, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync" }, { - "Rank": 1, + "CommandName": "Set-PnPHubSite", "Id": 1382, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'", - "CommandName": "Set-PnPListPermission" + "Rank": 6, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false" }, { - "Rank": 2, + "CommandName": "Set-PnPImageListItemColumn", "Id": 1383, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'", - "CommandName": "Set-PnPListPermission" + "Rank": 1, + "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"" }, { - "Rank": 1, + "CommandName": "Set-PnPImageListItemColumn", "Id": 1384, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration", - "CommandName": "Set-PnPListRecordDeclaration" + "Rank": 2, + "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png" }, { - "Rank": 2, + "CommandName": "Set-PnPIndexedProperties", "Id": 1385, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true", - "CommandName": "Set-PnPListRecordDeclaration" + "Rank": 1, + "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName" }, { - "Rank": 1, + "CommandName": "Set-PnPInPlaceRecordsManagement", "Id": 1386, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master", - "CommandName": "Set-PnPMasterPage" + "Rank": 1, + "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true" }, { - "Rank": 2, + "CommandName": "Set-PnPInPlaceRecordsManagement", "Id": 1387, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master", - "CommandName": "Set-PnPMasterPage" + "Rank": 2, + "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false" }, { - "Rank": 3, + "CommandName": "Set-PnPKnowledgeHubSite", "Id": 1388, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master", - "CommandName": "Set-PnPMasterPage" + "Rank": 1, + "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"" }, { - "Rank": 4, + "CommandName": "Set-PnPList", "Id": 1389, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master", - "CommandName": "Set-PnPMasterPage" + "Rank": 1, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true" }, { - "Rank": 1, + "CommandName": "Set-PnPList", "Id": 1390, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" + "Rank": 2, + "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true" }, { - "Rank": 2, + "CommandName": "Set-PnPList", "Id": 1391, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" + "Rank": 3, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true" }, { - "Rank": 3, + "CommandName": "Set-PnPList", "Id": 1392, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived", - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" + "Rank": 4, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20" }, { - "Rank": 1, + "CommandName": "Set-PnPList", "Id": 1393, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" + "Rank": 5, + "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5" }, { - "Rank": 2, + "CommandName": "Set-PnPList", "Id": 1394, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" + "Rank": 6, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true" }, { - "Rank": 3, + "CommandName": "Set-PnPList", "Id": 1395, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite", - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" + "Rank": 7, + "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"" }, { - "Rank": 1, + "CommandName": "Set-PnPList", "Id": 1396, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" + "Rank": 8, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true" }, { - "Rank": 2, + "CommandName": "Set-PnPList", "Id": 1397, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" + "Rank": 9, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500" }, { - "Rank": 3, + "CommandName": "Set-PnPList", "Id": 1398, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" + "Rank": 10, + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500" }, { - "Rank": 1, + "CommandName": "Set-PnPList", "Id": 1399, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" + "Rank": 11, + "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"" }, { - "Rank": 2, + "CommandName": "Set-PnPListInformationRightsManagement", "Id": 1400, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" + "Rank": 1, + "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true" }, { - "Rank": 3, + "CommandName": "Set-PnPListInformationRightsManagement", "Id": 1401, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" + "Rank": 2, + "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14" }, { - "Rank": 1, + "CommandName": "Set-PnPListItem", "Id": 1402, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" + "Rank": 1, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 2, + "CommandName": "Set-PnPListItem", "Id": 1403, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" + "Rank": 2, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 3, + "CommandName": "Set-PnPListItem", "Id": 1404, - "Command": "Set-PnPMessageCenterAnnouncementAsRead", - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" + "Rank": 3, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Rank": 1, + "CommandName": "Set-PnPListItem", "Id": 1405, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" + "Rank": 4, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"" }, { - "Rank": 2, + "CommandName": "Set-PnPListItem", "Id": 1406, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"", - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" + "Rank": 5, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion" }, { - "Rank": 3, + "CommandName": "Set-PnPListItemAsRecord", "Id": 1407, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread", - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" + "Rank": 1, + "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4" }, { - "Rank": 1, + "CommandName": "Set-PnPListItemAsRecord", "Id": 1408, - "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 2, + "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date" }, { - "Rank": 2, + "CommandName": "Set-PnPListItemPermission", "Id": 1409, - "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 1, + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Rank": 3, + "CommandName": "Set-PnPListItemPermission", "Id": 1410, - "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 2, + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Rank": 4, + "CommandName": "Set-PnPListItemPermission", "Id": 1411, - "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 3, + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" }, { - "Rank": 5, + "CommandName": "Set-PnPListItemPermission", "Id": 1412, - "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 4, + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions" }, { - "Rank": 6, + "CommandName": "Set-PnPListItemPermission", "Id": 1413, - "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"", - "CommandName": "Set-PnPMicrosoft365Group" + "Rank": 5, + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"" }, { - "Rank": 1, + "CommandName": "Set-PnPListPermission", "Id": 1414, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}", - "CommandName": "Set-PnPMicrosoft365GroupSettings" + "Rank": 1, + "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Rank": 2, + "CommandName": "Set-PnPListPermission", "Id": 1415, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId", - "CommandName": "Set-PnPMicrosoft365GroupSettings" + "Rank": 2, + "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Rank": 1, + "CommandName": "Set-PnPListRecordDeclaration", "Id": 1416, - "Command": "Set-PnPMinimalDownloadStrategy -Off", - "CommandName": "Set-PnPMinimalDownloadStrategy" + "Rank": 1, + "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration" }, { - "Rank": 2, + "CommandName": "Set-PnPListRecordDeclaration", "Id": 1417, - "Command": "Set-PnPMinimalDownloadStrategy -On", - "CommandName": "Set-PnPMinimalDownloadStrategy" + "Rank": 2, + "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true" }, { - "Rank": 1, + "CommandName": "Set-PnPMasterPage", "Id": 1418, - "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"", - "CommandName": "Set-PnPPage" + "Rank": 1, + "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" }, { - "Rank": 2, + "CommandName": "Set-PnPMasterPage", "Id": 1419, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled", - "CommandName": "Set-PnPPage" + "Rank": 2, + "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" }, { - "Rank": 3, + "CommandName": "Set-PnPMasterPage", "Id": 1420, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false", - "CommandName": "Set-PnPPage" + "Rank": 3, + "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" }, { - "Rank": 4, + "CommandName": "Set-PnPMasterPage", "Id": 1421, - "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default", - "CommandName": "Set-PnPPage" + "Rank": 4, + "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" }, { - "Rank": 5, + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", "Id": 1422, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None", - "CommandName": "Set-PnPPage" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"" }, { - "Rank": 6, + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", "Id": 1423, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0", - "CommandName": "Set-PnPPage" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 7, + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", "Id": 1424, - "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)", - "CommandName": "Set-PnPPage" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsArchived" }, { - "Rank": 8, + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Id": 1425, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate", - "CommandName": "Set-PnPPage" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"" }, { - "Rank": 9, + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Id": 1426, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043", - "CommandName": "Set-PnPPage" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 10, + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Id": 1427, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035", - "CommandName": "Set-PnPPage" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite" }, { - "Rank": 11, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", "Id": 1428, - "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish", - "CommandName": "Set-PnPPage" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", "Id": 1429, - "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"", - "CommandName": "Set-PnPPageTextPart" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", "Id": 1430, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"", - "CommandName": "Set-PnPPageWebPart" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived" }, { - "Rank": 2, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", "Id": 1431, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties", - "CommandName": "Set-PnPPageWebPart" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", "Id": 1432, - "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"", - "CommandName": "Set-PnPPlannerBucket" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", "Id": 1433, - "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true", - "CommandName": "Set-PnPPlannerConfiguration" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite" }, { - "Rank": 2, + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", "Id": 1434, - "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false", - "CommandName": "Set-PnPPlannerConfiguration" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", "Id": 1435, - "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"", - "CommandName": "Set-PnPPlannerPlan" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", "Id": 1436, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01", - "CommandName": "Set-PnPPlannerTask" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsRead" }, { - "Rank": 2, + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", "Id": 1437, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"", - "CommandName": "Set-PnPPlannerTask" + "Rank": 1, + "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"" }, { - "Rank": 3, + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", "Id": 1438, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"", - "CommandName": "Set-PnPPlannerTask" + "Rank": 2, + "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", "Id": 1439, - "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"", - "CommandName": "Set-PnPPlannerUserPolicy" + "Rank": 3, + "Command": "Set-PnPMessageCenterAnnouncementAsUnread" }, { - "Rank": 1, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1440, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue", - "CommandName": "Set-PnPPropertyBagValue" + "Rank": 1, + "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"" }, { - "Rank": 2, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1441, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /", - "CommandName": "Set-PnPPropertyBagValue" + "Rank": 2, + "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" }, { - "Rank": 3, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1442, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder", - "CommandName": "Set-PnPPropertyBagValue" + "Rank": 3, + "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1443, - "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com", - "CommandName": "Set-PnPRequestAccessEmails" + "Rank": 4, + "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false" }, { - "Rank": 2, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1444, - "Command": "Set-PnPRequestAccessEmails -Disabled", - "CommandName": "Set-PnPRequestAccessEmails" + "Rank": 5, + "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com" }, { - "Rank": 3, + "CommandName": "Set-PnPMicrosoft365Group", "Id": 1445, - "Command": "Set-PnPRequestAccessEmails -Disabled:$false", - "CommandName": "Set-PnPRequestAccessEmails" + "Rank": 6, + "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Rank": 1, + "CommandName": "Set-PnPMicrosoft365GroupSettings", "Id": 1446, - "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\"", - "CommandName": "Set-PnPRetentionLabel" + "Rank": 1, + "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}" }, { - "Rank": 2, + "CommandName": "Set-PnPMicrosoft365GroupSettings", "Id": 1447, - "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true", - "CommandName": "Set-PnPRetentionLabel" + "Rank": 2, + "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId" }, { - "Rank": 3, + "CommandName": "Set-PnPMinimalDownloadStrategy", "Id": 1448, - "Command": "Set-PnPRetentionLabel -List \"Demo List\" -ItemIds @(1,2,3) -Label \"My demo label\"", - "CommandName": "Set-PnPRetentionLabel" + "Rank": 1, + "Command": "Set-PnPMinimalDownloadStrategy -Off" }, { - "Rank": 1, + "CommandName": "Set-PnPMinimalDownloadStrategy", "Id": 1449, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems", - "CommandName": "Set-PnPRoleDefinition" + "Rank": 2, + "Command": "Set-PnPMinimalDownloadStrategy -On" }, { - "Rank": 2, + "CommandName": "Set-PnPPage", "Id": 1450, - "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems", - "CommandName": "Set-PnPRoleDefinition" + "Rank": 1, + "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"" }, { - "Rank": 3, + "CommandName": "Set-PnPPage", "Id": 1451, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"", - "CommandName": "Set-PnPRoleDefinition" + "Rank": 2, + "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled" }, { - "Rank": 4, + "CommandName": "Set-PnPPage", "Id": 1452, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500", - "CommandName": "Set-PnPRoleDefinition" + "Rank": 3, + "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false" }, { - "Rank": 1, + "CommandName": "Set-PnPPage", "Id": 1453, - "Command": "Set-PnPSearchConfiguration -Configuration $config", - "CommandName": "Set-PnPSearchConfiguration" + "Rank": 4, + "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default" }, { - "Rank": 2, + "CommandName": "Set-PnPPage", "Id": 1454, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site", - "CommandName": "Set-PnPSearchConfiguration" + "Rank": 5, + "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None" }, { - "Rank": 3, + "CommandName": "Set-PnPPage", "Id": 1455, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription", - "CommandName": "Set-PnPSearchConfiguration" + "Rank": 6, + "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0" }, { - "Rank": 4, + "CommandName": "Set-PnPPage", "Id": 1456, - "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", - "CommandName": "Set-PnPSearchConfiguration" + "Rank": 7, + "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)" }, { - "Rank": 1, + "CommandName": "Set-PnPPage", "Id": 1457, - "Command": "Set-PnPSearchExternalItem -ConnectionId \"pnppowershell\" -ItemId \"12345\" -Properties @{ \"Test1\"= \"Test of this PnP PowerShell Connector\"; \"Test2\" = \"Red\",\"Blue\"; \"Test3\" = ([System.DateTime]::Now)} -ContentValue \"Sample value\" -ContentType Text -GrantEveryone", - "CommandName": "Set-PnPSearchExternalItem" + "Rank": 8, + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate" }, { - "Rank": 2, + "CommandName": "Set-PnPPage", "Id": 1458, - "Command": "Set-PnPSearchExternalItem -ConnectionId \"pnppowershell\" -ItemId \"12345\" -Properties @{ \"Test1\"= \"Test of this PnP PowerShell Connector\"; \"Test2\" = \"Red\",\"Blue\"; \"Test3\" = ([System.DateTime]::Now)} -ContentValue \"Sample value\" -ContentType Text -GrantUsers \"user@contoso.onmicrosoft.com\"", - "CommandName": "Set-PnPSearchExternalItem" + "Rank": 9, + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043" }, { - "Rank": 1, + "CommandName": "Set-PnPPage", "Id": 1459, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site", - "CommandName": "Set-PnPSearchSettings" + "Rank": 10, + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035" }, { - "Rank": 2, + "CommandName": "Set-PnPPage", "Id": 1460, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web", - "CommandName": "Set-PnPSearchSettings" + "Rank": 11, + "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish" }, { - "Rank": 3, + "CommandName": "Set-PnPPage", "Id": 1461, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"", - "CommandName": "Set-PnPSearchSettings" + "Rank": 12, + "Command": "Set-PnPPage -Identity \"MyPage.aspx\" -Like" }, { - "Rank": 4, + "CommandName": "Set-PnPPage", "Id": 1462, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"", - "CommandName": "Set-PnPSearchSettings" + "Rank": 13, + "Command": "Set-PnPPage -Identity \"MyPage.aspx\" -Like:$false" }, { - "Rank": 5, + "CommandName": "Set-PnPPageTextPart", "Id": 1463, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site", - "CommandName": "Set-PnPSearchSettings" + "Rank": 1, + "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"" }, { - "Rank": 6, + "CommandName": "Set-PnPPageWebPart", "Id": 1464, - "Command": "Set-PnPSearchSettings -SearchScope Tenant", - "CommandName": "Set-PnPSearchSettings" + "Rank": 1, + "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"" }, { - "Rank": 7, + "CommandName": "Set-PnPPageWebPart", "Id": 1465, - "Command": "Set-PnPSearchSettings -SearchScope Hub", - "CommandName": "Set-PnPSearchSettings" + "Rank": 2, + "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties" }, { - "Rank": 1, + "CommandName": "Set-PnPPlannerBucket", "Id": 1466, - "Command": "Set-PnPSite -Classification \"HBI\"", - "CommandName": "Set-PnPSite" + "Rank": 1, + "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"" }, { - "Rank": 2, + "CommandName": "Set-PnPPlannerConfiguration", "Id": 1467, - "Command": "Set-PnPSite -Classification $null", - "CommandName": "Set-PnPSite" + "Rank": 1, + "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true" }, { - "Rank": 3, + "CommandName": "Set-PnPPlannerConfiguration", "Id": 1468, - "Command": "Set-PnPSite -DisableFlows", - "CommandName": "Set-PnPSite" + "Rank": 2, + "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false" }, { - "Rank": 4, + "CommandName": "Set-PnPPlannerPlan", "Id": 1469, - "Command": "Set-PnPSite -DisableFlows:$false", - "CommandName": "Set-PnPSite" + "Rank": 1, + "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"" }, { - "Rank": 5, + "CommandName": "Set-PnPPlannerTask", "Id": 1470, - "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png", - "CommandName": "Set-PnPSite" + "Rank": 1, + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01" }, { - "Rank": 6, + "CommandName": "Set-PnPPlannerTask", "Id": 1471, - "Command": "Set-PnPSite -NoScriptSite $false", - "CommandName": "Set-PnPSite" + "Rank": 2, + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"" }, { - "Rank": 1, + "CommandName": "Set-PnPPlannerTask", "Id": 1472, - "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Archived", - "CommandName": "Set-PnPSiteArchiveState" + "Rank": 3, + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" }, { - "Rank": 2, + "CommandName": "Set-PnPPlannerUserPolicy", "Id": 1473, - "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Active", - "CommandName": "Set-PnPSiteArchiveState" + "Rank": 1, + "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" }, { - "Rank": 1, + "CommandName": "Set-PnPPropertyBagValue", "Id": 1474, - "Command": "Set-PnPSiteClassification -Identity \"LBI\"", - "CommandName": "Set-PnPSiteClassification" + "Rank": 1, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue" }, { - "Rank": 1, + "CommandName": "Set-PnPPropertyBagValue", "Id": 1475, - "Command": "Set-PnPSiteClosure -State Open", - "CommandName": "Set-PnPSiteClosure" + "Rank": 2, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /" }, { - "Rank": 2, + "CommandName": "Set-PnPPropertyBagValue", "Id": 1476, - "Command": "Set-PnPSiteClosure -State Closed", - "CommandName": "Set-PnPSiteClosure" + "Rank": 3, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder" }, { - "Rank": 1, + "CommandName": "Set-PnPRequestAccessEmails", "Id": 1477, - "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"", - "CommandName": "Set-PnPSiteDesign" + "Rank": 1, + "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com" }, { - "Rank": 2, + "CommandName": "Set-PnPRequestAccessEmails", "Id": 1478, - "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Company Design\" -Description \"My description\" -ThumbnailUrl \"https://contoso.sharepoint.com/sites/templates/my images/logo.png\"", - "CommandName": "Set-PnPSiteDesign" + "Rank": 2, + "Command": "Set-PnPRequestAccessEmails -Disabled" }, { - "Rank": 1, + "CommandName": "Set-PnPRequestAccessEmails", "Id": 1479, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"", - "CommandName": "Set-PnPSiteGroup" + "Rank": 3, + "Command": "Set-PnPRequestAccessEmails -Disabled:$false" }, { - "Rank": 2, + "CommandName": "Set-PnPRetentionLabel", "Id": 1480, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com", - "CommandName": "Set-PnPSiteGroup" + "Rank": 1, + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\"" }, { - "Rank": 1, + "CommandName": "Set-PnPRetentionLabel", "Id": 1481, - "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"", - "CommandName": "Set-PnPSitePolicy" + "Rank": 2, + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true" }, { - "Rank": 1, + "CommandName": "Set-PnPRetentionLabel", "Id": 1482, - "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"", - "CommandName": "Set-PnPSiteScript" + "Rank": 3, + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -ItemIds @(1,2,3) -Label \"My demo label\"" }, { - "Rank": 1, + "CommandName": "Set-PnPRoleDefinition", "Id": 1483, - "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"", - "CommandName": "Set-PnPSiteScriptPackage" + "Rank": 1, + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems" }, { - "Rank": 1, + "CommandName": "Set-PnPRoleDefinition", "Id": 1484, - "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"", - "CommandName": "Set-PnPSiteSensitivityLabel" + "Rank": 2, + "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems" }, { - "Rank": 2, + "CommandName": "Set-PnPRoleDefinition", "Id": 1485, - "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7", - "CommandName": "Set-PnPSiteSensitivityLabel" + "Rank": 3, + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"" }, { - "Rank": 1, + "CommandName": "Set-PnPRoleDefinition", "Id": 1486, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Rank": 4, + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500" }, { - "Rank": 2, + "CommandName": "Set-PnPSearchConfiguration", "Id": 1487, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Rank": 1, + "Command": "Set-PnPSearchConfiguration -Configuration $config" }, { - "Rank": 3, + "CommandName": "Set-PnPSearchConfiguration", "Id": 1488, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Rank": 2, + "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site" }, { - "Rank": 4, + "CommandName": "Set-PnPSearchConfiguration", "Id": 1489, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Rank": 3, + "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription" + }, + { + "CommandName": "Set-PnPSearchConfiguration", + "Id": 1490, + "Rank": 4, + "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" + }, + { + "CommandName": "Set-PnPSearchExternalItem", + "Id": 1491, + "Rank": 1, + "Command": "Set-PnPSearchExternalItem -ConnectionId \"pnppowershell\" -ItemId \"12345\" -Properties @{ \"Test1\"= \"Test of this PnP PowerShell Connector\"; \"Test2\" = \"Red\",\"Blue\"; \"Test3\" = ([System.DateTime]::Now)} -ContentValue \"Sample value\" -ContentType Text -GrantEveryone" + }, + { + "CommandName": "Set-PnPSearchExternalItem", + "Id": 1492, + "Rank": 2, + "Command": "Set-PnPSearchExternalItem -ConnectionId \"pnppowershell\" -ItemId \"12345\" -Properties @{ \"Test1\"= \"Test of this PnP PowerShell Connector\"; \"Test2\" = \"Red\",\"Blue\"; \"Test3\" = ([System.DateTime]::Now)} -ContentValue \"Sample value\" -ContentType Text -GrantUsers \"user@contoso.onmicrosoft.com\"" }, { + "CommandName": "Set-PnPSearchSettings", + "Id": 1493, + "Rank": 1, + "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1494, + "Rank": 2, + "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1495, + "Rank": 3, + "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1496, + "Rank": 4, + "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1497, + "Rank": 5, + "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1498, + "Rank": 6, + "Command": "Set-PnPSearchSettings -SearchScope Tenant" + }, + { + "CommandName": "Set-PnPSearchSettings", + "Id": 1499, + "Rank": 7, + "Command": "Set-PnPSearchSettings -SearchScope Hub" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1500, + "Rank": 1, + "Command": "Set-PnPSite -Classification \"HBI\"" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1501, + "Rank": 2, + "Command": "Set-PnPSite -Classification $null" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1502, + "Rank": 3, + "Command": "Set-PnPSite -DisableFlows" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1503, + "Rank": 4, + "Command": "Set-PnPSite -DisableFlows:$false" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1504, + "Rank": 5, + "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png" + }, + { + "CommandName": "Set-PnPSite", + "Id": 1505, + "Rank": 6, + "Command": "Set-PnPSite -NoScriptSite $false" + }, + { + "CommandName": "Set-PnPSiteArchiveState", + "Id": 1506, + "Rank": 1, + "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Archived" + }, + { + "CommandName": "Set-PnPSiteArchiveState", + "Id": 1507, + "Rank": 2, + "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Active" + }, + { + "CommandName": "Set-PnPSiteClassification", + "Id": 1508, + "Rank": 1, + "Command": "Set-PnPSiteClassification -Identity \"LBI\"" + }, + { + "CommandName": "Set-PnPSiteClosure", + "Id": 1509, + "Rank": 1, + "Command": "Set-PnPSiteClosure -State Open" + }, + { + "CommandName": "Set-PnPSiteClosure", + "Id": 1510, + "Rank": 2, + "Command": "Set-PnPSiteClosure -State Closed" + }, + { + "CommandName": "Set-PnPSiteDesign", + "Id": 1511, + "Rank": 1, + "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"" + }, + { + "CommandName": "Set-PnPSiteDesign", + "Id": 1512, + "Rank": 2, + "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Company Design\" -Description \"My description\" -ThumbnailUrl \"https://contoso.sharepoint.com/sites/templates/my images/logo.png\"" + }, + { + "CommandName": "Set-PnPSiteGroup", + "Id": 1513, + "Rank": 1, + "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"" + }, + { + "CommandName": "Set-PnPSiteGroup", + "Id": 1514, + "Rank": 2, + "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com" + }, + { + "CommandName": "Set-PnPSitePolicy", + "Id": 1515, + "Rank": 1, + "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"" + }, + { + "CommandName": "Set-PnPSiteScript", + "Id": 1516, + "Rank": 1, + "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" + }, + { + "CommandName": "Set-PnPSiteScriptPackage", + "Id": 1517, + "Rank": 1, + "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" + }, + { + "CommandName": "Set-PnPSiteSensitivityLabel", + "Id": 1518, + "Rank": 1, + "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"" + }, + { + "CommandName": "Set-PnPSiteSensitivityLabel", + "Id": 1519, + "Rank": 2, + "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7" + }, + { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1520, + "Rank": 1, + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"" + }, + { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1521, + "Rank": 2, + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"" + }, + { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1522, + "Rank": 3, + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" + }, + { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1523, + "Rank": 4, + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" + }, + { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1524, "Rank": 5, - "Id": 1490, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" }, { + "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1525, "Rank": 6, - "Id": 1491, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}", - "CommandName": "Set-PnPSiteTemplateMetadata" + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1526, "Rank": 1, - "Id": 1492, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1527, "Rank": 2, - "Id": 1493, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1528, "Rank": 3, - "Id": 1494, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1529, "Rank": 4, - "Id": 1495, - "Command": "Set-PnPSiteVersionPolicy -InheritFromTenant", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -InheritFromTenant" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1530, "Rank": 5, - "Id": 1496, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1531, "Rank": 6, - "Id": 1497, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1532, "Rank": 7, - "Id": 1498, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1533, "Rank": 8, - "Id": 1499, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1534, "Rank": 9, - "Id": 1500, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1535, "Rank": 10, - "Id": 1501, - "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries" }, { + "CommandName": "Set-PnPSiteVersionPolicy", + "Id": 1536, "Rank": 11, - "Id": 1502, - "Command": "Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries", - "CommandName": "Set-PnPSiteVersionPolicy" + "Command": "Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries" }, { + "CommandName": "Set-PnPStorageEntity", + "Id": 1537, "Rank": 1, - "Id": 1503, - "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"", - "CommandName": "Set-PnPStorageEntity" + "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" }, { + "CommandName": "Set-PnPStorageEntity", + "Id": 1538, "Rank": 2, - "Id": 1504, - "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"", - "CommandName": "Set-PnPStorageEntity" + "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" }, { + "CommandName": "Set-PnPStructuralNavigationCacheSiteState", + "Id": 1539, "Rank": 1, - "Id": 1505, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", - "CommandName": "Set-PnPStructuralNavigationCacheSiteState" + "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { + "CommandName": "Set-PnPStructuralNavigationCacheSiteState", + "Id": 1540, "Rank": 2, - "Id": 1506, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", - "CommandName": "Set-PnPStructuralNavigationCacheSiteState" + "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { + "CommandName": "Set-PnPStructuralNavigationCacheWebState", + "Id": 1541, "Rank": 1, - "Id": 1507, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", - "CommandName": "Set-PnPStructuralNavigationCacheWebState" + "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { + "CommandName": "Set-PnPStructuralNavigationCacheWebState", + "Id": 1542, "Rank": 2, - "Id": 1508, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", - "CommandName": "Set-PnPStructuralNavigationCacheWebState" + "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { + "CommandName": "Set-PnPSubscribeSharePointNewsDigest", + "Id": 1543, "Rank": 1, - "Id": 1509, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true", - "CommandName": "Set-PnPSubscribeSharePointNewsDigest" + "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true" }, { + "CommandName": "Set-PnPSubscribeSharePointNewsDigest", + "Id": 1544, "Rank": 2, - "Id": 1510, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false", - "CommandName": "Set-PnPSubscribeSharePointNewsDigest" + "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false" }, { + "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1545, "Rank": 1, - "Id": 1511, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c", - "CommandName": "Set-PnPTaxonomyFieldValue" + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c" }, { + "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1546, "Rank": 2, - "Id": 1512, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'", - "CommandName": "Set-PnPTaxonomyFieldValue" + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'" }, { + "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1547, "Rank": 3, - "Id": 1513, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}", - "CommandName": "Set-PnPTaxonomyFieldValue" + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}" }, { + "CommandName": "Set-PnPTeamifyPromptHidden", + "Id": 1548, "Rank": 1, - "Id": 1514, - "Command": "Set-PnPTeamifyPromptHidden", - "CommandName": "Set-PnPTeamifyPromptHidden" + "Command": "Set-PnPTeamifyPromptHidden" }, { + "CommandName": "Set-PnPTeamsChannel", + "Id": 1549, "Rank": 1, - "Id": 1515, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"", - "CommandName": "Set-PnPTeamsChannel" + "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"" }, { + "CommandName": "Set-PnPTeamsChannel", + "Id": 1550, "Rank": 2, - "Id": 1516, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true", - "CommandName": "Set-PnPTeamsChannel" + "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true" }, { + "CommandName": "Set-PnpTeamsChannelUser", + "Id": 1551, "Rank": 1, - "Id": 1517, - "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner", - "CommandName": "Set-PnpTeamsChannelUser" + "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner" }, { + "CommandName": "Set-PnpTeamsChannelUser", + "Id": 1552, "Rank": 2, - "Id": 1518, - "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member", - "CommandName": "Set-PnpTeamsChannelUser" + "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member" }, { + "CommandName": "Set-PnPTeamsTab", + "Id": 1553, "Rank": 1, - "Id": 1519, - "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"", - "CommandName": "Set-PnPTeamsTab" + "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"" }, { + "CommandName": "Set-PnPTeamsTag", + "Id": 1554, "Rank": 1, - "Id": 1520, - "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"", - "CommandName": "Set-PnPTeamsTag" + "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"" }, { + "CommandName": "Set-PnPTeamsTeam", + "Id": 1555, "Rank": 1, - "Id": 1521, - "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'", - "CommandName": "Set-PnPTeamsTeam" + "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'" }, { + "CommandName": "Set-PnPTeamsTeam", + "Id": 1556, "Rank": 2, - "Id": 1522, - "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public", - "CommandName": "Set-PnPTeamsTeam" + "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public" }, { + "CommandName": "Set-PnPTeamsTeam", + "Id": 1557, "Rank": 3, - "Id": 1523, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false", - "CommandName": "Set-PnPTeamsTeam" + "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false" }, { + "CommandName": "Set-PnPTeamsTeam", + "Id": 1558, "Rank": 4, - "Id": 1524, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate", - "CommandName": "Set-PnPTeamsTeam" + "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate" }, { + "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1559, "Rank": 1, - "Id": 1525, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true", - "CommandName": "Set-PnPTeamsTeamArchivedState" + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true" }, { + "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1560, "Rank": 2, - "Id": 1526, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false", - "CommandName": "Set-PnPTeamsTeamArchivedState" + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false" }, { + "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1561, "Rank": 3, - "Id": 1527, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true", - "CommandName": "Set-PnPTeamsTeamArchivedState" + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true" }, { + "CommandName": "Set-PnPTeamsTeamPicture", + "Id": 1562, "Rank": 1, - "Id": 1528, - "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"", - "CommandName": "Set-PnPTeamsTeamPicture" + "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"" }, { + "CommandName": "Set-PnPTemporarilyDisableAppBar", + "Id": 1563, "Rank": 1, - "Id": 1529, - "Command": "Set-PnPTemporarilyDisableAppBar $true", - "CommandName": "Set-PnPTemporarilyDisableAppBar" + "Command": "Set-PnPTemporarilyDisableAppBar $true" }, { + "CommandName": "Set-PnPTemporarilyDisableAppBar", + "Id": 1564, "Rank": 2, - "Id": 1530, - "Command": "Set-PnPTemporarilyDisableAppBar $false", - "CommandName": "Set-PnPTemporarilyDisableAppBar" + "Command": "Set-PnPTemporarilyDisableAppBar $false" }, { + "CommandName": "Set-PnPTenant", + "Id": 1565, "Rank": 1, - "Id": 1531, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/team1\" -LockState NoAccess\r ; Set-PnPTenant -NoAccessRedirectUrl \"http://www.contoso.com\"", - "CommandName": "Set-PnPTenant" + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/team1\" -LockState NoAccess\r ; Set-PnPTenant -NoAccessRedirectUrl \"http://www.contoso.com\"" }, { + "CommandName": "Set-PnPTenant", + "Id": 1566, "Rank": 2, - "Id": 1532, - "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false", - "CommandName": "Set-PnPTenant" + "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false" }, { + "CommandName": "Set-PnPTenant", + "Id": 1567, "Rank": 3, - "Id": 1533, - "Command": "Set-PnPTenant -ShowAllUsersClaim $false", - "CommandName": "Set-PnPTenant" + "Command": "Set-PnPTenant -ShowAllUsersClaim $false" }, { + "CommandName": "Set-PnPTenant", + "Id": 1568, "Rank": 4, - "Id": 1534, - "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true", - "CommandName": "Set-PnPTenant" + "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true" }, { + "CommandName": "Set-PnPTenantAppCatalogUrl", + "Id": 1569, "Rank": 1, - "Id": 1535, - "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"", - "CommandName": "Set-PnPTenantAppCatalogUrl" + "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"" }, { + "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1570, "Rank": 1, - "Id": 1536, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true", - "CommandName": "Set-PnPTenantCdnEnabled" + "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true" }, { + "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1571, "Rank": 2, - "Id": 1537, - "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false", - "CommandName": "Set-PnPTenantCdnEnabled" + "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false" }, { + "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1572, "Rank": 3, - "Id": 1538, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins", - "CommandName": "Set-PnPTenantCdnEnabled" + "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins" }, { + "CommandName": "Set-PnPTenantCdnPolicy", + "Id": 1573, "Rank": 1, - "Id": 1539, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue \"CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF\"", - "CommandName": "Set-PnPTenantCdnPolicy" + "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue \"CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF\"" }, { + "CommandName": "Set-PnPTenantCdnPolicy", + "Id": 1574, "Rank": 2, - "Id": 1540, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"", - "CommandName": "Set-PnPTenantCdnPolicy" + "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"" }, { + "CommandName": "Set-PnPTenantRestrictedSearchMode", + "Id": 1575, "Rank": 1, - "Id": 1541, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled", - "CommandName": "Set-PnPTenantSite" + "Command": "Set-PnPTenantRestrictedSearchMode -Mode Enabled" }, { + "CommandName": "Set-PnPTenantRestrictedSearchMode", + "Id": 1576, "Rank": 2, - "Id": 1542, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000", - "CommandName": "Set-PnPTenantSite" + "Command": "Set-PnPTenantRestrictedSearchMode -Mode Disabled" + }, + { + "CommandName": "Set-PnPTenantSite", + "Id": 1577, + "Rank": 1, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled" + }, + { + "CommandName": "Set-PnPTenantSite", + "Id": 1578, + "Rank": 2, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000" }, { + "CommandName": "Set-PnPTenantSite", + "Id": 1579, "Rank": 3, - "Id": 1543, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"", - "CommandName": "Set-PnPTenantSite" + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"" }, { + "CommandName": "Set-PnPTenantSite", + "Id": 1580, "Rank": 4, - "Id": 1544, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", - "CommandName": "Set-PnPTenantSite" + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { + "CommandName": "Set-PnPTenantSite", + "Id": 1581, "Rank": 5, - "Id": 1545, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false", - "CommandName": "Set-PnPTenantSite" + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false" }, { + "CommandName": "Set-PnPTenantSyncClientRestriction", + "Id": 1582, "Rank": 1, - "Id": 1546, - "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false", - "CommandName": "Set-PnPTenantSyncClientRestriction" + "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false" }, { + "CommandName": "Set-PnPTenantSyncClientRestriction", + "Id": 1583, "Rank": 2, - "Id": 1547, - "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"", - "CommandName": "Set-PnPTenantSyncClientRestriction" + "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"" }, { + "CommandName": "Set-PnPTerm", + "Id": 1584, "Rank": 1, - "Id": 1548, - "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"", - "CommandName": "Set-PnPTerm" + "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"" }, { + "CommandName": "Set-PnPTerm", + "Id": 1585, "Rank": 2, - "Id": 1549, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}", - "CommandName": "Set-PnPTerm" + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { + "CommandName": "Set-PnPTerm", + "Id": 1586, "Rank": 3, - "Id": 1550, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}", - "CommandName": "Set-PnPTerm" + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { + "CommandName": "Set-PnPTerm", + "Id": 1587, "Rank": 4, - "Id": 1551, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true", - "CommandName": "Set-PnPTerm" + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true" }, { + "CommandName": "Set-PnPTermGroup", + "Id": 1588, "Rank": 1, - "Id": 1552, - "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"", - "CommandName": "Set-PnPTermGroup" + "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"" }, { + "CommandName": "Set-PnPTermSet", + "Id": 1589, "Rank": 1, - "Id": 1553, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"", - "CommandName": "Set-PnPTermSet" + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"" }, { + "CommandName": "Set-PnPTermSet", + "Id": 1590, "Rank": 2, - "Id": 1554, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true", - "CommandName": "Set-PnPTermSet" + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true" }, { + "CommandName": "Set-PnPTermSet", + "Id": 1591, "Rank": 3, - "Id": 1555, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false", - "CommandName": "Set-PnPTermSet" + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false" }, { + "CommandName": "Set-PnPTheme", + "Id": 1592, "Rank": 1, - "Id": 1556, - "Command": "Set-PnPTheme", - "CommandName": "Set-PnPTheme" + "Command": "Set-PnPTheme" }, { + "CommandName": "Set-PnPTheme", + "Id": 1593, "Rank": 2, - "Id": 1557, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor", - "CommandName": "Set-PnPTheme" + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor" }, { + "CommandName": "Set-PnPTheme", + "Id": 1594, "Rank": 3, - "Id": 1558, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'", - "CommandName": "Set-PnPTheme" + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'" }, { + "CommandName": "Set-PnPTheme", + "Id": 1595, "Rank": 4, - "Id": 1559, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit", - "CommandName": "Set-PnPTheme" + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit" }, { + "CommandName": "Set-PnPTraceLog", + "Id": 1596, "Rank": 1, - "Id": 1560, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt", - "CommandName": "Set-PnPTraceLog" + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt" }, { + "CommandName": "Set-PnPTraceLog", + "Id": 1597, "Rank": 2, - "Id": 1561, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug", - "CommandName": "Set-PnPTraceLog" + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug" }, { + "CommandName": "Set-PnPTraceLog", + "Id": 1598, "Rank": 3, - "Id": 1562, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"", - "CommandName": "Set-PnPTraceLog" + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"" }, { + "CommandName": "Set-PnPTraceLog", + "Id": 1599, "Rank": 4, - "Id": 1563, - "Command": "Set-PnPTraceLog -Off", - "CommandName": "Set-PnPTraceLog" + "Command": "Set-PnPTraceLog -Off" }, { + "CommandName": "Set-PnPUserOneDriveQuota", + "Id": 1600, "Rank": 1, - "Id": 1564, - "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208", - "CommandName": "Set-PnPUserOneDriveQuota" + "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208" }, { + "CommandName": "Set-PnPUserProfileProperty", + "Id": 1601, "Rank": 1, - "Id": 1565, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'SPS-Location' -Value 'Stockholm'", - "CommandName": "Set-PnPUserProfileProperty" + "Command": "Set-PnPUserProfileProperty -Account 'john@domain.com' -Property 'SPS-Location' -Value 'Stockholm'" }, { + "CommandName": "Set-PnPUserProfileProperty", + "Id": 1602, "Rank": 2, - "Id": 1566, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'", - "CommandName": "Set-PnPUserProfileProperty" + "Command": "Set-PnPUserProfileProperty -Account 'john@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'" }, { + "CommandName": "Set-PnPView", + "Id": 1603, "Rank": 1, - "Id": 1567, - "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}", - "CommandName": "Set-PnPView" + "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}" }, { + "CommandName": "Set-PnPView", + "Id": 1604, "Rank": 2, - "Id": 1568, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"", - "CommandName": "Set-PnPView" + "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"" }, { + "CommandName": "Set-PnPView", + "Id": 1605, "Rank": 3, - "Id": 1569, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"", - "CommandName": "Set-PnPView" + "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"" }, { + "CommandName": "Set-PnPView", + "Id": 1606, "Rank": 4, - "Id": 1570, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}", - "CommandName": "Set-PnPView" + "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}" }, { + "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1607, "Rank": 1, - "Id": 1571, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\" -IconProperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\" -Order 4 -CardSize Large -PropertiesJSON $myProperties", - "CommandName": "Set-PnPVivaConnectionsDashboardACE" + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\" -IconProperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\" -Order 4 -CardSize Large -PropertiesJSON $myProperties" }, { + "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1608, "Rank": 2, - "Id": 1572, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"", - "CommandName": "Set-PnPVivaConnectionsDashboardACE" + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"" }, { + "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1609, "Rank": 3, - "Id": 1573, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -IconProperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\" -Order 4", - "CommandName": "Set-PnPVivaConnectionsDashboardACE" + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -IconProperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\" -Order 4" }, { + "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1610, "Rank": 4, - "Id": 1574, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large", - "CommandName": "Set-PnPVivaConnectionsDashboardACE" + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large" }, { + "CommandName": "Set-PnPWeb", + "Id": 1611, "Rank": 1, - "Id": 1575, - "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true", - "CommandName": "Set-PnPWeb" + "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true" }, { + "CommandName": "Set-PnPWeb", + "Id": 1612, "Rank": 2, - "Id": 1576, - "Command": "Set-PnPWeb -QuickLaunchEnabled:$false", - "CommandName": "Set-PnPWeb" + "Command": "Set-PnPWeb -QuickLaunchEnabled:$false" }, { + "CommandName": "Set-PnPWeb", + "Id": 1613, "Rank": 3, - "Id": 1577, - "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact", - "CommandName": "Set-PnPWeb" + "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact" }, { + "CommandName": "Set-PnPWeb", + "Id": 1614, "Rank": 4, - "Id": 1578, - "Command": "Set-PnPWeb -NoCrawl:$true", - "CommandName": "Set-PnPWeb" + "Command": "Set-PnPWeb -NoCrawl:$true" }, { + "CommandName": "Set-PnPWebHeader", + "Id": 1615, "Rank": 1, - "Id": 1579, - "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended", - "CommandName": "Set-PnPWebHeader" + "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended" }, { + "CommandName": "Set-PnPWebHeader", + "Id": 1616, "Rank": 2, - "Id": 1580, - "Command": "Set-PnPWebHeader -HeaderEmphasis Strong", - "CommandName": "Set-PnPWebHeader" + "Command": "Set-PnPWebHeader -HeaderEmphasis Strong" }, { + "CommandName": "Set-PnPWebHeader", + "Id": 1617, "Rank": 3, - "Id": 1581, - "Command": "Set-PnPWebHeader -LogoAlignment Middle", - "CommandName": "Set-PnPWebHeader" + "Command": "Set-PnPWebHeader -LogoAlignment Middle" }, { + "CommandName": "Set-PnPWebhookSubscription", + "Id": 1618, "Rank": 1, - "Id": 1582, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook", - "CommandName": "Set-PnPWebhookSubscription" + "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook" }, { + "CommandName": "Set-PnPWebhookSubscription", + "Id": 1619, "Rank": 2, - "Id": 1583, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"", - "CommandName": "Set-PnPWebhookSubscription" + "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" }, { + "CommandName": "Set-PnPWebPartProperty", + "Id": 1620, "Rank": 1, - "Id": 1584, - "Command": "Set-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\" -Value \"New Title\"", - "CommandName": "Set-PnPWebPartProperty" + "Command": "Set-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\" -Value \"New Title\"" }, { + "CommandName": "Set-PnPWebPermission", + "Id": 1621, "Rank": 1, - "Id": 1585, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"", - "CommandName": "Set-PnPWebPermission" + "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"" }, { + "CommandName": "Set-PnPWebPermission", + "Id": 1622, "Rank": 2, - "Id": 1586, - "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"", - "CommandName": "Set-PnPWebPermission" + "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"" }, { + "CommandName": "Set-PnPWebPermission", + "Id": 1623, "Rank": 3, - "Id": 1587, - "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"", - "CommandName": "Set-PnPWebPermission" + "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"" }, { + "CommandName": "Set-PnPWebPermission", + "Id": 1624, "Rank": 4, - "Id": 1588, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"", - "CommandName": "Set-PnPWebPermission" + "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"" }, { + "CommandName": "Set-PnPWebTheme", + "Id": 1625, "Rank": 1, - "Id": 1589, - "Command": "Set-PnPWebTheme -Theme MyTheme", - "CommandName": "Set-PnPWebTheme" + "Command": "Set-PnPWebTheme -Theme MyTheme" }, { + "CommandName": "Set-PnPWebTheme", + "Id": 1626, "Rank": 2, - "Id": 1590, - "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb", - "CommandName": "Set-PnPWebTheme" + "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb" }, { + "CommandName": "Set-PnPWikiPageContent", + "Id": 1627, "Rank": 1, - "Id": 1591, - "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html", - "CommandName": "Set-PnPWikiPageContent" + "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1628, "Rank": 1, - "Id": 1592, - "Command": "Submit-PnPSearchQuery -Query \"finance\"", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"finance\"" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1629, "Rank": 2, - "Id": 1593, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1630, "Rank": 3, - "Id": 1594, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1631, "Rank": 4, - "Id": 1595, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1632, "Rank": 5, - "Id": 1596, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All" }, { + "CommandName": "Submit-PnPSearchQuery", + "Id": 1633, "Rank": 6, - "Id": 1597, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All", - "CommandName": "Submit-PnPSearchQuery" + "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All" }, { + "CommandName": "Submit-PnPTeamsChannelMessage", + "Id": 1634, "Rank": 1, - "Id": 1598, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"", - "CommandName": "Submit-PnPTeamsChannelMessage" + "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"" }, { + "CommandName": "Submit-PnPTeamsChannelMessage", + "Id": 1635, "Rank": 2, - "Id": 1599, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html", - "CommandName": "Submit-PnPTeamsChannelMessage" + "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html" }, { + "CommandName": "Sync-PnPAppToTeams", + "Id": 1636, "Rank": 1, - "Id": 1600, - "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Sync-PnPAppToTeams" + "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1637, "Rank": 1, - "Id": 1601, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}", - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}" }, { + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1638, "Rank": 2, - "Id": 1602, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"", - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"" }, { + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1639, "Rank": 3, - "Id": 1603, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose", - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose" }, { + "CommandName": "Test-PnPListItemIsRecord", + "Id": 1640, "Rank": 1, - "Id": 1604, - "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4", - "CommandName": "Test-PnPListItemIsRecord" + "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4" }, { + "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed", + "Id": 1641, "Rank": 1, - "Id": 1605, - "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"", - "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed" + "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"" }, { + "CommandName": "Test-PnPSite", + "Id": 1642, "Rank": 1, - "Id": 1606, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"", - "CommandName": "Test-PnPSite" + "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" }, { + "CommandName": "Test-PnPSite", + "Id": 1643, "Rank": 2, - "Id": 1607, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"", - "CommandName": "Test-PnPSite" + "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" }, { + "CommandName": "Test-PnPTenantTemplate", + "Id": 1644, "Rank": 1, - "Id": 1608, - "Command": "Test-PnPTenantTemplate -Template $myTemplate", - "CommandName": "Test-PnPTenantTemplate" + "Command": "Test-PnPTenantTemplate -Template $myTemplate" }, { + "CommandName": "Undo-PnPFileCheckedOut", + "Id": 1645, "Rank": 1, - "Id": 1609, - "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"", - "CommandName": "Undo-PnPFileCheckedOut" + "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"" }, { + "CommandName": "Uninstall-PnPApp", + "Id": 1646, "Rank": 1, - "Id": 1610, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Uninstall-PnPApp" + "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { + "CommandName": "Uninstall-PnPApp", + "Id": 1647, "Rank": 2, - "Id": 1611, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", - "CommandName": "Uninstall-PnPApp" + "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { + "CommandName": "Unlock-PnPSensitivityLabelEncryptedFile", + "Id": 1648, "Rank": 1, - "Id": 1612, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Unpublish-PnPApp" + "Command": "Unlock-PnPSensitivityLabelEncryptedFile -Url \"https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx\" -JustificationText \"Need to access file\"" + }, + { + "CommandName": "Unpublish-PnPApp", + "Id": 1649, + "Rank": 1, + "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { + "CommandName": "Unpublish-PnPApp", + "Id": 1650, "Rank": 2, - "Id": 1613, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", - "CommandName": "Unpublish-PnPApp" + "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { + "CommandName": "Unpublish-PnPContentType", + "Id": 1651, "Rank": 1, - "Id": 1614, - "Command": "Unpublish-PnPContentType -ContentType 0x0101", - "CommandName": "Unpublish-PnPContentType" + "Command": "Unpublish-PnPContentType -ContentType 0x0101" }, { + "CommandName": "Unpublish-PnPSyntexModel", + "Id": 1652, "Rank": 1, - "Id": 1615, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"", - "CommandName": "Unpublish-PnPSyntexModel" + "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" }, { + "CommandName": "Unpublish-PnPSyntexModel", + "Id": 1653, "Rank": 2, - "Id": 1616, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch", - "CommandName": "Unpublish-PnPSyntexModel" + "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch" }, { + "CommandName": "Unregister-PnPHubSite", + "Id": 1654, "Rank": 1, - "Id": 1617, - "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"", - "CommandName": "Unregister-PnPHubSite" + "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" }, { + "CommandName": "Update-PnPApp", + "Id": 1655, "Rank": 1, - "Id": 1618, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", - "CommandName": "Update-PnPApp" + "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { + "CommandName": "Update-PnPApp", + "Id": 1656, "Rank": 2, - "Id": 1619, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", - "CommandName": "Update-PnPApp" + "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { + "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1657, "Rank": 1, - "Id": 1620, - "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"", - "CommandName": "Update-PnPAvailableSiteClassification" + "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" }, { + "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1658, "Rank": 2, - "Id": 1621, - "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"", - "CommandName": "Update-PnPAvailableSiteClassification" + "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"" }, { + "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1659, "Rank": 3, - "Id": 1622, - "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp", - "CommandName": "Update-PnPAvailableSiteClassification" + "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp" }, { + "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1660, "Rank": 1, - "Id": 1623, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll", - "CommandName": "Update-PnPSiteDesignFromWeb" + "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll" }, { + "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1661, "Rank": 2, - "Id": 1624, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)", - "CommandName": "Update-PnPSiteDesignFromWeb" + "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" }, { + "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1662, "Rank": 3, - "Id": 1625, - "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"", - "CommandName": "Update-PnPSiteDesignFromWeb" + "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"" }, { + "CommandName": "Update-PnPTeamsApp", + "Id": 1663, "Rank": 1, - "Id": 1626, - "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip", - "CommandName": "Update-PnPTeamsApp" + "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip" }, { + "CommandName": "Update-PnPTeamsUser", + "Id": 1664, "Rank": 1, - "Id": 1627, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", - "CommandName": "Update-PnPTeamsUser" + "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { + "CommandName": "Update-PnPTeamsUser", + "Id": 1665, "Rank": 2, - "Id": 1628, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member", - "CommandName": "Update-PnPTeamsUser" + "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" }, { + "CommandName": "Update-PnPTeamsUser", + "Id": 1666, "Rank": 3, - "Id": 1629, - "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force", - "CommandName": "Update-PnPTeamsUser" + "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force" }, { + "CommandName": "Update-PnPUserType", + "Id": 1667, "Rank": 1, - "Id": 1630, - "Command": "Update-PnPUserType -LoginName jdoe@contoso.com", - "CommandName": "Update-PnPUserType" + "Command": "Update-PnPUserType -LoginName jdoe@contoso.com" } ] diff --git a/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/nuget.exe b/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/nuget.exe deleted file mode 100644 index 305300ad4..000000000 Binary files a/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/nuget.exe and /dev/null differ diff --git a/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/shared.ps1 b/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/shared.ps1 index 8c5349c6a..f40ee23d6 100644 --- a/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/shared.ps1 +++ b/samples/Provisioning.SelfHostedWithAzureWebJob/Engine/shared.ps1 @@ -2,6 +2,7 @@ $ProgressPreference = "SilentlyContinue" $WarningPreference = "SilentlyContinue" if (-not (Test-Path $PSScriptRoot\bundle\SharePointPnPPowerShellOnline.psd1)) { + Invoke-RestMethod -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "$PSScriptRoot\nuget.exe" Set-Alias nuget "$PSScriptRoot\nuget.exe" nuget install SharePointPnPPowerShellOnline -configFile $PSScriptRoot\nuget.config -OutputDirectory $PSScriptRoot\bundle\ diff --git a/samples/Site.Metadata.CSV/SiteIDtoURL.ps1 b/samples/Site.Metadata.CSV/SiteIDtoURL.ps1 index 8800d60aa..d558f1f5e 100644 Binary files a/samples/Site.Metadata.CSV/SiteIDtoURL.ps1 and b/samples/Site.Metadata.CSV/SiteIDtoURL.ps1 differ diff --git a/src/Commands/Admin/AddHomeSite.cs b/src/Commands/Admin/AddHomeSite.cs new file mode 100644 index 000000000..72d2f9a7b --- /dev/null +++ b/src/Commands/Admin/AddHomeSite.cs @@ -0,0 +1,24 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System.Management.Automation; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.Core.Model; +using System; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Add, "PnPHomeSite")] + public class AddHomeSite : PnPAdminCmdlet + { + [Alias("Url")] + [Parameter(Mandatory = true)] + public string HomeSiteUrl; + + protected override void ExecuteCmdlet() + { + Tenant.AddHomeSite(HomeSiteUrl, 999999, new System.Guid[0]); + AdminContext.ExecuteQueryRetry(); + } + } +} diff --git a/src/Commands/Admin/GetContainer.cs b/src/Commands/Admin/GetContainer.cs index 7128bdf9e..454c2c481 100644 --- a/src/Commands/Admin/GetContainer.cs +++ b/src/Commands/Admin/GetContainer.cs @@ -1,8 +1,11 @@ using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.SharePoint; using System; +using System.Collections.Generic; using System.Management.Automation; namespace PnP.PowerShell.Commands.Admin @@ -23,6 +26,9 @@ public class GetContainer : PnPAdminCmdlet [Parameter(Mandatory = false)] public string PagingToken { get; set; } + [Parameter(Mandatory = false)] + public SortOrder? SortByStorage { get; set; } + protected override void ExecuteCmdlet() { if (Identity != null) @@ -32,9 +38,36 @@ protected override void ExecuteCmdlet() } else if (OwningApplicationId != Guid.Empty) { - var containersProperties = Tenant.GetSPOContainersByApplicationId(OwningApplicationId, Paged, PagingToken); + ClientResult clientResult; + if (SortByStorage.HasValue) + { + bool ascending = SortByStorage == SortOrder.Ascending; + clientResult = Tenant.GetSortedSPOContainersByApplicationId(OwningApplicationId, ascending, Paged, PagingToken); + } + else + { + clientResult = Tenant.GetSPOContainersByApplicationId(OwningApplicationId, Paged, PagingToken); + } AdminContext.ExecuteQueryRetry(); - WriteObject(containersProperties.Value.ContainerCollection); + IList containerCollection = clientResult.Value.ContainerCollection; + if (containerCollection != null && containerCollection.Count > 0) + { + foreach (SPContainerProperties item in containerCollection) + { + WriteObject(new Model.SharePoint.SPConsumingTenantContainerByIdentity(item)); + } + if (Paged) + { + if (!string.IsNullOrWhiteSpace(clientResult.Value.PagingToken)) + { + WriteObject($"Retrieve remaining containers with token: {clientResult.Value.PagingToken}"); + } + else + { + WriteObject("End of containers view."); + } + } + } } else { diff --git a/src/Commands/Admin/GetContainerType.cs b/src/Commands/Admin/GetContainerType.cs new file mode 100644 index 000000000..9311de264 --- /dev/null +++ b/src/Commands/Admin/GetContainerType.cs @@ -0,0 +1,23 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; +using System; +using System.Collections.Generic; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Get, "PnPContainerType")] + + public class PnPContainerType : PnPAdminCmdlet + { + protected override void ExecuteCmdlet() + { + IList containerTypes = Tenant.GetSPOContainerTypes(SPContainerTypeTenantType.OwningTenant); + AdminContext.ExecuteQueryRetry(); + WriteObject(containerTypes, true); + } + } +} diff --git a/src/Commands/Admin/GetHomeSite.cs b/src/Commands/Admin/GetHomeSite.cs index 94c5f2a27..1f26fda21 100644 --- a/src/Commands/Admin/GetHomeSite.cs +++ b/src/Commands/Admin/GetHomeSite.cs @@ -1,5 +1,6 @@ using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model.SharePoint; using System.Management.Automation; namespace PnP.PowerShell.Commands.Admin @@ -18,14 +19,16 @@ public class GetHomeSite : PnPAdminCmdlet protected override void ExecuteCmdlet() { - if(Detailed.ToBool()) + if (Detailed.ToBool()) { - var results = Tenant.GetHomeSitesDetails(); + var results = Tenant.GetHomeSitesDetails(); AdminContext.ExecuteQueryRetry(); WriteObject(results, true); } else { + + if (IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled) { var results = Tenant.IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled(); @@ -34,9 +37,32 @@ protected override void ExecuteCmdlet() } else { + Tenant.EnsureProperties(t => t.IsMultipleVivaConnectionsFlightEnabled, t => t.IsVivaHomeFlightEnabled); + var results = Tenant.GetSPHSiteUrl(); AdminContext.ExecuteQueryRetry(); - WriteObject(results.Value); + + if (Tenant.IsVivaHomeFlightEnabled) + { + if (results != null && !string.IsNullOrEmpty(results.Value)) + { + var isDraftModeForCompanyPortalEnabled = Tenant.IsDraftModeForCompanyPortalSiteEnabled(); + var isVivaConnsDefaultStartForCompanyPortalEnabled = Tenant.IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled(); + AdminContext.ExecuteQueryRetry(); + + CompanyPortalSiteDetails companyPortalSiteDetails = new() + { + HomeSiteUrl = results.Value, + DraftMode = isDraftModeForCompanyPortalEnabled.Value, + VivaConnectionsDefaultStart = isVivaConnsDefaultStartForCompanyPortalEnabled.Value + }; + WriteObject(companyPortalSiteDetails); + } + } + else + { + WriteObject(results.Value); + } } } } diff --git a/src/Commands/Admin/GetSiteCollectionAppCatalog.cs b/src/Commands/Admin/GetSiteCollectionAppCatalog.cs index 5fdecd925..0c6f72466 100644 --- a/src/Commands/Admin/GetSiteCollectionAppCatalog.cs +++ b/src/Commands/Admin/GetSiteCollectionAppCatalog.cs @@ -75,7 +75,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Validating site collection App Catalog at {appCatalogLocalModel.AbsoluteUrl}"); // Deleted sites throw either an exception or return null - appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false).Url; + appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false, Connection.TenantAdminUrl).Url; results.Add(appCatalogLocalModel); } catch (Exception e) diff --git a/src/Commands/Admin/GetTenantInternalSetting.cs b/src/Commands/Admin/GetTenantInternalSetting.cs new file mode 100644 index 000000000..9b8d35066 --- /dev/null +++ b/src/Commands/Admin/GetTenantInternalSetting.cs @@ -0,0 +1,20 @@ +using Microsoft.SharePoint.Client; + +using PnP.PowerShell.Commands.Base; +using System.Management.Automation; +using PnP.PowerShell.Commands.Model; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Get, "PnPTenantInternalSetting")] + public class GetTenantInternalSetting : PnPAdminCmdlet + { + protected override void ExecuteCmdlet() + { + AdminContext.Load(Tenant); + + AdminContext.ExecuteQueryRetry(); + WriteObject(new SPOTenantInternalSetting(Tenant, AdminContext)); + } + } +} diff --git a/src/Commands/Admin/GetTenantRestrictedSearchAllowedList.cs b/src/Commands/Admin/GetTenantRestrictedSearchAllowedList.cs new file mode 100644 index 000000000..e36071308 --- /dev/null +++ b/src/Commands/Admin/GetTenantRestrictedSearchAllowedList.cs @@ -0,0 +1,17 @@ +using System.Management.Automation; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; + +namespace PnP.PowerShell.Commands +{ + [Cmdlet(VerbsCommon.Get, "PnPTenantRestrictedSearchAllowedList")] + public class GetTenantRestrictedSearchAllowedList : PnPAdminCmdlet + { + protected override void ExecuteCmdlet() + { + var results = Tenant.GetSPORestrictedSearchAllowedList(); + AdminContext.ExecuteQueryRetry(); + WriteObject(results, true); + } + } +} \ No newline at end of file diff --git a/src/Commands/Admin/GetTenantRestrictedSearchMode.cs b/src/Commands/Admin/GetTenantRestrictedSearchMode.cs new file mode 100644 index 000000000..8e63cf644 --- /dev/null +++ b/src/Commands/Admin/GetTenantRestrictedSearchMode.cs @@ -0,0 +1,18 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsCommon.Get, "PnPTenantRestrictedSearchMode")] + public class GetTenantRestrictedSearchMode : PnPAdminCmdlet + { + protected override void ExecuteCmdlet() + { + var results = Tenant.GetSPORestrictedSearchMode(); + AdminContext.ExecuteQueryRetry(); + WriteObject(results, true); + } + } +} diff --git a/src/Commands/Admin/GetTenantSite.cs b/src/Commands/Admin/GetTenantSite.cs index 2fe2825a6..56347e135 100644 --- a/src/Commands/Admin/GetTenantSite.cs +++ b/src/Commands/Admin/GetTenantSite.cs @@ -46,7 +46,7 @@ protected override void ExecuteCmdlet() SiteProperties siteProperties; if(Identity.Id.HasValue) { - siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed); + siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed, Connection.TenantAdminUrl); if(siteProperties == null) return; } else diff --git a/src/Commands/Admin/SetHomeSite.cs b/src/Commands/Admin/SetHomeSite.cs index 87808ff34..82cc19960 100644 --- a/src/Commands/Admin/SetHomeSite.cs +++ b/src/Commands/Admin/SetHomeSite.cs @@ -1,6 +1,9 @@ using Microsoft.SharePoint.Client; - +using Microsoft.SharePoint.PortalAndOrgNews; using PnP.PowerShell.Commands.Base; +using System; +using System.Collections.Generic; +using System.Linq; using System.Management.Automation; namespace PnP.PowerShell.Commands.Admin @@ -15,17 +18,74 @@ public class SetHomeSite : PnPAdminCmdlet [Parameter(Mandatory = false)] public SwitchParameter VivaConnectionsDefaultStart; + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + [Parameter(Mandatory = false)] + public SwitchParameter DraftMode; + protected override void ExecuteCmdlet() { - if (VivaConnectionsDefaultStart) + Tenant.EnsureProperties(t => t.IsMultipleVivaConnectionsFlightEnabled, t => t.IsVivaHomeFlightEnabled); + + if (Tenant.IsMultipleVivaConnectionsFlightEnabled) { - Tenant.SetSPHSiteWithConfigurations(HomeSiteUrl, VivaConnectionsDefaultStart); + if (Force.IsPresent || ShouldContinue("Before you update a home site or Viva Connections experiences, make sure you review the documentation at https://aka.ms/homesites. Continue?", string.Empty)) + { + IEnumerable enumerable = Tenant.GetTargetedSitesDetails()?.Where((TargetedSiteDetails hs) => !hs.IsVivaBackendSite); + AdminContext.ExecuteQueryRetry(); + bool flag = false; + if (enumerable == null || enumerable.Count() == 0) + { + Tenant.AddHomeSite(HomeSiteUrl, 1, null); + AdminContext.ExecuteQueryRetry(); + flag = true; + } + else if (enumerable.Count() == 1 && !IsSameSiteUrl(enumerable.First().Url, HomeSiteUrl)) + { + Tenant.RemoveTargetedSite(enumerable.First().SiteId); + AdminContext.ExecuteQueryRetry(); + Tenant.AddHomeSite(HomeSiteUrl, 1, null); + AdminContext.ExecuteQueryRetry(); + flag = true; + } + HomeSiteConfigurationParam configurationParam = new() + { + vivaConnectionsDefaultStart = VivaConnectionsDefaultStart, + IsVivaConnectionsDefaultStartPresent = VivaConnectionsDefaultStart, + isInDraftMode = DraftMode, + IsInDraftModePresent = DraftMode || flag + }; + ClientResult clientResult = Tenant.UpdateTargetedSite(HomeSiteUrl, configurationParam); + AdminContext.ExecuteQueryRetry(); + WriteObject(clientResult.Value); + } } - else + else if (Force.IsPresent || ShouldContinue("Before you set a Home site, make sure you review the documentation at https://aka.ms/homesites. Continue?", string.Empty)) { - Tenant.SetSPHSite(HomeSiteUrl); - } - AdminContext.ExecuteQueryRetry(); + Tenant.ValidateVivaHomeParameterExists(VivaConnectionsDefaultStart); + HomeSiteConfigurationParam configuration = null; + if (VivaConnectionsDefaultStart || DraftMode) + { + configuration = new HomeSiteConfigurationParam + { + vivaConnectionsDefaultStart = VivaConnectionsDefaultStart, + IsVivaConnectionsDefaultStartPresent = VivaConnectionsDefaultStart, + isInDraftMode = DraftMode, + IsInDraftModePresent = DraftMode + }; + } + ClientResult clientResult = Tenant.SetSPHSiteWithConfiguration(HomeSiteUrl, configuration); + AdminContext.ExecuteQueryRetry(); + WriteObject(clientResult.Value); + } + } + + private static bool IsSameSiteUrl(string url1, string url2) + { + Uri uri = new(url1); + Uri uri2 = new(url2); + return Uri.Compare(uri, uri2, UriComponents.Host | UriComponents.Path, UriFormat.SafeUnescaped, StringComparison.OrdinalIgnoreCase) == 0; } } } \ No newline at end of file diff --git a/src/Commands/Admin/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index 50ba158bd..fd24f7e76 100644 --- a/src/Commands/Admin/SetTenant.cs +++ b/src/Commands/Admin/SetTenant.cs @@ -75,6 +75,7 @@ public class SetTenant : PnPAdminCmdlet [Parameter(Mandatory = false)] public string BccExternalSharingInvitationsList; + [Obsolete("Overriding UserVoiceForFeedbackEnabled property has been deprecated in SharePoint Online. This parameter will be removed in the next major release.")] [Parameter(Mandatory = false)] public bool? UserVoiceForFeedbackEnabled; @@ -347,7 +348,7 @@ public class SetTenant : PnPAdminCmdlet public bool? ShowPeoplePickerGroupSuggestionsForIB { get; set; } [Parameter(Mandatory = false)] - public int? OneDriveRequestFilesLinkExpirationInDays { get; set; } + public int? OneDriveRequestFilesLinkExpirationInDays { get; set; } [Parameter(Mandatory = false)] public bool? BlockDownloadFileTypePolicy { get; set; } @@ -361,13 +362,13 @@ public class SetTenant : PnPAdminCmdlet public Guid[] ExcludedBlockDownloadGroupIds { get; set; } [Parameter(Mandatory = false)] - public SwitchParameter Force; + public SwitchParameter Force; [Parameter(Mandatory = false)] public string ArchiveRedirectUrl { get; set; } [Parameter(Mandatory = false)] - public bool? BlockSendLabelMismatchEmail { get; set; } + public bool? BlockSendLabelMismatchEmail { get; set; } [Parameter(Mandatory = false)] public MediaTranscriptionPolicyType? MediaTranscription { get; set; } @@ -380,13 +381,13 @@ public class SetTenant : PnPAdminCmdlet [Parameter(Mandatory = false)] public bool? ReduceTempTokenLifetimeEnabled { get; set; } - + [Parameter(Mandatory = false)] public int? ReduceTempTokenLifetimeValue; [Parameter(Mandatory = false)] public bool? ViewersCanCommentOnMediaDisabled { get; set; } - + [Parameter(Mandatory = false)] public bool? AllowGuestUserShareToUsersNotInSiteCollection { get; set; } @@ -412,10 +413,64 @@ public class SetTenant : PnPAdminCmdlet public bool? IsDataAccessInCardDesignerEnabled { get; set; } [Parameter(Mandatory = false)] - public bool? AppBypassInformationBarriers { get; set;} + public bool? AppBypassInformationBarriers { get; set; } + + [Parameter(Mandatory = false)] + public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { get; set; } + + [Parameter(Mandatory = false)] + public bool? DelayDenyAddAndCustomizePagesEnforcement { get; set; } + + [Parameter(Mandatory = false)] + public SharingCapabilities? CoreSharingCapability { get; set; } + + [Parameter(Mandatory = false)] + public bool? EnableVersionExpirationSetting { get; set; } + + [Parameter(Mandatory = false)] + public TenantBrowseUserInfoPolicyValue? BlockUserInfoVisibilityInOneDrive; + + [Parameter(Mandatory = false)] + public bool? AllowOverrideForBlockUserInfoVisibility { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowEveryoneExceptExternalUsersClaimInPrivateSite { get; set; } + + [Parameter(Mandatory = false)] + public bool? AIBuilderEnabled { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowSensitivityLabelOnRecords { get; set; } + + [Parameter(Mandatory = false)] + public bool? AnyoneLinkTrackUsers { get; set; } + + [Parameter(Mandatory = false)] + public bool? EnableSiteArchive { get; set; } + + [Parameter(Mandatory = false)] + public bool? ESignatureEnabled { get; set; } [Parameter(Mandatory = false)] - public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { get; set;} + public TenantBrowseUserInfoPolicyValue? BlockUserInfoVisibilityInSharePoint { get; set; } + + [Parameter(Mandatory = false)] + public SharingScope? OneDriveDefaultShareLinkScope { get; set; } + + [Parameter(Mandatory = false)] + public Role? OneDriveDefaultShareLinkRole { get; set; } + + [Parameter(Mandatory = false)] + public bool? OneDriveDefaultLinkToExistingAccess { get; set; } + + [Parameter(Mandatory = false)] + public SharingState? OneDriveBlockGuestsAsSiteAdmin { get; set; } + + [Parameter(Mandatory = false)] + public int? RecycleBinRetentionPeriod { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsSharePointAddInsDisabled { get; set; } protected override void ExecuteCmdlet() { @@ -457,7 +512,6 @@ protected override void ExecuteCmdlet() } if (SharingCapability != null) { - Tenant.SharingCapability = SharingCapability.Value; modified = true; } @@ -523,13 +577,11 @@ protected override void ExecuteCmdlet() modified = true; } } - if (DisableBackToClassic.HasValue) { Tenant.DisableBackToClassic = DisableBackToClassic.Value; modified = true; } - if (UsePersistentCookiesForExplorerView.HasValue) { Tenant.UsePersistentCookiesForExplorerView = UsePersistentCookiesForExplorerView.Value; @@ -545,11 +597,6 @@ protected override void ExecuteCmdlet() Tenant.BccExternalSharingInvitationsList = BccExternalSharingInvitationsList; modified = true; } - if (UserVoiceForFeedbackEnabled.HasValue) - { - Tenant.UserVoiceForFeedbackEnabled = UserVoiceForFeedbackEnabled.Value; - modified = true; - } if (PublicCdnEnabled != null) { Tenant.PublicCdnEnabled = PublicCdnEnabled.Value; @@ -772,8 +819,6 @@ protected override void ExecuteCmdlet() { throw new InvalidOperationException("Setting the property DefaultSharingLinkType is not supported by your version of the service"); } - - } if (ODBMembersCanShare.HasValue) { @@ -1338,20 +1383,20 @@ protected override void ExecuteCmdlet() Tenant.AllowGuestUserShareToUsersNotInSiteCollection = AllowGuestUserShareToUsersNotInSiteCollection.Value; modified = true; } - + if (IncludeAtAGlanceInShareEmails.HasValue) { Tenant.IncludeAtAGlanceInShareEmails = IncludeAtAGlanceInShareEmails.Value; modified = true; } - + if (MassDeleteNotificationDisabled.HasValue) { Tenant.MassDeleteNotificationDisabled = MassDeleteNotificationDisabled.Value; modified = true; } - if(BusinessConnectivityServiceDisabled.HasValue) + if (BusinessConnectivityServiceDisabled.HasValue) { Tenant.BusinessConnectivityServiceDisabled = BusinessConnectivityServiceDisabled.Value; modified = true; @@ -1381,6 +1426,96 @@ protected override void ExecuteCmdlet() modified = true; } + if (DelayDenyAddAndCustomizePagesEnforcement.HasValue) + { + Tenant.DelayDenyAddAndCustomizePagesEnforcement = DelayDenyAddAndCustomizePagesEnforcement.Value; + modified = true; + } + if (CoreSharingCapability.HasValue) + { + Tenant.CoreSharingCapability = CoreSharingCapability.Value; + modified = true; + } + if (EnableVersionExpirationSetting.HasValue) + { + Tenant.EnableVersionExpirationSetting = EnableVersionExpirationSetting.Value; + modified = true; + } + if (BlockUserInfoVisibilityInOneDrive.HasValue) + { + Tenant.BlockUserInfoVisibilityInOneDrive = BlockUserInfoVisibilityInOneDrive.Value; + modified = true; + } + if (BlockUserInfoVisibilityInSharePoint.HasValue) + { + Tenant.BlockUserInfoVisibilityInSharePoint = BlockUserInfoVisibilityInSharePoint.Value; + modified = true; + } + if (AllowEveryoneExceptExternalUsersClaimInPrivateSite.HasValue) + { + Tenant.AllowEveryoneExceptExternalUsersClaimInPrivateSite = AllowEveryoneExceptExternalUsersClaimInPrivateSite.Value; + modified = true; + } + if (AIBuilderEnabled.HasValue) + { + Tenant.AIBuilderEnabled = AIBuilderEnabled.Value; + modified = true; + } + if (AllowSensitivityLabelOnRecords.HasValue) + { + Tenant.AllowSensitivityLabelOnRecords = AllowSensitivityLabelOnRecords.Value; + modified = true; + } + if (AnyoneLinkTrackUsers.HasValue) + { + Tenant.AnyoneLinkTrackUsers = AnyoneLinkTrackUsers.Value; + modified = true; + } + if (EnableSiteArchive.HasValue) + { + Tenant.EnableSiteArchive = EnableSiteArchive.Value; + modified = true; + } + if (ESignatureEnabled.HasValue) + { + Tenant.ESignatureEnabled = ESignatureEnabled.Value; + modified = true; + } + if (AllowOverrideForBlockUserInfoVisibility.HasValue) + { + Tenant.AllowOverrideForBlockUserInfoVisibility = AllowOverrideForBlockUserInfoVisibility.Value; + modified = true; + } + if (OneDriveDefaultShareLinkScope.HasValue) + { + Tenant.OneDriveDefaultShareLinkScope = OneDriveDefaultShareLinkScope.Value; + modified = true; + } + if (OneDriveDefaultShareLinkRole.HasValue) + { + Tenant.OneDriveDefaultShareLinkRole = OneDriveDefaultShareLinkRole.Value; + modified = true; + } + if (OneDriveDefaultLinkToExistingAccess.HasValue) + { + Tenant.OneDriveDefaultLinkToExistingAccess = OneDriveDefaultLinkToExistingAccess.Value; + modified = true; + } + if (OneDriveBlockGuestsAsSiteAdmin.HasValue) + { + Tenant.OneDriveBlockGuestsAsSiteAdmin = OneDriveBlockGuestsAsSiteAdmin.Value; + modified = true; + } + if (RecycleBinRetentionPeriod.HasValue) + { + Tenant.RecycleBinRetentionPeriod = RecycleBinRetentionPeriod.Value; + modified = true; + } + if (IsSharePointAddInsDisabled.HasValue) + { + Tenant.SharePointAddInsDisabled = IsSharePointAddInsDisabled.Value; + modified = true; + } if (BlockDownloadFileTypePolicy.HasValue) { if (!BlockDownloadFileTypePolicy.Value) @@ -1423,7 +1558,7 @@ protected override void ExecuteCmdlet() } Tenant.SetBlockDownloadFileTypePolicyExclusionList(ExcludedBlockDownloadGroupIds); modified = true; - } + } if (modified) { diff --git a/src/Commands/Admin/SetTenantCdnPolicy.cs b/src/Commands/Admin/SetTenantCdnPolicy.cs index ffdf5f210..777ccc243 100644 --- a/src/Commands/Admin/SetTenantCdnPolicy.cs +++ b/src/Commands/Admin/SetTenantCdnPolicy.cs @@ -14,11 +14,17 @@ public class SetTenantCdnPolicy : PnPAdminCmdlet [Parameter(Mandatory = true)] public SPOTenantCdnPolicyType PolicyType; + [AllowEmptyString] + [AllowNull] [Parameter(Mandatory = true)] public string PolicyValue; protected override void ExecuteCmdlet() { + // A null PolicyValue throws an exception Microsoft.SharePoint.Client.UnknownError + if (PolicyValue == null) + PolicyValue = string.Empty; + Tenant.SetTenantCdnPolicy(CdnType, PolicyType, PolicyValue); AdminContext.ExecuteQueryRetry(); } diff --git a/src/Commands/Admin/SetTenantRestrictedSearchMode.cs b/src/Commands/Admin/SetTenantRestrictedSearchMode.cs new file mode 100644 index 000000000..f33ba32db --- /dev/null +++ b/src/Commands/Admin/SetTenantRestrictedSearchMode.cs @@ -0,0 +1,19 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using PnP.PowerShell.Commands.Base; +using Microsoft.SharePoint.Client; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsCommon.Set, "PnPTenantRestrictedSearchMode")] + public class SetTenantRestrictedSearchMode : PnPAdminCmdlet + { + [Parameter(Position = 0, ValueFromPipeline = true, Mandatory = true)] + public RestrictedSearchMode mode; + protected override void ExecuteCmdlet() + { + Tenant.SetSPORestrictedSearchMode(mode); + AdminContext.ExecuteQueryRetry(); + } + } +} diff --git a/src/Commands/Admin/SetTenantSite.cs b/src/Commands/Admin/SetTenantSite.cs index 70ed371e7..a88c9a067 100644 --- a/src/Commands/Admin/SetTenantSite.cs +++ b/src/Commands/Admin/SetTenantSite.cs @@ -11,6 +11,7 @@ using System.Threading; using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Enums; +using Microsoft.SharePoint.Client.Sharing; namespace PnP.PowerShell.Commands { @@ -192,6 +193,27 @@ public class SetTenantSite : PnPAdminCmdlet [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] public Guid[] RestrictedAccessControlGroups; + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public Role DefaultShareLinkRole; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public SharingScope DefaultShareLinkScope; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public Role LoopDefaultSharingLinkRole; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public SharingScope LoopDefaultSharingLinkScope; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public bool RestrictContentOrgWideSearch; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public bool ReadOnlyForUnmanagedDevices; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] + public SwitchParameter InheritVersionPolicyFromTenant; + [Parameter(Mandatory = false)] public SwitchParameter Wait; @@ -319,7 +341,26 @@ private void SetSiteProperties(Func timeoutFunctio props.DefaultLinkToExistingAccessReset = true; updateRequired = true; } - + if (ParameterSpecified(nameof(LoopDefaultSharingLinkScope))) + { + props.LoopDefaultSharingLinkScope = LoopDefaultSharingLinkScope; + updateRequired = true; + } + if (ParameterSpecified(nameof(LoopDefaultSharingLinkRole))) + { + props.LoopDefaultSharingLinkRole = LoopDefaultSharingLinkRole; + updateRequired = true; + } + if (ParameterSpecified(nameof(DefaultShareLinkScope))) + { + props.DefaultShareLinkScope = DefaultShareLinkScope; + updateRequired = true; + } + if (ParameterSpecified(nameof(DefaultShareLinkRole))) + { + props.DefaultShareLinkRole = DefaultShareLinkRole; + updateRequired = true; + } if (ParameterSpecified(nameof(AllowDownloadingNonWebViewableFiles))) { var value = AllowDownloadingNonWebViewableFiles; @@ -582,6 +623,24 @@ private void SetSiteProperties(Func timeoutFunctio updateRequired = true; } + if (ParameterSpecified(nameof(RestrictContentOrgWideSearch))) + { + props.RestrictContentOrgWideSearch = RestrictContentOrgWideSearch; + updateRequired = true; + } + + if (ParameterSpecified(nameof(InheritVersionPolicyFromTenant))) + { + props.InheritVersionPolicyFromTenant = InheritVersionPolicyFromTenant; + updateRequired = true; + } + + if (ParameterSpecified(nameof(ReadOnlyForUnmanagedDevices))) + { + props.ReadOnlyForUnmanagedDevices = ReadOnlyForUnmanagedDevices; + updateRequired = true; + } + if (updateRequired) { var op = props.Update(); diff --git a/src/Commands/Admin/UnlockSensitivityLabelEncryptedFile.cs b/src/Commands/Admin/UnlockSensitivityLabelEncryptedFile.cs new file mode 100644 index 000000000..deaa6a49b --- /dev/null +++ b/src/Commands/Admin/UnlockSensitivityLabelEncryptedFile.cs @@ -0,0 +1,24 @@ +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsCommon.Unlock, "PnPSensitivityLabelEncryptedFile")] + public class UnlockSensitivityLabelEncryptedFile : PnPAdminCmdlet + { + [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true)] + public string Url = string.Empty; + + [Parameter(Mandatory = true)] + public string JustificationText = string.Empty; + protected override void ExecuteCmdlet() + { + // Remove URL decoding from the Url as that will not work. We will encode the + character specifically, because if that is part of the filename, it needs to stay and not be decoded. + Url = Utilities.UrlUtilities.UrlDecode(Url.Replace("+", "%2B")); + + Tenant.UnlockSensitivityLabelEncryptedFile(Url, JustificationText); + AdminContext.ExecuteQueryRetry(); + } + } +} diff --git a/src/Commands/Apps/GrantTenantServicePrincipalPermission.cs b/src/Commands/Apps/GrantTenantServicePrincipalPermission.cs index daf4fecac..1742cedda 100644 --- a/src/Commands/Apps/GrantTenantServicePrincipalPermission.cs +++ b/src/Commands/Apps/GrantTenantServicePrincipalPermission.cs @@ -21,7 +21,7 @@ public class GrantTenantServicePrincipalPermission : PnPGraphCmdlet public string Resource = "Microsoft Graph"; protected override void ExecuteCmdlet() { - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var spoWebAppServicePrincipal = new SPOWebAppServicePrincipal(tenantContext); diff --git a/src/Commands/Apps/RevokeTenantServicePrincipalPermission.cs b/src/Commands/Apps/RevokeTenantServicePrincipalPermission.cs index 4659e29d1..97c167e91 100644 --- a/src/Commands/Apps/RevokeTenantServicePrincipalPermission.cs +++ b/src/Commands/Apps/RevokeTenantServicePrincipalPermission.cs @@ -25,8 +25,7 @@ public class RevokeTenantServicePrincipal : PnPGraphCmdlet protected override void ExecuteCmdlet() { - - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var spoWebAppServicePrincipal = new SPOWebAppServicePrincipal(tenantContext); diff --git a/src/Commands/Base/ConnectOnline.cs b/src/Commands/Base/ConnectOnline.cs index 6a62be0e9..3a79064c2 100644 --- a/src/Commands/Base/ConnectOnline.cs +++ b/src/Commands/Base/ConnectOnline.cs @@ -306,11 +306,14 @@ protected void Connect(ref CancellationToken cancellationToken) { credentials = Credentials.Credential; } - - if (PingHost(new Uri(Url).Host) == false) + + if (ValidateConnection) { - throw new PSArgumentException("Host not reachable"); - } + if (PingHost(new Uri(Url).Host) == false) + { + throw new PSArgumentException("Host not reachable"); + } + } if (AzureEnvironment == AzureEnvironment.Custom) { diff --git a/src/Commands/Base/GetChangeLog.cs b/src/Commands/Base/GetChangeLog.cs index 1fc2cbc2c..8640a22bb 100644 --- a/src/Commands/Base/GetChangeLog.cs +++ b/src/Commands/Base/GetChangeLog.cs @@ -20,7 +20,7 @@ protected override void ProcessRecord() if (MyInvocation.BoundParameters.ContainsKey(nameof(Release))) { - var url = $"https://api.github.com/repos/pnp/powershell/releases/tags/{Release.Major}.{Release.Minor}.{Release.Build}"; + var url = $"https://api.github.com/repos/pnp/powershell/releases/tags/v{Release.Major}.{Release.Minor}.{Release.Build}"; var response = client.GetAsync(url).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) { diff --git a/src/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs b/src/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs index 164269ec4..31a56ea96 100644 --- a/src/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs +++ b/src/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs @@ -44,20 +44,20 @@ public Microsoft365GroupPipeBind(Guid guid) public Guid GroupId => _groupId; - public Microsoft365Group GetGroup(PnPConnection connection, string accessToken, bool includeSite, bool includeOwners) + public Microsoft365Group GetGroup(PnPConnection connection, string accessToken, bool includeSite, bool includeOwners, bool detailed, bool includeSensitivityLabels) { Microsoft365Group group = null; if (Group != null) { - group = Microsoft365GroupsUtility.GetGroupAsync(connection, _group.Id.Value, accessToken, includeSite, includeOwners).GetAwaiter().GetResult(); + group = Microsoft365GroupsUtility.GetGroupAsync(connection, _group.Id.Value, accessToken, includeSite, includeOwners, detailed, includeSensitivityLabels).GetAwaiter().GetResult(); } else if (_groupId != Guid.Empty) { - group = Microsoft365GroupsUtility.GetGroupAsync(connection, _groupId, accessToken, includeSite, includeOwners).GetAwaiter().GetResult(); + group = Microsoft365GroupsUtility.GetGroupAsync(connection, _groupId, accessToken, includeSite, includeOwners, detailed, includeSensitivityLabels).GetAwaiter().GetResult(); } else if (!string.IsNullOrEmpty(DisplayName)) { - group = Microsoft365GroupsUtility.GetGroupAsync(connection, DisplayName, accessToken, includeSite, includeOwners).GetAwaiter().GetResult(); + group = Microsoft365GroupsUtility.GetGroupAsync(connection, DisplayName, accessToken, includeSite, includeOwners, detailed, includeSensitivityLabels).GetAwaiter().GetResult(); } return group; } @@ -74,7 +74,7 @@ public Guid GetGroupId(PnPConnection connection, string accessToken) } else if (!string.IsNullOrEmpty(DisplayName)) { - var group = Microsoft365GroupsUtility.GetGroupAsync(connection, DisplayName, accessToken, false, false).GetAwaiter().GetResult(); + var group = Microsoft365GroupsUtility.GetGroupAsync(connection, DisplayName, accessToken, false, false, false, false).GetAwaiter().GetResult(); if (group != null) { return group.Id.Value; diff --git a/src/Commands/Base/PnPConnectedCmdlet.cs b/src/Commands/Base/PnPConnectedCmdlet.cs index a4afb86c4..6888f0597 100644 --- a/src/Commands/Base/PnPConnectedCmdlet.cs +++ b/src/Commands/Base/PnPConnectedCmdlet.cs @@ -101,7 +101,10 @@ protected override void ProcessRecord() throw new PSInvalidOperationException(errorMessage); } - Connection.RestoreCachedContext(Connection.Url); + if (Connection.Context.Url != Connection.Url) + { + Connection.RestoreCachedContext(Connection.Url); + } // With ErrorAction:Ignore, the $Error variable should not be populated with the error, otherwise it should if (!ParameterSpecified("ErrorAction") || !(new[] { "ignore" }.Contains(MyInvocation.BoundParameters["ErrorAction"].ToString().ToLowerInvariant()))) diff --git a/src/Commands/Base/PnPConnection.cs b/src/Commands/Base/PnPConnection.cs index 188ddd8ca..db018126d 100644 --- a/src/Commands/Base/PnPConnection.cs +++ b/src/Commands/Base/PnPConnection.cs @@ -18,6 +18,7 @@ using System.Threading.Tasks; using System.Threading; using System.Net.Http; +using PnP.Framework.Utilities.Context; namespace PnP.PowerShell.Commands.Base { @@ -38,19 +39,19 @@ public class PnPConnection /// /// Returns a reusable HTTPClient that can be used to make HTTP calls on this connection instance /// - internal HttpClient HttpClient => PnP.Framework.Http.PnPHttpClient.Instance.GetHttpClient(); + internal HttpClient HttpClient => Framework.Http.PnPHttpClient.Instance.GetHttpClient(); - private PnPContext pnpContext { get; set; } + private PnPContext PnpContext { get; set; } internal PnPContext PnPContext { get { - if (pnpContext == null && Context != null) + if (PnpContext == null && Context != null) { - pnpContext = PnP.Framework.PnPCoreSdk.Instance.GetPnPContext(Context); + PnpContext = PnPCoreSdk.Instance.GetPnPContext(Context); } - return pnpContext; + return PnpContext; } } /// @@ -58,9 +59,7 @@ internal PnPContext PnPContext /// internal string UserAgent { get; set; } - internal static PnP.Framework.AuthenticationManager CachedAuthenticationManager { get; set; } - - internal ConnectionMethod ConnectionMethod { get; set; } + internal static Framework.AuthenticationManager CachedAuthenticationManager { get; set; } /// /// Identifier set on the SharePoint ClientContext as the ClientTag to identify the source of the requests to SharePoint @@ -69,6 +68,11 @@ internal PnPContext PnPContext internal static List ContextCache { get; set; } + /// + /// Indicates the method used to establish a connection for the authentication + /// + public ConnectionMethod ConnectionMethod { get; set; } + /// /// Connection instance which is set by connecting without -ReturnConnection /// @@ -252,15 +256,15 @@ internal static PnPConnection CreateWithDeviceLogin(string clientId, string url, { var connectionUri = new Uri(url); var scopes = new[] { $"{connectionUri.Scheme}://{connectionUri.Authority}//.default" }; // the second double slash is not a typo. - PnP.Framework.AuthenticationManager authManager = null; - if (PnPConnection.CachedAuthenticationManager != null) + Framework.AuthenticationManager authManager = null; + if (CachedAuthenticationManager != null) { - authManager = PnPConnection.CachedAuthenticationManager; - PnPConnection.CachedAuthenticationManager = null; + authManager = CachedAuthenticationManager; + CachedAuthenticationManager = null; } else { - authManager = PnP.Framework.AuthenticationManager.CreateWithDeviceLogin(clientId, tenantId, (deviceCodeResult) => + authManager = Framework.AuthenticationManager.CreateWithDeviceLogin(clientId, tenantId, (deviceCodeResult) => { if (launchBrowser) { @@ -320,15 +324,15 @@ internal static PnPConnection CreateWithDeviceLogin(string clientId, string url, internal static PnPConnection CreateWithCert(Uri url, string clientId, string tenant, string tenantAdminUrl, AzureEnvironment azureEnvironment, X509Certificate2 certificate, bool certificateFromFile = false) { - PnP.Framework.AuthenticationManager authManager = null; - if (PnPConnection.CachedAuthenticationManager != null) + Framework.AuthenticationManager authManager = null; + if (CachedAuthenticationManager != null) { - authManager = PnPConnection.CachedAuthenticationManager; - PnPConnection.CachedAuthenticationManager = null; + authManager = CachedAuthenticationManager; + CachedAuthenticationManager = null; } else { - authManager = PnP.Framework.AuthenticationManager.CreateWithCertificate(clientId, certificate, tenant, azureEnvironment: azureEnvironment); + authManager = Framework.AuthenticationManager.CreateWithCertificate(clientId, certificate, tenant, azureEnvironment: azureEnvironment); } using (authManager) { @@ -370,41 +374,79 @@ internal static PnPConnection CreateWithCert(Uri url, string clientId, string te /// Instantiated PnPConnection internal static PnPConnection CreateWithManagedIdentity(Cmdlet cmdlet, string url, string tenantAdminUrl, string userAssignedManagedIdentityObjectId = null, string userAssignedManagedIdentityClientId = null, string userAssignedManagedIdentityAzureResourceId = null) { - var httpClient = PnP.Framework.Http.PnPHttpClient.Instance.GetHttpClient(); - string defaultResource = "https://graph.microsoft.com"; - if(url != null) + var endPoint = Environment.GetEnvironmentVariable("IDENTITY_ENDPOINT"); + cmdlet.WriteVerbose($"Using identity endpoint: {endPoint}"); + + var identityHeader = Environment.GetEnvironmentVariable("IDENTITY_HEADER"); + cmdlet.WriteVerbose($"Using identity header: {identityHeader}"); + + if (string.IsNullOrEmpty(endPoint)) { - var resourceUri = new Uri(url); - defaultResource = $"{resourceUri.Scheme}://{resourceUri.Authority}"; + endPoint = Environment.GetEnvironmentVariable("MSI_ENDPOINT"); + identityHeader = Environment.GetEnvironmentVariable("MSI_SECRET"); + } + if (string.IsNullOrEmpty(endPoint)) + { + // additional fallback + // using well-known endpoint for Instance Metadata Service, useful in Azure VM scenario. + // https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http + endPoint = "http://169.254.169.254/metadata/identity/oauth2/token"; } - cmdlet.WriteVerbose("Acquiring token for resource " + defaultResource); - var accessToken = TokenHandler.GetManagedIdentityTokenAsync(cmdlet, httpClient, defaultResource, userAssignedManagedIdentityObjectId, userAssignedManagedIdentityClientId, userAssignedManagedIdentityAzureResourceId).GetAwaiter().GetResult(); + // Define the type of Managed Identity that will be used + ManagedIdentityType managedIdentityType = ManagedIdentityType.SystemAssigned; + string managedIdentityUserAssignedIdentifier = null; - using (var authManager = new PnP.Framework.AuthenticationManager(new System.Net.NetworkCredential("", accessToken).SecurePassword)) + if(!string.IsNullOrEmpty(userAssignedManagedIdentityObjectId)) { - PnPClientContext context = null; - ConnectionType connectionType = ConnectionType.O365; - if (url != null) + managedIdentityType = ManagedIdentityType.UserAssignedByObjectId; + managedIdentityUserAssignedIdentifier = userAssignedManagedIdentityObjectId; + } + if (!string.IsNullOrEmpty(userAssignedManagedIdentityClientId)) + { + managedIdentityType = ManagedIdentityType.UserAssignedByClientId; + managedIdentityUserAssignedIdentifier = userAssignedManagedIdentityClientId; + } + if (!string.IsNullOrEmpty(userAssignedManagedIdentityAzureResourceId)) + { + managedIdentityType = ManagedIdentityType.UserAssignedByResourceId; + managedIdentityUserAssignedIdentifier = userAssignedManagedIdentityAzureResourceId; + } + + // Ensure if its not a System Assigned Managed Identity, that we an identifier pointing to the user assigned Managed Identity + if(managedIdentityType != ManagedIdentityType.SystemAssigned && string.IsNullOrEmpty(managedIdentityUserAssignedIdentifier)) + { + throw new InvalidOperationException("Unable to use a User Assigned Managed Identity without passing in an identifier for the User Assigned Managed Identity."); + } + + // Set up the AuthenticationManager in PnP Framework to use a Managed Identity context + using var authManager = new Framework.AuthenticationManager(endPoint, identityHeader, managedIdentityType, managedIdentityUserAssignedIdentifier); + + PnPClientContext context = null; + ConnectionType connectionType = ConnectionType.O365; + if (url != null) + { + context = PnPClientContext.ConvertFrom(authManager.GetContext(url.ToString())); + context.ApplicationName = Resources.ApplicationName; + context.DisableReturnValueCache = true; + context.ExecutingWebRequest += (sender, e) => { - context = PnPClientContext.ConvertFrom(authManager.GetContext(url.ToString())); - context.ApplicationName = Resources.ApplicationName; - context.DisableReturnValueCache = true; - context.ExecutingWebRequest += (sender, e) => - { - e.WebRequestExecutor.WebRequest.UserAgent = $"NONISV|SharePointPnP|PnPPS/{((AssemblyFileVersionAttribute)Assembly.GetExecutingAssembly().GetCustomAttribute(typeof(AssemblyFileVersionAttribute))).Version} ({System.Environment.OSVersion.VersionString})"; - }; - if (IsTenantAdminSite(context)) - { - connectionType = ConnectionType.TenantAdmin; - } + e.WebRequestExecutor.WebRequest.UserAgent = $"NONISV|SharePointPnP|PnPPS/{((AssemblyFileVersionAttribute)Assembly.GetExecutingAssembly().GetCustomAttribute(typeof(AssemblyFileVersionAttribute))).Version} ({System.Environment.OSVersion.VersionString})"; + }; + if (IsTenantAdminSite(context)) + { + connectionType = ConnectionType.TenantAdmin; } - - var connection = new PnPConnection(context, connectionType, null, url != null ? url.ToString() : null, tenantAdminUrl, PnPPSVersionTag, InitializationType.ManagedIdentity); - connection.UserAssignedManagedIdentityObjectId = userAssignedManagedIdentityObjectId; - connection.UserAssignedManagedIdentityClientId = userAssignedManagedIdentityClientId; - return connection; } + + // Set up PnP PowerShell to use a Managed Identity + var connection = new PnPConnection(context, connectionType, null, url?.ToString(), tenantAdminUrl, PnPPSVersionTag, InitializationType.ManagedIdentity) + { + UserAssignedManagedIdentityObjectId = userAssignedManagedIdentityObjectId, + UserAssignedManagedIdentityClientId = userAssignedManagedIdentityClientId, + UserAssignedManagedIdentityAzureResourceId = userAssignedManagedIdentityAzureResourceId + }; + return connection; } internal static PnPConnection CreateWithCredentials(Cmdlet cmdlet, Uri url, PSCredential credentials, bool currentCredentials, string tenantAdminUrl, AzureEnvironment azureEnvironment = AzureEnvironment.Production, string clientId = null, string redirectUrl = null, bool onPrem = false, InitializationType initializationType = InitializationType.Credentials) @@ -681,15 +723,14 @@ private PnPConnection(ClientContext context, ConnectionType connectionType, PSCr } private PnPConnection(ClientContext context, - ConnectionType connectionType, - PSCredential credential, - string url, - string tenantAdminUrl, - string pnpVersionTag, - InitializationType initializationType) + ConnectionType connectionType, + PSCredential credential, + string url, + string tenantAdminUrl, + string pnpVersionTag, + InitializationType initializationType) { InitializeTelemetry(context, initializationType); - var coreAssembly = Assembly.GetExecutingAssembly(); var connectionMethod = ConnectionMethod.Credentials; if(initializationType == InitializationType.AzureADWorkloadIdentity) @@ -713,7 +754,7 @@ private PnPConnection(ClientContext context, ContextCache = new List { context }; if (!string.IsNullOrEmpty(url)) { - Url = (new Uri(url)).AbsoluteUri; + Url = new Uri(url).AbsoluteUri; } ConnectionMethod = connectionMethod; ClientId = PnPManagementShellClientId; @@ -725,7 +766,7 @@ private PnPConnection(ClientContext context, internal void RestoreCachedContext(string url) { Context = ContextCache.FirstOrDefault(c => new Uri(c.Url).AbsoluteUri == new Uri(url).AbsoluteUri); - pnpContext = null; + PnpContext = null; } internal void CacheContext() @@ -748,7 +789,7 @@ internal ClientContext CloneContext(string url) context.ExecuteQueryRetry(); ContextCache.Add(context); } - pnpContext = null; + PnpContext = null; return context; } diff --git a/src/Commands/Base/TokenHandling.cs b/src/Commands/Base/TokenHandling.cs index 70c4f0cbc..46fabbd8b 100644 --- a/src/Commands/Base/TokenHandling.cs +++ b/src/Commands/Base/TokenHandling.cs @@ -13,6 +13,36 @@ namespace PnP.PowerShell.Commands.Base { internal static class TokenHandler { + /// + /// Returns the type of oAuth JWT token being passed in (Delegate/AppOnly) + /// + /// The oAuth JWT token + /// Enum indicating the type of oAuth JWT token + internal static Enums.IdType RetrieveTokenType(string token) + { + var decodedToken = new JwtSecurityToken(token); + + // The idType is stored in the token as a claim + var idType = decodedToken.Claims.FirstOrDefault(c => c.Type == "idtyp"); + + // Check if the token contains an idType + if (idType == null) return Enums.IdType.Unknown; + + // Parse the idType to the corresponding enum value + return idType.Value.ToLowerInvariant() switch + { + "user" => Enums.IdType.Delegate, + "app" => Enums.IdType.Application, + _ => Enums.IdType.Unknown + }; + } + + /// + /// Extracts the oAuth JWT token to compare the permissions in it (roles) with the required permissions for the cmdlet provided through an attribute + /// + /// The cmdlet that will be executed. Used to check for the permissions attribute. + /// The oAuth JWT token that needs to be validated for its roles + /// Thrown if the permissions set through the permissions attribute do not match the roles in the JWT token internal static void ValidateTokenForPermissions(Type cmdletType, string token) { string[] requiredScopes = null; diff --git a/src/Commands/Branding/SetWebTheme.cs b/src/Commands/Branding/SetWebTheme.cs index db0f30c33..e23d72502 100644 --- a/src/Commands/Branding/SetWebTheme.cs +++ b/src/Commands/Branding/SetWebTheme.cs @@ -22,7 +22,7 @@ public class SetWebTheme : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var tenant = new Tenant(tenantContext); diff --git a/src/Commands/Enums/IdType.cs b/src/Commands/Enums/IdType.cs new file mode 100644 index 000000000..29a948e59 --- /dev/null +++ b/src/Commands/Enums/IdType.cs @@ -0,0 +1,23 @@ +namespace PnP.PowerShell.Commands.Enums +{ + /// + /// Possible IdType values inside an oAuth JWT token + /// + public enum IdType : short + { + /// + /// Unable to identify the token type + /// + Unknown, + + /// + /// IdType user, indicates a delegate token + /// + Delegate, + + /// + /// IdType app, indicates an application token + /// + Application + } +} diff --git a/src/Commands/Files/CopyFile.cs b/src/Commands/Files/CopyFile.cs index 12dc64ca6..bc2e6d9b6 100644 --- a/src/Commands/Files/CopyFile.cs +++ b/src/Commands/Files/CopyFile.cs @@ -7,7 +7,6 @@ namespace PnP.PowerShell.Commands.Files { - [Alias("Copy-PnPFolder")] [Cmdlet(VerbsCommon.Copy, "PnPFile")] public class CopyFile : PnPWebCmdlet { diff --git a/src/Commands/Files/CopyFolder.cs b/src/Commands/Files/CopyFolder.cs new file mode 100644 index 000000000..d94ffc3d5 --- /dev/null +++ b/src/Commands/Files/CopyFolder.cs @@ -0,0 +1,293 @@ +using System; +using System.Linq; +using System.Management.Automation; +using Microsoft.SharePoint.Client; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.Framework.Utilities; +using System.Collections.Generic; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsCommon.Copy, "PnPFolder", DefaultParameterSetName = ParameterSet_WITHINM365)] + public class CopyFolder : PnPWebCmdlet + { + private const string ParameterSet_WITHINM365 = "Copy files within Microsoft 365"; + private const string ParameterSet_FROMLOCAL = "Copy files from local to Microsoft 365"; + + [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ParameterSetName = ParameterSet_WITHINM365)] + [Alias("ServerRelativeUrl")] + public string SourceUrl = string.Empty; + + [Parameter(Mandatory = true, Position = 0, ParameterSetName = ParameterSet_FROMLOCAL)] + public string LocalPath = string.Empty; + + [Parameter(Mandatory = true, Position = 1, ParameterSetName = ParameterSet_WITHINM365)] + [Parameter(Mandatory = true, Position = 1, ParameterSetName = ParameterSet_FROMLOCAL)] + [Alias("TargetServerRelativeUrl")] + public string TargetUrl = string.Empty; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_WITHINM365)] + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_FROMLOCAL)] + [Alias("OverwriteIfAlreadyExists")] + public SwitchParameter Overwrite; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_WITHINM365)] + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_FROMLOCAL)] + public SwitchParameter Force; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_WITHINM365)] + public SwitchParameter IgnoreVersionHistory; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_WITHINM365)] + public SwitchParameter AllowSchemaMismatch; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_WITHINM365)] + public SwitchParameter NoWait; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_FROMLOCAL)] + public SwitchParameter Recurse; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSet_FROMLOCAL)] + public SwitchParameter RemoveAfterCopy; + + protected override void ExecuteCmdlet() + { + var webServerRelativeUrl = CurrentWeb.EnsureProperty(w => w.ServerRelativeUrl); + + switch(ParameterSetName) + { + case ParameterSet_FROMLOCAL: + // Copy a folder from local to Microsoft 365 + CopyFromLocalToMicrosoft365(); + break; + + case ParameterSet_WITHINM365: + // Copy a folder within Microsoft 365 + CopyWithinMicrosoft365(); + break; + } + } + + /// + /// Copies a folder from local to Microsoft 365 + /// + private void CopyFromLocalToMicrosoft365() + { + if (TargetUrl.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase)) + { + // Remove the server part from the full FQDN making it server relative + TargetUrl = TargetUrl[8..]; + TargetUrl = TargetUrl[TargetUrl.IndexOf('/')..]; + } + + if (!TargetUrl.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase) && TargetUrl.StartsWith(CurrentWeb.ServerRelativeUrl, StringComparison.InvariantCultureIgnoreCase)) + { + // Remove the server relative path making it web relative + TargetUrl = TargetUrl[CurrentWeb.ServerRelativeUrl.Length..]; + } + + if (!System.IO.Path.IsPathRooted(LocalPath)) + { + LocalPath = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, LocalPath); + } + + // Normalize the path, taking out relative links and such to make it more readable + LocalPath = System.IO.Path.GetFullPath(new Uri(LocalPath).LocalPath); + + if (!System.IO.Directory.Exists(LocalPath)) + { + throw new PSArgumentException($"{nameof(LocalPath)} does not exist", nameof(LocalPath)); + } + + WriteVerbose($"Copying folder from local path {LocalPath} to Microsoft 365 location {UrlUtility.Combine(CurrentWeb.ServerRelativeUrl, TargetUrl)}"); + WriteVerbose($"Retrieving local files {(Recurse.ToBool() ? "recursively " : "")}to upload from {LocalPath}"); + + var filesToCopy = System.IO.Directory.GetFiles(LocalPath, string.Empty, Recurse.ToBool() ? System.IO.SearchOption.AllDirectories : System.IO.SearchOption.TopDirectoryOnly); + + WriteVerbose($"Uploading {filesToCopy.Length} file{(filesToCopy.Length != 1 ? "s" : "")}"); + + // Start with the root + string currentRemotePath = null; + Folder folder = null; + var folderPathsToRemove = new List(); + + foreach(var fileToCopy in filesToCopy) + { + var fileName = System.IO.Path.GetFileName(fileToCopy); + var relativeLocalPathWithFileName = System.IO.Path.GetRelativePath(LocalPath, fileToCopy); + var relativePath = relativeLocalPathWithFileName.Remove(relativeLocalPathWithFileName.Length - fileName.Length); + + // Check if we're dealing with a different subfolder now as we did during the previous cycle + if(relativePath != currentRemotePath) + { + // Check files should be removed after uploading and if so, if the previous folder is empty and should be removed. Skip the root folder, that should never be removed. + if(RemoveAfterCopy.ToBool() && currentRemotePath != null) + { + // Add the folder to be examined at the end of the upload session. If we would do it now, we could still have subfolders of which the files have not been uploaded yet, so we cannot delete the folder yet + var localFolder = System.IO.Path.Combine(LocalPath, relativePath); + folderPathsToRemove.Add(localFolder); + } + + // New subfolder, ensure the folder exists remotely as well + currentRemotePath = relativePath; + + var newRemotePath = UrlUtility.Combine(TargetUrl, relativePath); + + WriteVerbose($"* Ensuring remote folder {newRemotePath}"); + + folder = CurrentWeb.EnsureFolderPath(newRemotePath); + } + + // Upload the file from local to remote + WriteVerbose($" * Uploading {fileToCopy} => {relativeLocalPathWithFileName}"); + try + { + folder.UploadFile(fileName, fileToCopy, Overwrite.ToBool()); + + if(RemoveAfterCopy.ToBool()) + { + WriteVerbose($" * Removing {fileToCopy}"); + System.IO.File.Delete(fileToCopy); + } + } + catch(Exception ex) + { + WriteWarning($"* Upload failed: {ex.Message}"); + } + } + + // Check if we should and can clean up folders no longer containing files + if (RemoveAfterCopy.ToBool() && folderPathsToRemove.Count > 0) + { + WriteVerbose($"Checking if {folderPathsToRemove.Count} folder{(folderPathsToRemove.Count != 1 ? "s" : "")} are empty and can be removed"); + + // Reverse the list so we start with the deepest nested folder first + folderPathsToRemove.Reverse(); + + foreach (var folderPathToRemove in folderPathsToRemove) + { + if (System.IO.Directory.GetFiles(folderPathToRemove).Length == 0) + { + WriteVerbose($"* Removing empty folder {folderPathToRemove}"); + try + { + System.IO.Directory.Delete(folderPathToRemove); + } + catch(Exception ex) + { + WriteWarning($"* Failed to remove empty folder {folderPathToRemove}: {ex.Message}"); + } + } + else + { + WriteVerbose($"* Folder {folderPathToRemove} is not empty and thus will not be removed"); + } + } + } + + } + + /// + /// Copies a folder within Microsoft 365 + /// + private void CopyWithinMicrosoft365() + { + if (!TargetUrl.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase) && !TargetUrl.StartsWith("/")) + { + TargetUrl = UrlUtility.Combine(CurrentWeb.ServerRelativeUrl, TargetUrl); + } + + if (!SourceUrl.StartsWith("/")) + { + SourceUrl = UrlUtility.Combine(CurrentWeb.ServerRelativeUrl, SourceUrl); + } + + WriteVerbose($"Copying folder within Microsoft 365 from {SourceUrl} to {TargetUrl}"); + + string sourceFolder = SourceUrl.Substring(0, SourceUrl.LastIndexOf('/')); + string targetFolder = TargetUrl; + if (System.IO.Path.HasExtension(TargetUrl)) + { + targetFolder = TargetUrl[..TargetUrl.LastIndexOf('/')]; + } + Uri currentContextUri = new(ClientContext.Url); + Uri sourceUri = new(currentContextUri, EncodePath(sourceFolder)); + Uri sourceWebUri = Web.WebUrlFromFolderUrlDirect(ClientContext, sourceUri); + Uri targetUri = new(currentContextUri, EncodePath(targetFolder)); + Uri targetWebUri; + if (TargetUrl.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase)) + { + targetUri = new Uri(TargetUrl); + targetWebUri = targetUri; + } + else + { + targetWebUri = Microsoft.SharePoint.Client.Web.WebUrlFromFolderUrlDirect(ClientContext, targetUri); + } + + if (Force || ShouldContinue(string.Format(Resources.CopyFile0To1, SourceUrl, TargetUrl), Resources.Confirm)) + { + if (sourceWebUri != targetWebUri) + { + Copy(currentContextUri, sourceUri, targetUri, SourceUrl, TargetUrl, false, NoWait); + } + else + { + var isFolder = false; + try + { + var folder = CurrentWeb.GetFolderByServerRelativePath(ResourcePath.FromDecodedUrl(TargetUrl)); + var folderServerRelativePath = folder.EnsureProperty(f => f.ServerRelativePath); + isFolder = folderServerRelativePath.DecodedUrl == ResourcePath.FromDecodedUrl(TargetUrl).DecodedUrl; + } + catch + { + } + if (isFolder) + { + Copy(currentContextUri, sourceUri, targetUri, SourceUrl, TargetUrl, true, NoWait); + } + else + { + var file = CurrentWeb.GetFileByServerRelativePath(ResourcePath.FromDecodedUrl(SourceUrl)); + file.CopyToUsingPath(ResourcePath.FromDecodedUrl(TargetUrl), Overwrite); + ClientContext.ExecuteQueryRetry(); + } + } + } + } + + private string EncodePath(string path) + { + var parts = path.Split("/"); + return string.Join("/", parts.Select(p => Uri.EscapeDataString(p))); + } + + private void Copy(Uri currentContextUri, Uri source, Uri destination, string sourceUrl, string targetUrl, bool sameWebCopyMoveOptimization, bool noWait) + { + if (!sourceUrl.StartsWith(source.ToString())) + { + sourceUrl = $"{source.Scheme}://{source.Host}/{sourceUrl.TrimStart('/')}"; + } + if (!targetUrl.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase) && !targetUrl.StartsWith(destination.ToString())) + { + targetUrl = $"{destination.Scheme}://{destination.Host}/{targetUrl.TrimStart('/')}"; + } + var results = Utilities.CopyMover.CopyAsync(HttpClient, ClientContext, currentContextUri, sourceUrl, targetUrl, IgnoreVersionHistory, Overwrite, AllowSchemaMismatch, sameWebCopyMoveOptimization, false, noWait).GetAwaiter().GetResult(); + if (NoWait) + { + WriteObject(results.jobInfo); + } + else + { + foreach (var log in results.logs) + { + if (log.Event == "JobError") + { + WriteObject(log); + } + } + } + } + } +} diff --git a/src/Commands/Files/GetFileSensitivityLabelInfo.cs b/src/Commands/Files/GetFileSensitivityLabelInfo.cs new file mode 100644 index 000000000..bf379a6ed --- /dev/null +++ b/src/Commands/Files/GetFileSensitivityLabelInfo.cs @@ -0,0 +1,29 @@ +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Files +{ + + [Cmdlet(VerbsCommon.Get, "PnPFileSensitivityLabelInfo")] + public class GetFileSensitivityLabelInfo: PnPAdminCmdlet + { + [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true)] + public string Url = string.Empty; + protected override void ExecuteCmdlet() + { + // Remove URL decoding from the Url as that will not work. We will encode the + character specifically, because if that is part of the filename, it needs to stay and not be decoded. + Url = Utilities.UrlUtilities.UrlDecode(Url.Replace("+", "%2B")); + + var fileSensitivityLabelInfo = Tenant.GetFileSensitivityLabelInfo(Url); + AdminContext.Load(fileSensitivityLabelInfo); + AdminContext.ExecuteQueryRetry(); + WriteObject(new Model.SharePoint.SPOFileSensitivityLabelInfo(fileSensitivityLabelInfo)); + } + } +} diff --git a/src/Commands/Files/GetFileVersion.cs b/src/Commands/Files/GetFileVersion.cs index 2fdff4045..952c4db2d 100644 --- a/src/Commands/Files/GetFileVersion.cs +++ b/src/Commands/Files/GetFileVersion.cs @@ -13,6 +13,9 @@ public class GetFileVersion : PnPWebCmdlet [Parameter(Mandatory = true)] public string Url; + [Parameter(Mandatory = false)] + public SwitchParameter UseVersionExpirationReport; + protected override void ExecuteCmdlet() { var serverRelativeUrl = string.Empty; @@ -31,13 +34,21 @@ protected override void ExecuteCmdlet() File file; file = CurrentWeb.GetFileByServerRelativePath(ResourcePath.FromDecodedUrl(serverRelativeUrl)); + + if (UseVersionExpirationReport) + { + ClientContext.Load(file, f => f.Exists, f => f.VersionExpirationReport.IncludeWithDefaultProperties(i => i.CreatedBy, i => i.SnapshotDate, i => i.ExpirationDate)); + } + else + { + ClientContext.Load(file, f => f.Exists, f => f.Versions.IncludeWithDefaultProperties(i => i.CreatedBy, i => i.SnapshotDate, i => i.ExpirationDate)); + } - ClientContext.Load(file, f => f.Exists, f => f.Versions.IncludeWithDefaultProperties(i => i.CreatedBy)); ClientContext.ExecuteQueryRetry(); if (file.Exists) { - var versions = file.Versions; + var versions = UseVersionExpirationReport ? file.VersionExpirationReport : file.Versions; ClientContext.ExecuteQueryRetry(); WriteObject(versions, true); } diff --git a/src/Commands/InformationManagement/ResetRetentionLabel.cs b/src/Commands/InformationManagement/ResetRetentionLabel.cs index 59f15f02f..caf33fdfe 100644 --- a/src/Commands/InformationManagement/ResetRetentionLabel.cs +++ b/src/Commands/InformationManagement/ResetRetentionLabel.cs @@ -68,7 +68,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Clearing retention label on batch {rangeIndex} of items"); Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyStoreProxy.SetComplianceTagOnBulkItems(ClientContext, range, rootUrl + list.RootFolder.ServerRelativeUrl, string.Empty); - ClientContext.ExecuteQuery(); + ClientContext.ExecuteQueryRetry(); ItemIds.RemoveRange(0, itemsToProcess); } diff --git a/src/Commands/InformationManagement/SetRetentionLabel.cs b/src/Commands/InformationManagement/SetRetentionLabel.cs index 27584b4b1..3e568c904 100644 --- a/src/Commands/InformationManagement/SetRetentionLabel.cs +++ b/src/Commands/InformationManagement/SetRetentionLabel.cs @@ -71,8 +71,7 @@ protected override void ExecuteCmdlet() if (ParameterSetName == ParamSet_BulkItems) { PnPContext.Web.LoadAsync(i => i.Url); - list.LoadAsync(i => i.RootFolder); - + list.LoadAsync(i => i.RootFolder); var rootUrl = PnPContext.Web.Url.GetLeftPart(UriPartial.Authority); @@ -87,7 +86,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Setting retention label to batch {rangeIndex} of items"); Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyStoreProxy.SetComplianceTagOnBulkItems(ClientContext, range, rootUrl + list.RootFolder.ServerRelativeUrl, Label); - ClientContext.ExecuteQuery(); + ClientContext.ExecuteQueryRetry(); ItemIds.RemoveRange(0, itemsToProcess); } } diff --git a/src/Commands/ListDesign/InvokeListDesign.cs b/src/Commands/ListDesign/InvokeListDesign.cs index b004ebddf..57cdfa3ce 100644 --- a/src/Commands/ListDesign/InvokeListDesign.cs +++ b/src/Commands/ListDesign/InvokeListDesign.cs @@ -19,7 +19,7 @@ public class InvokeListDesign : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var tenant = new Tenant(tenantContext); diff --git a/src/Commands/Lists/CopyList.cs b/src/Commands/Lists/CopyList.cs index 9e0a20d98..85c0b5e95 100644 --- a/src/Commands/Lists/CopyList.cs +++ b/src/Commands/Lists/CopyList.cs @@ -2,10 +2,10 @@ using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using System.Text.RegularExpressions; using System.Linq; using PnP.PowerShell.Commands.Utilities.REST; using PnP.PowerShell.Commands.Model.SharePoint; +using System.Text.Json.Nodes; namespace PnP.PowerShell.Commands.Lists { @@ -69,9 +69,15 @@ protected override void ExecuteCmdlet() if (ParameterSpecified(nameof(Title)) && !string.IsNullOrWhiteSpace(Title)) { - // Update the list name in the site script using a regular expression + // Update the list name in the site script in the first *_listName binding parameter WriteVerbose($"Setting list title to '{Title}'"); - script = Regex.Replace(script, "(?<=\"listName\":\\s?\")(.*?)(?=\")", Title); + + JsonNode scriptAsJson = JsonNode.Parse(script); + + var listNameElement = scriptAsJson["bindings"].AsObject().Where(b => b.Key.EndsWith("_listName")).First(); + listNameElement.Value["defaultValue"] = Title; + + script = scriptAsJson.ToJsonString(); } // Check if we need to set the destination to the current site diff --git a/src/Commands/Lists/GetLibraryFileVersionBatchDeleteJobStatus.cs b/src/Commands/Lists/GetLibraryFileVersionBatchDeleteJobStatus.cs new file mode 100644 index 000000000..e8dcd4c15 --- /dev/null +++ b/src/Commands/Lists/GetLibraryFileVersionBatchDeleteJobStatus.cs @@ -0,0 +1,58 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.SharePoint; +using System; +using System.Management.Automation; +using System.Text.Json; + +namespace PnP.PowerShell.Commands.Lists +{ + [Cmdlet(VerbsCommon.Get, "PnPLibraryFileVersionBatchDeleteJobStatus")] + [OutputType(typeof(FileVersionBatchDeleteJobStatus))] + public class GetLibraryFileVersionBatchDeleteJobStatus : PnPWebCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + [ValidateNotNull] + public ListPipeBind Identity; + + protected override void ExecuteCmdlet() + { + var list = Identity.GetList(CurrentWeb); + if (list != null) + { + var ret = list.GetProgressForDeleteFileVersions(); + ClientContext.ExecuteQueryRetry(); + + var progress = JsonSerializer.Deserialize(ret.Value); + var connectionUrl = new Uri(Connection.Url); + var serverUrl = string.Concat("https://", connectionUrl.Host); + progress.Url = string.Concat(serverUrl, list.RootFolder.ServerRelativeUrl); + + if (!string.Equals(progress.BatchDeleteMode, FileVersionBatchDeleteMode.DeleteOlderThanDays.ToString(), StringComparison.OrdinalIgnoreCase)) + { + progress.DeleteOlderThan = string.Empty; + } + + if (!string.Equals(progress.BatchDeleteMode, FileVersionBatchDeleteMode.CountLimits.ToString(), StringComparison.OrdinalIgnoreCase)) + { + progress.MajorVersionLimit = string.Empty; + progress.MajorWithMinorVersionsLimit = string.Empty; + } + + if (string.Equals(progress.LastProcessTimeInUTC, DateTime.MinValue.ToString())) + { + progress.LastProcessTimeInUTC = string.Empty; + } + + if (string.Equals(progress.CompleteTimeInUTC, DateTime.MinValue.ToString())) + { + progress.CompleteTimeInUTC = string.Empty; + } + + WriteObject(progress); + } + } + } +} diff --git a/src/Commands/Lists/GetLibraryFileVersionExpirationReportJobStatus.cs b/src/Commands/Lists/GetLibraryFileVersionExpirationReportJobStatus.cs new file mode 100644 index 000000000..ca33d0ea7 --- /dev/null +++ b/src/Commands/Lists/GetLibraryFileVersionExpirationReportJobStatus.cs @@ -0,0 +1,39 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.SharePoint; + +using System.Management.Automation; +using System.Text.Json; + +namespace PnP.PowerShell.Commands.Lists +{ + [Cmdlet(VerbsCommon.Get, "PnPLibraryFileVersionExpirationReportJobStatus")] + [OutputType(typeof(FileVersionExpirationReportJobStatus))] + public class GetLibraryFileVersionExpirationReportJobStatus : PnPWebCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + [ValidateNotNull] + public ListPipeBind Identity; + + [Parameter(Mandatory = true)] + public string ReportUrl; + + protected override void ExecuteCmdlet() + { + var list = Identity.GetList(CurrentWeb); + if (list != null) + { + var ret = list.GetProgressForFileVersionExpirationReport(ReportUrl); + ClientContext.ExecuteQueryRetry(); + + var status = JsonSerializer.Deserialize(ret.Value); + status.Url = list.RootFolder.ServerRelativeUrl; + status.ReportUrl = ReportUrl; + + WriteObject(status); + } + } + } +} diff --git a/src/Commands/Lists/NewLibraryFileVersionBatchDeleteJob.cs b/src/Commands/Lists/NewLibraryFileVersionBatchDeleteJob.cs new file mode 100644 index 000000000..0109a3dc5 --- /dev/null +++ b/src/Commands/Lists/NewLibraryFileVersionBatchDeleteJob.cs @@ -0,0 +1,90 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +using Resources = PnP.PowerShell.Commands.Properties.Resources; + +namespace PnP.PowerShell.Commands.Lists +{ + [Cmdlet(VerbsCommon.New, "PnPLibraryFileVersionBatchDeleteJob")] + public class NewLibraryFileVersionBatchDeleteJob : PnPWebCmdlet + { + private const string ParameterSet_AUTOMATICTRIM = "AutomaticTrim"; + private const string ParameterSet_DELETEOLDERTHANDAYS = "DeleteOlderThanDays"; + private const string ParameterSet_COUNTLIMITS = "CountLimits"; + + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + [ValidateNotNull] + public ListPipeBind Identity; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_AUTOMATICTRIM)] + public SwitchParameter Automatic; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_DELETEOLDERTHANDAYS)] + public int DeleteBeforeDays; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_COUNTLIMITS)] + public int MajorVersionLimit; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_COUNTLIMITS)] + public int MajorWithMinorVersionsLimit; + + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + FileVersionBatchDeleteMode batchDeleteMode; + if (Automatic) + { + batchDeleteMode = FileVersionBatchDeleteMode.AutomaticTrim; + DeleteBeforeDays = -1; + MajorVersionLimit = -1; + MajorWithMinorVersionsLimit = -1; + } + else if (ParameterSpecified(nameof(DeleteBeforeDays))) + { + batchDeleteMode = FileVersionBatchDeleteMode.DeleteOlderThanDays; + MajorVersionLimit = -1; + MajorWithMinorVersionsLimit = -1; + } + else if (ParameterSpecified(nameof(MajorVersionLimit)) || + ParameterSpecified(nameof(MajorWithMinorVersionsLimit))) + { + batchDeleteMode = FileVersionBatchDeleteMode.CountLimits; + DeleteBeforeDays = -1; + } + else + { + throw new PSArgumentException($"One or more parameters issued cannot be used together or an insufficient number of parameters were provided. Specify Automatic for automatic trim. Specify DeleteBeforeDays for delete older than days. Specify MajorVersionLimit and MajorWithMinorVersionsLimit for version count limits."); + } + + if (Force || ShouldContinue("By executing this command, versions specified will be permanently deleted. These versions cannot be restored from the recycle bin. Are you sure you want to continue?", Resources.Confirm)) + { + var list = Identity.GetList(CurrentWeb); + if (list != null) + { + var ps = new FileVersionBatchDeleteParameters(); + + ps.BatchDeleteMode = batchDeleteMode; + ps.DeleteOlderThanDays = DeleteBeforeDays; + ps.MajorVersionLimit = MajorVersionLimit; + ps.MajorWithMinorVersionsLimit = MajorWithMinorVersionsLimit; + + list.StartDeleteFileVersionsByMode(ps); + + ClientContext.ExecuteQueryRetry(); + + WriteObject("Success. Versions specified will be permanently deleted in the upcoming days."); + } + } + else + { + WriteObject("Cancelled. No versions will be deleted."); + } + } + } +} diff --git a/src/Commands/Lists/NewLibraryFileVersionExpirationReportJob.cs b/src/Commands/Lists/NewLibraryFileVersionExpirationReportJob.cs new file mode 100644 index 000000000..43ed6317f --- /dev/null +++ b/src/Commands/Lists/NewLibraryFileVersionExpirationReportJob.cs @@ -0,0 +1,32 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Lists +{ + [Cmdlet(VerbsCommon.New, "PnPLibraryFileVersionExpirationReportJob")] + public class NewLibraryFileVersionExpirationReportJob : PnPWebCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + [ValidateNotNull] + public ListPipeBind Identity; + + [Parameter(Mandatory = true)] + public string ReportUrl; + + protected override void ExecuteCmdlet() + { + var list = Identity.GetList(CurrentWeb); + if (list != null) + { + list.StartFileVersionExpirationReport(ReportUrl); + ClientContext.ExecuteQueryRetry(); + + WriteObject("Success. The file version expiration report will be gradually populated. It will take over 24 hours to complete for a small library, and a few days for a larger one."); + } + } + } +} diff --git a/src/Commands/Lists/RemoveLibraryFileVersionBatchDeleteJob.cs b/src/Commands/Lists/RemoveLibraryFileVersionBatchDeleteJob.cs new file mode 100644 index 000000000..c25effb2f --- /dev/null +++ b/src/Commands/Lists/RemoveLibraryFileVersionBatchDeleteJob.cs @@ -0,0 +1,41 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +using Resources = PnP.PowerShell.Commands.Properties.Resources; + +namespace PnP.PowerShell.Commands.Lists +{ + [Cmdlet(VerbsCommon.Remove, "PnPLibraryFileVersionBatchDeleteJob")] + public class RemoveLibraryFileVersionBatchDeleteJob : PnPWebCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + [ValidateNotNull] + public ListPipeBind Identity; + + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + if (Force || ShouldContinue("It will stop processing further version deletion batches. Are you sure you want to continue?", Resources.Confirm)) + { + var list = Identity.GetList(CurrentWeb); + if (list != null) + { + list.CancelDeleteFileVersions(); + ClientContext.ExecuteQueryRetry(); + } + + WriteObject("Future deletion is successfully stopped."); + } + else + { + WriteObject("Did not receive confirmation to stop deletion. Continuing to delete specified versions."); + } + } + } +} diff --git a/src/Commands/Microsoft365Groups/GetMicrosoft365Group.cs b/src/Commands/Microsoft365Groups/GetMicrosoft365Group.cs index a42d954ca..fbb3dcd48 100644 --- a/src/Commands/Microsoft365Groups/GetMicrosoft365Group.cs +++ b/src/Commands/Microsoft365Groups/GetMicrosoft365Group.cs @@ -21,21 +21,27 @@ public class GetMicrosoft365Group : PnPGraphCmdlet [Parameter(Mandatory = false)] public SwitchParameter IncludeOwners; + [Parameter(Mandatory = false)] + public SwitchParameter Detailed; + [Parameter(Mandatory = false)] public string Filter; + [Parameter(Mandatory = false)] + public SwitchParameter IncludeSensitivityLabels; + protected override void ExecuteCmdlet() { var includeSiteUrl = IncludeSiteUrl.ToBool(); if (Identity != null) { - var group = Identity.GetGroup(Connection, AccessToken, includeSiteUrl, IncludeOwners); + var group = Identity.GetGroup(Connection, AccessToken, includeSiteUrl, IncludeOwners, Detailed.ToBool(), IncludeSensitivityLabels); WriteObject(group); } else { - var groups = Microsoft365GroupsUtility.GetGroupsAsync(Connection, AccessToken, includeSiteUrl, IncludeOwners, Filter).GetAwaiter().GetResult(); + var groups = Microsoft365GroupsUtility.GetGroupsAsync(Connection, AccessToken, includeSiteUrl, IncludeOwners, Filter, IncludeSensitivityLabels).GetAwaiter().GetResult(); WriteObject(groups.OrderBy(p => p.DisplayName), true); } diff --git a/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs b/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs index fa328a13c..face3ed1c 100644 --- a/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs +++ b/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs @@ -101,7 +101,7 @@ protected override void ExecuteCmdlet() if (!Force) { - var candidate = Microsoft365GroupsUtility.GetGroupAsync(Connection, MailNickname, AccessToken, false, false).GetAwaiter().GetResult(); + var candidate = Microsoft365GroupsUtility.GetGroupAsync(Connection, MailNickname, AccessToken, false, false, false, false).GetAwaiter().GetResult(); forceCreation = candidate == null || ShouldContinue($"The Microsoft 365 Group '{MailNickname} already exists. Do you want to create a new one?", Properties.Resources.Confirm); } else @@ -180,7 +180,7 @@ protected override void ExecuteCmdlet() Microsoft365GroupsUtility.SetVisibilityAsync(Connection, AccessToken, group.Id.Value, HideFromAddressLists, HideFromOutlookClients).GetAwaiter().GetResult(); } - var updatedGroup = Microsoft365GroupsUtility.GetGroupAsync(Connection, group.Id.Value, AccessToken, true, false).GetAwaiter().GetResult(); + var updatedGroup = Microsoft365GroupsUtility.GetGroupAsync(Connection, group.Id.Value, AccessToken, true, false, false, true).GetAwaiter().GetResult(); WriteObject(updatedGroup); } diff --git a/src/Commands/Microsoft365Groups/RemoveMicrosoft365GroupPhoto.cs b/src/Commands/Microsoft365Groups/RemoveMicrosoft365GroupPhoto.cs index 35331d5f2..f60e714ba 100644 --- a/src/Commands/Microsoft365Groups/RemoveMicrosoft365GroupPhoto.cs +++ b/src/Commands/Microsoft365Groups/RemoveMicrosoft365GroupPhoto.cs @@ -18,7 +18,7 @@ public class RemoveMicrosoft365GroupPicture : PnPGraphCmdlet protected override void ExecuteCmdlet() { - var group = Identity.GetGroup(Connection, AccessToken, false, false); + var group = Identity.GetGroup(Connection, AccessToken, false, false, false, false); if (group != null) { var response = Microsoft365GroupsUtility.DeletePhotoAsync(Connection, AccessToken, group.Id.Value).GetAwaiter().GetResult(); diff --git a/src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs b/src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs index 64419ee2a..d65a39278 100644 --- a/src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs +++ b/src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs @@ -53,15 +53,22 @@ public class SetMicrosoft365Group : PnPGraphCmdlet [Parameter(Mandatory = false)] public string MailNickname; - + + [Parameter(Mandatory = false)] // This is the name used in Microsoft Graph while the name RequireSenderAuthenticationEnabled is the one used within Exchange Online, but there its inversed, so we cannot easily add it as an alias here. They both are about the same feature. + public bool? AllowExternalSenders; + + [Parameter(Mandatory = false)] + public bool? AutoSubscribeNewMembers; + protected override void ExecuteCmdlet() { - var group = Identity.GetGroup(Connection, AccessToken, false, false); - + var group = Identity.GetGroup(Connection, AccessToken, false, false, false, false); if (group != null) { bool changed = false; + bool exchangeOnlinePropertiesChanged = false; + if (ParameterSpecified(nameof(DisplayName))) { group.DisplayName = DisplayName; @@ -91,9 +98,38 @@ protected override void ExecuteCmdlet() } if (changed) { + WriteVerbose("Updating Microsoft 365 Group properties in Microsoft Graph"); group = Microsoft365GroupsUtility.UpdateAsync(Connection, AccessToken, group).GetAwaiter().GetResult(); } + if (ParameterSpecified(nameof(AllowExternalSenders)) && AllowExternalSenders.HasValue) + { + if(TokenHandler.RetrieveTokenType(AccessToken) != Enums.IdType.Delegate) + { + WriteWarning($"{nameof(AllowExternalSenders)} can only be used with a delegate token. You're currently connected through an application token."); + } + + group.AllowExternalSenders = AllowExternalSenders.Value; + exchangeOnlinePropertiesChanged = true; + } + + if (ParameterSpecified(nameof(AutoSubscribeNewMembers)) && AutoSubscribeNewMembers.HasValue) + { + if (TokenHandler.RetrieveTokenType(AccessToken) != Enums.IdType.Delegate) + { + WriteWarning($"{nameof(AllowExternalSenders)} can only be used with a delegate token. You're currently connected through an application token."); + } + + group.AutoSubscribeNewMembers = AutoSubscribeNewMembers.Value; + exchangeOnlinePropertiesChanged = true; + } + + if (exchangeOnlinePropertiesChanged) + { + WriteVerbose("Updating Microsoft 365 Group Exchange Online properties through Microsoft Graph"); + group = Microsoft365GroupsUtility.UpdateExchangeOnlineSettingAsync(Connection, group.Id.Value, AccessToken, group).GetAwaiter().GetResult(); + } + if (ParameterSpecified(nameof(Owners))) { Microsoft365GroupsUtility.UpdateOwnersAsync(Connection, group.Id.Value, AccessToken, Owners).GetAwaiter().GetResult(); diff --git a/src/Commands/Model/ConnectionMethod.cs b/src/Commands/Model/ConnectionMethod.cs index d0fb42a58..b80cfbb28 100644 --- a/src/Commands/Model/ConnectionMethod.cs +++ b/src/Commands/Model/ConnectionMethod.cs @@ -1,23 +1,38 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace PnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { + /// + /// The authentication types that can be used to create a connection + /// public enum ConnectionMethod { Unspecified, WebLogin, + + /// + /// Using interactive logon or by passing in credentials + /// Credentials, + + /// + /// By passing in an access token to the connect + /// AccessToken, + AzureADAppOnly, AzureADNativeApplication, ADFS, GraphDeviceLogin, + + /// + /// Using a Device Login + /// DeviceLogin, + + /// + /// Using a System Assigned or User Assigned Managed Identity + /// ManagedIdentity, + AzureADWorkloadIdentity } } diff --git a/src/Commands/Model/Microsoft365Group.cs b/src/Commands/Model/Microsoft365Group.cs index 189e69396..92e7b9409 100644 --- a/src/Commands/Model/Microsoft365Group.cs +++ b/src/Commands/Model/Microsoft365Group.cs @@ -5,6 +5,9 @@ namespace PnP.PowerShell.Commands.Model { + /// + /// Properties of one Microsoft 365 Group + /// public class Microsoft365Group { [JsonPropertyName("owners@odata.bind")] @@ -53,6 +56,9 @@ public string GroupId public string SiteUrl { get; set; } public string[] GroupTypes { get; set; } public IEnumerable Owners { get; set; } + public bool? AllowExternalSenders { get; set; } + public bool? IsSubscribedByMail { get; set; } + public bool? AutoSubscribeNewMembers { get; set; } public List AssignedLabels { get; set; } diff --git a/src/Commands/Model/SPOSite.cs b/src/Commands/Model/SPOSite.cs index e0fdcc15c..a400de790 100644 --- a/src/Commands/Model/SPOSite.cs +++ b/src/Commands/Model/SPOSite.cs @@ -1,5 +1,7 @@ using System; using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.Online.SharePoint.TenantManagement; +using Microsoft.SharePoint.Client.Sharing; namespace PnP.PowerShell.Commands.Model { @@ -32,7 +34,7 @@ public class SPOSite public bool IsTeamsConnected { get; } public DateTime LastContentModifiedDate { get; } public Microsoft.Online.SharePoint.TenantManagement.SPOLimitedAccessFileType LimitedAccessFileType { get; set; } - public UInt32 LocaleId { get; set; } + public uint LocaleId { get; set; } public string LockIssue { get; } public string LockState { get; set; } public bool OverrideTenantAnonymousLinkExpirationPolicy { get; set; } @@ -74,9 +76,30 @@ public class SPOSite public Guid[] InformationBarrierSegmentsToAdd { get; set; } public Guid[] InformationBarrierSegmentsToRemove { get; set; } - public bool? RequestFilesLinkEnabled { private set; get; } - public int? RequestFilesLinkExpirationInDays { private set; get; } - + public bool? RequestFilesLinkEnabled { set; get; } + public int? RequestFilesLinkExpirationInDays { set; get; } + public Role LoopDefaultSharingLinkRole { get; set; } + public SharingScope DefaultShareLinkScope { get; set; } + public Role DefaultShareLinkRole { get; set; } + public SharingScope LoopDefaultSharingLinkScope { get; set; } + public string ArchiveStatus { get; set; } + public bool EnableAutoExpirationVersionTrim { get; set; } + public int ExpireVersionsAfterDays { get; set; } + + public bool InheritVersionPolicyFromTenant { get; set; } + public bool IsGroupOwnerSiteAdmin { get; set; } + public bool ListsShowHeaderAndNavigation { get; set; } + public int LockReason { get; set; } + public int MajorVersionLimit { get; set; } + public int MajorWithMinorVersionsLimit { get; set; } + public bool RestrictedAccessControl { get; set; } + public Guid[] RestrictedAccessControlGroups { get; set; } + public Guid[] RestrictedAccessControlGroupsToAdd { get; set; } + public Guid[] RestrictedAccessControlGroupsToRemove { get; set; } + public RestrictedToRegion RestrictedToRegion { get; set; } + public bool SetOwnerWithoutUpdatingSecondaryAdmin { get; set; } + public bool RestrictContentOrgWideSearch { get; set; } + public bool ReadOnlyForUnmanagedDevices { get; set; } #endregion @@ -139,7 +162,7 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus) StorageUsageCurrent = props.StorageUsage; TeamsChannelType = props.TeamsChannelType; Template = props.Template; - Title = props.Title; + Title = props.Title; WebsCount = props.WebsCount; Url = props.Url; InformationBarrierMode = props.IBMode; @@ -148,6 +171,27 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus) InformationBarrierSegmentsToRemove = props.IBSegmentsToRemove; RequestFilesLinkEnabled = props.RequestFilesLinkEnabled; RequestFilesLinkExpirationInDays = props.RequestFilesLinkExpirationInDays; + LoopDefaultSharingLinkRole = props.LoopDefaultSharingLinkRole; + DefaultShareLinkScope = props.DefaultShareLinkScope; + DefaultShareLinkRole = props.DefaultShareLinkRole; + LoopDefaultSharingLinkScope = props.LoopDefaultSharingLinkScope; + ArchiveStatus = props.ArchiveStatus; + EnableAutoExpirationVersionTrim = props.EnableAutoExpirationVersionTrim; + ExpireVersionsAfterDays = props.ExpireVersionsAfterDays; + InheritVersionPolicyFromTenant = props.InheritVersionPolicyFromTenant; + IsGroupOwnerSiteAdmin = props.IsGroupOwnerSiteAdmin; + ListsShowHeaderAndNavigation = props.ListsShowHeaderAndNavigation; + LockReason = props.LockReason; + MajorVersionLimit = props.MajorVersionLimit; + MajorWithMinorVersionsLimit = props.MajorWithMinorVersionsLimit; + RestrictedAccessControl = props.RestrictedAccessControl; + RestrictedAccessControlGroups = props.RestrictedAccessControlGroups; + RestrictedAccessControlGroupsToAdd = props.RestrictedAccessControlGroupsToAdd; + RestrictedAccessControlGroupsToRemove = props.RestrictedAccessControlGroupsToRemove; + RestrictedToRegion = props.RestrictedToRegion; + SetOwnerWithoutUpdatingSecondaryAdmin = props.SetOwnerWithoutUpdatingSecondaryAdmin; + RestrictContentOrgWideSearch = props.RestrictContentOrgWideSearch; + ReadOnlyForUnmanagedDevices = props.ReadOnlyForUnmanagedDevices; } } } \ No newline at end of file diff --git a/src/Commands/Model/SPOTenant.cs b/src/Commands/Model/SPOTenant.cs index 55d417274..48f52c5fd 100644 --- a/src/Commands/Model/SPOTenant.cs +++ b/src/Commands/Model/SPOTenant.cs @@ -1,9 +1,11 @@ using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; +using Microsoft.SharePoint.Client.Sharing; using System; using System.Collections.Generic; using System.Linq; +using System.Management.Automation; using InformationBarriersMode = PnP.PowerShell.Commands.Enums.InformationBarriersMode; namespace PnP.PowerShell.Commands.Model @@ -59,8 +61,6 @@ public class SPOTenant public string BccExternalSharingInvitationsList { private set; get; } - public bool UserVoiceForFeedbackEnabled { private set; get; } - public bool PublicCdnEnabled { private set; get; } public string PublicCdnAllowedFileTypes { private set; get; } @@ -189,12 +189,62 @@ public class SPOTenant public bool? ShowPeoplePickerGroupSuggestionsForIB { private set; get; } public bool? InformationBarriersSuspension { private set; get; } - + public bool? IBImplicitGroupBased { private set; get; } + public bool? AppBypassInformationBarriers { private set; get; } - public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { private set; get; } + public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { private set; get; } + + public SharingCapabilities? CoreSharingCapability { private set; get; } + + public bool? EnableVersionExpirationSetting { private set; get; } + + public TenantBrowseUserInfoPolicyValue? BlockUserInfoVisibilityInOneDrive { private set; get; } + + public bool? AllowOverrideForBlockUserInfoVisibility { private set; get; } + + public bool? AllowEveryoneExceptExternalUsersClaimInPrivateSite { private set; get; } + + public bool? AIBuilderEnabled { private set; get; } + + public bool? AllowSensitivityLabelOnRecords { private set; get; } + + public bool? AnyoneLinkTrackUsers { private set; get; } + + public bool? EnableSiteArchive { private set; get; } + + public bool? ESignatureEnabled { private set; get; } + + public TenantBrowseUserInfoPolicyValue? BlockUserInfoVisibilityInSharePoint { private set; get; } + + public SharingScope? OneDriveLoopDefaultSharingLinkScope { private set; get; } + + public SharingScope? CoreLoopDefaultSharingLinkScope { private set; get; } + + public SharingCapabilities? OneDriveLoopSharingCapability { private set; get; } + + public SharingCapabilities? CoreLoopSharingCapability { private set; get; } + + public Role? OneDriveLoopDefaultSharingLinkRole { private set; get; } + public Role? CoreLoopDefaultSharingLinkRole { private set; get; } + + public bool? IsCollabMeetingNotesFluidEnabled { private set; get; } + + public SharingState? AllowAnonymousMeetingParticipantsToAccessWhiteboards { private set; get; } + + public SharingScope? OneDriveDefaultShareLinkScope { private set; get; } + + public Role? OneDriveDefaultShareLinkRole { private set; get; } + + public bool? OneDriveDefaultLinkToExistingAccess { private set; get; } + + public SharingState? OneDriveBlockGuestsAsSiteAdmin { private set; get; } + + public int? RecycleBinRetentionPeriod { private set; get; } + + public bool EnableAIPIntegration { private set; get; } #endregion public SPOTenant(Tenant tenant, ClientContext clientContext) @@ -252,14 +302,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) { UseFindPeopleInPeoplePicker = false; } - try - { - UserVoiceForFeedbackEnabled = tenant.UserVoiceForFeedbackEnabled; - } - catch - { - UserVoiceForFeedbackEnabled = true; - } + try { RequireAnonymousLinksExpireInDays = tenant.RequireAnonymousLinksExpireInDays; @@ -658,11 +701,11 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) OneDriveRequestFilesLinkExpirationInDays = tenant.OneDriveRequestFilesLinkExpirationInDays; BusinessConnectivityServiceDisabled = tenant.BusinessConnectivityServiceDisabled; - try + try { EnableSensitivityLabelForPDF = tenant.EnableSensitivityLabelForPDF; } - catch + catch { EnableSensitivityLabelForPDF = false; } @@ -701,7 +744,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) try { - if (tenant.DefaultODBMode != null) + if (tenant.DefaultODBMode != null) { DefaultOneDriveInformationBarrierMode = Enum.Parse(tenant.DefaultODBMode); } @@ -709,6 +752,33 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) catch { } + + + try { CoreSharingCapability = tenant.CoreSharingCapability; } catch { } + try { EnableVersionExpirationSetting = tenant.EnableVersionExpirationSetting; } catch { } + try { BlockUserInfoVisibilityInOneDrive = tenant.BlockUserInfoVisibilityInOneDrive; } catch { } + try { AllowOverrideForBlockUserInfoVisibility = tenant.AllowOverrideForBlockUserInfoVisibility; } catch { } + try { AllowEveryoneExceptExternalUsersClaimInPrivateSite = tenant.AllowEveryoneExceptExternalUsersClaimInPrivateSite; } catch { } + try { AllowSensitivityLabelOnRecords = tenant.AllowSensitivityLabelOnRecords; } catch { } + try { AnyoneLinkTrackUsers = tenant.AnyoneLinkTrackUsers; } catch { } + try { AIBuilderEnabled = tenant.AIBuilderEnabled; } catch { } + try { EnableSiteArchive = tenant.EnableSiteArchive; } catch { } + try { ESignatureEnabled = tenant.ESignatureEnabled; } catch { } + try { BlockUserInfoVisibilityInSharePoint = tenant.BlockUserInfoVisibilityInSharePoint; } catch { } + try { OneDriveLoopDefaultSharingLinkScope = tenant.OneDriveLoopDefaultSharingLinkScope; } catch { } + try { CoreLoopDefaultSharingLinkScope = tenant.CoreLoopDefaultSharingLinkScope; } catch { } + try { OneDriveLoopSharingCapability = tenant.OneDriveLoopSharingCapability; } catch { } + try { CoreLoopSharingCapability = tenant.CoreLoopSharingCapability; } catch { } + try { OneDriveLoopDefaultSharingLinkRole = tenant.OneDriveLoopDefaultSharingLinkRole; } catch { } + try { CoreLoopDefaultSharingLinkRole = tenant.CoreLoopDefaultSharingLinkRole; } catch { } + try { IsCollabMeetingNotesFluidEnabled = tenant.IsCollabMeetingNotesFluidEnabled; } catch { } + try { AllowAnonymousMeetingParticipantsToAccessWhiteboards = tenant.AllowAnonymousMeetingParticipantsToAccessWhiteboards; } catch { } + try { OneDriveDefaultShareLinkScope = tenant.OneDriveDefaultShareLinkScope; } catch { } + try { OneDriveDefaultShareLinkRole = tenant.OneDriveDefaultShareLinkRole; } catch { } + try { OneDriveDefaultLinkToExistingAccess = tenant.OneDriveDefaultLinkToExistingAccess; } catch { } + try { OneDriveBlockGuestsAsSiteAdmin = tenant.OneDriveBlockGuestsAsSiteAdmin; } catch { } + try { RecycleBinRetentionPeriod = tenant.RecycleBinRetentionPeriod; } catch { } + try { EnableAIPIntegration = tenant.EnableAIPIntegration; } catch { } } } } diff --git a/src/Commands/Model/SPOTenantInternalSetting.cs b/src/Commands/Model/SPOTenantInternalSetting.cs new file mode 100644 index 000000000..1e298c1fe --- /dev/null +++ b/src/Commands/Model/SPOTenantInternalSetting.cs @@ -0,0 +1,124 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using System.Text.Json; + +namespace PnP.PowerShell.Commands.Model +{ + public class SPOTenantInternalSetting + { + #region Internal Settings properties + public bool SitePagesEnabled { private set; get; } + public bool DisableSelfServiceSiteCreation { private set; get; } + public bool EnableAutoNewsDigest { private set;get; } + public string CustomFormUrl { private set; get; } + public bool AutoQuotaEnabled { get; private set; } + public bool DisableGroupify { get; private set; } + public bool IncludeAtAGlanceInShareEmails { get; private set; } + public string MailFromAddress { get; private set; } + public bool MobileNotificationIsEnabledForSharepoint { get; private set; } + public string NewSiteManagedPath { get; private set; } + public bool NewSubsiteInModernOffForAll { get; private set; } + public bool NewSubsiteInModernOffForModernTemplates { get; private set; } + public string NewTeamSiteManagedPath { get; private set; } + public string ParentSiteUrl { get; private set; } + public string PolicyOption { get; private set; } + public bool RequireSecondaryContact { get; private set; } + public bool ShowSelfServiceSiteCreation { get; private set; } + public int SiteCreationDefaultStorageQuota { get; private set; } + public bool SiteCreationNewUX { get; private set; } + public string SmtpServer { get; private set; } + public bool SPListModernUXOff { get; private set; } + public int TenantDefaultTimeZoneId { get; private set; } + public string[] AvailableManagedPathsForSiteCreation { get; private set; } + + #endregion + + public SPOTenantInternalSetting(Tenant tenant, ClientContext clientContext) + { + try + { + this.initSPOTenantInternalSetting(clientContext); + } + catch + { + } + } + private void initSPOTenantInternalSetting(ClientContext clientContext) + { + var httpClient = PnP.Framework.Http.PnPHttpClient.Instance.GetHttpClient(clientContext); + var internalSettingsData = Utilities.REST.RestHelper.GetAsync(httpClient, $"{clientContext.Url}_api/SPOInternalUseOnly.TenantAdminSettings", clientContext.GetAccessToken(), false).GetAwaiter().GetResult(); + + SitePagesEnabled = internalSettingsData.SitePagesEnabled.Value; + DisableSelfServiceSiteCreation = internalSettingsData.DisableSelfServiceSiteCreation.Value; + EnableAutoNewsDigest = internalSettingsData.EnableAutoNewsDigest.Value; + CustomFormUrl = internalSettingsData.CustomFormUrl.Value; + AutoQuotaEnabled = internalSettingsData.AutoQuotaEnabled.Value; + DisableGroupify = internalSettingsData.DisableGroupify.Value; + IncludeAtAGlanceInShareEmails = internalSettingsData.IncludeAtAGlanceInShareEmails.Value; + MailFromAddress = internalSettingsData.MailFromAddress.Value; + MobileNotificationIsEnabledForSharepoint = internalSettingsData.MobileNotificationIsEnabledForSharepoint.Value; + NewSiteManagedPath = internalSettingsData.NewSiteManagedPath.Value; + NewSubsiteInModernOffForAll = internalSettingsData.NewSubsiteInModernOffForAll.Value; + NewSubsiteInModernOffForModernTemplates = internalSettingsData.NewSubsiteInModernOffForModernTemplates.Value; + NewTeamSiteManagedPath = internalSettingsData.NewTeamSiteManagedPath.Value; + ParentSiteUrl = internalSettingsData.ParentSiteUrl.Value; + PolicyOption = internalSettingsData.PolicyOption.Value; + RequireSecondaryContact = internalSettingsData.RequireSecondaryContact.Value; + ShowSelfServiceSiteCreation = internalSettingsData.ShowSelfServiceSiteCreation.Value; + SiteCreationNewUX = internalSettingsData.SiteCreationNewUX.Value; + SmtpServer = internalSettingsData.SmtpServer.Value; + SPListModernUXOff = internalSettingsData.SPListModernUXOff.Value; + TenantDefaultTimeZoneId = internalSettingsData.TenantDefaultTimeZoneId.Value; + AvailableManagedPathsForSiteCreation = internalSettingsData.AvailableManagedPathsForSiteCreation; + } + private class TenantInternalSetting + { + #region Properties + public SettingsBoolProperty AutoQuotaEnabled { get; set; } + public string[] AvailableManagedPathsForSiteCreation { get; set; } + public SettingsBoolProperty IncludeAtAGlanceInShareEmails { get; set; } + public SettingsStringProperty MailFromAddress { get; set; } + public SettingsBoolProperty MobileNotificationIsEnabledForSharepoint { get; set; } + public SettingsStringProperty NewSiteManagedPath { get; set; } + public SettingsStringProperty ParentSiteUrl { get; set; } + public SettingsStringProperty PolicyOption { get; set; } + public SettingsBoolProperty RequireSecondaryContact { get; set; } + public SettingsBoolProperty ShowSelfServiceSiteCreation { get; set; } + public SettingsBoolProperty SiteCreationNewUX { get; set; } + public SettingsStringProperty SmtpServer { get; set; } + public SettingsBoolProperty SPListModernUXOff { get; set; } + public SettingsIntProperty TenantDefaultTimeZoneId { get; set; } + public SettingsBoolProperty SitePagesEnabled { get; set; } + public SettingsBoolProperty DisableGroupify { get; set; } + public SettingsStringProperty CustomFormUrl { get; set; } + public SettingsBoolProperty EnableAutoNewsDigest { get; set; } + public SettingsBoolProperty DisableSelfServiceSiteCreation { get; set; } + public SettingsBoolProperty NewSubsiteInModernOffForAll { get; set; } + public SettingsBoolProperty NewSubsiteInModernOffForModernTemplates { get; set; } + public SettingsStringProperty NewTeamSiteManagedPath { get; set; } + + #endregion + + #region Helper Types + public class SettingsBoolProperty + { + public bool IsReadOnly { get; set; } + public bool Value { get; set; } + } + public class SettingsIntProperty + { + public bool IsReadOnly { get; set; } + public int Value { get; set; } + } + public class SettingsStringProperty + { + public bool IsReadOnly { get; set; } + public string Value { get; set; } + } + + #endregion + } + + } + +} diff --git a/src/Commands/Model/SharePoint/CompanyPortalSiteDetails.cs b/src/Commands/Model/SharePoint/CompanyPortalSiteDetails.cs new file mode 100644 index 000000000..6e2bc7064 --- /dev/null +++ b/src/Commands/Model/SharePoint/CompanyPortalSiteDetails.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + public class CompanyPortalSiteDetails + { + public string HomeSiteUrl { get; set; } + + public bool DraftMode { get; set; } + + public bool VivaConnectionsDefaultStart { get; set; } + } +} diff --git a/src/Commands/Model/SharePoint/FileVersionBatchDeleteJobStatus.cs b/src/Commands/Model/SharePoint/FileVersionBatchDeleteJobStatus.cs new file mode 100644 index 000000000..3cf32bb34 --- /dev/null +++ b/src/Commands/Model/SharePoint/FileVersionBatchDeleteJobStatus.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + /// + /// The progress for the request that batch delete file versions + /// + public class FileVersionBatchDeleteJobStatus + { + /// + /// Site/Library Url + /// + public string Url { get; set; } + + /// + /// The workitem Id related to the request + /// + [JsonPropertyName("WorkItemId")] + public string WorkItemId { get; set; } + + /// + /// The request status + /// + [JsonPropertyName("Status")] + public string Status { get; set; } + + /// + /// The error meassage if there is any + /// + [JsonPropertyName("ErrorMessage")] + public string ErrorMessage { get; set; } + + /// + /// The UTC time user sent the request + /// + [JsonPropertyName("RequestTimeInUTC")] + public string RequestTimeInUTC { get; set; } + + /// + /// The UTC time the server last processed the request + /// + [JsonPropertyName("LastProcessTimeInUTC")] + public string LastProcessTimeInUTC { get; set; } + + /// + /// The UTC time the request completes + /// + [JsonPropertyName("CompleteTimeInUTC")] + public string CompleteTimeInUTC { get; set; } + + /// + /// The batch delete mode + /// + [JsonPropertyName("BatchDeleteMode")] + public string BatchDeleteMode { get; set; } + + /// + /// Delete older than when BatchDeleteMode is DeleteOlderThanDays + /// + [JsonPropertyName("DeleteOlderThan")] + public string DeleteOlderThan { get; set; } + + /// + /// MajorVersionLimit when BatchDeleteMode is CountLimits + /// + [JsonPropertyName("MajorVersionLimit")] + public string MajorVersionLimit { get; set; } + + /// + /// MajorWithMinorVersionsLimit when BatchDeleteMode is CountLimits + /// + [JsonPropertyName("MajorWithMinorVersionsLimit")] + public string MajorWithMinorVersionsLimit { get; set; } + + /// + /// The files processed count + /// + [JsonPropertyName("FilesProcessed")] + public string FilesProcessed { get; set; } + + /// + /// The versions failed to process count + /// + [JsonPropertyName("VersionsProcessed")] + public string VersionsProcessed { get; set; } + + /// + /// Set versions deleted count + /// + [JsonPropertyName("VersionsDeleted")] + public string VersionsDeleted { get; set; } + + /// + /// The versions failed to delete count + /// + [JsonPropertyName("VersionsFailed")] + public string VersionsFailed { get; set; } + + /// + /// The storage released + /// + [JsonPropertyName("StorageReleased")] + public string StorageReleasedInBytes { get; set; } + } +} diff --git a/src/Commands/Model/SharePoint/FileVersionExpirationReportJobStatus.cs b/src/Commands/Model/SharePoint/FileVersionExpirationReportJobStatus.cs new file mode 100644 index 000000000..2d31e73f1 --- /dev/null +++ b/src/Commands/Model/SharePoint/FileVersionExpirationReportJobStatus.cs @@ -0,0 +1,34 @@ +using System.Text.Json.Serialization; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + /// + /// The progress for generating the file version expiration report. + /// + public class FileVersionExpirationReportJobStatus + { + /// + /// The URL to the site or library that the report is for + /// + [JsonPropertyName("url")] + public string Url { get; set; } + + /// + /// The URL of the report file + /// + [JsonPropertyName("report_url")] + public string ReportUrl { get; set; } + + /// + /// The request status + /// + [JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// The error message if any + /// + [JsonPropertyName( "error_message")] + public string ErrorMessage { get; set; } + } +} diff --git a/src/Commands/Model/SharePoint/SPConsumingTenantContainersByOwningAppId.cs b/src/Commands/Model/SharePoint/SPConsumingTenantContainersByOwningAppId.cs new file mode 100644 index 000000000..5ac156fbe --- /dev/null +++ b/src/Commands/Model/SharePoint/SPConsumingTenantContainersByOwningAppId.cs @@ -0,0 +1,86 @@ +using Microsoft.Graph; +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.Online.SharePoint.TenantManagement; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + public class SPConsumingTenantContainerByIdentity + { + + public string ContainerId { get; private set; } + + public string ContainerName { get; private set; } + + public string Description { get; private set; } + + public Guid OwningApplicationId { get; private set; } + + public string OwningApplicationName { get; private set; } + + public string ContainerApiUrl { get; private set; } + + public string ContainerSiteUrl { get; private set; } + + public string SensitivityLabel { get; private set; } + + public IList Owners { get; private set; } + + public IList Managers { get; private set; } + + public IList Readers { get; private set; } + + public IList Writers { get; private set; } + + public DateTime CreatedOn { get; private set; } + + public long StorageUsedInBytes { get; private set; } + + public SPOConditionalAccessPolicyType ConditionalAccessPolicy { get; private set; } + + public bool AllowEditing { get; private set; } + + public SPOLimitedAccessFileType LimitedAccessFileType { get; private set; } + + public bool ReadOnlyForUnmanagedDevices { get; private set; } + + public string AuthenticationContextName { get; private set; } + + public bool BlockDownloadPolicy { get; private set; } + + public bool ReadOnlyForBlockDownloadPolicy { get; private set; } + + public SharingDomainRestrictionModes SharingDomainRestrictionMode { get; private set; } + public string SharingAllowedDomainList { get; private set; } + public string SharingBlockedDomainList { get; private set; } + public string Status { get; private set; } + public int OwnersCount { get; private set; } + public long StorageUsed { get; private set; } + + internal SPConsumingTenantContainerByIdentity(SPContainerProperties spContainerProperties) + { + ContainerId = spContainerProperties.ContainerId; + ContainerName = spContainerProperties.ContainerName; + CreatedOn = spContainerProperties.CreatedOn; + Status = spContainerProperties.Status; + SensitivityLabel = spContainerProperties.SensitivityLabel; + OwnersCount = spContainerProperties.OwnersCount; + _ = spContainerProperties.StorageUsed; + int digits = 2; + double value = BytesToGB(spContainerProperties.StorageUsed); + value = Math.Round(value, digits); + StorageUsed = spContainerProperties.StorageUsed; + } + + private static double BytesToGB(long value) + { + double num = 1073741824.0; + return (double)value / num; + } + } +} diff --git a/src/Commands/Model/SharePoint/SPOFileSensitivityLabelInfo.cs b/src/Commands/Model/SharePoint/SPOFileSensitivityLabelInfo.cs new file mode 100644 index 000000000..6d7b61063 --- /dev/null +++ b/src/Commands/Model/SharePoint/SPOFileSensitivityLabelInfo.cs @@ -0,0 +1,28 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + public class SPOFileSensitivityLabelInfo + { + public string LabelId { get; set; } + + public string DisplayName { get; set; } + + public bool ProtectionEnabled { get; set; } + + public string ParentLabelId { get; set; } + + public SPOFileSensitivityLabelInfo(FileSensitivityLabelInfo label) + { + DisplayName = label.DisplayName; + LabelId = label.LabelId; + ProtectionEnabled = label.ProtectionEnabled; + ParentLabelId = label.ParentLabelId; + } + } +} diff --git a/src/Commands/Model/SharePoint/SetVersionPolicyProgress.cs b/src/Commands/Model/SharePoint/SetVersionPolicyProgress.cs deleted file mode 100644 index 0bb6d3f01..000000000 --- a/src/Commands/Model/SharePoint/SetVersionPolicyProgress.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace PnP.PowerShell.Commands.Model.SharePoint -{ - /// - /// The progress for the request that settting version policy for existing document libraries of the site - /// - public class SetVersionPolicyProgress - { - /// - /// Site Url - /// - public string Url { get; set; } - - /// - /// The workitem Id related to the request - /// - public string WorkItemId { get; set; } - - /// - /// The request status - /// - public string Status { get; set; } - - /// - /// The UTC time user sent the request - /// - public string RequestTimeInUTC { get; set; } - - /// - /// The UTC time the server last processed the request - /// - public string LastProcessTimeInUTC { get; set; } - - /// - /// The UTC time the request completes - /// - public string CompleteTimeInUTC { get; set; } - - /// - /// The lists processed count - /// - public string ListsProcessedInTotal { get; set; } - - /// - /// The lists failed to process count - /// - public string ListsFailedInTotal { get; set; } - - /// - /// Set version policy as AutoExpiration or not - /// - public string EnableAutoTrim { get; set; } - - /// - /// The time limit if the version policy is ExpireAfter - /// - public string ExpireAfterDays { get; set; } - - /// - /// MajorVersionLimit for the versions - /// - public string MajorVersionLimit { get; set; } - - /// - /// MajorWithMinorVersionsLimit for the versions - /// if minor version is enabled - /// - public string MajorWithMinorVersionsLimit { get; set; } - } -} diff --git a/src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs b/src/Commands/Model/SharePoint/SetVersionPolicyStatus.cs similarity index 72% rename from src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs rename to src/Commands/Model/SharePoint/SetVersionPolicyStatus.cs index d5108b016..d2c485fc6 100644 --- a/src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs +++ b/src/Commands/Model/SharePoint/SetVersionPolicyStatus.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.SharePoint @@ -9,7 +10,7 @@ namespace PnP.PowerShell.Commands.Model.SharePoint /// /// The progress for the request that settting version policy for existing document libraries of the site /// - public class SetVersionPolicyProgressClient + public class SetVersionPolicyStatus { /// /// Site Url @@ -19,57 +20,68 @@ public class SetVersionPolicyProgressClient /// /// The workitem Id related to the request /// + [JsonPropertyName("WorkItemId")] public string WorkItemId { get; set; } /// /// The request status /// + [JsonPropertyName("Status")] public string Status { get; set; } /// /// The UTC time user sent the request /// + [JsonPropertyName("RequestTimeInUTC")] public string RequestTimeInUTC { get; set; } /// /// The UTC time the server last processed the request /// + [JsonPropertyName("LastProcessTimeInUTC")] public string LastProcessTimeInUTC { get; set; } /// /// The UTC time the request completes /// + [JsonPropertyName("CompleteTimeInUTC")] public string CompleteTimeInUTC { get; set; } /// - /// The Libraries processed count + /// The lists processed count /// + [JsonPropertyName("ListsProcessedInTotal")] public string LibrariesProcessedInTotal { get; set; } /// - /// The Libraries failed to process count + /// The lists failed to process count /// + [JsonPropertyName("ListsFailedInTotal")] public string LibrariesFailedInTotal { get; set; } /// /// Set version policy as AutoExpiration or not /// - public string EnableAutomaticMode { get; set; } + [JsonPropertyName("EnableAutoTrim")] + public string EnableAutomaticMode{ get; set; } /// /// The time limit if the version policy is ExpireAfter /// + [JsonPropertyName("ExpireAfterDays")] public string ExpireAfterDays { get; set; } /// /// MajorVersionLimit for the versions /// + [JsonPropertyName("MajorVersionLimit")] public string MajorVersionLimit { get; set; } /// /// MajorWithMinorVersionsLimit for the versions /// if minor version is enabled /// + [JsonPropertyName("MajorWithMinorVersionsLimit")] public string MajorWithMinorVersionsLimit { get; set; } } } diff --git a/src/Commands/Features/DisablePageScheduling.cs b/src/Commands/Pages/DisablePageScheduling.cs similarity index 93% rename from src/Commands/Features/DisablePageScheduling.cs rename to src/Commands/Pages/DisablePageScheduling.cs index d3256cdb4..8dcb27d39 100644 --- a/src/Commands/Features/DisablePageScheduling.cs +++ b/src/Commands/Pages/DisablePageScheduling.cs @@ -1,7 +1,7 @@ using System.Management.Automation; using PnP.PowerShell.Commands.Utilities; -namespace PnP.PowerShell.Commands.Features +namespace PnP.PowerShell.Commands.Pages { [Cmdlet(VerbsLifecycle.Disable, "PnPPageScheduling")] [OutputType(typeof(void))] diff --git a/src/Commands/Features/EnablePageScheduling.cs b/src/Commands/Pages/EnablePageScheduling.cs similarity index 93% rename from src/Commands/Features/EnablePageScheduling.cs rename to src/Commands/Pages/EnablePageScheduling.cs index 17d14c449..2edb52b38 100644 --- a/src/Commands/Features/EnablePageScheduling.cs +++ b/src/Commands/Pages/EnablePageScheduling.cs @@ -1,7 +1,7 @@ using System.Management.Automation; using PnP.PowerShell.Commands.Utilities; -namespace PnP.PowerShell.Commands.Features +namespace PnP.PowerShell.Commands.Pages { [Cmdlet(VerbsLifecycle.Enable, "PnPPageScheduling")] [OutputType(typeof(void))] diff --git a/src/Commands/Pages/GetPageSchedulingEnabled.cs b/src/Commands/Pages/GetPageSchedulingEnabled.cs new file mode 100644 index 000000000..499f307ac --- /dev/null +++ b/src/Commands/Pages/GetPageSchedulingEnabled.cs @@ -0,0 +1,34 @@ +using System.Management.Automation; +using System.Text.Json; +using PnP.PowerShell.Commands.Utilities; + +namespace PnP.PowerShell.Commands.Pages +{ + [Cmdlet(VerbsCommon.Get, "PnPPageSchedulingEnabled")] + [OutputType(typeof(void))] + public class GetPageSchedulingEnabled : PnPWebCmdlet + { + protected override void ExecuteCmdlet() + { + var pagesList = PagesUtility.GetModernPagesLibrary(PnPContext.Web); + var payload = new + { + parameters = new + { + AddRequiredFields = false, + RenderOptions = 16385 + } + }; + + var results = Utilities.REST.RestHelper.PostAsync(Connection.HttpClient, $"{PnPContext.Web.Url}/_api/web/lists(guid'{pagesList.Id}')/RenderListDataAsStream", ClientContext, payload, false).GetAwaiter().GetResult(); + + var frameworkClientInfo = results.GetProperty("SPFrameworkClientInfo"); + var pageContextJson = frameworkClientInfo.GetProperty("PageContextJson"); + var value = pageContextJson.GetString(); + var contextElement = JsonDocument.Parse(value); + var pageContextInfoElement = contextElement.RootElement.GetProperty("spPageContextInfo"); + var listPageScheduling = pageContextInfoElement.GetProperty("listPageSchedulingEnabled").GetBoolean(); + WriteObject(listPageScheduling); + } + } +} diff --git a/src/Commands/PnP.PowerShell.csproj b/src/Commands/PnP.PowerShell.csproj index c4b9325fa..80055be7b 100644 --- a/src/Commands/PnP.PowerShell.csproj +++ b/src/Commands/PnP.PowerShell.csproj @@ -1,4 +1,4 @@ - + @@ -56,30 +56,30 @@ - + - - + + - - + + - - + + - - + + - + - + diff --git a/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs index 78b109d67..d6e664f20 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs @@ -58,7 +58,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Retrieving specific Power Automate Flow with the provided name '{flowName}' within the environment '{environmentName}'"); - var result = GraphHelper.GetAsync(Connection, baseUrl + $"providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var result = GraphHelper.GetAsync(Connection, baseUrl + $"/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(result, false); } else @@ -81,7 +81,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Retrieving all Power Automate Flows within environment '{environmentName}'{(filter != null ? $" with filter '{filter}'" : "")}"); - var flows = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + $"providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows?api-version=2016-11-01{(filter != null ? $"&$filter={filter}" : "")}", AccessToken).GetAwaiter().GetResult(); + var flows = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + $"/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows?api-version=2016-11-01{(filter != null ? $"&$filter={filter}" : "")}", AccessToken).GetAwaiter().GetResult(); WriteObject(flows, true); } diff --git a/src/Commands/Principals/RemoveGroupMember.cs b/src/Commands/Principals/RemoveGroupMember.cs index 14c88e21a..703eb1691 100644 --- a/src/Commands/Principals/RemoveGroupMember.cs +++ b/src/Commands/Principals/RemoveGroupMember.cs @@ -15,7 +15,7 @@ public class RemoveUserFromGroup : PnPWebCmdlet [Parameter(Mandatory = true)] public string LoginName = string.Empty; - [Parameter(Mandatory = true)] + [Parameter(Mandatory = true, ValueFromPipeline = true)] [Alias("Identity")] public GroupPipeBind Group; diff --git a/src/Commands/Provisioning/Site/AddListFoldersToSiteTemplate.cs b/src/Commands/Provisioning/Site/AddListFoldersToSiteTemplate.cs index cbfa80295..5728536da 100644 --- a/src/Commands/Provisioning/Site/AddListFoldersToSiteTemplate.cs +++ b/src/Commands/Provisioning/Site/AddListFoldersToSiteTemplate.cs @@ -62,8 +62,8 @@ protected override void ExecuteCmdlet() var tokenParser = new Framework.Provisioning.ObjectHandlers.TokenParser(ClientContext.Web, template); //We will remove a list if it's found so we can get the list - ListInstance listInstance = template.Lists.Find(l => tokenParser.ParseString(l.Title) == spList.Title); - + ListInstance listInstance = template.Lists.Find(l => tokenParser.ParseString(l.Title) == spList.Title); + if (listInstance == null) { throw new ApplicationException("List does not exist in the template file."); @@ -158,6 +158,10 @@ private PnP.Framework.Provisioning.Model.Folder GetFolder(Microsoft.SharePoint.C var roleBindings = roleAssignment.RoleDefinitionBindings; foreach (var roleBinding in roleBindings) { + if (roleBinding.Name == "Limited Access") + { + continue; + } retFolder.Security.RoleAssignments.Add(new PnP.Framework.Provisioning.Model.RoleAssignment() { Principal = principalName, RoleDefinition = roleBinding.Name }); } } diff --git a/src/Commands/Provisioning/TokenRetrieval.cs b/src/Commands/Provisioning/TokenRetrieval.cs index c93dd1556..61e8557cd 100644 --- a/src/Commands/Provisioning/TokenRetrieval.cs +++ b/src/Commands/Provisioning/TokenRetrieval.cs @@ -30,7 +30,7 @@ public async static Task GetAccessTokenAsync(string resource, string sco { scope = $"https://{resource}/.default"; } - return await authManager.GetAccessTokenAsync(new string[] { scope }); + return await authManager.GetAccessTokenAsync(new string[] { scope ?? $"https://{resource}" }); } } } diff --git a/src/Commands/Resources/GraphPermissions.json b/src/Commands/Resources/GraphPermissions.json index b6d4bc1cf..aa9506bc1 100644 --- a/src/Commands/Resources/GraphPermissions.json +++ b/src/Commands/Resources/GraphPermissions.json @@ -5225,6 +5225,28 @@ "isEnabled": true, "isAdmin": false, "value": "Mail.ReadBasic.All" + }, + { + "allowedMemberTypes": [ + "Application" + ], + "consentDescription": "Allows the app to create, read, update and delete all users' tasks and task lists in your organization, without a signed-in user.", + "consentDisplayName": "Read and write all users' tasks and tasklists", + "id": "44e666d1-d276-445b-a5fc-8815eeb81d55", + "isEnabled": true, + "isAdmin": false, + "value": "Tasks.ReadWrite.All" + }, + { + "allowedMemberTypes": [ + "Application" + ], + "consentDescription": "Allows the app to read all users' tasks and task lists in your organization, without a signed-in user.", + "consentDisplayName": "Read all users' tasks and tasklist", + "id": "f10e1f91-74ed-437f-a6fd-d6ae88e26c1f", + "isEnabled": true, + "isAdmin": false, + "value": "Tasks.Read.All" } ] } \ No newline at end of file diff --git a/src/Commands/Sdk.targets b/src/Commands/Sdk.targets index 95ac171e0..2ae1f125f 100644 --- a/src/Commands/Sdk.targets +++ b/src/Commands/Sdk.targets @@ -1,5 +1,4 @@ - net6.0-windows diff --git a/src/Commands/Site/GetSetVersionPolicyProgress.cs b/src/Commands/Site/GetSetVersionPolicyProgress.cs deleted file mode 100644 index c8eb1477c..000000000 --- a/src/Commands/Site/GetSetVersionPolicyProgress.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Microsoft.SharePoint.Client; - -using System; -using System.Linq.Expressions; -using System.Management.Automation; -using System.Text.Json; -using PnP.PowerShell.Commands.Model.SharePoint; - -namespace PnP.PowerShell.Commands.Site -{ - [Cmdlet(VerbsCommon.Get, "PnPSiteVersionPolicyProgress")] - [OutputType(typeof(PnP.PowerShell.Commands.Model.SharePoint.SetVersionPolicyProgressClient))] - public class GetSetVersionPolicyProgress : PnPSharePointCmdlet - { - protected override void ExecuteCmdlet() - { - ClientContext.Load(ClientContext.Site, s => s.Url); - var site = ClientContext.Site; - var ret = site.GetProgressForSetVersionPolicyForDocLibs(); - ClientContext.ExecuteQueryRetry(); - - var progress = JsonSerializer.Deserialize(ret.Value); - progress.Url = site.Url; - - if (string.Equals(progress.LastProcessTimeInUTC, DateTime.MinValue.ToString())) - { - progress.LastProcessTimeInUTC = string.Empty; - } - - if (string.Equals(progress.CompleteTimeInUTC, DateTime.MinValue.ToString())) - { - progress.CompleteTimeInUTC = string.Empty; - } - - // Display different property names in the results using Client object - var progressClient = new SetVersionPolicyProgressClient() - { - Url = progress.Url, - WorkItemId = progress.WorkItemId, - Status = progress.Status, - RequestTimeInUTC = progress.RequestTimeInUTC, - LastProcessTimeInUTC = progress.LastProcessTimeInUTC, - CompleteTimeInUTC = progress.CompleteTimeInUTC, - LibrariesProcessedInTotal = progress.ListsProcessedInTotal, - LibrariesFailedInTotal = progress.ListsFailedInTotal, - EnableAutomaticMode = progress.EnableAutoTrim, - ExpireAfterDays = progress.ExpireAfterDays, - MajorVersionLimit = progress.MajorVersionLimit, - MajorWithMinorVersionsLimit = progress.MajorWithMinorVersionsLimit - }; - - WriteObject(progressClient); - } - } -} - diff --git a/src/Commands/Site/GetSetVersionPolicyStatus.cs b/src/Commands/Site/GetSetVersionPolicyStatus.cs new file mode 100644 index 000000000..80dad3c3c --- /dev/null +++ b/src/Commands/Site/GetSetVersionPolicyStatus.cs @@ -0,0 +1,39 @@ +using Microsoft.SharePoint.Client; + +using System; +using System.Linq.Expressions; +using System.Management.Automation; +using System.Text.Json; +using PnP.PowerShell.Commands.Model.SharePoint; + +namespace PnP.PowerShell.Commands.Site +{ + [Cmdlet(VerbsCommon.Get, "PnPSiteVersionPolicyStatus")] + [OutputType(typeof(PnP.PowerShell.Commands.Model.SharePoint.SetVersionPolicyStatus))] + public class GetSetVersionPolicyStatus : PnPSharePointCmdlet + { + protected override void ExecuteCmdlet() + { + ClientContext.Load(ClientContext.Site, s => s.Url); + var site = ClientContext.Site; + var ret = site.GetProgressForSetVersionPolicyForDocLibs(); + ClientContext.ExecuteQueryRetry(); + + var progress = JsonSerializer.Deserialize(ret.Value); + progress.Url = site.Url; + + if (string.Equals(progress.LastProcessTimeInUTC, DateTime.MinValue.ToString())) + { + progress.LastProcessTimeInUTC = string.Empty; + } + + if (string.Equals(progress.CompleteTimeInUTC, DateTime.MinValue.ToString())) + { + progress.CompleteTimeInUTC = string.Empty; + } + + WriteObject(progress); + } + } +} + diff --git a/src/Commands/Site/GetSiteFileVersionBatchDeleteJobStatus.cs b/src/Commands/Site/GetSiteFileVersionBatchDeleteJobStatus.cs new file mode 100644 index 000000000..36092b792 --- /dev/null +++ b/src/Commands/Site/GetSiteFileVersionBatchDeleteJobStatus.cs @@ -0,0 +1,50 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.SharePoint; +using System; +using System.Management.Automation; +using System.Text.Json; + +namespace PnP.PowerShell.Commands.Sites +{ + [Cmdlet(VerbsCommon.Get, "PnPSiteFileVersionBatchDeleteJobStatus")] + [OutputType(typeof(FileVersionBatchDeleteJobStatus))] + public class GetSiteFileVersionBatchDeleteJobStatus : PnPSharePointCmdlet + { + protected override void ExecuteCmdlet() + { + var site = ClientContext.Site; + ClientContext.Load(site, s => s.Url); + var ret = site.GetProgressForDeleteFileVersions(); + ClientContext.ExecuteQueryRetry(); + + var progress = JsonSerializer.Deserialize(ret.Value); + progress.Url = site.Url; + + if (!string.Equals(progress.BatchDeleteMode, FileVersionBatchDeleteMode.DeleteOlderThanDays.ToString(), StringComparison.OrdinalIgnoreCase)) + { + progress.DeleteOlderThan = string.Empty; + } + + if (!string.Equals(progress.BatchDeleteMode, FileVersionBatchDeleteMode.CountLimits.ToString(), StringComparison.OrdinalIgnoreCase)) + { + progress.MajorVersionLimit = string.Empty; + progress.MajorWithMinorVersionsLimit = string.Empty; + } + + if (string.Equals(progress.LastProcessTimeInUTC, DateTime.MinValue.ToString())) + { + progress.LastProcessTimeInUTC = string.Empty; + } + + if (string.Equals(progress.CompleteTimeInUTC, DateTime.MinValue.ToString())) + { + progress.CompleteTimeInUTC = string.Empty; + } + + WriteObject(progress); + } + } +} diff --git a/src/Commands/Site/GetSiteFileVersionExpirationReportJobStatus.cs b/src/Commands/Site/GetSiteFileVersionExpirationReportJobStatus.cs new file mode 100644 index 000000000..ff8d4f901 --- /dev/null +++ b/src/Commands/Site/GetSiteFileVersionExpirationReportJobStatus.cs @@ -0,0 +1,33 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.SharePoint; + +using System.Management.Automation; +using System.Text.Json; + +namespace PnP.PowerShell.Commands.Sites +{ + [Cmdlet(VerbsCommon.Get, "PnPSiteFileVersionExpirationReportJobStatus")] + [OutputType(typeof(FileVersionExpirationReportJobStatus))] + public class GetSiteFileVersionExpirationReportJobStatus : PnPSharePointCmdlet + { + [Parameter(Mandatory = true)] + public string ReportUrl; + + protected override void ExecuteCmdlet() + { + var site = ClientContext.Site; + ClientContext.Load(site, s => s.Url); + var ret = site.GetProgressForFileVersionExpirationReport(ReportUrl); + ClientContext.ExecuteQueryRetry(); + + var status = JsonSerializer.Deserialize(ret.Value); + status.Url = site.Url; + status.ReportUrl = ReportUrl; + + WriteObject(status); + } + } +} diff --git a/src/Commands/Site/NewSiteFileVersionBatchDeleteJob.cs b/src/Commands/Site/NewSiteFileVersionBatchDeleteJob.cs new file mode 100644 index 000000000..06ee8b940 --- /dev/null +++ b/src/Commands/Site/NewSiteFileVersionBatchDeleteJob.cs @@ -0,0 +1,82 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +using Resources = PnP.PowerShell.Commands.Properties.Resources; + +namespace PnP.PowerShell.Commands.Sites +{ + [Cmdlet(VerbsCommon.New, "PnPSiteFileVersionBatchDeleteJob")] + public class NewSiteFileVersionBatchDeleteJob : PnPSharePointCmdlet + { + private const string ParameterSet_AUTOMATICTRIM = "AutomaticTrim"; + private const string ParameterSet_DELETEOLDERTHANDAYS = "DeleteOlderThanDays"; + private const string ParameterSet_COUNTLIMITS = "CountLimits"; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_AUTOMATICTRIM)] + public SwitchParameter Automatic; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_DELETEOLDERTHANDAYS)] + public int DeleteBeforeDays; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_COUNTLIMITS)] + public int MajorVersionLimit; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_COUNTLIMITS)] + public int MajorWithMinorVersionsLimit; + + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + FileVersionBatchDeleteMode batchDeleteMode; + if (Automatic) + { + batchDeleteMode = FileVersionBatchDeleteMode.AutomaticTrim; + DeleteBeforeDays = -1; + MajorVersionLimit = -1; + MajorWithMinorVersionsLimit = -1; + } + else if (ParameterSpecified(nameof(DeleteBeforeDays))) + { + batchDeleteMode = FileVersionBatchDeleteMode.DeleteOlderThanDays; + MajorVersionLimit = -1; + MajorWithMinorVersionsLimit = -1; + } + else if (ParameterSpecified(nameof(MajorVersionLimit)) || + ParameterSpecified(nameof(MajorWithMinorVersionsLimit))) + { + batchDeleteMode = FileVersionBatchDeleteMode.CountLimits; + DeleteBeforeDays = -1; + } + else + { + throw new PSArgumentException($"One or more parameters issued cannot be used together or an insufficient number of parameters were provided. Specify Automatic for automatic trim. Specify DeleteBeforeDays for delete older than days. Specify MajorVersionLimit and MajorWithMinorVersionsLimit for version count limits."); + } + + if (Force || ShouldContinue("By executing this command, versions specified will be permanently deleted. These versions cannot be restored from the recycle bin. Are you sure you want to continue?", Resources.Confirm)) + { + var site = ClientContext.Site; + var ps = new FileVersionBatchDeleteParameters(); + + ps.BatchDeleteMode = batchDeleteMode; + ps.DeleteOlderThanDays = DeleteBeforeDays; + ps.MajorVersionLimit = MajorVersionLimit; + ps.MajorWithMinorVersionsLimit = MajorWithMinorVersionsLimit; + + site.StartDeleteFileVersionsByMode(ps); + ClientContext.ExecuteQueryRetry(); + + WriteObject("Success. Versions specified will be permanently deleted in the upcoming days."); + } + else + { + WriteObject("Cancelled. No versions will be deleted."); + } + } + } +} diff --git a/src/Commands/Site/NewSiteFileVersionExpirationReportJob.cs b/src/Commands/Site/NewSiteFileVersionExpirationReportJob.cs new file mode 100644 index 000000000..05faef2a2 --- /dev/null +++ b/src/Commands/Site/NewSiteFileVersionExpirationReportJob.cs @@ -0,0 +1,25 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Sites +{ + [Cmdlet(VerbsCommon.New, "PnPSiteFileVersionExpirationReportJob")] + public class NewSiteFileVersionExpirationReportJob : PnPSharePointCmdlet + { + [Parameter(Mandatory = true)] + public string ReportUrl; + + protected override void ExecuteCmdlet() + { + var site = ClientContext.Site; + site.StartFileVersionExpirationReport(ReportUrl); + ClientContext.ExecuteQueryRetry(); + + WriteObject("Success. The file version expiration report will be gradually populated. It will take over 24 hours to complete for a small site, and a few days for a larger one."); + } + } +} diff --git a/src/Commands/Site/RemoveSiteFileVersionBatchDeleteJob.cs b/src/Commands/Site/RemoveSiteFileVersionBatchDeleteJob.cs new file mode 100644 index 000000000..1a3685977 --- /dev/null +++ b/src/Commands/Site/RemoveSiteFileVersionBatchDeleteJob.cs @@ -0,0 +1,34 @@ +using Microsoft.SharePoint.Client; + +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; + +using System.Management.Automation; + +using Resources = PnP.PowerShell.Commands.Properties.Resources; + +namespace PnP.PowerShell.Commands.Sites +{ + [Cmdlet(VerbsCommon.Remove, "PnPSiteFileVersionBatchDeleteJob")] + public class RemoveSiteFileVersionBatchDeleteJob : PnPSharePointCmdlet + { + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + if (Force || ShouldContinue("It will stop processing further version deletion batches. Are you sure you want to continue?", Resources.Confirm)) + { + var site = ClientContext.Site; + site.CancelDeleteFileVersions(); + ClientContext.ExecuteQueryRetry(); + + WriteObject("Future deletion is successfully stopped."); + } + else + { + WriteObject("Did not receive confirmation to stop deletion. Continuing to delete specified versions."); + } + } + } +} diff --git a/src/Commands/Site/SetSite.cs b/src/Commands/Site/SetSite.cs index 9e6043da0..556c64df7 100644 --- a/src/Commands/Site/SetSite.cs +++ b/src/Commands/Site/SetSite.cs @@ -237,7 +237,7 @@ protected override void ExecuteCmdlet() if (IsTenantProperty()) { - var tenantAdminUrl = UrlUtilities.GetTenantAdministrationUrl(context.Url); + var tenantAdminUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(context.Url); context = context.Clone(tenantAdminUrl); executeQueryRequired = false; diff --git a/src/Commands/Site/SetSiteVersionPolicy.cs b/src/Commands/Site/SetSiteVersionPolicy.cs index 4cc1dc39b..0f96f6f2e 100644 --- a/src/Commands/Site/SetSiteVersionPolicy.cs +++ b/src/Commands/Site/SetSiteVersionPolicy.cs @@ -168,7 +168,7 @@ protected override void ExecuteCmdlet() context.ExecuteQueryRetry(); } - WriteWarning("The setting for existing libraries takes at least 24 hours to take effect. Please run Get-PnPSiteVersionPolicyProgress to check the progress."); + WriteWarning("The setting for existing libraries takes at least 24 hours to take effect. Please run Get-PnPSiteVersionPolicyStatus to check the status."); WriteWarning("The setting for existing libraries does not trim existing versions."); } } diff --git a/src/Commands/SiteDesigns/AddSiteDesignTask.cs b/src/Commands/SiteDesigns/AddSiteDesignTask.cs index 930f6e1c7..8bce3dac1 100644 --- a/src/Commands/SiteDesigns/AddSiteDesignTask.cs +++ b/src/Commands/SiteDesigns/AddSiteDesignTask.cs @@ -19,7 +19,7 @@ public class AddSiteDesignTask : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var webUrl = url; diff --git a/src/Commands/SiteDesigns/GetSiteDesignRun.cs b/src/Commands/SiteDesigns/GetSiteDesignRun.cs index c667025c2..27a632e26 100644 --- a/src/Commands/SiteDesigns/GetSiteDesignRun.cs +++ b/src/Commands/SiteDesigns/GetSiteDesignRun.cs @@ -19,7 +19,7 @@ public class GetSiteDesignRun : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var tenant = new Tenant(tenantContext); diff --git a/src/Commands/SiteDesigns/GetSiteDesignTask.cs b/src/Commands/SiteDesigns/GetSiteDesignTask.cs index 0f771b888..372e20dbe 100644 --- a/src/Commands/SiteDesigns/GetSiteDesignTask.cs +++ b/src/Commands/SiteDesigns/GetSiteDesignTask.cs @@ -19,7 +19,7 @@ public class GetSiteDesignTask : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { if (Identity != null) diff --git a/src/Commands/SiteDesigns/InvokeSiteDesign.cs b/src/Commands/SiteDesigns/InvokeSiteDesign.cs index 14caa892e..b77d3cf50 100644 --- a/src/Commands/SiteDesigns/InvokeSiteDesign.cs +++ b/src/Commands/SiteDesigns/InvokeSiteDesign.cs @@ -19,7 +19,7 @@ public class InvokeSiteDesign : PnPWebCmdlet protected override void ExecuteCmdlet() { var url = CurrentWeb.EnsureProperty(w => w.Url); - var tenantUrl = UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); + var tenantUrl = Connection.TenantAdminUrl ?? UrlUtilities.GetTenantAdministrationUrl(ClientContext.Url); using (var tenantContext = ClientContext.Clone(tenantUrl)) { var tenant = new Tenant(tenantContext); diff --git a/src/Commands/Teams/RemoveTeamsChannel.cs b/src/Commands/Teams/RemoveTeamsChannel.cs index b12d78e22..b3f3e5135 100644 --- a/src/Commands/Teams/RemoveTeamsChannel.cs +++ b/src/Commands/Teams/RemoveTeamsChannel.cs @@ -48,16 +48,16 @@ protected override void ExecuteCmdlet() WriteError(new ErrorRecord(new Exception($"Channel remove failed"), "REMOVEFAILED", ErrorCategory.InvalidResult, this)); } } - else - { - throw new PSArgumentException("Channel not found"); - } } else { - throw new PSArgumentException("Team not found"); + throw new PSArgumentException("Channel not found"); } } + else + { + throw new PSArgumentException("Team not found"); + } } } } diff --git a/src/Commands/UserProfiles/GetUserProfileProperty.cs b/src/Commands/UserProfiles/GetUserProfileProperty.cs index 4c115e58f..3185a8a73 100644 --- a/src/Commands/UserProfiles/GetUserProfileProperty.cs +++ b/src/Commands/UserProfiles/GetUserProfileProperty.cs @@ -64,6 +64,11 @@ protected override void ExecuteCmdlet() AdminContext.Load(userProfileProperties); AdminContext.ExecuteQueryRetry(); + if (userProfileProperties.ServerObjectIsNull.GetValueOrDefault(true)) + { + throw new PSArgumentException($"Account {currentAccount} not found", nameof(Account)); + } + // Check if we only need to output specific properties or all of them if (ParameterSpecified(nameof(Properties)) && Properties != null && Properties.Length > 0) { diff --git a/src/Commands/Utilities/Microsoft365GroupsUtility.cs b/src/Commands/Utilities/Microsoft365GroupsUtility.cs index 723486d55..29a709bb1 100644 --- a/src/Commands/Utilities/Microsoft365GroupsUtility.cs +++ b/src/Commands/Utilities/Microsoft365GroupsUtility.cs @@ -12,7 +12,7 @@ namespace PnP.PowerShell.Commands.Utilities { internal static class Microsoft365GroupsUtility { - internal static async Task> GetGroupsAsync(PnPConnection connection, string accessToken, bool includeSiteUrl, bool includeOwners, string filter = null) + internal static async Task> GetGroupsAsync(PnPConnection connection, string accessToken, bool includeSiteUrl, bool includeOwners, string filter = null, bool includeSensitivityLabels = false) { var items = new List(); string requestUrl = "v1.0/groups"; @@ -36,7 +36,7 @@ internal static async Task> GetGroupsAsync(PnPCon { items.AddRange(result); } - if (includeSiteUrl || includeOwners) + if (includeSiteUrl || includeOwners || includeSensitivityLabels) { var chunks = BatchUtility.Chunk(items.Select(g => g.Id.ToString()), 20); if (includeOwners) @@ -55,19 +55,29 @@ internal static async Task> GetGroupsAsync(PnPCon { foreach (var chunk in chunks) { - var results = await BatchUtility.GetPropertyBatchedAsync(connection, accessToken, chunk.ToArray(), "/groups/{0}/sites/root", "webUrl"); - //var results = await GetSiteUrlBatchedAsync(connection, accessToken, chunk.ToArray()); + var results = await BatchUtility.GetPropertyBatchedAsync(connection, accessToken, chunk.ToArray(), "/groups/{0}/sites/root", "webUrl"); foreach (var batchResult in results) { items.First(i => i.Id.ToString() == batchResult.Key).SiteUrl = batchResult.Value; } } } + if (includeSensitivityLabels) + { + foreach (var chunk in chunks) + { + var sensitivityLabelResults = await BatchUtility.GetObjectCollectionBatchedAsync(connection, accessToken, chunk.ToArray(), "/groups/{0}/assignedLabels"); + foreach (var sensitivityLabel in sensitivityLabelResults) + { + items.First(i => i.Id.ToString() == sensitivityLabel.Key).AssignedLabels = sensitivityLabel.Value?.ToList(); + } + } + } } return items; } - internal static async Task GetGroupAsync(PnPConnection connection, Guid groupId, string accessToken, bool includeSiteUrl, bool includeOwners) + internal static async Task GetGroupAsync(PnPConnection connection, Guid groupId, string accessToken, bool includeSiteUrl, bool includeOwners, bool detailed, bool includeSensitivityLabels) { var results = await GraphHelper.GetAsync>(connection, $"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and id eq '{groupId}'", accessToken); @@ -100,7 +110,6 @@ internal static async Task GetGroupAsync(PnPConnection connec { if (iterations * 30 >= 300) { - wait = false; throw; } else @@ -114,12 +123,24 @@ internal static async Task GetGroupAsync(PnPConnection connec { group.Owners = await GetGroupMembersAsync("owners", connection, group.Id.Value, accessToken); } + if (detailed) + { + var exchangeOnlineProperties = await GetGroupExchangeOnlineSettingsAsync(connection, group.Id.Value, accessToken); + group.AllowExternalSenders = exchangeOnlineProperties.AllowExternalSenders; + group.AutoSubscribeNewMembers = exchangeOnlineProperties.AutoSubscribeNewMembers; + group.IsSubscribedByMail = exchangeOnlineProperties.IsSubscribedByMail; + } + if (includeSensitivityLabels) + { + var sensitivityLabels = await GetGroupSensitivityLabelsAsync(connection, group.Id.Value, accessToken); + group.AssignedLabels = sensitivityLabels.AssignedLabels; + } return group; } return null; } - internal static async Task GetGroupAsync(PnPConnection connection, string displayName, string accessToken, bool includeSiteUrl, bool includeOwners) + internal static async Task GetGroupAsync(PnPConnection connection, string displayName, string accessToken, bool includeSiteUrl, bool includeOwners, bool detailed, bool includeSensitivityLabels) { var results = await GraphHelper.GetAsync>(connection, $"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and (displayName eq '{displayName}' or mailNickName eq '{displayName}')", accessToken); if (results != null && results.Items.Any()) @@ -138,6 +159,18 @@ internal static async Task GetGroupAsync(PnPConnection connec { group.Owners = await GetGroupMembersAsync("owners", connection, group.Id.Value, accessToken); } + if (detailed) + { + var exchangeOnlineProperties = await GetGroupExchangeOnlineSettingsAsync(connection, group.Id.Value, accessToken); + group.AllowExternalSenders = exchangeOnlineProperties.AllowExternalSenders; + group.AutoSubscribeNewMembers = exchangeOnlineProperties.AutoSubscribeNewMembers; + group.IsSubscribedByMail = exchangeOnlineProperties.IsSubscribedByMail; + } + if (includeSensitivityLabels) + { + var sensitivityLabels = await GetGroupSensitivityLabelsAsync(connection, group.Id.Value, accessToken); + group.AssignedLabels = sensitivityLabels.AssignedLabels; + } return group; } return null; @@ -335,6 +368,18 @@ private static async Task> GetGroupMembersAsync(st return results; } + private static async Task GetGroupExchangeOnlineSettingsAsync(PnPConnection connection, Guid groupId, string accessToken) + { + var results = await GraphHelper.GetAsync(connection, $"v1.0/groups/{groupId}?$select=allowExternalSenders,isSubscribedByMail,autoSubscribeNewMembers", accessToken); + return results; + } + + private static async Task GetGroupSensitivityLabelsAsync(PnPConnection connection, Guid groupId, string accessToken) + { + var results = await GraphHelper.GetAsync(connection, $"v1.0/groups/{groupId}?$select=assignedLabels", accessToken); + return results; + } + internal static async Task ClearMembersAsync(PnPConnection connection, Guid groupId, string accessToken) { var members = await GetMembersAsync(connection, groupId, accessToken); @@ -393,6 +438,22 @@ internal static async Task UpdateMembersAsync(PnPConnection connection, Guid gro } } + internal static async Task UpdateExchangeOnlineSettingAsync(PnPConnection connection, Guid groupId, string accessToken, Microsoft365Group group) + { + var patchData = new + { + group.AllowExternalSenders, + group.AutoSubscribeNewMembers + }; + + var result = await GraphHelper.PatchAsync(connection, accessToken, $"v1.0/groups/{groupId}", patchData); + + group.AllowExternalSenders = result.AllowExternalSenders; + group.AutoSubscribeNewMembers = result.AutoSubscribeNewMembers; + + return group; + } + internal static async Task> GetSiteUrlBatchedAsync(PnPConnection connection, string accessToken, string[] groupIds) { Dictionary returnValue = new Dictionary(); diff --git a/src/Commands/Utilities/TeamsUtility.cs b/src/Commands/Utilities/TeamsUtility.cs index a5cd0d376..2085f758f 100644 --- a/src/Commands/Utilities/TeamsUtility.cs +++ b/src/Commands/Utilities/TeamsUtility.cs @@ -209,7 +209,12 @@ public static async Task NewTeamAsync(string accessToken, PnPConnection co } retry = false; } - + catch (GraphException ge) when (ge.HttpResponse.StatusCode == System.Net.HttpStatusCode.Conflict) + { + // Handle conflict exceptions as if it succeeded, as it means a previous request succeeded enabling teams + returnTeam = await GetTeamAsync(accessToken, connection, group.Id); + retry = false; + } catch (Exception) { await Task.Delay(5000); diff --git a/src/Commands/Web/GetWeb.cs b/src/Commands/Web/GetWeb.cs index 7fb74f0ad..9c2c8af56 100644 --- a/src/Commands/Web/GetWeb.cs +++ b/src/Commands/Web/GetWeb.cs @@ -4,8 +4,6 @@ using System.Linq.Expressions; using System.Management.Automation; -using PnP.PowerShell.Commands.Extensions; - namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPWeb")] diff --git a/src/Commands/WindowsSdk.targets b/src/Commands/WindowsSdk.targets index eb5cd9e16..5546e7ecf 100644 --- a/src/Commands/WindowsSdk.targets +++ b/src/Commands/WindowsSdk.targets @@ -1,5 +1,4 @@ - net6.0-windows true diff --git a/version.txt b/version.txt index 197c4d5c2..99adc4805 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.4.0 +2.4.107 \ No newline at end of file