diff --git a/.github/workflows/builddocsite.yml b/.github/workflows/builddocsite.yml index 09e78d7fb..e59068bbd 100644 --- a/.github/workflows/builddocsite.yml +++ b/.github/workflows/builddocsite.yml @@ -13,22 +13,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Checkout master branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: master path: master - name: Checkout dev branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: dev path: dev - name: Checkout gh-pages branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: gh-pages path: gh-pages - name: Setup .NET 7.0 - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.x diff --git a/.github/workflows/buildexternalhelp.yml b/.github/workflows/buildexternalhelp.yml index f38594210..3037db7d9 100644 --- a/.github/workflows/buildexternalhelp.yml +++ b/.github/workflows/buildexternalhelp.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Building Help File env: RUNSINACTION: 1 diff --git a/.github/workflows/buildpr.yml b/.github/workflows/buildpr.yml index 0166a1b39..1b8d3ef2d 100644 --- a/.github/workflows/buildpr.yml +++ b/.github/workflows/buildpr.yml @@ -17,23 +17,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout PnP.Framework - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pnp/pnpframework path: pnpframework ref: 'dev' - name: Checkout PnP.Core - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pnp/pnpcore path: pnpcore ref: 'dev' - name: Checkout PnP.PowerShell - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: powershell - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: | 6.0.x diff --git a/.github/workflows/checkdocumentationbuild.yml b/.github/workflows/checkdocumentationbuild.yml index 66ef3a76b..715732106 100644 --- a/.github/workflows/checkdocumentationbuild.yml +++ b/.github/workflows/checkdocumentationbuild.yml @@ -12,20 +12,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: master path: master - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: dev path: dev - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: gh-pages path: gh-pages - name: Setup .NET 7.0 - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.x diff --git a/.github/workflows/cleanupnightlyreleases.yml b/.github/workflows/cleanupnightlyreleases.yml index 47314bbbf..b5e820457 100644 --- a/.github/workflows/cleanupnightlyreleases.yml +++ b/.github/workflows/cleanupnightlyreleases.yml @@ -14,11 +14,11 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: dev - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: '6.0.x' - name: Unlist nightly nuget packages diff --git a/.github/workflows/nightlyrelease.yml b/.github/workflows/nightlyrelease.yml index bd0a763b5..ea5d203aa 100644 --- a/.github/workflows/nightlyrelease.yml +++ b/.github/workflows/nightlyrelease.yml @@ -11,12 +11,12 @@ jobs: steps: - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: | 6.x 7.x - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: dev token: ${{ secrets.PAT }} @@ -41,7 +41,7 @@ jobs: runs-on: windows-2022 needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build an image run: | $VERSION="$(cat ./version.txt)-nightly" @@ -55,7 +55,7 @@ jobs: runs-on: windows-2019 needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build an image run: | $VERSION="$(cat ./version.txt)-nightly" @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-latest needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build an image run: | VERSION=$(cat ./version.txt)-nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcaba5ea6..559f5a4b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: publish-docker-windows-2022: runs-on: windows-2022 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and Publish All shell: pwsh run: | @@ -17,7 +17,7 @@ jobs: publish-docker-windows-2019: runs-on: windows-2019 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and Publish All shell: pwsh run: | @@ -26,7 +26,7 @@ jobs: publish-docker-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and Publish All shell: pwsh run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index b95e0e2ca..0579ea0b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,74 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added +- Added `-IsDataAccessInCardDesignerEnabled` to `Set-PnPTenant` which allows for configuring Viva Connections Adaptive Cards to connect to backend services for their data [#3635](https://github.com/pnp/powershell/pull/3635) +- Added `Remove-PnPContainer` cmdlet to remove the SharePoint embed container. [#3629](https://github.com/pnp/powershell/pull/3629) +- Added `Convert-PnPFile` cmdlet which allows for a file to be converted to from one format to another. [#3435](https://github.com/pnp/powershell/pull/3435) & [#3643](https://github.com/pnp/powershell/pull/3643) +- Added `Merge-PnPTerm` cmdlet which allows merging of one term into another. [#3638](https://github.com/pnp/powershell/pull/3638) +- Added `Get-PnPDeletedContainer` cmdlet which returns a list of all deleted Containers in the recycle bin. [#3648](https://github.com/pnp/powershell/pull/3648) +- Added `-Batch` parameter to `Add-PnPGroupMember` cmdlet which allows adding members to a SharePoint group in a batch. [#3651](https://github.com/pnp/powershell/pull/3651) +- Added `Get-PnPContainerTypeConfiguration` cmdlet which fetches the container type configuration values. [#3660](https://github.com/pnp/powershell/pull/3660) +- Added `-AppBypassInformationBarriers` and `-DefaultOneDriveInformationBarrierMode` parameters to `Set-PnPTenant` cmdlet. [#3679](https://github.com/pnp/powershell/pull/3679) +- Added `Add-PnPFileAnalyticsData` cmdlet to allow retrieval of file analytics data. [#3644](https://github.com/pnp/powershell/pull/3644) +- Added `Add-PnPSiteAnalyticsData` cmdlet to allow retrieval of site analytics data. [#3645](https://github.com/pnp/powershell/pull/3645) +- Added `Get-PnPPowerPlatformSolution` cmdlet to Power Platform solutions. [#3675](https://github.com/pnp/powershell/pull/3675) +- Added `New-PnPContainerType` cmdlet to create a new SharePoint container type. [#3669](https://github.com/pnp/powershell/pull/3669) +- Added `Remove-PnPContainerType` cmdlet which removes a specific container type. [#3689](https://github.com/pnp/powershell/pull/3689/) +- Added `Restore-PnPDeletedContainer` cmdlet which recovers a deleted Container from the Recycle Bin. [#3661](https://github.com/pnp/powershell/pull/3661) +- Added the ModerationSettings to be returned with `Get-PnPTeamsChannel` when passing in `-IncludeModerationSettings` and using `-Identity ` [#3580](https://github.com/pnp/powershell/pull/3580) +- Added `AllowNewMessageFromBots`, `AllowNewMessageFromConnectors`, `ReplyRestriction` and `UserNewMessageRestriction` to `Set-PnPTeamsChannel` which allows setting the moderation settings on a Teams channel [#3580](https://github.com/pnp/powershell/pull/3580) +- Added `Get-PnPWebPermission` cmdlet which retrieves permission given by user for specific web. [#3685](https://github.com/pnp/powershell/pull/3685) +- Added `-HorizontalQuickLaunch` parameter to `Set-PnPWeb` cmdlet to allow navigation orientation to be horizontal. [#3722](https://github.com/pnp/powershell/pull/3722) +- Added support for different sovereign cloud environment for Power Platform related cmdlets [#3725](https://github.com/pnp/powershell/pull/3725) +- Added `Set-PnPRetentionLabel` and `Reset-PnPRetentionLabel` cmdlets to support setting a retention label on one or more items [#3599](https://github.com/pnp/powershell/pull/3599) +- Added `-SiteThumbnailUrl` parameter to `Set-PnPWebHeader` cmmdlet to support setting thumbnail of the site. [#3746](https://github.com/pnp/powershell/pull/3746) +- Added `-Like` parameter to `Set-PnPPage` cmdlet to support liking/unliking a modern page. [#3788](https://github.com/pnp/powershell/pull/3788) +- Added `Get-PnPPageLikedByInformation` cmdlet to retrieve list of users who liked a modern page. [#3781](https://github.com/pnp/powershell/pull/3781) + +### Fixed + +- Fixed `Grant-PnPAzureADAppSitePermission` cmdlet which allows it to work in multi-geo environment. [#3658](https://github.com/pnp/powershell/pull/3658) +- Fixed `Get-PnPTeamsChannelMessageReply` cmdlet which didn't work correctly when `-IncludeDeleted` parameter was not specified. [#3676](https://github.com/pnp/powershell/pull/3676) +- Fixed `Add-PnPNavigationNode` cmdlet to also search for nodes in child navigation items. [#3625](https://github.com/pnp/powershell/pull/3625) +- Fixed `Get-PnPFlow` cmdlet to use the newer Flow URLs instead of the old ARM URLs. [#3677](https://github.com/pnp/powershell/pull/3677) +- Fixed `Get-PnPPowerPlatformConnector`, `Get-PnPPowerPlatformEnvironment`, `Get-PnPPowerApp`, `Add-PnPFlowOwner`, `Disable-PnPFlow`, `Enable-PnPFlow`, `Export-PnPFlow`, `Get-PnPFlowOwner`, `Get-PnPFlowRun`, `Remove-PnPFlow`, `Remove-PnPFlowOwner` , `Restart-PnPFlow` and `Stop-PnPFlowRun` cmdlets to use the new HTTP endpoints. [#3687](https://github.com/pnp/powershell/pull/3687) +- Fixed `Add-PnPHubSiteAssociation` cmdlet to allow support for multi-geo scenario. [#3568](https://github.com/pnp/powershell/pull/3568) +- Fixed `Enable/Disable-PnPPageScheduling` cmdlet to also work with Viva connections enabled site. [#3713](https://github.com/pnp/powershell/pull/3713) +- Fixed `Register-PnPManagementShellAccess` and `Register-PnPAzureADApp` cmdlets to also work with custom environment. [#3763](https://github.com/pnp/powershell/pull/3763) +- Fixed `Set-PnPPPage` cmdlet to only change layout of the page if the parameter is specified. [#3777](https://github.com/pnp/powershell/pull/3777) +- Fixed `New-PnPGroup` cmdlet to correctly show the group description with HTML making it similar to `Set-PnPGroup`. + +### Changed + +- `-IsFavoriteByDefault` parameter is now obsolete in `Add-PnPTeamsChannel` cmdlet due to deprecation by Microsoft Graph API. [#3712](https://github.com/pnp/powershell/pull/3712) +- `Get-PnPSiteTemplate` will now only contain `PersistPublishingFiles`, `IncludeNativePublishingFiles`, `IncludeTermGroupsSecurity`, `IncludeSearchConfiguration`, `SkipVersionCheck` and `PersistMultiLanguageResources` if these are provided with the cmdlet as switch parameters [#3715](https://github.com/pnp/powershell/pull/3715) +- Due to backend changes in Microsoft Graph, `Get-PnPUnifiedAuditLog` cmdlet requires some more permissions. Updated the cmdlet to handle that. [#3745](https://github.com/pnp/powershell/pull/3745) + +### Contributors + +- Arleta Wanat [PowershellScripts] +- Jenny Wu [msjennywu] +- Aimery Thomas [a1mery] +- Nils Andresen [nils-a] +- Gautam Sheth [gautamdsheth] +- Nishkalank Bezawada [NishkalankBezawada] +- Konrad K. [wilecoyotegenius] +- Leon Armston [LeonArmston] +- Daniel Cecil [danielcecil] +- Rohit Devmore [rohit404404] +- Konrad K. [wilecoyotegenius] +- Kunj Balkrishna Sangani [kunj-sangani] +- Koen Zomers [koenzomers] +- Reshmee Auckloo [reshme011] +- Nishkalank Bezawada [NishkalankBezawada] +- Jørgen Wiik [joHKwi] +- Siddharth Vaghasia [siddharth-vaghasia] +- Jürgen Rosenthal-Buroh [JuergenRB] + +## [2.3.0] + +### Added + - Added `-MediaTranscription` and `-MediaTranscriptionAutomaticFeatures` to `Set-PnPTenant` which allows for configuring the media transcription settings. [#3238](https://github.com/pnp/powershell/pull/3238) - Added `-Includes` option to `Get-PnPListItem` which allows for specifying additional fields to be retrieved. [#3270](https://github.com/pnp/powershell/pull/3270) - Added `-AllowCommentsTextOnEmailEnabled` parameter to `Set-PnPTenant` which allows including the surrounding document context in email notification when user is mentioned in document comments. [#3268](https://github.com/pnp/powershell/pull/3268) @@ -50,6 +118,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added support for executing the 'Invoke-PnPSPRestMethod' cmdlet in a batch [#3565](https://github.com/pnp/powershell/pull/3565) - Added `Get-PnPSiteSetVersionPolicyProgress` cmdlet which allows for getting the progress of setting a version policy for existing document libraries on a site [#3564](https://github.com/pnp/powershell/pull/3564) - Added `EnableSensitivityLabelForPDF` to `Set-PnPTenant` and `Get-PnPTenant` [#3581](https://github.com/pnp/powershell/pull/3581) +- Changed `Restore-PnPRecycleBinItem` , made `-Identity` parameter as non-mandatory. [#2499](https://github.com/pnp/powershell/pull/2499) - Added the ability to set Manage and FullControl permissions directly when using Sites.Selected with `Grant-PnPAzureADAppSitePermission` [#3617](https://github.com/pnp/powershell/pull/3617) - Added `Remove-PnPMicrosoft365GroupPhoto` cmdlet which allows removal of profile picture of M365 Group. [#3607](https://github.com/pnp/powershell/pull/3607) @@ -105,7 +174,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Antti K. Koskela [koskila] - Christian Veenhuis [ChVeen] - Kunj Balkrishna Sangani [kunj-sangani] -- Antti K. Koskela [koskila] - Dave Paylor [paylord] - [smsdaniel] - Jim Duncan [sparkitect] @@ -406,7 +474,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Improved `Remove-PnPFieldFromContentType` cmdlet to ensure proper null check for non-existing fields. It will now throw proper `Field not found` error. [#2407](https://github.com/pnp/powershell/pull/2407) - Changed the Microsoft 365 Groups cmdlets to use the `v1.0` endpoint instead of the `beta` [#2426](https://github.com/pnp/powershell/pull/2426) - Changed `Add-PnPMicrosoft365GroupToSite` to longer require the `-Url` parameter to be specified. If its not provided, the currently connected to site will be groupified. [#2496](https://github.com/pnp/powershell/pull/2496) -- Changed `Restore-PnPRecycleBinItem` , made `-Identity` parameter as non-mandatory. [#2499](https://github.com/pnp/powershell/pull/2499) ### Removed diff --git a/MIGRATE-2.0-to-3.0.md b/MIGRATE-2.0-to-3.0.md new file mode 100644 index 000000000..ce8033a19 --- /dev/null +++ b/MIGRATE-2.0-to-3.0.md @@ -0,0 +1,57 @@ +# Updating from PnP PowerShell 2.x to 3.x + +_This is a draft document, version 3 is not yet available_ + +The 3.x version of PnP PowerShell is based exclusively on .NET 8.0, which means that it will not work on older PowerShell editions like PowerShell 5.1, ISE or PowerShell 7.3 or older. PowerShell 7.4 or later is required. + +- The 3.x version of PnP PowerShell will work only on PowerShell 7.4 or later versions. + +## Steps to update from 2.x to 3.x + +- Download and install the latest PowerShell version from [this GitHub releases link](https://aka.ms/powershell-release?tag=lts) + +Or + +- For Windows environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows) + +- For Linux based environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux) + +- For Mac OS envoronments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos) + +Once the PowerShell 7.4 or later is downloaded and installed in the environment, you can install the PnP PowerShell module like you normally do. + +```powershell +Install-Module -Name "PnP.PowerShell" +``` + +If you want to install or update to the latest nightly built prerelease of PnP PowerShell, run: + +```powershell +Install-Module -Name "PnP.PowerShell" -AllowPrerelease +``` + +## Changes needed in Azure DevOps/GitHub Actions/Pipelines + +If you are using PnP PowerShell in Azure Devops, GitHub Actions or other pipeline infrastructure, you will have to update your PowerShell version from v5 to v7.4 or later. + +Recommend referring to these 2 links: + +- [DevOps Snack: Change PowerShell version in YAML](https://microsoft-bitools.blogspot.com/2021/02/devops-snack-change-powershell-version.html) +- [How to enable PowerShell core in Azure Pipeline?](https://theautomationcode.com/how-to-enable-powershell-core-in-azure-pipeline/) + +## Breaking changes + +| **Cmdlet** | **Comment** | +| ----------- | ---------------------- | +| Get-PnPRetentionLabel | The `Get-PnPRetentionLabel` cmdlet has been renamed to `Get-PnPTenantRetentionLabel` | +| Get-PnPLabel | The `Get-PnPLabel` cmdlet has been renamed to `Get-PnRetentionLabel` | +| Get-PnPPowerPlatformConnector | The `Get-PnPPowerPlatformConnector` cmdlet has been renamed to `Get-PnPPowerPlatformCustomConnector` | +| Connect-PnPOnline | Using `Connect-PnPOnline` without specifying an authentication option will now default to using an interactive login. If you still want to use logon using client credentials, provide them using -Credentials instead | + +## Other notable changes + +- ... + +## Changes to output type + +- ... diff --git a/build/Build-Nightly.ps1 b/build/Build-Nightly.ps1 index 6a9b44fef..9ff88fdf2 100644 --- a/build/Build-Nightly.ps1 +++ b/build/Build-Nightly.ps1 @@ -174,7 +174,7 @@ if ($runPublish -eq $true) { } # Generate predictor commands - ./build/Generate-PredictorCommands.ps1 -Version $version + ./build/Generate-PredictorCommands.ps1 -Version "nightly" Write-Host "Generating Documentation" -ForegroundColor Yellow Set-PSRepository PSGallery -InstallationPolicy Trusted diff --git a/documentation/Add-PnPGroupMember.md b/documentation/Add-PnPGroupMember.md index ad8bba906..345e35405 100644 --- a/documentation/Add-PnPGroupMember.md +++ b/documentation/Add-PnPGroupMember.md @@ -26,6 +26,12 @@ Add-PnPGroupMember -Group -EmailAddress [-SendEmail] [- [-Connection ] ``` +### Batched +```powershell +Add-PnPGroupMember -LoginName -Group + [-Connection ] -Batch +``` + ## DESCRIPTION Allows to add new user to SharePoint group. The SharePoint group may be specified either by id, name or related object. @@ -46,6 +52,16 @@ Add-PnPGroupMember -LoginName user@company.com -Group 5 Add the specified user to the SharePoint group with Id 5 +### EXAMPLE 3 +```powershell +$batch = New-PnPBatch +Add-PnPGroupMember -LoginName user@company.com -Group 5 -Batch $batch +Add-PnPGroupMember -LoginName user1@company.com -Group 5 -Batch $batch +Invoke-PnPBatch $batch +``` + +Add the specified users to the SharePoint group with Id 5 in a batch. + ## PARAMETERS ### -Connection @@ -130,6 +146,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Batch + +```yaml +Type: PnPBatch +Parameter Sets: Batched + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS diff --git a/documentation/Add-PnPListItem.md b/documentation/Add-PnPListItem.md index cd5e13eab..355441cb7 100644 --- a/documentation/Add-PnPListItem.md +++ b/documentation/Add-PnPListItem.md @@ -187,46 +187,48 @@ Accept wildcard characters: False Use the internal names of the fields when specifying field names. -Single line of text: -Values @{"Title" = "Title New"} +Single line of text: ``` -Values @{"Title" = "Title New"} ``` -Multiple lines of text: -Values @{"MultiText" = "New text\n\nMore text"} +Multiple lines of text: ``` -Values @{"MultiText" = "New text\n\nMore text"} ``` -Rich text: -Values @{"MultiText" = "<strong>New</strong> text"} +Rich text: ``` -Values @{"MultiText" = "<strong>New</strong> text"} ``` -Choice: -Values @{"Choice" = "Choice 1"} +Choice: ``` -Values @{"Choice" = "Choice 1"} ``` -Multi-Choice: -Values @{"MultiChoice" = "Choice 1","Choice 2"} +Multi-Choice: ``` -Values @{"MultiChoice" = "Choice 1","Choice 2"} ``` -Number: -Values @{"Number" = "10"} +Number: ``` -Values @{"Number" = "10"} ``` -Currency: -Values @{"Currency" = "10"} +Currency: ``` -Values @{"Currency" = "10"} ``` > [!NOTE] > For numeric and currency fields, when using -Batch, provide the value using the comma and dots matching the regional setting of the site you're adding the listitem to. When not using batch, you must always provide the value in the American notation, so dot for decimals and comma for thousands separators. -Date and Time: -Values @{"DateAndTime" = "03/13/2015 14:16"} +Date and Time: ``` -Values @{"DateAndTime" = "03/13/2015 14:16"} ``` -Lookup (id of lookup value): -Values @{"Lookup" = "2"} +Lookup (id of lookup value): ``` -Values @{"Lookup" = "2"} ``` -Multi value lookup (id of lookup values as array 1): -Values @{"MultiLookupField" = "1","2"} +Multi value lookup (id of lookup values as array 1): ``` -Values @{"MultiLookupField" = "1","2"} ``` -Multi value lookup (id of lookup values as array 2): -Values @{"MultiLookupField" = 1,2} +Multi value lookup (id of lookup values as array 2): ``` -Values @{"MultiLookupField" = 1,2} ``` -Multi value lookup (id of lookup values as string): -Values @{"MultiLookupField" = "1,2"} +Multi value lookup (id of lookup values as string): ``` -Values @{"MultiLookupField" = "1,2"} ``` -Yes/No: -Values @{"YesNo" = $false} +Yes/No: ``` -Values @{"YesNo" = $false} ``` -Person/Group (id of user/group in Site User Info List or email of the user, separate multiple values with a comma): -Values @{"Person" = "user1@domain.com","21"} +Person/Group (id of user/group in Site User Info List or email of the user, separate multiple values with a comma): ``` -Values @{"Person" = "user1@domain.com","21"} ``` -Managed Metadata (single value with path to term): -Values @{"MetadataField" = "CORPORATE|DEPARTMENTS|FINANCE"} +**If the user is not present, in the site user information list, you need to add that user using `New-PnPUser` cmdlet.** -Managed Metadata (single value with id of term): -Values @{"MetadataField" = "fe40a95b-2144-4fa2-b82a-0b3d0299d818"} with Id of term +Managed Metadata (single value with path to term): ``` -Values @{"MetadataField" = "CORPORATE|DEPARTMENTS|FINANCE"} ``` -Managed Metadata (multiple values with paths to terms): -Values @{"MetadataField" = "CORPORATE|DEPARTMENTS|FINANCE","CORPORATE|DEPARTMENTS|HR"} +Managed Metadata (single value with id of term): ``` -Values @{"MetadataField" = "fe40a95b-2144-4fa2-b82a-0b3d0299d818"} with Id of term ``` -Managed Metadata (multiple values with ids of terms): -Values @{"MetadataField" = "fe40a95b-2144-4fa2-b82a-0b3d0299d818","52d88107-c2a8-4bf0-adfa-04bc2305b593"} +Managed Metadata (multiple values with paths to terms): ``` -Values @{"MetadataField" = "CORPORATE|DEPARTMENTS|FINANCE","CORPORATE|DEPARTMENTS|HR"} ``` -Hyperlink or Picture: -Values @{"Hyperlink" = "https://github.com/OfficeDev/, OfficePnP"} +Managed Metadata (multiple values with ids of terms): ``` -Values @{"MetadataField" = "fe40a95b-2144-4fa2-b82a-0b3d0299d818","52d88107-c2a8-4bf0-adfa-04bc2305b593"} ``` + +Hyperlink or Picture: ``` -Values @{"Hyperlink" = "https://github.com/OfficeDev/, OfficePnP"} ``` ```yaml Type: Hashtable diff --git a/documentation/Add-PnPTeamsChannel.md b/documentation/Add-PnPTeamsChannel.md index 7eb7d995a..46db3026c 100644 --- a/documentation/Add-PnPTeamsChannel.md +++ b/documentation/Add-PnPTeamsChannel.md @@ -99,7 +99,8 @@ 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. +**This parameter is obsolete. [Microsoft Graph API docs](https://learn.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-1.0#properties) mention that it only works when you create a channel in Teams creation request. It will be removed in a future version.** ```yaml Type: Boolean @@ -156,4 +157,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/Convert-PnPFile.md b/documentation/Convert-PnPFile.md new file mode 100644 index 000000000..be64541ac --- /dev/null +++ b/documentation/Convert-PnPFile.md @@ -0,0 +1,182 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Convert-PnPFile.html +external help file: PnP.PowerShell.dll-Help.xml +title: Convert-PnPFile +--- + +# Convert-PnPFile + +## SYNOPSIS +Converts a file to another format + +## SYNTAX + + +### Save to local path +```powershell +Convert-PnPFile -Url -Path [-Force] +``` + +### Return as memorystream +```powershell +Convert-PnPFile -Url -AsMemoryStream +``` + +### Save to SharePoint Online (Same SiteCollection) +```powershell +Convert-PnPFile -Url -Folder +``` + +## DESCRIPTION +Allows converting of a file from SharePoint Online. The file contents can either be directly saved to local disk, or stored in memory for further processing, or Can be uploaded back to SharePoint Online SiteCollection + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Document.docx" -AsMemoryStream +``` + +Retrieves the file and converts to PDF, and outputs its content to the console as a Memory Stream + +### EXAMPLE 2 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Document.docx" +``` + +Retrieves the file and converts to PDF, and outputs its content to the console as a Memory Stream + +### EXAMPLE 3 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Document.docx" -Path "C:\Temp" +``` + +Retrieves the file and converts to PDF, and save it to the given local path + +### EXAMPLE 4 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Document.docx" -Path "C:\Temp" -Force +``` + +Retrieves the file and converts to PDF, and save it to the given local path. Force parameter will override the existing file in the location where the document gets saved. + +### EXAMPLE 5 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Test/Book.xlsx" -Folder "/sites/demo/Shared Documents/Archive" +``` + +Retrieves the file and converts to PDF, and save it to the given Document library (Folder) in SharePoint Online (same site collection) + +### EXAMPLE 6 +```powershell +Convert-PnPFile -Url "/sites/demo/Shared Documents/Test/Book.png" -ConvertToFormat Jpg -Folder "/sites/demo/Shared Documents/Archive" +``` + +Retrieves the file and converts to JPG, and save it to the given Document library (Folder) in SharePoint Online (same site collection) + +## PARAMETERS + +### -Url +The URL (server or site relative) to the file + +```yaml +Type: String +Parameter Sets: (All) +Aliases: ServerRelativeUrl, SiteRelativeUrl + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ConvertToFormat +The format to which you want the file to be converted. Default is PDF. + +The following values are valid transformation targets and their supported source extensions: + +| Target | Description | Supported source extensions +|:------|:-----------------------------------|--------------------------------- +| glb | Converts the item into GLB format | cool, fbx, obj, ply, stl, 3mf +| html | Converts the item into HTML format | eml, md, msg +| jpg | Converts the item into JPG format | 3g2, 3gp, 3gp2, 3gpp, 3mf, ai, arw, asf, avi, bas, bash, bat, bmp, c, cbl, cmd, cool, cpp, cr2, crw, cs, css, csv, cur, dcm, dcm30, dic, dicm, dicom, dng, doc, docx, dwg, eml, epi, eps, epsf, epsi, epub, erf, fbx, fppx, gif, glb, h, hcp, heic, heif, htm, html, ico, icon, java, jfif, jpeg, jpg, js, json, key, log, m2ts, m4a, m4v, markdown, md, mef, mov, movie, mp3, mp4, mp4v, mrw, msg, mts, nef, nrw, numbers, obj, odp, odt, ogg, orf, pages, pano, pdf, pef, php, pict, pl, ply, png, pot, potm, potx, pps, ppsx, ppsxm, ppt, pptm, pptx, ps, ps1, psb, psd, py, raw, rb, rtf, rw1, rw2, sh, sketch, sql, sr2, stl, tif, tiff, ts, txt, vb, webm, wma, wmv, xaml, xbm, xcf, xd, xml, xpm, yaml, yml +| pdf | Converts the item into PDF format | doc, docx, epub, eml, htm, html, md, msg, odp, ods, odt, pps, ppsx, ppt, pptx, rtf, tif, tiff, xls, xlsm, xlsx + +For more information, check [this link](https://pnp.github.io/pnpcore/using-the-sdk/files-intro.html#converting-files). + + +```yaml +Type: String +Parameter Sets: (All) + +Required: False +Position: Named +Default value: Pdf +Accept pipeline input: False +Accept wildcard characters: False +``` + + +### -AsMemoryStream + +```yaml +Type: SwitchParameter +Parameter Sets: Return as memorystream + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Path +Local path where the file should be saved + +```yaml +Type: String +Parameter Sets: Save to local path + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + + +### -Force +Overwrites the file if it exists. + +```yaml +Type: SwitchParameter +Parameter Sets: Save to local path, Upload to SharePoint + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Folder +The destination library in the site + +```yaml +Type: FolderPipeBind +Parameter Sets: (UPLOADTOSHAREPOINT) + +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) \ No newline at end of file diff --git a/documentation/Export-PnPPage.md b/documentation/Export-PnPPage.md index 40566c65d..37ff5cab1 100644 --- a/documentation/Export-PnPPage.md +++ b/documentation/Export-PnPPage.md @@ -33,6 +33,13 @@ Export-PnPPage -Identity Home.aspx Exports the page 'Home.aspx' to a new PnP Provisioning Template +### EXAMPLE 2 +```powershell +Export-PnPPage -Identity HR/Home.aspx -Out template.pnp +``` + +Exports the page 'Home.aspx' to a new PnP Provisioning Template + ## PARAMETERS ### -Configuration @@ -93,7 +100,7 @@ Accept wildcard characters: False ``` ### -Identity -The name of the page +The name/identity of the page. This can be a page instance or the filename of the page. I.e. if the page is called MyPage.aspx and is located in the root of the Site Pages library, provide "MyPage" or "MyPage.aspx". If the page is called MyOtherPage.aspx and is located inside a subfolder called HR located in the root of the Site Pages library, provide "HR/MyOtherPage" or "HR/MyOtherPage.aspx ```yaml Type: ClientSidePagePipeBind diff --git a/documentation/Get-PnPContainer.md b/documentation/Get-PnPContainer.md index 8f194ef52..c5d2226ca 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]] [-Connection ] +Get-PnPContainer [[-Identity] ] [-OwningApplicationId [Guid]] [-Paged [switchparameter]] [-PagingToken [string]][-Connection ] ``` ## DESCRIPTION @@ -117,7 +117,7 @@ Accept wildcard characters: False 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: SwitchParameter +Type: String Parameter Sets: (All) Required: False diff --git a/documentation/Get-PnPContainerTypeConfiguration.md b/documentation/Get-PnPContainerTypeConfiguration.md new file mode 100644 index 000000000..19b9eb5fb --- /dev/null +++ b/documentation/Get-PnPContainerTypeConfiguration.md @@ -0,0 +1,72 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPContainerTypeConfiguration.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPContainerTypeConfiguration +--- + +# Get-PnPContainerTypeConfiguration + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +Returns container type configuration of a SharePoint repository services application. + +## SYNTAX + +```powershell +Get-PnPContainerTypeConfiguration [[-Identity] ] [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPContainerTypeConfiguration -Identity a187e399-0c36-4b98-8f04-1edc167a0996 +``` + +Returns a container type configuration data of the application created under the specified SharePoint repository services application. + + +## 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 + +Specify container type GUID + +```yaml +Type: ContainerPipeBind +Parameter Sets: (All) + +Required: False +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +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-PnPDeletedContainer.md b/documentation/Get-PnPDeletedContainer.md new file mode 100644 index 000000000..55043bafb --- /dev/null +++ b/documentation/Get-PnPDeletedContainer.md @@ -0,0 +1,57 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPDeletedContainer.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPDeletedContainer +--- + +# Get-PnPDeletedContainer + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +The Get-PnPDeletedContainer cmdlet returns a list of all deleted Containers in the Recycle Bin. There is no Identity parameter needed. The list includes the ContainerId, ContainerName, DeletedOn, and CreatedDate. Deleted Containers in the Recycle Bin are permanently deleted after 93 days. Use cmdlet Restore-PnPDeletedContainer to restore a deleted container. + +## SYNTAX + +```powershell +Get-PnPDeletedContainer [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Get-PnPDeletedContainer +``` + +Returns a list of the ContainerId, ContainerName, and CreatedDate of all deleted Containers in the Recycle Bin. + +## 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-PnPFileAnalyticsData.md b/documentation/Get-PnPFileAnalyticsData.md new file mode 100644 index 000000000..1daceed43 --- /dev/null +++ b/documentation/Get-PnPFileAnalyticsData.md @@ -0,0 +1,152 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPFileAnalyticsData.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPFileAnalyticsData +--- + +# Get-PnPFileAnalyticsData + +## SYNOPSIS +Retrieves analytics data for a file. + +## SYNTAX + +### Return analytics data +```powershell +Get-PnPFileAnalyticsData -Url [-Connection ] +``` + +## DESCRIPTION +Retrieves file analytics data within a specific date range. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPFileAnalyticsData -Url "/sites/project/Shared Documents/Document.docx" +``` + +Retrieves all available analytics data for the specified file. + +### EXAMPLE 2 +```powershell +Get-PnPFileAnalyticsData -Url "/sites/project/Shared Documents/Document.docx" -LastSevenDays +``` + +Retrieves analytics data for the last seven days of the specified file. + +### EXAMPLE 3 +```powershell +Get-PnPFileAnalyticsData -Url "/sites/project/Shared Documents/Document.docx" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day +``` + +Retrieves analytics data for the last 15 days of the specified file with aggregation interval as days. + +## PARAMETERS + +### -Url +The URL (server or site relative) to the file + +```yaml +Type: String +Parameter Sets: (All) +Aliases: ServerRelativeUrl, SiteRelativeUrl + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -All +When specified, it will retrieve all analytics data. + +```yaml +Type: SwitchParameter +Parameter Sets: All analytics data + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LastSevenDays +When specified, it will retrieve analytics data for the last seven days. + +```yaml +Type: SwitchParameter +Parameter Sets: Analytics by specific intervals + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartDate +When specified, it will retrieve analytics data starting from the specified start date. + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndDate +When specified, it will retrieve analytics data ending with specified end date. Should be used along with StartDate parameter + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AnalyticsAggregationInterval +When specified, it will retrieve analytics data with specified aggregation interval. Default is day. +Allowed values are `Day`,`Week` and `Month`. + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: Day +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 +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Get-PnPFlowRun.md b/documentation/Get-PnPFlowRun.md index 133add792..1a54c17eb 100644 --- a/documentation/Get-PnPFlowRun.md +++ b/documentation/Get-PnPFlowRun.md @@ -43,6 +43,63 @@ Get-PnPFlowRun -Environment $environment -Flow fba63225-baf9-4d76-86a1-1b42c917a ``` This returns a specific flow run + +### Example 3 +```powershell +$environment = Get-PnPPowerPlatformEnvironment +$flowrun = Get-PnPFlowRun -Environment $environment -Flow fba63225-baf9-4d76-86a1-1b42c917a182 -Identity 08585531682024670884771461819CU230 +$flowrun.Properties.trigger +``` +This returns a specific flow run trigger information as below + +### Output +```powershell +Name : Recurrence +StartTime : 2024-02-02 06:00:00 +EndTime : 2024-02-02 06:00:00 +ScheduledTime : 2024-02-02 06:00:00 +OriginHistoryName : 08584947532854535568834568113CU171 +Code : OK +Status : Succeeded +``` + + +### Example 4 +```powershell +$environment = Get-PnPPowerPlatformEnvironment +$flowruns = Get-PnPFlowRun -Environment $environment -Flow fba63225-baf9-4d76-86a1-1b42c917a182 +$flowruns.Properties.trigger +``` +This returns a specific flows trigger information as below + +### Output +```powershell +Name : Recurrence +StartTime : 2024-02-02 06:00:00 +EndTime : 2024-02-02 06:00:00 +ScheduledTime : 2024-02-02 06:00:00 +OriginHistoryName : 08584947532854535568834568113CU171 +Code : OK +Status : Succeeded + +Name : Recurrence +StartTime : 2024-02-01 06:00:00 +EndTime : 2024-02-01 06:00:00 +ScheduledTime : 2024-02-01 06:00:00 +OriginHistoryName : 08584948396849679000001446214CU251 +Code : OK +Status : Succeeded + +Name : Recurrence +StartTime : 2024-01-31 06:00:00 +EndTime : 2024-01-31 06:00:00 +ScheduledTime : 2024-01-31 06:00:00 +OriginHistoryName : 08584949260853628013416159080CU185 +Code : OK +Status : Succeeded +``` + + ## PARAMETERS ### -Environment diff --git a/documentation/Get-PnPFolderItem.md b/documentation/Get-PnPFolderItem.md index 813bc3e7a..18b5947ac 100644 --- a/documentation/Get-PnPFolderItem.md +++ b/documentation/Get-PnPFolderItem.md @@ -28,7 +28,7 @@ Get-PnPFolderItem [-Identity ] [-ItemType ] [-ItemName < This cmdlet allows listing of all the content in a folder. It can be used to list all files and folders in a folder and optionally all its subfolders. -Use [Get-PnPFolderFile](Get-PnPFolderFile.md) to retrieve only files and [Get-PnPFolderFolder](Get-PnPFolderFolder.md) to retrieve only folders allowing additional properties of the returned items to be requested. +Use [Get-PnPFileInFolder](Get-PnPFileInFolder.md) to retrieve only files and [Get-PnPFolderInFolder](Get-PnPFolderInFolder.md) to retrieve only folders allowing additional properties of the returned items to be requested. ## EXAMPLES @@ -184,4 +184,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/Get-PnPPageLikedByInformation.md b/documentation/Get-PnPPageLikedByInformation.md new file mode 100644 index 000000000..01a830ba9 --- /dev/null +++ b/documentation/Get-PnPPageLikedByInformation.md @@ -0,0 +1,100 @@ +--- +Module Name: PnP.PowerShell +title: Get-PnPPageLikedByInformation +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPageLikedByInformation.html +--- + +# Get-PnPPageLikedByInformation + +## SYNOPSIS +Returns liked-by Information of a modern page + +## SYNTAX + +```powershell +Get-PnPPageLikedByInformation -Identity [-Connection ] +``` + +## DESCRIPTION +This command retrieves the LikedBy Information of a modern page. + + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPPageLikedByInformation -Identity "MyPage.aspx" +``` + +Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site + +### EXAMPLE 2 +```powershell +Get-PnPPageLikedByInformation "MyPage" +``` + +Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site + + +### EXAMPLE 3 +```powershell +Get-PnPPageLikedByInformation -Identity "MyPage.aspx" -Web (Get-PnPWeb -Identity "Subsite1") +``` + +Gets the LikedBy Information of page named 'MyPage.aspx' from the subsite named 'Subsite1' + +### Sample Output + +```powershell +Name : User 1 +Mail : +Id : 14 +LoginName : i:0#.f|membership|user1@contoso.onmicrosoft.com +CreationDate : 2024-02-16 14:49:55 + +Name : User 2 +Mail : user2@contoso.onmicrosoft.com +Id : 6 +LoginName : i:0#.f|membership|user2@contoso.onmicrosoft.com +CreationDate : 2024-02-22 19:47:24 +``` + +## 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 +The name of the page + +```yaml +Type: PagePipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + + + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) + diff --git a/documentation/Get-PnPPowerPlatformConnector.md b/documentation/Get-PnPPowerPlatformCustomConnector.md similarity index 83% rename from documentation/Get-PnPPowerPlatformConnector.md rename to documentation/Get-PnPPowerPlatformCustomConnector.md index 34709cb87..07044c54b 100644 --- a/documentation/Get-PnPPowerPlatformConnector.md +++ b/documentation/Get-PnPPowerPlatformCustomConnector.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-PnPPowerPlatformConnector.html +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPowerPlatformCustomConnector.html external help file: PnP.PowerShell.dll-Help.xml -title: Get-PnPPowerPlatformConnector +title: Get-PnPPowerPlatformCustomConnector --- -# Get-PnPPowerPlatformConnector +# Get-PnPPowerPlatformCustomConnector ## SYNOPSIS @@ -15,12 +15,12 @@ title: Get-PnPPowerPlatformConnector * Azure: management.azure.com -Returns the Custom Power Platform Connectors for a given environment +Returns the custom Power Platform Connectors for a given environment ## SYNTAX ```powershell -Get-PnPPowerPlatformConnector [-Environment ] [-Identity ] [-AsAdmin] [-Verbose] +Get-PnPPowerPlatformCustomConnector [-Environment ] [-Identity ] [-AsAdmin] [-Verbose] ``` ## DESCRIPTION @@ -30,7 +30,7 @@ This cmdlet returns the custom connectors on a given enviroment. ### Example 1 ```powershell -Get-PnPPowerPlatformConnector -Environment (Get-PnPPowerPlatformEnvironment) +Get-PnPPowerPlatformCustomConnector -Environment (Get-PnPPowerPlatformEnvironment) ``` This returns all the custom connectors for a given Power Platform environment diff --git a/documentation/Get-PnPPowerPlatformSolution.md b/documentation/Get-PnPPowerPlatformSolution.md new file mode 100644 index 000000000..5a8c3c729 --- /dev/null +++ b/documentation/Get-PnPPowerPlatformSolution.md @@ -0,0 +1,90 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPPowerPlatformSolution.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPPowerPlatformSolution +--- + +# Get-PnPPowerPlatformSolution + +## SYNOPSIS + +**Required Permissions** + +* Azure: management.azure.com + +Returns the Power Platform Solution/s for a given environment + +## SYNTAX + +```powershell +Get-PnPPowerPlatformSolution [-Environment ] [-Name ] [-Verbose] +``` + +## DESCRIPTION +This cmdlet returns the PowerPlatform solution on a given enviroment. + +## EXAMPLES + +### Example 1 +```powershell +Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment) +``` +This returns all the solutions for a given Power Platform environment + +### Example 2 +```powershell +Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Name 'My Solution Name' +``` +This returns a specific solution on the default Power Platform environment + +## PARAMETERS + +### -Environment +The name of the Power Platform environment or an Environment instance to retrieve the available solutions for. If omitted, the default environment will be used. + +```yaml +Type: PowerPlatformEnvironmentPipeBind +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: The default environment +Accept pipeline input: True +Accept wildcard characters: False +``` + +### -Name +The Name of the solution to retrieve. If not provided, all the solutions will be returned. + +```yaml +Type: PowerPlatformSolutionPipeBind +Parameter Sets: (All) +Aliases: + +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) + +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-PnPSiteAnalyticsData.md b/documentation/Get-PnPSiteAnalyticsData.md new file mode 100644 index 000000000..3011bc78f --- /dev/null +++ b/documentation/Get-PnPSiteAnalyticsData.md @@ -0,0 +1,159 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteAnalyticsData.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPSiteAnalyticsData +--- + +# Get-PnPSiteAnalyticsData + +## SYNOPSIS +Retrieves analytics data for a site. + +## SYNTAX + +### Return analytics data +```powershell +Get-PnPSiteAnalyticsData -Url [-Connection ] +``` + +## DESCRIPTION +Retrieves site analytics data within a specific date range. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPSiteAnalyticsData -All +``` + +Retrieves all available analytics data for the specified site. + +### EXAMPLE 2 +```powershell +Get-PnPSiteAnalyticsData -LastSevenDays +``` + +Retrieves analytics data for the last seven days of the site. + +### EXAMPLE 3 +```powershell +Get-PnPSiteAnalyticsData -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day +``` + +Retrieves analytics data for the last 15 days of the specified site with aggregation interval as days. + +### EXAMPLE 4 +```powershell +Get-PnPSiteAnalyticsData -Identity "https://tenant.sharepoint.com/sites/mysite" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day +``` + +Retrieves analytics data, for the specified site, for the last 15 days of the specified site with aggregation interval as days. + +## PARAMETERS + +### -Identity +The URL (server or site relative) of the site + +```yaml +Type: String +Parameter Sets: (All) +Aliases: ServerRelativeUrl, SiteRelativeUrl + +Required: False +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -All +When specified, it will retrieve all analytics data. + +```yaml +Type: SwitchParameter +Parameter Sets: All analytics data + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LastSevenDays +When specified, it will retrieve analytics data for the last seven days. + +```yaml +Type: SwitchParameter +Parameter Sets: Analytics by specific intervals + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartDate +When specified, it will retrieve analytics data starting from the specified start date. + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndDate +When specified, it will retrieve analytics data ending with specified end date. Should be used along with StartDate parameter + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AnalyticsAggregationInterval +When specified, it will retrieve analytics data with specified aggregation interval. Default is day. +Allowed values are `Day`,`Week` and `Month`. + +```yaml +Type: DateTime +Parameter Sets: Analytics by date range + +Required: False +Position: Named +Default value: Day +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 +``` + +## RELATED LINKS + +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Get-PnPSiteSetVersionPolicyProgress.md b/documentation/Get-PnPSiteVersionPolicyProgress.md similarity index 85% rename from documentation/Get-PnPSiteSetVersionPolicyProgress.md rename to documentation/Get-PnPSiteVersionPolicyProgress.md index ae8903a0f..2fc54d287 100644 --- a/documentation/Get-PnPSiteSetVersionPolicyProgress.md +++ b/documentation/Get-PnPSiteVersionPolicyProgress.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-PnPSiteSetVersionPolicyProgress.html +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPSiteVersionPolicyProgress.html external help file: PnP.PowerShell.dll-Help.xml -title: Get-PnPSiteSetVersionPolicyProgress +title: Get-PnPSiteVersionPolicyProgress --- -# Get-PnPSiteSetVersionPolicyProgress +# Get-PnPSiteVersionPolicyProgress ## 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-PnPSiteSetVersionPolicyProgress [-Connection ] +Get-PnPSiteVersionPolicyProgress [-Connection ] ``` ## DESCRIPTION @@ -25,7 +25,7 @@ This cmdlet allows retrieval of the progress of setting version policy for exist ### EXAMPLE 1 ```powershell -Get-PnPSiteSetVersionPolicyProgress +Get-PnPSiteVersionPolicyProgress ``` Returns the progress of setting version policy for existing document libraries on the site. diff --git a/documentation/Get-PnPTeamsChannel.md b/documentation/Get-PnPTeamsChannel.md index 43959d693..dbba88d20 100644 --- a/documentation/Get-PnPTeamsChannel.md +++ b/documentation/Get-PnPTeamsChannel.md @@ -20,7 +20,7 @@ Gets the channels for a specified Team. ## SYNTAX ```powershell -Get-PnPTeamsChannel -Team [-Identity ] +Get-PnPTeamsChannel -Team [-Identity ] [-IncludeModerationSettings ] ``` @@ -28,6 +28,8 @@ Get-PnPTeamsChannel -Team [-Identity ] Allows to retrieve list of channels for a specified team. +Note that the ModerationSettings are only being returned when providing the channel Id of a specific channel through -Identity and by providing -IncludeModerationSettings (Example 4). They will not be returned when retrieving all channels for a team or when omitting -IncludeModerationSettings. This is because of a design choice in Microsoft Graph and the moderationsettings currently only being available through its beta endpoint, which will be used when -IncludeModerationSettings is provided. + ## EXAMPLES ### EXAMPLE 1 @@ -51,6 +53,13 @@ Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity "19:796 Retrieves the channel specified by its channel id +### EXAMPLE 4 +```powershell +Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity "19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" -IncludeModerationSettings +``` + +Retrieves the channel specified by its channel id which will include the ModerationSettings + ## PARAMETERS ### -Identity @@ -81,7 +90,20 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -## RELATED LINKS +### -IncludeModerationSettings +When provided, it will use the beta endpoint of Microsoft Graph to retrieve the information. This will include the ModerationSettings if used in combination with -Identity . + +```yaml +Type: SwitchParameter +Parameter Sets: (All) -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) +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-PnPRetentionLabel.md b/documentation/Get-PnPTenantRetentionLabel.md similarity index 95% rename from documentation/Get-PnPRetentionLabel.md rename to documentation/Get-PnPTenantRetentionLabel.md index eaff541bc..af97c9ac8 100644 --- a/documentation/Get-PnPRetentionLabel.md +++ b/documentation/Get-PnPTenantRetentionLabel.md @@ -10,7 +10,7 @@ title: Get-PnPRetentionLabel # Get-PnPRetentionLabel ## SYNOPSIS -Gets the Microsoft Purview retention labels that are within the tenant +Gets the Microsoft Purview retention labels that are available within the tenant ## SYNTAX diff --git a/documentation/Get-PnPUnifiedAuditLog.md b/documentation/Get-PnPUnifiedAuditLog.md index a2edb5552..b62d23611 100644 --- a/documentation/Get-PnPUnifiedAuditLog.md +++ b/documentation/Get-PnPUnifiedAuditLog.md @@ -13,9 +13,15 @@ online version: https://pnp.github.io/powershell/cmdlets/Get-PnPUnifiedAuditLog. **Required Permissions** - * Microsoft Office 365 Management API: ActivityFeed.Read + * Microsoft Office 365 Management API: ActivityFeed.Read, Microsoft Office 365 Management API: ActivityFeed.ReadDlp, Microsoft Office 365 Management API: ActivityReports.Read, Microsoft Office 365 Management API: ServiceHealth.Read and Microsoft Office 365 Management API:ThreatIntelligence.Read -Gets unified audit logs from the Office 365 Management API. Requires the Azure Active Directory application permission 'ActivityFeed.Read'. +Gets unified audit logs from the Office 365 Management API. Requires the Azure Entra application permission 'ActivityFeed.Read', 'ActivityFeed.ReadDlp', 'ActivityReports.Read', 'ServiceHealth.Read' and 'ThreatIntelligence.Read'. + +Before you can access audit log data, you must enable unified audit logging for your Microsoft 365 tenant. For instructions, check out the page [Turn auditing on or off](https://learn.microsoft.com/microsoft-365/compliance/audit-log-enable-disable). + +When running this command for the first time for a certain content type, a subscription for this content type is created. It can take up to 12 hours for the first content blobs to become available for that subscription. + +Retrieving audit logs is an intensive process, especially for large or active tenants. In this case it may take some time to retrieve all audit logs. ## SYNTAX @@ -32,7 +38,7 @@ Allows to retrieve unified audit logs from the Office 365 Management API. ### EXAMPLE 1 ```powershell -Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1) +Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date -asUtc).AddDays(-2) -EndTime (Get-Date -asUtc).AddDays(-1) ``` Retrieves the audit logs of SharePoint happening between the current time yesterday and the current time the day before yesterday @@ -40,6 +46,7 @@ Retrieves the audit logs of SharePoint happening between the current time yester ## PARAMETERS ### -ContentType + Content type of logs to be retrieved, should be one of the following: AzureActiveDirectory, Exchange, SharePoint, General, DLP. ```yaml @@ -55,7 +62,7 @@ Accept wildcard characters: False ``` ### -EndTime -End time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart. +UTC end time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart. If passed as a string this should be defined as a valid ISO 8601 string (2024-01-16T18:28:48.6964197Z). If you don't include a timestamp in the value, the default timestamp is 12:00 AM (midnight) on the specified date. ```yaml Type: DateTime @@ -69,7 +76,7 @@ Accept wildcard characters: False ``` ### -StartTime -Start time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart, with the start time prior to end time and start time no more than 7 days in the past. +UTC start time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart, with the start time prior to end time and start time no more than 7 days in the past. If passed as a string this should be defined as a valid ISO 8601 string (2024-01-16T18:28:48.6964197Z). If you don't include a timestamp in the value, the default timestamp is 12:00 AM (midnight) on the specified date. ```yaml Type: DateTime diff --git a/documentation/Get-PnPWebPermission.md b/documentation/Get-PnPWebPermission.md new file mode 100644 index 000000000..380f219f5 --- /dev/null +++ b/documentation/Get-PnPWebPermission.md @@ -0,0 +1,76 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebPermission.html +external help file: PnP.PowerShell.dll-Help.xml +title: Get-PnPWebPermission +--- + +# Get-PnPWebPermission + +## SYNOPSIS +Returns the explicit permissions for a specific SharePoint Web given a user or group by id. + +## SYNTAX + +```powershell +Get-PnPWebPermission [-Identity] -PrincipalId +``` + +## DESCRIPTION + +This cmdlet retrieves the web permissions (role definitions) for a specific user or group in a provided web. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-PnPWebPermission -Identity (Get-PnPWeb) -PrincipalId 60 +``` + +Returns the permissions for the SharePoint group with id for the current Web. + +### EXAMPLE 2 +```powershell +Get-PnPWebPermission -Identity "subsite" -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id +``` + +Returns the permissions for the SharePoint group called DemoGroup for a given subsite path. + +## PARAMETERS + + +### -Identity +The id, name or server relative url of the Web to retrieve the permissions for. + +```yaml +Type: WebPipeBand +Parameter Sets: (All) +Aliases: Name + +Required: False +Position: 0 +Default value: (CurrentWeb) +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PrincipalId +The id of a user or a SharePoint group. See Get-PnPUser and Get-PnPGroup. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: Name + +Required: True +Position: 0 +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/Merge-PnPTerm.md b/documentation/Merge-PnPTerm.md new file mode 100644 index 000000000..cf62aae82 --- /dev/null +++ b/documentation/Merge-PnPTerm.md @@ -0,0 +1,81 @@ +--- +Module Name: PnP.PowerShell +title: Merge-PnPTerm +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Merge-PnPTerm.html +--- + +# Merge-PnPTerm + +## SYNOPSIS + +Merges a taxonomy term into another term. + +## SYNTAX + +### Merge term set into term by Term Ids + +``` +Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b +``` + +## DESCRIPTION + +This cmdlet merges a taxonomy term into another term. + + +## EXAMPLES + +### Example 1 +```powershell +Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b +``` + +## PARAMETERS + +### -Identity +The identifier of the term that will be merged away, in the form of its GUID + +```yaml +Type: TaxonomyTermPipeBind +Parameter Sets: (All) +Aliases: Term + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -TargetTerm +The identifier of the term where the term will be merged into, in the form of its GUID + +```yaml +Type: TaxonomyTermPipeBind +Parameter Sets: Move To Term +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -TermStore +Term store to use; if not specified the default term store is used. + +```yaml +Type: TaxonomyTermStorePipeBind +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` diff --git a/documentation/New-PnPContainerType.md b/documentation/New-PnPContainerType.md new file mode 100644 index 000000000..1a82673b0 --- /dev/null +++ b/documentation/New-PnPContainerType.md @@ -0,0 +1,152 @@ +--- +Module Name: PnP.PowerShell +title: New-PnPContainerType +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/New-PnPContainerType.html +--- + +# New-PnPContainerType + +## SYNOPSIS + +**Required Permissions** + + * Microsoft 365 SharePoint 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. + +## SYNTAX + +### Trial + +```powershell +New-PnPContainerType -ContainerTypeName -OwningApplicationId -TrialContainerType [-Region ] [-AzureSubscriptionId ] [-ResourceGroup ] +``` + +### Standard + +```powershell +New-PnPContainerType -ContainerTypeName -OwningApplicationId -Region -AzureSubscriptionId -ResourceGroup +``` + +## DESCRIPTION + +Enables the creation of either a trial or standard SharePoint Container Type. Use the `TrialContainerType` switch parameter to designate the container type as a trial. + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +New-PnPContainerType -ContainerTypeName "test1" -OwningApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscription c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPEmbed" -Region "Uk-South" +``` + +Creates a standard SharePoint Container Type. + +### EXAMPLE 2 + +```powershell +New-SPOContainerType -TrialContainerType -ContainerTypeName "test1" -OwningApplicationId df4085cc-9a38-4255-badc-5c5225610475 +``` + +Creates a trial SharePoint Container Type. + + +## PARAMETERS + +### ContainerTypeName + +The name of the Container Type. + +```yaml +Type: String +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### OwningApplicationId + +The unique identifier of the owning application which is the value of the Microsoft Entra ID app ID set up as part of configuring SharePoint Embed. + +```yaml +Type: Guid +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrialContainerType + +The billing classification of the Container Type. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AzureSubscriptionId + +The unique identifier of the Azure Active Directory profile (Microsoft Entra ID) for billing purposes. + +```yaml +Type: Guid +Parameter Sets: Standard + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Region + +The region of the Container Type. + +```yaml +Type: String +Parameter Sets: Standard + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroup + +The resource group of the Container Type. + +```yaml +Type: String +Parameter Sets: Standard + +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) +[https://pnp.github.io/pnpframework/api/PnP.Framework.Enums.TimeZone.html](https://pnp.github.io/pnpframework/api/PnP.Framework.Enums.TimeZone.html) diff --git a/documentation/Remove-PnPContainer.md b/documentation/Remove-PnPContainer.md new file mode 100644 index 000000000..c85df9e37 --- /dev/null +++ b/documentation/Remove-PnPContainer.md @@ -0,0 +1,82 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPContainer.html +external help file: PnP.PowerShell.dll-Help.xml +title: Remove-PnPContainer +--- + +# Remove-PnPContainer + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +The Remove-PnPContainer cmdlet removes a container from the SharePoint tenant. The container to remove is specified by the Identity parameter, which accepts a ContainerPipeBind object. + +When admins delete a Container, it is moved into the Recycle Bin. A deleted Container can be restored from the Recycle Bin within 93 days. If a Container is deleted from the Recycle Bin, or it exceeds the 93-day retention period, it is permanently deleted. Deleting a Container deletes everything within it, including all documents and files. You can view all deleted Containers in the Recycle Bin with the Get-PnPDeletedContainer cmdlet. + +## SYNTAX + +```powershell +Remove-PnPContainer [-Identity] [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Remove-PnPContainer -Identity "b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1" +``` + +Removes the specified container by using the container id. + +### EXAMPLE 2 + +```powershell +Remove-PnPContainer -Identity "https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8" +``` + +Removes the the specified container by using the container 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 +``` + +### -Identity + +Specify container site url or container id. + +```yaml +Type: ContainerPipeBind +Parameter Sets: (All) + +Required: true +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +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/Remove-PnPContainerType.md b/documentation/Remove-PnPContainerType.md new file mode 100644 index 000000000..f173357dc --- /dev/null +++ b/documentation/Remove-PnPContainerType.md @@ -0,0 +1,73 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPContainerType.html +external help file: PnP.PowerShell.dll-Help.xml +title: Remove-PnPContainerType +--- + +# Remove-PnPContainerType + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +The Remove-PnPContainerType cmdlet removes a trial container from the SharePoint tenant. The container to remove is specified by the Identity parameter. + + +## SYNTAX + +```powershell +Remove-PnPContainerType [-Identity] [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Remove-PnPContainerType -Identity 00be1092-0c75-028a-18db-89e57908e7d6 +``` + +Removes the specified trial container by using the container id. + +## 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 + +Specify the container id. + +```yaml +Type: Guid +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +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/Remove-PnPField.md b/documentation/Remove-PnPField.md index 83ac59231..8edfbaae0 100644 --- a/documentation/Remove-PnPField.md +++ b/documentation/Remove-PnPField.md @@ -38,6 +38,18 @@ Remove-PnPField -List "Demo list" -Identity "Speakers" Removes the speakers field from the list "Demo list". +### EXAMPLE 3 +```powershell +$batch = New-PnPBatch +Remove-PnPField -List "Demo list" -Identity "Speakers" -Batch $batch +Remove-PnPField -List "Demo list" -Identity "Sponsors" -Batch $batch +Remove-PnPField -List "Demo list" -Identity "Organizers" -Batch $batch +Remove-PnPField -Identity "Test" -Batch $batch +Invoke-PnPBatch $batch +``` + +Removes the speakers, sponsors and organizers fields from the list "Demo list" as well as Test field from the web in a batch. + ## PARAMETERS ### -Connection @@ -96,6 +108,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -Batch + +Batch object used to remove fields in a batched manner. See above example on how to use this. + +```yaml +Type: PnPBatch +Parameter Sets: (All) + +Required: False +Position: named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Remove-PnPFileVersion.md b/documentation/Remove-PnPFileVersion.md index 2ec58e1bf..766e2b3a8 100644 --- a/documentation/Remove-PnPFileVersion.md +++ b/documentation/Remove-PnPFileVersion.md @@ -121,7 +121,7 @@ Specifies whether the version(s) should go to the recycle bin. ```yaml Type: SwitchParameter -Parameter Sets: (All) +Parameter Sets: By Id Required: False Position: Named diff --git a/documentation/Rename-PnPTenantSite.md b/documentation/Rename-PnPTenantSite.md index 625fdf294..5de40968c 100644 --- a/documentation/Rename-PnPTenantSite.md +++ b/documentation/Rename-PnPTenantSite.md @@ -72,7 +72,7 @@ Specifies the full URL of the SharePoint Online site collection to which it need Type: String Parameter Sets: (All) -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/documentation/Reset-PnPLabel.md b/documentation/Reset-PnPLabel.md deleted file mode 100644 index 93c0c86f3..000000000 --- a/documentation/Reset-PnPLabel.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -Module Name: PnP.PowerShell -title: Reset-PnPLabel -schema: 2.0.0 -applicable: SharePoint Online -external help file: PnP.PowerShell.dll-Help.xml -online version: https://pnp.github.io/powershell/cmdlets/Reset-PnPLabel.html ---- - -# Reset-PnPLabel - -## SYNOPSIS -Resets a retention label on the specified list or library to None - -## SYNTAX - -```powershell -Reset-PnPLabel [-List] [-SyncToItems ] - [-Connection ] -``` - -## DESCRIPTION -Removes the retention label on a list or library and its items. Does not work for sensitivity labels. - -## EXAMPLES - -### EXAMPLE 1 -```powershell -Reset-PnPLabel -List "Demo List" -``` - -This resets an O365 label on the specified list or library to None - -### EXAMPLE 2 -```powershell -Reset-PnPLabel -List "Demo List" -SyncToItems $true -``` - -This resets an O365 label on the specified list or library to None and resets the label on all the items in the list and library except Folders and where the label has been manually or previously automatically assigned - -## 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 -``` - -### -List -The ID or Url of the list - -```yaml -Type: ListPipeBind -Parameter Sets: (All) - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SyncToItems -Reset label on existing items in the library - -```yaml -Type: Boolean -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/Reset-PnPRetentionLabel.md b/documentation/Reset-PnPRetentionLabel.md new file mode 100644 index 000000000..4cb98491a --- /dev/null +++ b/documentation/Reset-PnPRetentionLabel.md @@ -0,0 +1,147 @@ +--- +Module Name: PnP.PowerShell +title: Reset-PnPRetentionLabel +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Reset-PnPRetentionLabel.html +--- + +# Reset-PnPRetentionLabel + +## SYNOPSIS +Resets a retention label on the specified list or library to None, or resets a retention label on specified list items in a list or a library + +## SYNTAX + +### Reset on a list +```powershell +Reset-PnPRetentionLabel [-List] [-SyncToItems ] + [-Connection ] +``` + +### Reset on items in bulk +```powershell +Reset-PnPRetentionLabel [-List] -ItemIds > [-BatchSize ] + [-Connection ] [-Verbose] +``` + +## DESCRIPTION +Removes the retention label on a list or library and its items, or removes the retention label from specified items in a list or a library. Does not work for sensitivity labels. +When resetting retention label on specified items, cmdlet allows passing of unlimited number of items - items will be split and processed in batches (CSOM method SetComplianceTagOnBulkItems has a hard count limit on number of processed items in one go). If needed, batch size may be adjusted with BatchSize parameter. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Reset-PnPRetentionLabel -List "Demo List" +``` + +This resets an O365 label on the specified list or library to None + +### EXAMPLE 2 +```powershell +Reset-PnPRetentionLabel -List "Demo List" -SyncToItems $true +``` + +This resets an O365 label on the specified list or library to None and resets the label on all the items in the list and library except Folders and where the label has been manually or previously automatically assigned + +### EXAMPLE 3 +```powershell +Set-PnPRetentionLabel -List "Demo List" -ItemIds @(1,2,3) +``` + +This clears a retention label from items with ids 1, 2 and 3 on a list "Demo List" + +## PARAMETERS + +### -BatchSize +Optional batch size when resetting a label on specified items. + +```yaml +Type: Int32 +Parameter Sets: (BulkItems) + +Required: True +Position: Named +Default value: 25 +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 +``` + +### -ItemIds +List of iist item IDs to reset label. + +```yaml +Type: List +Parameter Sets: (BulkItems) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -List +The ID or Url of the list + +```yaml +Type: ListPipeBind +Parameter Sets: (All) + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SyncToItems +Reset label on existing items in the library + +```yaml +Type: Boolean +Parameter Sets: (List) + +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) + +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 Learn article on applying retention labels](https://learn.microsoft.com/en-us/sharepoint/dev/apis/csom-methods-for-applying-retention-labels) + + diff --git a/documentation/Restore-PnPDeletedContainer.md b/documentation/Restore-PnPDeletedContainer.md new file mode 100644 index 000000000..0d59a1e53 --- /dev/null +++ b/documentation/Restore-PnPDeletedContainer.md @@ -0,0 +1,72 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Restore-PnPDeletedContainer.html +external help file: PnP.PowerShell.dll-Help.xml +title: Restore-PnPDeletedContainer +--- + +# Restore-PnPDeletedContainer + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +The Restore-PnPDeletedContainer recovers a deleted Container from the Recycle Bin. + +## SYNTAX + +```powershell +Restore-PnPDeletedContainer -Identity [-Connection ] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 + +```powershell +Restore-PnPDeletedContainer -Identity "b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1" +``` + +Restores the Container with ContainerId "b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1" from the Recycle Bin. + +## PARAMETERS + +### -Identity + +The ContainerId of the deleted container to be restored. + +```yaml +Type: String +Parameter Sets: (All) + +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 Restore-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-PnPAzureADAppSitePermission.md b/documentation/Set-PnPAzureADAppSitePermission.md index 6370b54c8..ecffa36b0 100644 --- a/documentation/Set-PnPAzureADAppSitePermission.md +++ b/documentation/Set-PnPAzureADAppSitePermission.md @@ -25,7 +25,7 @@ Set-PnPAzureADAppSitePermission -PermissionId -Permissions -Label [-SyncToItems ] [-BlockDeletion ] +Set-PnPRetentionLabel [-List] -Label [-SyncToItems ] [-BlockDeletion ] [-BlockEdit ] [-Connection ] ``` +### Set on items in bulk +```powershell +Set-PnPRetentionLabel [-List] -Label -ItemIds > [-BatchSize ] + [-Connection ] [-Verbose] +``` + ## DESCRIPTION -Allows setting a retention label on a list or library and its items. Does not work for sensitivity labels. +Allows setting a retention label on a list or library and its items, or sets the retention label for specified items in a list or a library. Does not work for sensitivity labels. +When setting retention label to specified items, cmdlet allows passing of unlimited number of items - items will be split and processed in batches (CSOM method SetComplianceTagOnBulkItems has a hard count limit on number of processed items in one go). If needed, batch size may be adjusted with BatchSize parameter. ## EXAMPLES ### EXAMPLE 1 ```powershell -Set-PnPLabel -List "Demo List" -Label "Project Documentation" +Set-PnPRetentionLabel -List "Demo List" -Label "Project Documentation" ``` This sets an O365 label on the specified list or library. ### EXAMPLE 2 ```powershell -Set-PnPLabel -List "Demo List" -Label "Project Documentation" -SyncToItems $true +Set-PnPRetentionLabel -List "Demo List" -Label "Project Documentation" -SyncToItems $true ``` This sets an O365 label on the specified list or library and sets the label to all the items in the list and library as well. +### EXAMPLE 3 +```powershell +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" + ## PARAMETERS +### -BatchSize +Optional batch size when setting a label on specified items. + +```yaml +Type: Int32 +Parameter Sets: (BulkItems) + +Required: True +Position: Named +Default value: 25 +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -BlockDeletion Block deletion of items in the library. This parameter has been deprecated because overriding Purview retention label settings has been deprecated in SharePoint Online. This parameter will be removed in the next major release. ```yaml Type: Boolean -Parameter Sets: (All) +Parameter Sets: (List) Required: False Position: Named @@ -59,7 +88,7 @@ Block editing of items in the library. This parameter has been deprecated becaus ```yaml Type: Boolean -Parameter Sets: (All) +Parameter Sets: (List) Required: False Position: Named @@ -81,6 +110,19 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -ItemIds +List of iist item IDs to set label. + +```yaml +Type: List +Parameter Sets: (BulkItems) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` ### -Label The name of the retention label @@ -115,7 +157,7 @@ Apply label to existing items in the library ```yaml Type: Boolean -Parameter Sets: (All) +Parameter Sets: (List) Required: False Position: Named @@ -124,9 +166,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 Learn article on applying retention labels](https://learn.microsoft.com/en-us/sharepoint/dev/apis/csom-methods-for-applying-retention-labels) diff --git a/documentation/Set-PnPSite.md b/documentation/Set-PnPSite.md index f646f79fe..6ac4b9a3d 100644 --- a/documentation/Set-PnPSite.md +++ b/documentation/Set-PnPSite.md @@ -47,14 +47,6 @@ Set-PnPSite [-Identity ] [-BlockDownloadPolicy ] [-ExcludeBlockDownloadPolicySiteOwners ] [-ExcludedBlockDownloadGroupIds ] [-ListsShowHeaderAndNavigation ] - [-EnableAutoExpirationVersionTrim ] - [-ExpireVersionsAfterDays ] - [-MajorVersions ] - [-MinorVersions ] - [-InheritTenantVPForNewDocLibs] - [-ApplyForNewLibs] - [-ApplyForExistingLibs] - [-CancelVPForExistingLibs] [-Connection ] ``` @@ -111,83 +103,6 @@ Set-PnPSite -NoScriptSite $false Allows custom script on a specific site. See [Allow or prevent custom script](https://learn.microsoft.com/sharepoint/allow-or-prevent-custom-script) for more information. -### EXAMPLE 7 -```powershell -Set-PnPSite -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. - -### EXAMPLE 8 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 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. - -### EXAMPLE 9 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MinorVersions 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 10 -```powershell -Set-PnPSite -InheritTenantVPForNewDocLibs -``` - -Clear the file version setting on a site. The new document libraries will use the tenant level setting. - -### EXAMPLE 11 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForNewLibs -``` - -Set AutoExpiration file version trim mode for a site. The new document libraries will use this version setting. - -### EXAMPLE 12 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyForNewLibs -``` - -Set ExpireAfter file version trim mode for a site. The new document libraries will use this version setting. - -### EXAMPLE 13 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyForNewLibs -``` - -Set NoExpiration file version trim mode for a site. The new document libraries will use this version setting. - -### EXAMPLE 14 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForExistingLibs -``` - -Create a request to set the file version trim mode as AutoExpiration for existing document libraries that enabled versioning. - -### EXAMPLE 15 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyForExistingLibs -``` - -Create a request to set the file version trim mode as ExpireAfter for existing document libraries that enabled versioning. - -### EXAMPLE 16 -```powershell -Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyForExistingLibs -``` - -Create a request to set the file version trim mode as NoExpiration for existing document libraries that enabled versioning. - -### EXAMPLE 17 -```powershell -Set-PnPSite -CancelVPForExistingLibs -``` - -Cancel the existing request which sets the file version trim mode for existing document libraries on a site. - ## PARAMETERS ### -AllowSelfServiceUpgrade @@ -698,124 +613,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EnableAutoExpirationVersionTrim -Enable or disable 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 MinorVersions 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: Boolean -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExpireVersionsAfterDays -Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. - -```yaml -Type: UInt32 -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MajorVersions -Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. - -```yaml -Type: UInt32 -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MinorVersions -Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. - -```yaml -Type: UInt32 -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InheritTenantVPForNewDocLibs -Clear the file version setting on a site. The new document libraries will use the tenant level setting. - -```yaml -Type: SwitchParameter -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ApplyForNewLibs -Set site version policy for new document libraries. Work with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MinorVersions. - -```yaml -Type: SwitchParameter -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ApplyForExistingLibs -Create a request to set the file version trim mode for existing document libraries that enabled versioning. Work with parameters EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions and MinorVersions. - -```yaml -Type: SwitchParameter -Parameter Sets: Set Properties - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CancelVPForExistingLibs -Cancel the existing request which sets the file version trim mode for existing document libraries on a site. - -```yaml -Type: SwitchParameter -Parameter Sets: Set Properties - -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-PnPSiteArchiveState.md b/documentation/Set-PnPSiteArchiveState.md new file mode 100644 index 000000000..63a41b847 --- /dev/null +++ b/documentation/Set-PnPSiteArchiveState.md @@ -0,0 +1,110 @@ +--- +Module Name: PnP.PowerShell +schema: 2.0.0 +applicable: SharePoint Online +online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteArchiveState.html +external help file: PnP.PowerShell.dll-Help.xml +title: Set-PnPSiteArchiveState +--- + +# Set-PnPSiteArchiveState + +## SYNOPSIS + +**Required Permissions** + +* SharePoint: Access to the SharePoint Tenant Administration site + +Sets the archived state of the site. Can be used to archive and reactivate sites. + +## SYNTAX + +```powershell +Set-PnPSiteArchiveState -Identity -ArchiveState [-NoWait] [-Force] +``` + +## DESCRIPTION + +Use this cmdlet to change the archive status of the site. You must be a SharePoint Online administrator or Global administrator and be a site collection administrator to run the cmdlet. +Microsoft 365 Archive needs to be enabled for the organization to be able to use this feature. + +## EXAMPLES + +### Example 1 + +```powershell +Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Archived +``` + +This example marks the site as Archived. For seven days after the operation, the site will remain in a "RecentlyArchived" state, where any reactivations will be free and instantaneous. If a site is reactivated after seven days, any reactivations will be charged and will take time. + +### Example 2 + +```powershell +Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Active +``` + +This example triggers the reactivation of a site. If the site is reactivated from the "RecentlyArchived" state, it will become available instantaneously. If the site is reactivated from the "FullyArchived" state, it may take time for it to be reactivated. + +## PARAMETERS + +### -Identity +Specifies the full URL of the SharePoint Online site collection that needs to be renamed. + +```yaml +Type: SPOSitePipeBind +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: True +Accept wildcard characters: False +``` + +### -ArchiveState + +Sets the archived state of the site. Valid values are Archived, Active. + +```yaml +Type: SPOArchiveState +Parameter Sets: (All) + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +If specified the task will return immediately after creating the archive state site job. + +```yaml +Type: SwitchParameter +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 asked for changing the archive state. + +```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/Set-PnPSiteVersionPolicy.md b/documentation/Set-PnPSiteVersionPolicy.md new file mode 100644 index 000000000..d98c3b44a --- /dev/null +++ b/documentation/Set-PnPSiteVersionPolicy.md @@ -0,0 +1,232 @@ +--- +Module Name: PnP.PowerShell +title: Set-PnPSiteVersionPolicy +schema: 2.0.0 +applicable: SharePoint Online +external help file: PnP.PowerShell.dll-Help.xml +online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteVersionPolicy.html +--- + +# Set-PnPSiteVersionPolicy + +## SYNOPSIS +Set file version policy related properties on the site. + +## SYNTAX + +```powershell +Set-PnPSiteVersionPolicy + [-EnableAutoExpirationVersionTrim ] + [-ExpireVersionsAfterDays ] + [-MajorVersions ] + [-MajorWithMinorVersions ] + [-InheritFromTenant] + [-ApplyToNewDocumentLibraries] + [-ApplyToExistingDocumentLibraries] + [-CancelForExistingDocumentLibraries] + [-Connection ] +``` + +## EXAMPLES + +### EXAMPLE 1 +```powershell +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. + +### 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. + +### 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 4 +```powershell +Set-PnPSiteVersionPolicy -InheritFromTenant +``` + +Clear 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. + +### 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. + +### 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 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 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. + +### 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 11 +```powershell +Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries +``` + +Cancel 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. + +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: Boolean +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpireVersionsAfterDays +Expire the version after the days. Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. + +```yaml +Type: UInt32 +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MajorVersions +Maximum major versions to keep. Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim. + +```yaml +Type: UInt32 +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +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. + +```yaml +Type: UInt32 +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +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. + +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +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. + +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +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. + +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties + +Required: False +Position: Named +Default value: None +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. + +```yaml +Type: SwitchParameter +Parameter Sets: Set Properties + +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-PnPTeamsChannel.md b/documentation/Set-PnPTeamsChannel.md index 9783075e9..5a704ba74 100644 --- a/documentation/Set-PnPTeamsChannel.md +++ b/documentation/Set-PnPTeamsChannel.md @@ -20,7 +20,7 @@ Updates an existing Teams Channel ## SYNTAX ```powershell -Set-PnPTeamsChannel -Team -Identity [-DisplayName ] [-Description ] [-IsFavoriteByDefault ] +Set-PnPTeamsChannel -Team -Identity [-DisplayName ] [-Description ] [-IsFavoriteByDefault ] [-AllowNewMessageFromBots ] [-AllowNewMessageFromConnectors ] [-ReplyRestriction ] [-UserNewMessageRestriction ] ``` @@ -46,6 +46,62 @@ 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 + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllowNewMessageFromConnectors +Allows configuring if connectors are allowed to post messages in the channel + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +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 +``` + +### -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 +``` + ### -Description Changes the description of the specified channel. @@ -118,5 +174,4 @@ Accept wildcard characters: False ## RELATED LINKS -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/documentation/Set-PnPTenant.md b/documentation/Set-PnPTenant.md index a544bd6ae..3e4c3ca1b 100644 --- a/documentation/Set-PnPTenant.md +++ b/documentation/Set-PnPTenant.md @@ -136,6 +136,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames [-MassDeleteNotificationDisabled ] [-BusinessConnectivityServiceDisabled ] [-EnableSensitivityLabelForPDF ] + [-IsDataAccessInCardDesignerEnabled ] [-Force] [-Connection ] ``` @@ -672,6 +673,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -IsDataAccessInCardDesignerEnabled +Allows turning on support for data access in the Viva Connections Adaptive Card Designer. + +```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. @@ -2316,6 +2331,45 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AppBypassInformationBarriers +Enables of disables applications running in app-only mode to access IB sites. + +For more information about information barriers, see [Use information barriers with SharePoint](https://learn.microsoft.com/en-us/purview/information-barriers-sharepoint) for your SharePoint Online environment. + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultOneDriveInformationBarrierMode +The DefaultOneDriveInformationBarrierMode sets the information barrier mode for all OneDrive sites. + +The valid values are: + +- Open +- Explicit +- Implicit +- OwnerModerated +- Mixed +For more information about information barriers, see [Use information barriers with SharePoint](https://learn.microsoft.com/en-us/purview/information-barriers-sharepoint) for your SharePoint Online environment. + +```yaml +Type: InformationBarriersMode +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-PnPWeb.md b/documentation/Set-PnPWeb.md index 0237eb75b..dbf6341ec 100644 --- a/documentation/Set-PnPWeb.md +++ b/documentation/Set-PnPWeb.md @@ -18,7 +18,7 @@ Sets properties on a web Set-PnPWeb [-SiteLogoUrl ] [-AlternateCssUrl ] [-Title ] [-Description ] [-MasterUrl ] [-CustomMasterUrl ] [-QuickLaunchEnabled] [-MembersCanShare] [-NoCrawl] [-HeaderLayout ] [-HeaderEmphasis ] [-NavAudienceTargetingEnabled] - [-MegaMenuEnabled] [-DisablePowerAutomate] [-CommentsOnSitePagesDisabled] [-HideTitleInHeader] + [-MegaMenuEnabled] [-DisablePowerAutomate] [-CommentsOnSitePagesDisabled] [-HideTitleInHeader] [-HorizontalQuickLaunch] [-Connection ] ``` @@ -299,6 +299,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -HorizontalQuickLaunch + +Change navigation orientation to horizontal + +Set -HorizontalQuickLaunch :$false to change navigation to vertical + +```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/Set-PnPWebHeader.md b/documentation/Set-PnPWebHeader.md index fc4e6e218..48f03bc93 100644 --- a/documentation/Set-PnPWebHeader.md +++ b/documentation/Set-PnPWebHeader.md @@ -15,8 +15,7 @@ Allows configuration of the "Change the look" Header ## SYNTAX ```powershell -Set-PnPWebHeader [-SiteLogoUrl ] [-HeaderLayout ] [-HeaderEmphasis ] [-HideTitleInHeader] -[-HeaderBackgroundImageUrl ] [-HeaderBackgroundImageFocalX ] [-HeaderBackgroundImageFocalY ] [-LogoAlignment ] +Set-PnPWebHeader [-SiteLogoUrl ] [-SiteThumbnailUrl ] [-HeaderLayout ] [-HeaderEmphasis ] [-HideTitleInHeader] [-HeaderBackgroundImageUrl ] [-HeaderBackgroundImageFocalX ] [-HeaderBackgroundImageFocalY ] [-LogoAlignment ] [-Connection ] ``` @@ -163,6 +162,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SiteThumbnailUrl +Sets the thumbnail of the site shown at the top left to the provided server relative url, i.e. /sites/hrdepartment/siteassets/thumbnail.png. Provide "" or $null to remove the thumbnail. + +```yaml +Type: String +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -HideTitleInHeader Toggle the title visibility in the header. diff --git a/documentation/Set-PnPWikiPageContent.md b/documentation/Set-PnPWikiPageContent.md index e5075ccaf..dad8d87cd 100644 --- a/documentation/Set-PnPWikiPageContent.md +++ b/documentation/Set-PnPWikiPageContent.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPWikiPageContent. # Set-PnPWikiPageContent ## SYNOPSIS -Sets the contents of a wikipage +Sets the contents of a wiki page. ## SYNTAX @@ -27,7 +27,7 @@ Set-PnPWikiPageContent -Path -ServerRelativePageUrl ``` ## DESCRIPTION -This cmdlet updates the content of the specified wikipage to the value specified either in a string or a file. +This cmdlet updates the content of the specified wiki page to the value specified either in a string or a file. ## EXAMPLES @@ -42,8 +42,7 @@ Sets the content of OurWikiPage to the content of sampleblog.html file. $htmlContent = "
test
" Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Content $htmlContent ``` - -Sets the content of OurWikiPage as "test". +Sets the content of OurWikiPage as "test". The existing content of the wiki page will be replaced with the new content provided. ## PARAMETERS @@ -62,7 +61,7 @@ Accept wildcard characters: False ``` ### -Content - +HTML markup that represents the desired content of the wiki page. The HTML markup can include text, images, links, tables, formatting elements, and any other HTML elements supported by SharePoint's wiki pages. ```yaml Type: String Parameter Sets: STRING @@ -75,6 +74,7 @@ Accept wildcard characters: False ``` ### -Path +The local file path of the HTML file containing the content for the wiki page. ```yaml Type: String @@ -88,7 +88,7 @@ Accept wildcard characters: False ``` ### -ServerRelativePageUrl -Site Relative Page Url +The server-relative URL of the wiki page whose content should be updated. ```yaml Type: String diff --git a/documentation/Set-PnpTeamsChannelUser.md b/documentation/Set-PnpTeamsChannelUser.md index eac9e8138..77e9ce25b 100644 --- a/documentation/Set-PnpTeamsChannelUser.md +++ b/documentation/Set-PnpTeamsChannelUser.md @@ -20,7 +20,7 @@ Updates the role of a user in an existing Microsoft Teams private channel. ## SYNTAX ```powershell -Set-PnPTeamsChannelUser -Team -Channel -Identity -Role +Set-PnPTeamsChannelUser -Team -Channel -Identity -Role [-Connection ] ``` ## DESCRIPTION @@ -33,18 +33,30 @@ Allows to update the role of a user in an existing Microsoft Teams private chann ```powershell Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel "19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner ``` - Updates the user with specific membership ID as owner of the specified Teams private channel. ### EXAMPLE 2 ```powershell Set-PnPTeamsChannelUser -Team "My Team" -Channel "My Private Channel" -Identity john@doe.com -Role Member ``` - Updates the user john@doe.com as member of the specified Teams private channel. ## 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 +``` + ### -Team Specify the group id, mailNickname or display name of the team to use. @@ -88,7 +100,7 @@ Accept wildcard characters: False ``` ### -Role -Specify the role of the user +Specify the role of the user. ```yaml Type: String @@ -104,4 +116,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/Stop-PnPFlowRun.md b/documentation/Stop-PnPFlowRun.md index 378bcaab4..b72ba6d50 100644 --- a/documentation/Stop-PnPFlowRun.md +++ b/documentation/Stop-PnPFlowRun.md @@ -19,7 +19,7 @@ Stops/cancels a specific run of a Microsoft flow. ## SYNTAX ```powershell -Stop-PnPFlowRun -Environment -Flow -Identity [-Force] +Stop-PnPFlowRun -Environment -Flow -Identity [-Force] [-Connection ] ``` ## DESCRIPTION @@ -32,7 +32,7 @@ This cmdlet cancels a running Power Automate flow run. $environment = Get-PnPPowerPlatformEnvironment Stop-PnPFlowRun -Environment $environment -Flow fba63225-baf9-4d76-86a1-1b42c917a182 -Identity 08585531682024670884771461819CU230 ``` -This cancels the specified flow run of the specified flow +This cancels the specified flow run of the specified flow. ### Example 2 @@ -40,10 +40,24 @@ This cancels the specified flow run of the specified flow $environment = Get-PnPPowerPlatformEnvironment Stop-PnPFlowRun -Environment $environment -Flow fba63225-baf9-4d76-86a1-1b42c917a182 -Identity 08585531682024670884771461819CU230 -Force ``` -This cancels the specified flow run of the specified flow without confirmation +This cancels the specified flow run of the specified flow without confirmation. ## 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 +``` + ### -Environment The name of the Power Platform environment or an Environment object to retrieve the available flows for. diff --git a/documentation/Sync-PnPAppToTeams.md b/documentation/Sync-PnPAppToTeams.md index 66a67e1fa..0e2b73298 100644 --- a/documentation/Sync-PnPAppToTeams.md +++ b/documentation/Sync-PnPAppToTeams.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Sync-PnPAppToTeams.html # Sync-PnPAppToTeams ## SYNOPSIS -Synchronize an app from the tenant app catalog to the Microsoft Teams app catalog +Synchronize an app from the tenant app catalog to the Microsoft Teams app catalog. ## SYNTAX @@ -20,7 +20,7 @@ Sync-PnPAppToTeams [-Identity] [-Connection [-RuleId ] +Test-PnPSite -Identity [-RuleId ] [-Connection ] ``` ## DESCRIPTION @@ -45,6 +45,20 @@ This example runs the Missing Galleries Check rule in test mode on the https://c ## 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 SharePoint Online site collection on which to run the repairs. diff --git a/documentation/Test-PnPTenantTemplate.md b/documentation/Test-PnPTenantTemplate.md index 0b8254f33..184315360 100644 --- a/documentation/Test-PnPTenantTemplate.md +++ b/documentation/Test-PnPTenantTemplate.md @@ -10,13 +10,12 @@ online version: https://pnp.github.io/powershell/cmdlets/Test-PnPTenantTemplate. # Test-PnPTenantTemplate ## SYNOPSIS -Tests a tenant template for invalid references +Tests a tenant template for invalid references. ## SYNTAX ```powershell Test-PnPTenantTemplate -Template [-Connection ] - ``` ## DESCRIPTION @@ -30,7 +29,7 @@ Allows to check if the tenant template has invalid references. Test-PnPTenantTemplate -Template $myTemplate ``` -Checks for valid template references +Checks for valid template references. ## PARAMETERS @@ -49,7 +48,7 @@ Accept wildcard characters: False ``` ### -Template -The in-memory template to test +The in-memory template to test. ```yaml Type: ProvisioningHierarchy @@ -62,21 +61,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 [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/documentation/Unpublish-PnPApp.md b/documentation/Unpublish-PnPApp.md index cfb0e1fec..fe4ef3dbe 100644 --- a/documentation/Unpublish-PnPApp.md +++ b/documentation/Unpublish-PnPApp.md @@ -10,7 +10,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Unpublish-PnPApp.html # Unpublish-PnPApp ## SYNOPSIS -Unpublishes/retracts an available add-in from the app catalog +Unpublishes/retracts an available add-in from the app catalog. ## SYNTAX @@ -21,7 +21,7 @@ Unpublish-PnPApp [-Identity] [-Scope ] [- ## DESCRIPTION -Allows to unpublish an available add-in from the site. +Allows to unpublish an available add-in from the site collection app catalog or tenant app catalog. ## EXAMPLES @@ -30,14 +30,14 @@ Allows to unpublish an available add-in from the site. Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe ``` -This will retract, but not remove, the specified app from the tenant app catalog +This will retract, but not remove, the specified app from the tenant app catalog. ### EXAMPLE 2 ```powershell Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site ``` -This will retract, but not remove, the specified app from the site collection app catalog +This will retract, but not remove, the specified app from the site collection app catalog. ## PARAMETERS @@ -56,7 +56,7 @@ Accept wildcard characters: False ``` ### -Identity -Specifies the Id of the Addin Instance +Specifies the Id of the Addin Instance. ```yaml Type: AppMetadataPipeBind @@ -70,7 +70,7 @@ Accept wildcard characters: False ``` ### -Scope -Defines which app catalog to use. Defaults to Tenant +Defines which app catalog to use. Defaults to Tenant. ```yaml Type: AppCatalogScope diff --git a/documentation/Unregister-PnPHubSite.md b/documentation/Unregister-PnPHubSite.md index 436b94cef..163b39ea8 100644 --- a/documentation/Unregister-PnPHubSite.md +++ b/documentation/Unregister-PnPHubSite.md @@ -15,7 +15,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Unregister-PnPHubSite.h * SharePoint: Access to the SharePoint Tenant Administration site -Unregister a site as a hubsite +Unregister a site as a hubsite. ## SYNTAX @@ -34,7 +34,7 @@ Allows to unregister a site as a hubsite. Unregister-PnPHubSite -Site "https://tenant.sharepoint.com/sites/myhubsite" ``` -This example unregister the specified site as a hubsite +This example unregisters the specified site as a hubsite. ## PARAMETERS @@ -53,7 +53,7 @@ Accept wildcard characters: False ``` ### -Site -The site to unregister as a hubsite +The site to unregister as a hubsite. ```yaml Type: SitePipeBind diff --git a/documentation/Update-PnPApp.md b/documentation/Update-PnPApp.md index 53b1a701d..5291236c0 100644 --- a/documentation/Update-PnPApp.md +++ b/documentation/Update-PnPApp.md @@ -10,13 +10,12 @@ online version: https://pnp.github.io/powershell/cmdlets/Update-PnPApp.html # Update-PnPApp ## SYNOPSIS -Updates an available app from the app catalog +Updates an available app from the app catalog. ## SYNTAX ```powershell Update-PnPApp [-Identity] [-Scope ] [-Connection ] - ``` ## DESCRIPTION @@ -30,14 +29,14 @@ Allows to update an available app from the app catalog. Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe ``` -This will update an already installed app if a new version is available in the tenant app catalog. Retrieve a list all available apps and the installed and available versions with Get-PnPApp +This will update an already installed app if a new version is available in the tenant app catalog. Retrieve a list of all available apps and the installed and available versions with Get-PnPApp. ### EXAMPLE 2 ```powershell Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site ``` -This will update an already installed app if a new version is available in the site collection app catalog. Retrieve a list all available apps and the installed and available versions with Get-PnPApp -Scope Site +This will update an already installed app if a new version is available in the site collection app catalog. Retrieve a list of all available apps and the installed and available versions with Get-PnPApp -Scope Site. ## PARAMETERS @@ -56,7 +55,7 @@ Accept wildcard characters: False ``` ### -Identity -Specifies the Id or an actual app metadata instance +Specifies the Id or an actual app metadata instance. ```yaml Type: AppMetadataPipeBind @@ -70,7 +69,7 @@ Accept wildcard characters: False ``` ### -Scope -Defines which app catalog to use. Defaults to Tenant +Defines which app catalog to use. Defaults to Tenant. ```yaml Type: AppCatalogScope diff --git a/documentation/Update-PnPSiteDesignFromWeb.md b/documentation/Update-PnPSiteDesignFromWeb.md index a6c9b0e6e..22f42acc7 100644 --- a/documentation/Update-PnPSiteDesignFromWeb.md +++ b/documentation/Update-PnPSiteDesignFromWeb.md @@ -15,7 +15,7 @@ title: Update-PnPSiteDesignFromWeb * SharePoint: Access to the SharePoint Tenant Administration site -Updates an existing Site Design on the current tenant based on the site provided through -Url or the currently connected to site if -Url is omitted +Updates an existing Site Design on the current tenant based on the site provided through -Url or the currently connected to site if -Url is omitted. ## SYNTAX @@ -56,7 +56,7 @@ Generates a site script based on all the components of the currently connected t Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity "Contoso Project" -Lists "/lists/Issue list" ``` -Generates a site script based on the list "Issue list" in the site provided through Url and based on the generated script it will update the site script in the site design with the provided name. +Generates a site script based on the list "Issue list" in the site provided through Url. Based on the generated script it will update the site script in the site design with the provided name. ## PARAMETERS @@ -74,21 +74,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 -``` - ### -IncludeAll If specified will include all supported components into the Site Script except for the lists and document libraries, these need to be explicitly be specified through -Lists @@ -187,6 +172,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Url +Specifies the URL of the site to generate a Site Script from. If omitted, the currently connected to site will be used. + +```yaml +Type: String +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/pnpcoresdk_hash.txt b/pnpcoresdk_hash.txt index 807c38ea1..fd00fdcf1 100644 --- a/pnpcoresdk_hash.txt +++ b/pnpcoresdk_hash.txt @@ -1 +1 @@ -22dc4e9d0a1f0320021df7e7661ec96665bd5c07 \ No newline at end of file +a77cd38b447b599a00dd125021dbbfb030302886 \ No newline at end of file diff --git a/pnpframework_hash.txt b/pnpframework_hash.txt index 9f287a79d..3769a4332 100644 --- a/pnpframework_hash.txt +++ b/pnpframework_hash.txt @@ -1 +1 @@ -0b824394118c1ababfea2dac3ea019ccd04b2443 \ No newline at end of file +1a5c27f31379f9aa6c67a8ba95a28f718a403e87 \ No newline at end of file diff --git a/pnppowershell_hash.txt b/pnppowershell_hash.txt index f63383d4e..518a1ed03 100644 --- a/pnppowershell_hash.txt +++ b/pnppowershell_hash.txt @@ -1 +1 @@ -aa723d2b09440cff4e59b7c4b915401bf57688ae \ No newline at end of file +9bd7758d97143338b643980368bdc361b70243d7 \ No newline at end of file diff --git a/resources/predictor/PnP.PowerShell.Suggestions.2.2.0.json b/resources/predictor/PnP.PowerShell.Suggestions.2.2.0.json deleted file mode 100644 index b71f1f4ea..000000000 --- a/resources/predictor/PnP.PowerShell.Suggestions.2.2.0.json +++ /dev/null @@ -1,9614 +0,0 @@ -[ - { - "Id": 1, - "CommandName": "Add-PnPAlert", - "Rank": 1, - "Command": "Add-PnPAlert -List \"Demo List\"" - }, - { - "Id": 2, - "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)" - }, - { - "Id": 3, - "CommandName": "Add-PnPAlert", - "Rank": 3, - "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" - }, - { - "Id": 4, - "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))" - }, - { - "Id": 5, - "CommandName": "Add-PnPApp", - "Rank": 1, - "Command": "Add-PnPApp -Path ./myapp.sppkg" - }, - { - "Id": 6, - "CommandName": "Add-PnPApp", - "Rank": 2, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish" - }, - { - "Id": 7, - "CommandName": "Add-PnPApp", - "Rank": 3, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Scope Site -Publish" - }, - { - "Id": 8, - "CommandName": "Add-PnPApp", - "Rank": 4, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish -SkipFeatureDeployment" - }, - { - "Id": 9, - "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`\"}" - }, - { - "Id": 10, - "CommandName": "Add-PnPAvailableSiteClassification", - "Rank": 1, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\"" - }, - { - "Id": 11, - "CommandName": "Add-PnPAvailableSiteClassification", - "Rank": 2, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\",\"HBI\"" - }, - { - "Id": 12, - "CommandName": "Add-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 13, - "CommandName": "Add-PnPAzureADGroupMember", - "Rank": 2, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" - }, - { - "Id": 14, - "CommandName": "Add-PnPAzureADGroupMember", - "Rank": 3, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" - }, - { - "Id": 15, - "CommandName": "Add-PnPAzureADGroupOwner", - "Rank": 1, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 16, - "CommandName": "Add-PnPAzureADGroupOwner", - "Rank": 2, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" - }, - { - "Id": 17, - "CommandName": "Add-PnPAzureADGroupOwner", - "Rank": 3, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" - }, - { - "Id": 18, - "CommandName": "Add-PnPAzureADServicePrincipalAppRole", - "Rank": 1, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"Directory.Read.All\" -BuiltInType MicrosoftGraph" - }, - { - "Id": 19, - "CommandName": "Add-PnPAzureADServicePrincipalAppRole", - "Rank": 2, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"MyApplication.Read\" -Resource \"b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e\"" - }, - { - "Id": 20, - "CommandName": "Add-PnPContentType", - "Rank": 1, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType $ct" - }, - { - "Id": 21, - "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\"" - }, - { - "Id": 22, - "CommandName": "Add-PnPContentType", - "Rank": 3, - "Command": "Add-PnPContentType -Name \"Project Item\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\"" - }, - { - "Id": 23, - "CommandName": "Add-PnPContentType", - "Rank": 4, - "Command": "Add-PnPContentType -Name \"Project Item\"" - }, - { - "Id": 24, - "CommandName": "Add-PnPContentType", - "Rank": 5, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ContentTypeId 0x010100CD5BDB7DDE03324794E155CE37E4B6BB" - }, - { - "Id": 25, - "CommandName": "Add-PnPContentTypesFromContentTypeHub", - "Rank": 1, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x0101\", \"0x01\"" - }, - { - "Id": 26, - "CommandName": "Add-PnPContentTypesFromContentTypeHub", - "Rank": 2, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x010057C83E557396744783531D80144BD08D\" -Site https://tenant.sharepoint.com/sites/HR" - }, - { - "Id": 27, - "CommandName": "Add-PnPContentTypeToDocumentSet", - "Rank": 1, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" - }, - { - "Id": 28, - "CommandName": "Add-PnPContentTypeToDocumentSet", - "Rank": 2, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" - }, - { - "Id": 29, - "CommandName": "Add-PnPContentTypeToList", - "Rank": 1, - "Command": "Add-PnPContentTypeToList -List \"Documents\" -ContentType \"Project Document\" -DefaultContentType" - }, - { - "Id": 30, - "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`\"}\"" - }, - { - "Id": 31, - "CommandName": "Add-PnPDataRowsToSiteTemplate", - "Rank": 1, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Fields 'Title','Choice'" - }, - { - "Id": 32, - "CommandName": "Add-PnPDataRowsToSiteTemplate", - "Rank": 2, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Query '' -Fields 'Title','Choice' -IncludeSecurity" - }, - { - "Id": 33, - "CommandName": "Add-PnPDocumentSet", - "Rank": 1, - "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"" - }, - { - "Id": 34, - "CommandName": "Add-PnPEventReceiver", - "Rank": 1, - "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous" - }, - { - "Id": 35, - "CommandName": "Add-PnPEventReceiver", - "Rank": 2, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous" - }, - { - "Id": 36, - "CommandName": "Add-PnPEventReceiver", - "Rank": 3, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site" - }, - { - "Id": 37, - "CommandName": "Add-PnPEventReceiver", - "Rank": 4, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web" - }, - { - "Id": 38, - "CommandName": "Add-PnPField", - "Rank": 1, - "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"" - }, - { - "Id": 39, - "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\"" - }, - { - "Id": 40, - "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\"" - }, - { - "Id": 41, - "CommandName": "Add-PnPField", - "Rank": 4, - "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"" - }, - { - "Id": 42, - "CommandName": "Add-PnPField", - "Rank": 5, - "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"" - }, - { - "Id": 43, - "CommandName": "Add-PnPField", - "Rank": 6, - "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"" - }, - { - "Id": 44, - "CommandName": "Add-PnPFieldToContentType", - "Rank": 1, - "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"" - }, - { - "Id": 45, - "CommandName": "Add-PnPFile", - "Rank": 1, - "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"" - }, - { - "Id": 46, - "CommandName": "Add-PnPFile", - "Rank": 2, - "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"" - }, - { - "Id": 47, - "CommandName": "Add-PnPFile", - "Rank": 3, - "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}" - }, - { - "Id": 48, - "CommandName": "Add-PnPFile", - "Rank": 4, - "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}" - }, - { - "Id": 49, - "CommandName": "Add-PnPFile", - "Rank": 5, - "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}" - }, - { - "Id": 50, - "CommandName": "Add-PnPFile", - "Rank": 6, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}" - }, - { - "Id": 51, - "CommandName": "Add-PnPFile", - "Rank": 7, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"" - }, - { - "Id": 52, - "CommandName": "Add-PnPFile", - "Rank": 8, - "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'" - }, - { - "Id": 53, - "CommandName": "Add-PnPFileAnonymousSharingLink", - "Rank": 1, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" - }, - { - "Id": 54, - "CommandName": "Add-PnPFileAnonymousSharingLink", - "Rank": 2, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"" - }, - { - "Id": 55, - "CommandName": "Add-PnPFileAnonymousSharingLink", - "Rank": 3, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)" - }, - { - "Id": 56, - "CommandName": "Add-PnPFileOrganizationalSharingLink", - "Rank": 1, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" - }, - { - "Id": 57, - "CommandName": "Add-PnPFileOrganizationalSharingLink", - "Rank": 2, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit" - }, - { - "Id": 58, - "CommandName": "Add-PnPFileSharingInvite", - "Rank": 1, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" - }, - { - "Id": 59, - "CommandName": "Add-PnPFileSharingInvite", - "Rank": 2, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" - }, - { - "Id": 60, - "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)" - }, - { - "Id": 61, - "CommandName": "Add-PnPFileToSiteTemplate", - "Rank": 1, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"" - }, - { - "Id": 62, - "CommandName": "Add-PnPFileToSiteTemplate", - "Rank": 2, - "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"" - }, - { - "Id": 63, - "CommandName": "Add-PnPFileToSiteTemplate", - "Rank": 3, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false" - }, - { - "Id": 64, - "CommandName": "Add-PnPFileToSiteTemplate", - "Rank": 4, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container" - }, - { - "Id": 65, - "CommandName": "Add-PnPFileToSiteTemplate", - "Rank": 5, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"" - }, - { - "Id": 66, - "CommandName": "Add-PnPFileUserSharingLink", - "Rank": 1, - "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 67, - "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\"" - }, - { - "Id": 68, - "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" - }, - { - "Id": 69, - "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" - }, - { - "Id": 70, - "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" - }, - { - "Id": 71, - "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" - }, - { - "Id": 72, - "CommandName": "Add-PnPFolder", - "Rank": 1, - "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" - }, - { - "Id": 73, - "CommandName": "Add-PnPFolder", - "Rank": 2, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"" - }, - { - "Id": 74, - "CommandName": "Add-PnPFolder", - "Rank": 3, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"" - }, - { - "Id": 75, - "CommandName": "Add-PnPFolderAnonymousSharingLink", - "Rank": 1, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" - }, - { - "Id": 76, - "CommandName": "Add-PnPFolderAnonymousSharingLink", - "Rank": 2, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"" - }, - { - "Id": 77, - "CommandName": "Add-PnPFolderAnonymousSharingLink", - "Rank": 3, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)" - }, - { - "Id": 78, - "CommandName": "Add-PnPFolderOrganizationalSharingLink", - "Rank": 1, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" - }, - { - "Id": 79, - "CommandName": "Add-PnPFolderOrganizationalSharingLink", - "Rank": 2, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit" - }, - { - "Id": 80, - "CommandName": "Add-PnPFolderSharingInvite", - "Rank": 1, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" - }, - { - "Id": 81, - "CommandName": "Add-PnPFolderSharingInvite", - "Rank": 2, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" - }, - { - "Id": 82, - "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)" - }, - { - "Id": 83, - "CommandName": "Add-PnPFolderUserSharingLink", - "Rank": 1, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 84, - "CommandName": "Add-PnPFolderUserSharingLink", - "Rank": 2, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 85, - "CommandName": "Add-PnPGroupMember", - "Rank": 1, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" - }, - { - "Id": 86, - "CommandName": "Add-PnPGroupMember", - "Rank": 2, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5" - }, - { - "Id": 87, - "CommandName": "Add-PnPHtmlPublishingPageLayout", - "Rank": 1, - "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" - }, - { - "Id": 88, - "CommandName": "Add-PnPHubSiteAssociation", - "Rank": 1, - "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"" - }, - { - "Id": 89, - "CommandName": "Add-PnPHubToHubAssociation", - "Rank": 1, - "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443" - }, - { - "Id": 90, - "CommandName": "Add-PnPHubToHubAssociation", - "Rank": 2, - "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"" - }, - { - "Id": 91, - "CommandName": "Add-PnPHubToHubAssociation", - "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\"" - }, - { - "Id": 92, - "CommandName": "Add-PnPJavaScriptBlock", - "Rank": 1, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site" - }, - { - "Id": 93, - "CommandName": "Add-PnPJavaScriptBlock", - "Rank": 2, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''" - }, - { - "Id": 94, - "CommandName": "Add-PnPJavaScriptLink", - "Rank": 1, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site" - }, - { - "Id": 95, - "CommandName": "Add-PnPJavaScriptLink", - "Rank": 2, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js" - }, - { - "Id": 96, - "CommandName": "Add-PnPListDesign", - "Rank": 1, - "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"" - }, - { - "Id": 97, - "CommandName": "Add-PnPListDesign", - "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\"" - }, - { - "Id": 98, - "CommandName": "Add-PnPListFoldersToSiteTemplate", - "Rank": 1, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'" - }, - { - "Id": 99, - "CommandName": "Add-PnPListFoldersToSiteTemplate", - "Rank": 2, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive" - }, - { - "Id": 100, - "CommandName": "Add-PnPListFoldersToSiteTemplate", - "Rank": 3, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity" - }, - { - "Id": 101, - "CommandName": "Add-PnPListItem", - "Rank": 1, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 102, - "CommandName": "Add-PnPListItem", - "Rank": 2, - "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 103, - "CommandName": "Add-PnPListItem", - "Rank": 3, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}" - }, - { - "Id": 104, - "CommandName": "Add-PnPListItem", - "Rank": 4, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"" - }, - { - "Id": 105, - "CommandName": "Add-PnPListItem", - "Rank": 5, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"" - }, - { - "Id": 106, - "CommandName": "Add-PnPListItemAttachment", - "Rank": 1, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4" - }, - { - "Id": 107, - "CommandName": "Add-PnPListItemAttachment", - "Rank": 2, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'" - }, - { - "Id": 108, - "CommandName": "Add-PnPListItemAttachment", - "Rank": 3, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream" - }, - { - "Id": 109, - "CommandName": "Add-PnPListItemComment", - "Rank": 1, - "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"" - }, - { - "Id": 110, - "CommandName": "Add-PnPMasterPage", - "Rank": 1, - "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"" - }, - { - "Id": 111, - "CommandName": "Add-PnPMicrosoft365GroupMember", - "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 112, - "CommandName": "Add-PnPMicrosoft365GroupMember", - "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" - }, - { - "Id": 113, - "CommandName": "Add-PnPMicrosoft365GroupOwner", - "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 114, - "CommandName": "Add-PnPMicrosoft365GroupOwner", - "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" - }, - { - "Id": 115, - "CommandName": "Add-PnPMicrosoft365GroupToSite", - "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"" - }, - { - "Id": 116, - "CommandName": "Add-PnPMicrosoft365GroupToSite", - "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"" - }, - { - "Id": 117, - "CommandName": "Add-PnPMicrosoft365GroupToSite", - "Rank": 3, - "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage" - }, - { - "Id": 118, - "CommandName": "Add-PnPNavigationNode", - "Rank": 1, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"" - }, - { - "Id": 119, - "CommandName": "Add-PnPNavigationNode", - "Rank": 2, - "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012" - }, - { - "Id": 120, - "CommandName": "Add-PnPNavigationNode", - "Rank": 3, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First" - }, - { - "Id": 121, - "CommandName": "Add-PnPNavigationNode", - "Rank": 4, - "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External" - }, - { - "Id": 122, - "CommandName": "Add-PnPNavigationNode", - "Rank": 5, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"" - }, - { - "Id": 123, - "CommandName": "Add-PnPNavigationNode", - "Rank": 6, - "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"" - }, - { - "Id": 124, - "CommandName": "Add-PnPNavigationNode", - "Rank": 7, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012" - }, - { - "Id": 125, - "CommandName": "Add-PnPNavigationNode", - "Rank": 8, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab" - }, - { - "Id": 126, - "CommandName": "Add-PnPOrgAssetsLibrary", - "Rank": 1, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"" - }, - { - "Id": 127, - "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\"" - }, - { - "Id": 128, - "CommandName": "Add-PnPOrgAssetsLibrary", - "Rank": 3, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private" - }, - { - "Id": 129, - "CommandName": "Add-PnPOrgNewsSite", - "Rank": 1, - "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"" - }, - { - "Id": 130, - "CommandName": "Add-PnPPage", - "Rank": 1, - "Command": "Add-PnPPage -Name \"NewPage\"" - }, - { - "Id": 131, - "CommandName": "Add-PnPPage", - "Rank": 2, - "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"" - }, - { - "Id": 132, - "CommandName": "Add-PnPPage", - "Rank": 3, - "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"" - }, - { - "Id": 133, - "CommandName": "Add-PnPPage", - "Rank": 4, - "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template" - }, - { - "Id": 134, - "CommandName": "Add-PnPPage", - "Rank": 5, - "Command": "Add-PnPPage -Name \"Folder/NewPage\"" - }, - { - "Id": 135, - "CommandName": "Add-PnPPage", - "Rank": 6, - "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock" - }, - { - "Id": 136, - "CommandName": "Add-PnPPage", - "Rank": 7, - "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)" - }, - { - "Id": 137, - "CommandName": "Add-PnPPage", - "Rank": 8, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate" - }, - { - "Id": 138, - "CommandName": "Add-PnPPage", - "Rank": 9, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043" - }, - { - "Id": 139, - "CommandName": "Add-PnPPage", - "Rank": 10, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035" - }, - { - "Id": 140, - "CommandName": "Add-PnPPageImageWebPart", - "Rank": 1, - "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"" - }, - { - "Id": 141, - "CommandName": "Add-PnPPageImageWebPart", - "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\"" - }, - { - "Id": 142, - "CommandName": "Add-PnPPageSection", - "Rank": 1, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn" - }, - { - "Id": 143, - "CommandName": "Add-PnPPageSection", - "Rank": 2, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10" - }, - { - "Id": 144, - "CommandName": "Add-PnPPageTextPart", - "Rank": 1, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"" - }, - { - "Id": 145, - "CommandName": "Add-PnPPageTextPart", - "Rank": 2, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"" - }, - { - "Id": 146, - "CommandName": "Add-PnPPageTextPart", - "Rank": 3, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -TextBeforeImage \"Text before\" -TextAfterImage \"Text after\"" - }, - { - "Id": 147, - "CommandName": "Add-PnPPageWebPart", - "Rank": 1, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap" - }, - { - "Id": 148, - "CommandName": "Add-PnPPageWebPart", - "Rank": 2, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"" - }, - { - "Id": 149, - "CommandName": "Add-PnPPageWebPart", - "Rank": 3, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2" - }, - { - "Id": 150, - "CommandName": "Add-PnPPlannerBucket", - "Rank": 1, - "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"" - }, - { - "Id": 151, - "CommandName": "Add-PnPPlannerBucket", - "Rank": 2, - "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"" - }, - { - "Id": 152, - "CommandName": "Add-PnPPlannerRoster", - "Rank": 1, - "Command": "Add-PnPPlannerRoster" - }, - { - "Id": 153, - "CommandName": "Add-PnPPlannerRosterMember", - "Rank": 1, - "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" - }, - { - "Id": 154, - "CommandName": "Add-PnPPlannerTask", - "Rank": 1, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"" - }, - { - "Id": 155, - "CommandName": "Add-PnPPlannerTask", - "Rank": 2, - "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"" - }, - { - "Id": 156, - "CommandName": "Add-PnPPlannerTask", - "Rank": 3, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" - }, - { - "Id": 157, - "CommandName": "Add-PnPPublishingImageRendition", - "Rank": 1, - "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" - }, - { - "Id": 158, - "CommandName": "Add-PnPPublishingPage", - "Rank": 1, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'" - }, - { - "Id": 159, - "CommandName": "Add-PnPPublishingPage", - "Rank": 2, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'" - }, - { - "Id": 160, - "CommandName": "Add-PnPPublishingPageLayout", - "Rank": 1, - "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" - }, - { - "Id": 161, - "CommandName": "Add-PnPRoleDefinition", - "Rank": 1, - "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"" - }, - { - "Id": 162, - "CommandName": "Add-PnPRoleDefinition", - "Rank": 2, - "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems" - }, - { - "Id": 163, - "CommandName": "Add-PnPRoleDefinition", - "Rank": 3, - "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems" - }, - { - "Id": 164, - "CommandName": "Add-PnPSiteCollectionAdmin", - "Rank": 1, - "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" - }, - { - "Id": 165, - "CommandName": "Add-PnPSiteCollectionAdmin", - "Rank": 2, - "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" - }, - { - "Id": 166, - "CommandName": "Add-PnPSiteCollectionAdmin", - "Rank": 3, - "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"" - }, - { - "Id": 167, - "CommandName": "Add-PnPSiteCollectionAppCatalog", - "Rank": 1, - "Command": "Add-PnPSiteCollectionAppCatalog" - }, - { - "Id": 168, - "CommandName": "Add-PnPSiteCollectionAppCatalog", - "Rank": 2, - "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" - }, - { - "Id": 169, - "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" - }, - { - "Id": 170, - "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" - }, - { - "Id": 171, - "CommandName": "Add-PnPSiteDesign", - "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\"" - }, - { - "Id": 172, - "CommandName": "Add-PnPSiteDesignFromWeb", - "Rank": 1, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll" - }, - { - "Id": 173, - "CommandName": "Add-PnPSiteDesignFromWeb", - "Rank": 2, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" - }, - { - "Id": 174, - "CommandName": "Add-PnPSiteDesignFromWeb", - "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" - }, - { - "Id": 175, - "CommandName": "Add-PnPSiteDesignTask", - "Rank": 1, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82" - }, - { - "Id": 176, - "CommandName": "Add-PnPSiteDesignTask", - "Rank": 2, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"" - }, - { - "Id": 177, - "CommandName": "Add-PnPSiteScript", - "Rank": 1, - "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script" - }, - { - "Id": 178, - "CommandName": "Add-PnPSiteScriptPackage", - "Rank": 1, - "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"" - }, - { - "Id": 179, - "CommandName": "Add-PnPSiteTemplate", - "Rank": 1, - "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate" - }, - { - "Id": 180, - "CommandName": "Add-PnPStoredCredential", - "Rank": 1, - "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com" - }, - { - "Id": 181, - "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)" - }, - { - "Id": 182, - "CommandName": "Add-PnPStoredCredential", - "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\"" - }, - { - "Id": 183, - "CommandName": "Add-PnPTaxonomyField", - "Rank": 1, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"" - }, - { - "Id": 184, - "CommandName": "Add-PnPTaxonomyField", - "Rank": 2, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"" - }, - { - "Id": 185, - "CommandName": "Add-PnPTeamsChannel", - "Rank": 1, - "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true" - }, - { - "Id": 186, - "CommandName": "Add-PnPTeamsChannel", - "Rank": 2, - "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"" - }, - { - "Id": 187, - "CommandName": "Add-PnPTeamsChannel", - "Rank": 3, - "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com" - }, - { - "Id": 188, - "CommandName": "Add-PnPTeamsChannel", - "Rank": 4, - "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com" - }, - { - "Id": 189, - "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" - }, - { - "Id": 190, - "CommandName": "Add-PnpTeamsChannelUser", - "Rank": 2, - "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member" - }, - { - "Id": 191, - "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\"" - }, - { - "Id": 192, - "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\"" - }, - { - "Id": 193, - "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\"" - }, - { - "Id": 194, - "CommandName": "Add-PnPTeamsTab", - "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" - }, - { - "Id": 195, - "CommandName": "Add-PnPTeamsTeam", - "Rank": 1, - "Command": "Add-PnPTeamsTeam" - }, - { - "Id": 196, - "CommandName": "Add-PnPTeamsUser", - "Rank": 1, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" - }, - { - "Id": 197, - "CommandName": "Add-PnPTeamsUser", - "Rank": 2, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" - }, - { - "Id": 198, - "CommandName": "Add-PnPTeamsUser", - "Rank": 3, - "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member" - }, - { - "Id": 199, - "CommandName": "Add-PnPTeamsUser", - "Rank": 4, - "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private" - }, - { - "Id": 200, - "CommandName": "Add-PnPTenantCdnOrigin", - "Rank": 1, - "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" - }, - { - "Id": 201, - "CommandName": "Add-PnPTenantSequence", - "Rank": 1, - "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence" - }, - { - "Id": 202, - "CommandName": "Add-PnPTenantSequenceSite", - "Rank": 1, - "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence" - }, - { - "Id": 203, - "CommandName": "Add-PnPTenantSequenceSubSite", - "Rank": 1, - "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite" - }, - { - "Id": 204, - "CommandName": "Add-PnPTermToTerm", - "Rank": 1, - "Command": "Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}" - }, - { - "Id": 205, - "CommandName": "Add-PnPView", - "Rank": 1, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"" - }, - { - "Id": 206, - "CommandName": "Add-PnPView", - "Rank": 2, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100" - }, - { - "Id": 207, - "CommandName": "Add-PnPView", - "Rank": 3, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"" - }, - { - "Id": 208, - "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\"" - }, - { - "Id": 209, - "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\"" - }, - { - "Id": 210, - "CommandName": "Add-PnPVivaConnectionsDashboardACE", - "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\"" - }, - { - "Id": 211, - "CommandName": "Add-PnPWebhookSubscription", - "Rank": 1, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook" - }, - { - "Id": 212, - "CommandName": "Add-PnPWebhookSubscription", - "Rank": 2, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" - }, - { - "Id": 213, - "CommandName": "Add-PnPWebhookSubscription", - "Rank": 3, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"" - }, - { - "Id": 214, - "CommandName": "Add-PnPWebPartToWebPartPage", - "Rank": 1, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1" - }, - { - "Id": 215, - "CommandName": "Add-PnPWebPartToWebPartPage", - "Rank": 2, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1" - }, - { - "Id": 216, - "CommandName": "Add-PnPWebPartToWikiPage", - "Rank": 1, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1" - }, - { - "Id": 217, - "CommandName": "Add-PnPWebPartToWikiPage", - "Rank": 2, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1" - }, - { - "Id": 218, - "CommandName": "Add-PnPWikiPage", - "Rank": 1, - "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'" - }, - { - "Id": 219, - "CommandName": "Clear-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"" - }, - { - "Id": 220, - "CommandName": "Clear-PnPAzureADGroupOwner", - "Rank": 1, - "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"" - }, - { - "Id": 221, - "CommandName": "Clear-PnPDefaultColumnValues", - "Rank": 1, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField" - }, - { - "Id": 222, - "CommandName": "Clear-PnPDefaultColumnValues", - "Rank": 2, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A" - }, - { - "Id": 223, - "CommandName": "Clear-PnPListItemAsRecord", - "Rank": 1, - "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4" - }, - { - "Id": 224, - "CommandName": "Clear-PnPMicrosoft365GroupMember", - "Rank": 1, - "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"" - }, - { - "Id": 225, - "CommandName": "Clear-PnPMicrosoft365GroupOwner", - "Rank": 1, - "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"" - }, - { - "Id": 226, - "CommandName": "Clear-PnpRecycleBinItem", - "Rank": 1, - "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" - }, - { - "Id": 227, - "CommandName": "Clear-PnpRecycleBinItem", - "Rank": 2, - "Command": "Clear-PnPRecycleBinItem -Identity $item -Force" - }, - { - "Id": 228, - "CommandName": "Clear-PnpRecycleBinItem", - "Rank": 3, - "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000" - }, - { - "Id": 229, - "CommandName": "Clear-PnPTenantAppCatalogUrl", - "Rank": 1, - "Command": "Clear-PnPTenantAppCatalogUrl" - }, - { - "Id": 230, - "CommandName": "Clear-PnPTenantRecycleBinItem", - "Rank": 1, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 231, - "CommandName": "Clear-PnPTenantRecycleBinItem", - "Rank": 2, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" - }, - { - "Id": 232, - "CommandName": "Connect-PnPOnline", - "Rank": 1, - "Command": "Connect-PnPOnline -Url contoso.sharepoint.com -AzureEnvironment Custom -MicrosoftGraphEndPoint \"custom.graph.microsoft.com\" -AzureADLoginEndPoint \"https://custom.login.microsoftonline.com\"" - }, - { - "Id": 233, - "CommandName": "Convert-PnPFolderToSiteTemplate", - "Rank": 1, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp" - }, - { - "Id": 234, - "CommandName": "Convert-PnPFolderToSiteTemplate", - "Rank": 2, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp" - }, - { - "Id": 235, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 1, - "Command": "Convert-PnPSiteTemplate -Path template.xml" - }, - { - "Id": 236, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 2, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml" - }, - { - "Id": 237, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 3, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512" - }, - { - "Id": 238, - "CommandName": "Convert-PnPSiteTemplateToMarkdown", - "Rank": 1, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml" - }, - { - "Id": 239, - "CommandName": "Convert-PnPSiteTemplateToMarkdown", - "Rank": 2, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md" - }, - { - "Id": 240, - "CommandName": "ConvertTo-PnPPage", - "Rank": 1, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite" - }, - { - "Id": 241, - "CommandName": "ConvertTo-PnPPage", - "Rank": 2, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml" - }, - { - "Id": 242, - "CommandName": "ConvertTo-PnPPage", - "Rank": 3, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner" - }, - { - "Id": 243, - "CommandName": "ConvertTo-PnPPage", - "Rank": 4, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata" - }, - { - "Id": 244, - "CommandName": "ConvertTo-PnPPage", - "Rank": 5, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" - }, - { - "Id": 245, - "CommandName": "ConvertTo-PnPPage", - "Rank": 6, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target" - }, - { - "Id": 246, - "CommandName": "ConvertTo-PnPPage", - "Rank": 7, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite" - }, - { - "Id": 247, - "CommandName": "ConvertTo-PnPPage", - "Rank": 8, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite" - }, - { - "Id": 248, - "CommandName": "ConvertTo-PnPPage", - "Rank": 9, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" - }, - { - "Id": 249, - "CommandName": "ConvertTo-PnPPage", - "Rank": 10, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite" - }, - { - "Id": 250, - "CommandName": "ConvertTo-PnPPage", - "Rank": 11, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush" - }, - { - "Id": 251, - "CommandName": "ConvertTo-PnPPage", - "Rank": 12, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" - }, - { - "Id": 252, - "CommandName": "ConvertTo-PnPPage", - "Rank": 13, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" - }, - { - "Id": 253, - "CommandName": "ConvertTo-PnPPage", - "Rank": 14, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv" - }, - { - "Id": 254, - "CommandName": "Copy-PnPFile", - "Rank": 1, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 255, - "CommandName": "Copy-PnPFile", - "Rank": 2, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" - }, - { - "Id": 256, - "CommandName": "Copy-PnPFile", - "Rank": 3, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" - }, - { - "Id": 257, - "CommandName": "Copy-PnPFile", - "Rank": 4, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 258, - "CommandName": "Copy-PnPFile", - "Rank": 5, - "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" - }, - { - "Id": 259, - "CommandName": "Copy-PnPFile", - "Rank": 6, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" - }, - { - "Id": 260, - "CommandName": "Copy-PnPFile", - "Rank": 7, - "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" - }, - { - "Id": 261, - "CommandName": "Copy-PnPFile", - "Rank": 8, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 262, - "CommandName": "Copy-PnPFile", - "Rank": 9, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" - }, - { - "Id": 263, - "CommandName": "Copy-PnPFile", - "Rank": 10, - "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" - }, - { - "Id": 264, - "CommandName": "Copy-PnPFolder", - "Rank": 1, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 265, - "CommandName": "Copy-PnPFolder", - "Rank": 2, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" - }, - { - "Id": 266, - "CommandName": "Copy-PnPFolder", - "Rank": 3, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" - }, - { - "Id": 267, - "CommandName": "Copy-PnPFolder", - "Rank": 4, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 268, - "CommandName": "Copy-PnPFolder", - "Rank": 5, - "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" - }, - { - "Id": 269, - "CommandName": "Copy-PnPFolder", - "Rank": 6, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" - }, - { - "Id": 270, - "CommandName": "Copy-PnPFolder", - "Rank": 7, - "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" - }, - { - "Id": 271, - "CommandName": "Copy-PnPFolder", - "Rank": 8, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" - }, - { - "Id": 272, - "CommandName": "Copy-PnPFolder", - "Rank": 9, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" - }, - { - "Id": 273, - "CommandName": "Copy-PnPFolder", - "Rank": 10, - "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" - }, - { - "Id": 274, - "CommandName": "Copy-PnPItemProxy", - "Rank": 1, - "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"" - }, - { - "Id": 275, - "CommandName": "Copy-PnPList", - "Rank": 1, - "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"" - }, - { - "Id": 276, - "CommandName": "Copy-PnPList", - "Rank": 2, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment" - }, - { - "Id": 277, - "CommandName": "Copy-PnPList", - "Rank": 3, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"" - }, - { - "Id": 278, - "CommandName": "Copy-PnPList", - "Rank": 4, - "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\" - }, - { - "Id": 279, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 1, - "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members" - }, - { - "Id": 280, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 2, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"" - }, - { - "Id": 281, - "CommandName": "Copy-PnPTeamsTeam", - "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" - }, - { - "Id": 282, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 4, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone settings,channels -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" - }, - { - "Id": 283, - "CommandName": "Disable-PnPFeature", - "Rank": 1, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 284, - "CommandName": "Disable-PnPFeature", - "Rank": 2, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" - }, - { - "Id": 285, - "CommandName": "Disable-PnPFeature", - "Rank": 3, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" - }, - { - "Id": 286, - "CommandName": "Disable-PnPPageScheduling", - "Rank": 1, - "Command": "Disable-PnPPageScheduling" - }, - { - "Id": 287, - "CommandName": "Disable-PnPPowerShellTelemetry", - "Rank": 1, - "Command": "Disable-PnPPowerShellTelemetry" - }, - { - "Id": 288, - "CommandName": "Disable-PnPPowerShellTelemetry", - "Rank": 2, - "Command": "Disable-PnPPowerShellTelemetry -Force" - }, - { - "Id": 289, - "CommandName": "Disable-PnPSharingForNonOwnersOfSite", - "Rank": 1, - "Command": "Disable-PnPSharingForNonOwnersOfSite" - }, - { - "Id": 290, - "CommandName": "Disable-PnPSiteClassification", - "Rank": 1, - "Command": "Disable-PnPSiteClassification" - }, - { - "Id": 291, - "CommandName": "Disconnect-PnPOnline", - "Rank": 1, - "Command": "Disconnect-PnPOnline" - }, - { - "Id": 292, - "CommandName": "Enable-PnPCommSite", - "Rank": 1, - "Command": "Enable-PnPCommSite" - }, - { - "Id": 293, - "CommandName": "Enable-PnPCommSite", - "Rank": 2, - "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767" - }, - { - "Id": 294, - "CommandName": "Enable-PnPFeature", - "Rank": 1, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 295, - "CommandName": "Enable-PnPFeature", - "Rank": 2, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" - }, - { - "Id": 296, - "CommandName": "Enable-PnPFeature", - "Rank": 3, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" - }, - { - "Id": 297, - "CommandName": "Enable-PnPPageScheduling", - "Rank": 1, - "Command": "Enable-PnPPageScheduling" - }, - { - "Id": 298, - "CommandName": "Enable-PnPPowerShellTelemetry", - "Rank": 1, - "Command": "Enable-PnPPowerShellTelemetry" - }, - { - "Id": 299, - "CommandName": "Enable-PnPPowerShellTelemetry", - "Rank": 2, - "Command": "Enable-PnPPowerShellTelemetry -Force" - }, - { - "Id": 300, - "CommandName": "Enable-PnPSiteClassification", - "Rank": 1, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"" - }, - { - "Id": 301, - "CommandName": "Enable-PnPSiteClassification", - "Rank": 2, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp" - }, - { - "Id": 302, - "CommandName": "Export-PnPListToSiteTemplate", - "Rank": 1, - "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"" - }, - { - "Id": 303, - "CommandName": "Export-PnPListToSiteTemplate", - "Rank": 2, - "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"" - }, - { - "Id": 304, - "CommandName": "Export-PnPPage", - "Rank": 1, - "Command": "Export-PnPPage -Identity Home.aspx" - }, - { - "Id": 305, - "CommandName": "Export-PnPPageMapping", - "Rank": 1, - "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite" - }, - { - "Id": 306, - "CommandName": "Export-PnPPageMapping", - "Rank": 2, - "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite" - }, - { - "Id": 307, - "CommandName": "Export-PnPPageMapping", - "Rank": 3, - "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite" - }, - { - "Id": 308, - "CommandName": "Export-PnPTaxonomy", - "Rank": 1, - "Command": "Export-PnPTaxonomy" - }, - { - "Id": 309, - "CommandName": "Export-PnPTaxonomy", - "Rank": 2, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt" - }, - { - "Id": 310, - "CommandName": "Export-PnPTaxonomy", - "Rank": 3, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254" - }, - { - "Id": 311, - "CommandName": "Export-PnPTaxonomy", - "Rank": 4, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044" - }, - { - "Id": 312, - "CommandName": "Export-PnPTermGroupToXml", - "Rank": 1, - "Command": "Export-PnPTermGroupToXml" - }, - { - "Id": 313, - "CommandName": "Export-PnPTermGroupToXml", - "Rank": 2, - "Command": "Export-PnPTermGroupToXml -Out output.xml" - }, - { - "Id": 314, - "CommandName": "Export-PnPTermGroupToXml", - "Rank": 3, - "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"" - }, - { - "Id": 315, - "CommandName": "Export-PnPUserInfo", - "Rank": 1, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" - }, - { - "Id": 316, - "CommandName": "Export-PnPUserInfo", - "Rank": 2, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\" | ConvertTo-Csv | Out-File MyFile.csv" - }, - { - "Id": 317, - "CommandName": "Export-PnPUserProfile", - "Rank": 1, - "Command": "Export-PnPUserProfile -LoginName user@domain.com" - }, - { - "Id": 318, - "CommandName": "Export-PnPUserProfile", - "Rank": 2, - "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv" - }, - { - "Id": 319, - "CommandName": "Find-PnPFile", - "Rank": 1, - "Command": "Find-PnPFile -Match *.master" - }, - { - "Id": 320, - "CommandName": "Find-PnPFile", - "Rank": 2, - "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf" - }, - { - "Id": 321, - "CommandName": "Find-PnPFile", - "Rank": 3, - "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx" - }, - { - "Id": 322, - "CommandName": "Get-PnPAccessToken", - "Rank": 1, - "Command": "Get-PnPAccessToken" - }, - { - "Id": 323, - "CommandName": "Get-PnPAccessToken", - "Rank": 2, - "Command": "Get-PnPAccessToken -Decoded" - }, - { - "Id": 324, - "CommandName": "Get-PnPAccessToken", - "Rank": 3, - "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint" - }, - { - "Id": 325, - "CommandName": "Get-PnPAccessToken", - "Rank": 4, - "Command": "Get-PnPAccessToken -ResourceTypeName ARM" - }, - { - "Id": 326, - "CommandName": "Get-PnPAccessToken", - "Rank": 5, - "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"" - }, - { - "Id": 327, - "CommandName": "Get-PnPAlert", - "Rank": 1, - "Command": "Get-PnPAlert" - }, - { - "Id": 328, - "CommandName": "Get-PnPAlert", - "Rank": 2, - "Command": "Get-PnPAlert -List \"Demo List\"" - }, - { - "Id": 329, - "CommandName": "Get-PnPAlert", - "Rank": 3, - "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" - }, - { - "Id": 330, - "CommandName": "Get-PnPAlert", - "Rank": 4, - "Command": "Get-PnPAlert -Title \"Demo Alert\"" - }, - { - "Id": 331, - "CommandName": "Get-PnPAlert", - "Rank": 5, - "Command": "Get-PnPAlert -AllUsers" - }, - { - "Id": 332, - "CommandName": "Get-PnPAlert", - "Rank": 6, - "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers" - }, - { - "Id": 333, - "CommandName": "Get-PnPApp", - "Rank": 1, - "Command": "Get-PnPApp" - }, - { - "Id": 334, - "CommandName": "Get-PnPApp", - "Rank": 2, - "Command": "Get-PnPApp -Scope Site" - }, - { - "Id": 335, - "CommandName": "Get-PnPApp", - "Rank": 3, - "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" - }, - { - "Id": 336, - "CommandName": "Get-PnPAppErrors", - "Rank": 1, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b" - }, - { - "Id": 337, - "CommandName": "Get-PnPAppErrors", - "Rank": 2, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()" - }, - { - "Id": 338, - "CommandName": "Get-PnPAppInfo", - "Rank": 1, - "Command": "Get-PnPAppInfo -Name \"Excel Service\"" - }, - { - "Id": 339, - "CommandName": "Get-PnPAppInfo", - "Rank": 2, - "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f" - }, - { - "Id": 340, - "CommandName": "Get-PnPAppInfo", - "Rank": 3, - "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name" - }, - { - "Id": 341, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Get-PnPApplicationCustomizer" - }, - { - "Id": 342, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" - }, - { - "Id": 343, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 3, - "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web" - }, - { - "Id": 344, - "CommandName": "Get-PnPAuditing", - "Rank": 1, - "Command": "Get-PnPAuditing" - }, - { - "Id": 345, - "CommandName": "Get-PnPAuthenticationRealm", - "Rank": 1, - "Command": "Get-PnPAuthenticationRealm" - }, - { - "Id": 346, - "CommandName": "Get-PnPAuthenticationRealm", - "Rank": 2, - "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"" - }, - { - "Id": 347, - "CommandName": "Get-PnPAvailableLanguage", - "Rank": 1, - "Command": "Get-PnPAvailableLanguage" - }, - { - "Id": 348, - "CommandName": "Get-PnPAvailableSensitivityLabel", - "Rank": 1, - "Command": "Get-PnPAvailableSensitivityLabel" - }, - { - "Id": 349, - "CommandName": "Get-PnPAvailableSensitivityLabel", - "Rank": 2, - "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com" - }, - { - "Id": 350, - "CommandName": "Get-PnPAvailableSensitivityLabel", - "Rank": 3, - "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884" - }, - { - "Id": 351, - "CommandName": "Get-PnPAvailableSiteClassification", - "Rank": 1, - "Command": "Get-PnPAvailableSiteClassification" - }, - { - "Id": 352, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 1, - "Command": "Get-PnPAzureACSPrincipal" - }, - { - "Id": 353, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 2, - "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites" - }, - { - "Id": 354, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 3, - "Command": "Get-PnPAzureACSPrincipal -Scope Tenant" - }, - { - "Id": 355, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 4, - "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites" - }, - { - "Id": 356, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 1, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit" - }, - { - "Id": 357, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 2, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"" - }, - { - "Id": 358, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 3, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"" - }, - { - "Id": 359, - "CommandName": "Get-PnPAzureADActivityReportSignIn", - "Rank": 1, - "Command": "Get-PnPAzureADActivityReportSignIn" - }, - { - "Id": 360, - "CommandName": "Get-PnPAzureADActivityReportSignIn", - "Rank": 2, - "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"" - }, - { - "Id": 361, - "CommandName": "Get-PnPAzureADActivityReportSignIn", - "Rank": 3, - "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"" - }, - { - "Id": 362, - "CommandName": "Get-PnPAzureADApp", - "Rank": 1, - "Command": "Get-PnPAzureADApp" - }, - { - "Id": 363, - "CommandName": "Get-PnPAzureADApp", - "Rank": 2, - "Command": "Get-PnPAzureADApp -Identity MyApp" - }, - { - "Id": 364, - "CommandName": "Get-PnPAzureADApp", - "Rank": 3, - "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" - }, - { - "Id": 365, - "CommandName": "Get-PnPAzureADApp", - "Rank": 4, - "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"" - }, - { - "Id": 366, - "CommandName": "Get-PnPAzureADAppPermission", - "Rank": 1, - "Command": "Get-PnPAzureADAppPermission" - }, - { - "Id": 367, - "CommandName": "Get-PnPAzureADAppPermission", - "Rank": 2, - "Command": "Get-PnPAzureADAppPermission -Identity MyApp" - }, - { - "Id": 368, - "CommandName": "Get-PnPAzureADAppPermission", - "Rank": 3, - "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" - }, - { - "Id": 369, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 1, - "Command": "Get-PnPAzureADAppSitePermission" - }, - { - "Id": 370, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 2, - "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects" - }, - { - "Id": 371, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 3, - "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1" - }, - { - "Id": 372, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 4, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"" - }, - { - "Id": 373, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 5, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"" - }, - { - "Id": 374, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 1, - "Command": "Get-PnPAzureADGroup" - }, - { - "Id": 375, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 2, - "Command": "Get-PnPAzureADGroup -Identity $groupId" - }, - { - "Id": 376, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 3, - "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName" - }, - { - "Id": 377, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 4, - "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName" - }, - { - "Id": 378, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 5, - "Command": "Get-PnPAzureADGroup -Identity $group" - }, - { - "Id": 379, - "CommandName": "Get-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Get-PnPAzureADGroupMember -Identity $groupId" - }, - { - "Id": 380, - "CommandName": "Get-PnPAzureADGroupMember", - "Rank": 2, - "Command": "Get-PnPAzureADGroupMember -Identity $group" - }, - { - "Id": 381, - "CommandName": "Get-PnPAzureADGroupOwner", - "Rank": 1, - "Command": "Get-PnPAzureADGroupOwner -Identity $groupId" - }, - { - "Id": 382, - "CommandName": "Get-PnPAzureADGroupOwner", - "Rank": 2, - "Command": "Get-PnPAzureADGroupOwner -Identity $group" - }, - { - "Id": 383, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipal" - }, - { - "Id": 384, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e" - }, - { - "Id": 385, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 3, - "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec" - }, - { - "Id": 386, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 4, - "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"" - }, - { - "Id": 387, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 5, - "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"" - }, - { - "Id": 388, - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" - }, - { - "Id": 389, - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" - }, - { - "Id": 390, - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", - "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" - }, - { - "Id": 391, - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", - "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"" - }, - { - "Id": 392, - "CommandName": "Get-PnPAzureADUser", - "Rank": 1, - "Command": "Get-PnPAzureADUser" - }, - { - "Id": 393, - "CommandName": "Get-PnPAzureADUser", - "Rank": 2, - "Command": "Get-PnPAzureADUser -EndIndex 50" - }, - { - "Id": 394, - "CommandName": "Get-PnPAzureADUser", - "Rank": 3, - "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" - }, - { - "Id": 395, - "CommandName": "Get-PnPAzureADUser", - "Rank": 4, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com" - }, - { - "Id": 396, - "CommandName": "Get-PnPAzureADUser", - "Rank": 5, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"" - }, - { - "Id": 397, - "CommandName": "Get-PnPAzureADUser", - "Rank": 6, - "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"" - }, - { - "Id": 398, - "CommandName": "Get-PnPAzureADUser", - "Rank": 7, - "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"" - }, - { - "Id": 399, - "CommandName": "Get-PnPAzureADUser", - "Rank": 8, - "Command": "Get-PnPAzureADUser -Delta" - }, - { - "Id": 400, - "CommandName": "Get-PnPAzureADUser", - "Rank": 9, - "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef" - }, - { - "Id": 401, - "CommandName": "Get-PnPAzureADUser", - "Rank": 10, - "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20" - }, - { - "Id": 402, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 1, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"" - }, - { - "Id": 403, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 2, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" - }, - { - "Id": 404, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 3, - "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip" - }, - { - "Id": 405, - "CommandName": "Get-PnPBrowserIdleSignout", - "Rank": 1, - "Command": "Get-PnPBrowserIdleSignout" - }, - { - "Id": 406, - "CommandName": "Get-PnPBuiltInDesignPackageVisibility", - "Rank": 1, - "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase" - }, - { - "Id": 407, - "CommandName": "Get-PnPBuiltInDesignPackageVisibility", - "Rank": 2, - "Command": "Get-PnPBuiltInDesignPackageVisibility" - }, - { - "Id": 408, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 1, - "Command": "Get-PnPBuiltInSiteTemplateSettings" - }, - { - "Id": 409, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 2, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344" - }, - { - "Id": 410, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 3, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement" - }, - { - "Id": 411, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 4, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000" - }, - { - "Id": 412, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 5, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All" - }, - { - "Id": 413, - "CommandName": "Get-PnPChangeLog", - "Rank": 1, - "Command": "Get-PnPChangeLog" - }, - { - "Id": 414, - "CommandName": "Get-PnPChangeLog", - "Rank": 2, - "Command": "Get-PnPChangeLog -Nightly" - }, - { - "Id": 415, - "CommandName": "Get-PnPCompatibleHubContentTypes", - "Rank": 1, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'" - }, - { - "Id": 416, - "CommandName": "Get-PnPCompatibleHubContentTypes", - "Rank": 2, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'" - }, - { - "Id": 417, - "CommandName": "Get-PnPContainer", - "Rank": 1, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996" - }, - { - "Id": 418, - "CommandName": "Get-PnPContainer", - "Rank": 2, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" - }, - { - "Id": 419, - "CommandName": "Get-PnPContainer", - "Rank": 3, - "Command": "Get-PnPContainer -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\" -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" - }, - { - "Id": 420, - "CommandName": "Get-PnPContentType", - "Rank": 1, - "Command": "Get-PnPContentType" - }, - { - "Id": 421, - "CommandName": "Get-PnPContentType", - "Rank": 2, - "Command": "Get-PnPContentType -InSiteHierarchy" - }, - { - "Id": 422, - "CommandName": "Get-PnPContentType", - "Rank": 3, - "Command": "Get-PnPContentType -Identity \"Project Document\"" - }, - { - "Id": 423, - "CommandName": "Get-PnPContentType", - "Rank": 4, - "Command": "Get-PnPContentType -List \"Documents\"" - }, - { - "Id": 424, - "CommandName": "Get-PnPContentType", - "Rank": 5, - "Command": "Get-PnPContentType -Includes \"SchemaXml\"" - }, - { - "Id": 425, - "CommandName": "Get-PnPContentTypePublishingStatus", - "Rank": 1, - "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101" - }, - { - "Id": 426, - "CommandName": "Get-PnPCustomAction", - "Rank": 1, - "Command": "Get-PnPCustomAction" - }, - { - "Id": 427, - "CommandName": "Get-PnPCustomAction", - "Rank": 2, - "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" - }, - { - "Id": 428, - "CommandName": "Get-PnPCustomAction", - "Rank": 3, - "Command": "Get-PnPCustomAction -Scope web" - }, - { - "Id": 429, - "CommandName": "Get-PnPDeletedMicrosoft365Group", - "Rank": 1, - "Command": "Get-PnPDeletedMicrosoft365Group" - }, - { - "Id": 430, - "CommandName": "Get-PnPDeletedMicrosoft365Group", - "Rank": 2, - "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" - }, - { - "Id": 431, - "CommandName": "Get-PnPDeletedTeam", - "Rank": 1, - "Command": "Get-PnPDeletedTeam" - }, - { - "Id": 432, - "CommandName": "Get-PnPDiagnostics", - "Rank": 1, - "Command": "Get-PnPDiagnostics" - }, - { - "Id": 433, - "CommandName": "Get-PnPDisableSpacesActivation", - "Rank": 1, - "Command": "Get-PnPDisableSpacesActivation" - }, - { - "Id": 434, - "CommandName": "Get-PnPDocumentSetTemplate", - "Rank": 1, - "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"" - }, - { - "Id": 435, - "CommandName": "Get-PnPDocumentSetTemplate", - "Rank": 2, - "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"" - }, - { - "Id": 436, - "CommandName": "Get-PnPEventReceiver", - "Rank": 1, - "Command": "Get-PnPEventReceiver" - }, - { - "Id": 437, - "CommandName": "Get-PnPEventReceiver", - "Rank": 2, - "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" - }, - { - "Id": 438, - "CommandName": "Get-PnPEventReceiver", - "Rank": 3, - "Command": "Get-PnPEventReceiver -Identity MyReceiver" - }, - { - "Id": 439, - "CommandName": "Get-PnPEventReceiver", - "Rank": 4, - "Command": "Get-PnPEventReceiver -List \"ProjectList\"" - }, - { - "Id": 440, - "CommandName": "Get-PnPEventReceiver", - "Rank": 5, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" - }, - { - "Id": 441, - "CommandName": "Get-PnPEventReceiver", - "Rank": 6, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver" - }, - { - "Id": 442, - "CommandName": "Get-PnPEventReceiver", - "Rank": 7, - "Command": "Get-PnPEventReceiver -Scope Site" - }, - { - "Id": 443, - "CommandName": "Get-PnPEventReceiver", - "Rank": 8, - "Command": "Get-PnPEventReceiver -Scope Web" - }, - { - "Id": 444, - "CommandName": "Get-PnPEventReceiver", - "Rank": 9, - "Command": "Get-PnPEventReceiver -Scope All" - }, - { - "Id": 445, - "CommandName": "Get-PnPException", - "Rank": 1, - "Command": "Get-PnPException" - }, - { - "Id": 446, - "CommandName": "Get-PnPException", - "Rank": 2, - "Command": "Get-PnPException -All" - }, - { - "Id": 447, - "CommandName": "Get-PnPExternalUser", - "Rank": 1, - "Command": "Get-PnPExternalUser -Position 0 -PageSize 2" - }, - { - "Id": 448, - "CommandName": "Get-PnPExternalUser", - "Rank": 2, - "Command": "Get-PnPExternalUser -Position 2 -PageSize 2" - }, - { - "Id": 449, - "CommandName": "Get-PnPFeature", - "Rank": 1, - "Command": "Get-PnPFeature" - }, - { - "Id": 450, - "CommandName": "Get-PnPFeature", - "Rank": 2, - "Command": "Get-PnPFeature -Scope Site" - }, - { - "Id": 451, - "CommandName": "Get-PnPFeature", - "Rank": 3, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" - }, - { - "Id": 452, - "CommandName": "Get-PnPFeature", - "Rank": 4, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site" - }, - { - "Id": 453, - "CommandName": "Get-PnPField", - "Rank": 1, - "Command": "Get-PnPField" - }, - { - "Id": 454, - "CommandName": "Get-PnPField", - "Rank": 2, - "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"" - }, - { - "Id": 455, - "CommandName": "Get-PnPField", - "Rank": 3, - "Command": "Get-PnPField -Group \"Custom Columns\"" - }, - { - "Id": 456, - "CommandName": "Get-PnPFile", - "Rank": 1, - "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"" - }, - { - "Id": 457, - "CommandName": "Get-PnPFile", - "Rank": 2, - "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile" - }, - { - "Id": 458, - "CommandName": "Get-PnPFile", - "Rank": 3, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString" - }, - { - "Id": 459, - "CommandName": "Get-PnPFile", - "Rank": 4, - "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject" - }, - { - "Id": 460, - "CommandName": "Get-PnPFile", - "Rank": 5, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem" - }, - { - "Id": 461, - "CommandName": "Get-PnPFile", - "Rank": 6, - "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile" - }, - { - "Id": 462, - "CommandName": "Get-PnPFile", - "Rank": 7, - "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream" - }, - { - "Id": 463, - "CommandName": "Get-PnPFileInFolder", - "Rank": 1, - "Command": "Get-PnPFileInFolder" - }, - { - "Id": 464, - "CommandName": "Get-PnPFileInFolder", - "Rank": 2, - "Command": "Get-PnPFileInFolder -Recurse" - }, - { - "Id": 465, - "CommandName": "Get-PnPFileInFolder", - "Rank": 3, - "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"" - }, - { - "Id": 466, - "CommandName": "Get-PnPFileInFolder", - "Rank": 4, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" - }, - { - "Id": 467, - "CommandName": "Get-PnPFileInFolder", - "Rank": 5, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" - }, - { - "Id": 468, - "CommandName": "Get-PnPFileSharingLink", - "Rank": 1, - "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" - }, - { - "Id": 469, - "CommandName": "Get-PnPFileVersion", - "Rank": 1, - "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx" - }, - { - "Id": 470, - "CommandName": "Get-PnPFileVersion", - "Rank": 2, - "Command": "Get-PnPFileVersion -Url \"/sites/blah/Shared Documents/MyDocument.docx\"" - }, - { - "Id": 471, - "CommandName": "Get-PnPFlow", - "Rank": 1, - "Command": "Get-PnPFlow -AsAdmin" - }, - { - "Id": 472, - "CommandName": "Get-PnPFlow", - "Rank": 2, - "Command": "Get-PnPFlow -SharingStatus SharedWithMe" - }, - { - "Id": 473, - "CommandName": "Get-PnPFlow", - "Rank": 3, - "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182" - }, - { - "Id": 474, - "CommandName": "Get-PnPFlowOwner", - "Rank": 1, - "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30" - }, - { - "Id": 475, - "CommandName": "Get-PnPFolder", - "Rank": 1, - "Command": "Get-PnPFolder" - }, - { - "Id": 476, - "CommandName": "Get-PnPFolder", - "Rank": 2, - "Command": "Get-PnPFolder -CurrentWebRootFolder" - }, - { - "Id": 477, - "CommandName": "Get-PnPFolder", - "Rank": 3, - "Command": "Get-PnPFolder -Url \"Shared Documents\"" - }, - { - "Id": 478, - "CommandName": "Get-PnPFolder", - "Rank": 4, - "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"" - }, - { - "Id": 479, - "CommandName": "Get-PnPFolder", - "Rank": 5, - "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"" - }, - { - "Id": 480, - "CommandName": "Get-PnPFolder", - "Rank": 6, - "Command": "Get-PnPFolder -List \"Shared Documents\"" - }, - { - "Id": 481, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 1, - "Command": "Get-PnPFolderInFolder" - }, - { - "Id": 482, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 2, - "Command": "Get-PnPFolderInFolder -Recurse" - }, - { - "Id": 483, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 3, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"" - }, - { - "Id": 484, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 4, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders" - }, - { - "Id": 485, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 5, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"" - }, - { - "Id": 486, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 6, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" - }, - { - "Id": 487, - "CommandName": "Get-PnPFolderItem", - "Rank": 1, - "Command": "Get-PnPFolderItem" - }, - { - "Id": 488, - "CommandName": "Get-PnPFolderItem", - "Rank": 2, - "Command": "Get-PnPFolderItem -Recurse" - }, - { - "Id": 489, - "CommandName": "Get-PnPFolderItem", - "Rank": 3, - "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"" - }, - { - "Id": 490, - "CommandName": "Get-PnPFolderItem", - "Rank": 4, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" - }, - { - "Id": 491, - "CommandName": "Get-PnPFolderItem", - "Rank": 5, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder" - }, - { - "Id": 492, - "CommandName": "Get-PnPFolderItem", - "Rank": 6, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive" - }, - { - "Id": 493, - "CommandName": "Get-PnPFolderSharingLink", - "Rank": 1, - "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" - }, - { - "Id": 494, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 1, - "Command": "Get-PnPFolderStorageMetric" - }, - { - "Id": 495, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 2, - "Command": "Get-PnPFolderStorageMetric -List \"Documents\"" - }, - { - "Id": 496, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 3, - "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"" - }, - { - "Id": 497, - "CommandName": "Get-PnPFooter", - "Rank": 1, - "Command": "Get-PnPFooter" - }, - { - "Id": 498, - "CommandName": "Get-PnPGraphAccessToken", - "Rank": 1, - "Command": "Get-PnPGraphAccessToken" - }, - { - "Id": 499, - "CommandName": "Get-PnPGraphAccessToken", - "Rank": 2, - "Command": "Get-PnPGraphAccessToken -Decoded" - }, - { - "Id": 500, - "CommandName": "Get-PnPGraphSubscription", - "Rank": 1, - "Command": "Get-PnPGraphSubscription" - }, - { - "Id": 501, - "CommandName": "Get-PnPGraphSubscription", - "Rank": 2, - "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" - }, - { - "Id": 502, - "CommandName": "Get-PnPGroup", - "Rank": 1, - "Command": "Get-PnPGroup" - }, - { - "Id": 503, - "CommandName": "Get-PnPGroup", - "Rank": 2, - "Command": "Get-PnPGroup -Identity 'My Site Users'" - }, - { - "Id": 504, - "CommandName": "Get-PnPGroup", - "Rank": 3, - "Command": "Get-PnPGroup -AssociatedMemberGroup" - }, - { - "Id": 505, - "CommandName": "Get-PnPGroupMember", - "Rank": 1, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"" - }, - { - "Id": 506, - "CommandName": "Get-PnPGroupMember", - "Rank": 2, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"" - }, - { - "Id": 507, - "CommandName": "Get-PnPGroupPermissions", - "Rank": 1, - "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'" - }, - { - "Id": 508, - "CommandName": "Get-PnPHideDefaultThemes", - "Rank": 1, - "Command": "Get-PnPHideDefaultThemes" - }, - { - "Id": 509, - "CommandName": "Get-PnPHomePage", - "Rank": 1, - "Command": "Get-PnPHomePage" - }, - { - "Id": 510, - "CommandName": "Get-PnPHomeSite", - "Rank": 1, - "Command": "Get-PnPHomeSite" - }, - { - "Id": 511, - "CommandName": "Get-PnPHomeSite", - "Rank": 2, - "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled" - }, - { - "Id": 512, - "CommandName": "Get-PnPHomeSite", - "Rank": 3, - "Command": "Get-PnPHomeSite -Detailed" - }, - { - "Id": 513, - "CommandName": "Get-PnPHubSite", - "Rank": 1, - "Command": "Get-PnPHubSite" - }, - { - "Id": 514, - "CommandName": "Get-PnPHubSite", - "Rank": 2, - "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" - }, - { - "Id": 515, - "CommandName": "Get-PnPHubSite", - "Rank": 3, - "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"" - }, - { - "Id": 516, - "CommandName": "Get-PnPHubSiteChild", - "Rank": 1, - "Command": "Get-PnPHubSiteChild" - }, - { - "Id": 517, - "CommandName": "Get-PnPHubSiteChild", - "Rank": 2, - "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" - }, - { - "Id": 518, - "CommandName": "Get-PnPInPlaceRecordsManagement", - "Rank": 1, - "Command": "Get-PnPInPlaceRecordsManagement" - }, - { - "Id": 519, - "CommandName": "Get-PnPIsSiteAliasAvailable", - "Rank": 1, - "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"" - }, - { - "Id": 520, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 1, - "Command": "Get-PnPJavaScriptLink" - }, - { - "Id": 521, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 2, - "Command": "Get-PnPJavaScriptLink -Scope All" - }, - { - "Id": 522, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 3, - "Command": "Get-PnPJavaScriptLink -Scope Web" - }, - { - "Id": 523, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 4, - "Command": "Get-PnPJavaScriptLink -Scope Site" - }, - { - "Id": 524, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 5, - "Command": "Get-PnPJavaScriptLink -Name Test" - }, - { - "Id": 525, - "CommandName": "Get-PnPKnowledgeHubSite", - "Rank": 1, - "Command": "Get-PnPKnowledgeHubSite" - }, - { - "Id": 526, - "CommandName": "Get-PnPLabel", - "Rank": 1, - "Command": "Get-PnPLabel" - }, - { - "Id": 527, - "CommandName": "Get-PnPLabel", - "Rank": 2, - "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly" - }, - { - "Id": 528, - "CommandName": "Get-PnPLargeListOperationStatus", - "Rank": 1, - "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481" - }, - { - "Id": 529, - "CommandName": "Get-PnPList", - "Rank": 1, - "Command": "Get-PnPList" - }, - { - "Id": 530, - "CommandName": "Get-PnPList", - "Rank": 2, - "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 531, - "CommandName": "Get-PnPList", - "Rank": 3, - "Command": "Get-PnPList -Identity Lists/Announcements" - }, - { - "Id": 532, - "CommandName": "Get-PnPList", - "Rank": 4, - "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}" - }, - { - "Id": 533, - "CommandName": "Get-PnPList", - "Rank": 5, - "Command": "Get-PnPList -Includes HasUniqueRoleAssignments" - }, - { - "Id": 534, - "CommandName": "Get-PnPListDesign", - "Rank": 1, - "Command": "Get-PnPListDesign" - }, - { - "Id": 535, - "CommandName": "Get-PnPListDesign", - "Rank": 2, - "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 536, - "CommandName": "Get-PnPListDesign", - "Rank": 3, - "Command": "Get-PnPListDesign -Identity ListEvent" - }, - { - "Id": 537, - "CommandName": "Get-PnPListInformationRightsManagement", - "Rank": 1, - "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"" - }, - { - "Id": 538, - "CommandName": "Get-PnPListItem", - "Rank": 1, - "Command": "Get-PnPListItem -List Tasks" - }, - { - "Id": 539, - "CommandName": "Get-PnPListItem", - "Rank": 2, - "Command": "Get-PnPListItem -List Tasks -Id 1" - }, - { - "Id": 540, - "CommandName": "Get-PnPListItem", - "Rank": 3, - "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3" - }, - { - "Id": 541, - "CommandName": "Get-PnPListItem", - "Rank": 4, - "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"" - }, - { - "Id": 542, - "CommandName": "Get-PnPListItem", - "Rank": 5, - "Command": "Get-PnPListItem -List Tasks -Query \"\"" - }, - { - "Id": 543, - "CommandName": "Get-PnPListItem", - "Rank": 6, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000" - }, - { - "Id": 544, - "CommandName": "Get-PnPListItem", - "Rank": 7, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }" - }, - { - "Id": 545, - "CommandName": "Get-PnPListItem", - "Rank": 8, - "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"" - }, - { - "Id": 546, - "CommandName": "Get-PnPListItem", - "Rank": 9, - "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType" - }, - { - "Id": 547, - "CommandName": "Get-PnPListItemAttachment", - "Rank": 1, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"" - }, - { - "Id": 548, - "CommandName": "Get-PnPListItemAttachment", - "Rank": 2, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force" - }, - { - "Id": 549, - "CommandName": "Get-PnPListItemComment", - "Rank": 1, - "Command": "Get-PnPListItemComment -List Tasks -Identity 1" - }, - { - "Id": 550, - "CommandName": "Get-PnPListItemPermission", - "Rank": 1, - "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1" - }, - { - "Id": 551, - "CommandName": "Get-PnPListItemVersion", - "Rank": 1, - "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1" - }, - { - "Id": 552, - "CommandName": "Get-PnPListPermissions", - "Rank": 1, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60" - }, - { - "Id": 553, - "CommandName": "Get-PnPListPermissions", - "Rank": 2, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" - }, - { - "Id": 554, - "CommandName": "Get-PnPListRecordDeclaration", - "Rank": 1, - "Command": "Get-PnPListRecordDeclaration -List \"Documents\"" - }, - { - "Id": 555, - "CommandName": "Get-PnPMasterPage", - "Rank": 1, - "Command": "Get-PnPMasterPage" - }, - { - "Id": 556, - "CommandName": "Get-PnPMessageCenterAnnouncement", - "Rank": 1, - "Command": "Get-PnPMessageCenterAnnouncement" - }, - { - "Id": 557, - "CommandName": "Get-PnPMessageCenterAnnouncement", - "Rank": 2, - "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"" - }, - { - "Id": 558, - "CommandName": "Get-PnPMicrosoft365ExpiringGroup", - "Rank": 1, - "Command": "Get-PnPMicrosoft365ExpiringGroup" - }, - { - "Id": 559, - "CommandName": "Get-PnPMicrosoft365ExpiringGroup", - "Rank": 2, - "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93" - }, - { - "Id": 560, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 1, - "Command": "Get-PnPMicrosoft365Group" - }, - { - "Id": 561, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 2, - "Command": "Get-PnPMicrosoft365Group -Identity $groupId" - }, - { - "Id": 562, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 3, - "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName" - }, - { - "Id": 563, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 4, - "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName" - }, - { - "Id": 564, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 5, - "Command": "Get-PnPMicrosoft365Group -Identity $group" - }, - { - "Id": 565, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 6, - "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl" - }, - { - "Id": 566, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupEndpoint" - }, - { - "Id": 567, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"" - }, - { - "Id": 568, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" - }, - { - "Id": 569, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId" - }, - { - "Id": 570, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $group" - }, - { - "Id": 571, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest" - }, - { - "Id": 572, - "CommandName": "Get-PnPMicrosoft365GroupOwner", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId" - }, - { - "Id": 573, - "CommandName": "Get-PnPMicrosoft365GroupOwner", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group" - }, - { - "Id": 574, - "CommandName": "Get-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupSettings" - }, - { - "Id": 575, - "CommandName": "Get-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId" - }, - { - "Id": 576, - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates" - }, - { - "Id": 577, - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"" - }, - { - "Id": 578, - "CommandName": "Get-PnPMicrosoft365GroupTeam", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupTeam" - }, - { - "Id": 579, - "CommandName": "Get-PnPMicrosoft365GroupTeam", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"" - }, - { - "Id": 580, - "CommandName": "Get-PnPMicrosoft365GroupTeam", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" - }, - { - "Id": 581, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity" - }, - { - "Id": 582, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"" - }, - { - "Id": 583, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" - }, - { - "Id": 584, - "CommandName": "Get-PnPNavigationNode", - "Rank": 1, - "Command": "Get-PnPNavigationNode" - }, - { - "Id": 585, - "CommandName": "Get-PnPNavigationNode", - "Rank": 2, - "Command": "Get-PnPNavigationNode -Location QuickLaunch" - }, - { - "Id": 586, - "CommandName": "Get-PnPNavigationNode", - "Rank": 3, - "Command": "Get-PnPNavigationNode -Location TopNavigationBar" - }, - { - "Id": 587, - "CommandName": "Get-PnPOrgAssetsLibrary", - "Rank": 1, - "Command": "Get-PnPOrgAssetsLibrary" - }, - { - "Id": 588, - "CommandName": "Get-PnPOrgNewsSite", - "Rank": 1, - "Command": "Get-PnPOrgNewsSite" - }, - { - "Id": 589, - "CommandName": "Get-PnPPage", - "Rank": 1, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\"" - }, - { - "Id": 590, - "CommandName": "Get-PnPPage", - "Rank": 2, - "Command": "Get-PnPPage \"MyPage\"" - }, - { - "Id": 591, - "CommandName": "Get-PnPPage", - "Rank": 3, - "Command": "Get-PnPPage \"Templates/MyPageTemplate\"" - }, - { - "Id": 592, - "CommandName": "Get-PnPPage", - "Rank": 4, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")" - }, - { - "Id": 593, - "CommandName": "Get-PnPPageComponent", - "Rank": 1, - "Command": "Get-PnPPageComponent -Page Home" - }, - { - "Id": 594, - "CommandName": "Get-PnPPageComponent", - "Rank": 2, - "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" - }, - { - "Id": 595, - "CommandName": "Get-PnPPageComponent", - "Rank": 3, - "Command": "Get-PnPPageComponent -Page Home -ListAvailable" - }, - { - "Id": 596, - "CommandName": "Get-PnPPlannerBucket", - "Rank": 1, - "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"" - }, - { - "Id": 597, - "CommandName": "Get-PnPPlannerConfiguration", - "Rank": 1, - "Command": "Get-PnPPlannerConfiguration" - }, - { - "Id": 598, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 1, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\"" - }, - { - "Id": 599, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 2, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"" - }, - { - "Id": 600, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 3, - "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities" - }, - { - "Id": 601, - "CommandName": "Get-PnPPlannerRosterMember", - "Rank": 1, - "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"" - }, - { - "Id": 602, - "CommandName": "Get-PnPPlannerRosterPlan", - "Rank": 1, - "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"" - }, - { - "Id": 603, - "CommandName": "Get-PnPPlannerRosterPlan", - "Rank": 2, - "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"" - }, - { - "Id": 604, - "CommandName": "Get-PnPPlannerTask", - "Rank": 1, - "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"" - }, - { - "Id": 605, - "CommandName": "Get-PnPPlannerTask", - "Rank": 2, - "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" - }, - { - "Id": 606, - "CommandName": "Get-PnPPlannerTask", - "Rank": 3, - "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" - }, - { - "Id": 607, - "CommandName": "Get-PnPPlannerUserPolicy", - "Rank": 1, - "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" - }, - { - "Id": 608, - "CommandName": "Get-PnPPowerPlatformConnector", - "Rank": 1, - "Command": "Get-PnPPowerPlatformConnector -Environment (Get-PnPPowerPlatformEnvironment)" - }, - { - "Id": 609, - "CommandName": "Get-PnPPowerPlatformEnvironment", - "Rank": 1, - "Command": "Get-PnPPowerPlatformEnvironment" - }, - { - "Id": 610, - "CommandName": "Get-PnPPowerPlatformEnvironment", - "Rank": 2, - "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true" - }, - { - "Id": 611, - "CommandName": "Get-PnPPowerPlatformEnvironment", - "Rank": 3, - "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"" - }, - { - "Id": 612, - "CommandName": "Get-PnPPowerShellTelemetryEnabled", - "Rank": 1, - "Command": "Get-PnPPowerShellTelemetryEnabled" - }, - { - "Id": 613, - "CommandName": "Get-PnPPropertyBag", - "Rank": 1, - "Command": "Get-PnPPropertyBag" - }, - { - "Id": 614, - "CommandName": "Get-PnPPropertyBag", - "Rank": 2, - "Command": "Get-PnPPropertyBag -Key MyKey" - }, - { - "Id": 615, - "CommandName": "Get-PnPPropertyBag", - "Rank": 3, - "Command": "Get-PnPPropertyBag -Folder /MyFolder" - }, - { - "Id": 616, - "CommandName": "Get-PnPPropertyBag", - "Rank": 4, - "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey" - }, - { - "Id": 617, - "CommandName": "Get-PnPPropertyBag", - "Rank": 5, - "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey" - }, - { - "Id": 618, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 1, - "Command": "Get-PnPPublishingImageRendition" - }, - { - "Id": 619, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 2, - "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"" - }, - { - "Id": 620, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 3, - "Command": "Get-PnPPublishingImageRendition -Identity 2" - }, - { - "Id": 621, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 1, - "Command": "Get-PnPRecycleBinItem" - }, - { - "Id": 622, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 2, - "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2" - }, - { - "Id": 623, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 3, - "Command": "Get-PnPRecycleBinItem -FirstStage" - }, - { - "Id": 624, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 4, - "Command": "Get-PnPRecycleBinItem -SecondStage" - }, - { - "Id": 625, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 5, - "Command": "Get-PnPRecycleBinItem -RowLimit 10000" - }, - { - "Id": 626, - "CommandName": "Get-PnPRequestAccessEmails", - "Rank": 1, - "Command": "Get-PnPRequestAccessEmails" - }, - { - "Id": 627, - "CommandName": "Get-PnPRetentionLabel", - "Rank": 1, - "Command": "Get-PnPRetentionLabel" - }, - { - "Id": 628, - "CommandName": "Get-PnPRetentionLabel", - "Rank": 2, - "Command": "Get-PnPRetentionLabel -Identity 58f77809-9738-5080-90f1-gh7afeba2995" - }, - { - "Id": 629, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 1, - "Command": "Get-PnPRoleDefinition" - }, - { - "Id": 630, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 2, - "Command": "Get-PnPRoleDefinition -Identity Read" - }, - { - "Id": 631, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 3, - "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }" - }, - { - "Id": 632, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 1, - "Command": "Get-PnPSearchConfiguration" - }, - { - "Id": 633, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 2, - "Command": "Get-PnPSearchConfiguration -Scope Site" - }, - { - "Id": 634, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 3, - "Command": "Get-PnPSearchConfiguration -Scope Subscription" - }, - { - "Id": 635, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 4, - "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" - }, - { - "Id": 636, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 5, - "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings" - }, - { - "Id": 637, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 6, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv" - }, - { - "Id": 638, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 7, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published" - }, - { - "Id": 639, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 8, - "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false" - }, - { - "Id": 640, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 1, - "Command": "Get-PnPSearchCrawlLog" - }, - { - "Id": 641, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 2, - "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"" - }, - { - "Id": 642, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 3, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles" - }, - { - "Id": 643, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 4, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"" - }, - { - "Id": 644, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 5, - "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10" - }, - { - "Id": 645, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 6, - "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)" - }, - { - "Id": 646, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 7, - "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat" - }, - { - "Id": 647, - "CommandName": "Get-PnPSearchSettings", - "Rank": 1, - "Command": "Get-PnPSearchSettings" - }, - { - "Id": 648, - "CommandName": "Get-PnPServiceCurrentHealth", - "Rank": 1, - "Command": "Get-PnPServiceCurrentHealth" - }, - { - "Id": 649, - "CommandName": "Get-PnPServiceCurrentHealth", - "Rank": 2, - "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"" - }, - { - "Id": 650, - "CommandName": "Get-PnPServiceHealthIssue", - "Rank": 1, - "Command": "Get-PnPServiceHealthIssue" - }, - { - "Id": 651, - "CommandName": "Get-PnPServiceHealthIssue", - "Rank": 2, - "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"" - }, - { - "Id": 652, - "CommandName": "Get-PnPSharePointAddIn", - "Rank": 1, - "Command": "Get-PnPSharePointAddIn" - }, - { - "Id": 653, - "CommandName": "Get-PnPSharePointAddIn", - "Rank": 2, - "Command": "Get-PnPSharePointAddIn -IncludeSubsites" - }, - { - "Id": 654, - "CommandName": "Get-PnPSharingForNonOwnersOfSite", - "Rank": 1, - "Command": "Get-PnPSharingForNonOwnersOfSite" - }, - { - "Id": 655, - "CommandName": "Get-PnPSite", - "Rank": 1, - "Command": "Get-PnPSite" - }, - { - "Id": 656, - "CommandName": "Get-PnPSite", - "Rank": 2, - "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl" - }, - { - "Id": 657, - "CommandName": "Get-PnPSiteClosure", - "Rank": 1, - "Command": "Get-PnPSiteClosure" - }, - { - "Id": 658, - "CommandName": "Get-PnPSiteCollectionAdmin", - "Rank": 1, - "Command": "Get-PnPSiteCollectionAdmin" - }, - { - "Id": 659, - "CommandName": "Get-PnPSiteCollectionAppCatalog", - "Rank": 1, - "Command": "Get-PnPSiteCollectionAppCatalog" - }, - { - "Id": 660, - "CommandName": "Get-PnPSiteCollectionAppCatalog", - "Rank": 2, - "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite" - }, - { - "Id": 661, - "CommandName": "Get-PnPSiteCollectionAppCatalog", - "Rank": 3, - "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites" - }, - { - "Id": 662, - "CommandName": "Get-PnPSiteCollectionTermStore", - "Rank": 1, - "Command": "Get-PnPSiteCollectionTermStore" - }, - { - "Id": 663, - "CommandName": "Get-PnPSiteDesign", - "Rank": 1, - "Command": "Get-PnPSiteDesign" - }, - { - "Id": 664, - "CommandName": "Get-PnPSiteDesign", - "Rank": 2, - "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 665, - "CommandName": "Get-PnPSiteDesignRights", - "Rank": 1, - "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 666, - "CommandName": "Get-PnPSiteDesignRun", - "Rank": 1, - "Command": "Get-PnPSiteDesignRun" - }, - { - "Id": 667, - "CommandName": "Get-PnPSiteDesignRun", - "Rank": 2, - "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"" - }, - { - "Id": 668, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 1, - "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82" - }, - { - "Id": 669, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 2, - "Command": "Get-PnPSiteDesignTask" - }, - { - "Id": 670, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 3, - "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"" - }, - { - "Id": 671, - "CommandName": "Get-PnPSiteGroup", - "Rank": 1, - "Command": "Get-PnPSiteGroup" - }, - { - "Id": 672, - "CommandName": "Get-PnPSiteGroup", - "Rank": 2, - "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"" - }, - { - "Id": 673, - "CommandName": "Get-PnPSiteGroup", - "Rank": 3, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"" - }, - { - "Id": 674, - "CommandName": "Get-PnPSiteGroup", - "Rank": 4, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"" - }, - { - "Id": 675, - "CommandName": "Get-PnPSitePolicy", - "Rank": 1, - "Command": "Get-PnPSitePolicy" - }, - { - "Id": 676, - "CommandName": "Get-PnPSitePolicy", - "Rank": 2, - "Command": "Get-PnPSitePolicy -AllAvailable" - }, - { - "Id": 677, - "CommandName": "Get-PnPSitePolicy", - "Rank": 3, - "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"" - }, - { - "Id": 678, - "CommandName": "Get-PnPSiteScript", - "Rank": 1, - "Command": "Get-PnPSiteScript" - }, - { - "Id": 679, - "CommandName": "Get-PnPSiteScript", - "Rank": 2, - "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 680, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 1, - "Command": "Get-PnPSiteScriptFromList -List \"MyList\"" - }, - { - "Id": 681, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 2, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"" - }, - { - "Id": 682, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 3, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"" - }, - { - "Id": 683, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 1, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAll" - }, - { - "Id": 684, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 2, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll" - }, - { - "Id": 685, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 3, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"" - }, - { - "Id": 686, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 4, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems" - }, - { - "Id": 687, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 5, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists" - }, - { - "Id": 688, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 6, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite" - }, - { - "Id": 689, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 1, - "Command": "Get-PnPSiteSearchQueryResults" - }, - { - "Id": 690, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 2, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"" - }, - { - "Id": 691, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 3, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"" - }, - { - "Id": 692, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 4, - "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"" - }, - { - "Id": 693, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 5, - "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10" - }, - { - "Id": 694, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 6, - "Command": "Get-PnPSiteSearchQueryResults -All" - }, - { - "Id": 695, - "CommandName": "Get-PnPSiteSensitivityLabel", - "Rank": 1, - "Command": "Get-PnPSiteSensitivityLabel" - }, - { - "Id": 696, - "CommandName": "Get-PnPSiteSetVersionPolicyProgress", - "Rank": 1, - "Command": "Get-PnPSiteSetVersionPolicyProgress" - }, - { - "Id": 697, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 1, - "Command": "Get-PnPSiteTemplate -Out template.pnp" - }, - { - "Id": 698, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 2, - "Command": "Get-PnPSiteTemplate -Out template.xml" - }, - { - "Id": 699, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 3, - "Command": "Get-PnPSiteTemplate -Out template.md" - }, - { - "Id": 700, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 4, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503" - }, - { - "Id": 701, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 5, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups" - }, - { - "Id": 702, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 6, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup" - }, - { - "Id": 703, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 7, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles" - }, - { - "Id": 704, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 8, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity" - }, - { - "Id": 705, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 9, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources" - }, - { - "Id": 706, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 10, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources" - }, - { - "Id": 707, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 11, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"" - }, - { - "Id": 708, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 12, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication" - }, - { - "Id": 709, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 13, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"" - }, - { - "Id": 710, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 14, - "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources" - }, - { - "Id": 711, - "CommandName": "Get-PnPSiteUserInvitations", - "Rank": 1, - "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" - }, - { - "Id": 712, - "CommandName": "Get-PnPSiteVersionPolicy", - "Rank": 1, - "Command": "Get-PnPSiteVersionPolicy" - }, - { - "Id": 713, - "CommandName": "Get-PnPStorageEntity", - "Rank": 1, - "Command": "Get-PnPStorageEntity" - }, - { - "Id": 714, - "CommandName": "Get-PnPStorageEntity", - "Rank": 2, - "Command": "Get-PnPStorageEntity -Key MyKey" - }, - { - "Id": 715, - "CommandName": "Get-PnPStorageEntity", - "Rank": 3, - "Command": "Get-PnPStorageEntity -Scope Site" - }, - { - "Id": 716, - "CommandName": "Get-PnPStorageEntity", - "Rank": 4, - "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site" - }, - { - "Id": 717, - "CommandName": "Get-PnPStoredCredential", - "Rank": 1, - "Command": "Get-PnPStoredCredential -Name O365" - }, - { - "Id": 718, - "CommandName": "Get-PnPStructuralNavigationCacheSiteState", - "Rank": 1, - "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" - }, - { - "Id": 719, - "CommandName": "Get-PnPStructuralNavigationCacheWebState", - "Rank": 1, - "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" - }, - { - "Id": 720, - "CommandName": "Get-PnPSubscribeSharePointNewsDigest", - "Rank": 1, - "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'" - }, - { - "Id": 721, - "CommandName": "Get-PnPSubWeb", - "Rank": 1, - "Command": "Get-PnPSubWeb" - }, - { - "Id": 722, - "CommandName": "Get-PnPSubWeb", - "Rank": 2, - "Command": "Get-PnPSubWeb -Recurse" - }, - { - "Id": 723, - "CommandName": "Get-PnPSubWeb", - "Rank": 3, - "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description" - }, - { - "Id": 724, - "CommandName": "Get-PnPSubWeb", - "Rank": 4, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse" - }, - { - "Id": 725, - "CommandName": "Get-PnPSubWeb", - "Rank": 5, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb" - }, - { - "Id": 726, - "CommandName": "Get-PnPSyntexModel", - "Rank": 1, - "Command": "Get-PnPSyntexModel" - }, - { - "Id": 727, - "CommandName": "Get-PnPSyntexModel", - "Rank": 2, - "Command": "Get-PnPSyntexModel -Identity 1" - }, - { - "Id": 728, - "CommandName": "Get-PnPSyntexModel", - "Rank": 3, - "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"" - }, - { - "Id": 729, - "CommandName": "Get-PnPSyntexModelPublication", - "Rank": 1, - "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"" - }, - { - "Id": 730, - "CommandName": "Get-PnPTaxonomyItem", - "Rank": 1, - "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"" - }, - { - "Id": 731, - "CommandName": "Get-PnPTeamsApp", - "Rank": 1, - "Command": "Get-PnPTeamsApp" - }, - { - "Id": 732, - "CommandName": "Get-PnPTeamsApp", - "Rank": 2, - "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4" - }, - { - "Id": 733, - "CommandName": "Get-PnPTeamsApp", - "Rank": 3, - "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"" - }, - { - "Id": 734, - "CommandName": "Get-PnPTeamsChannel", - "Rank": 1, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8" - }, - { - "Id": 735, - "CommandName": "Get-PnPTeamsChannel", - "Rank": 2, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"" - }, - { - "Id": 736, - "CommandName": "Get-PnPTeamsChannel", - "Rank": 3, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" - }, - { - "Id": 737, - "CommandName": "Get-PnPTeamsChannelFilesFolder", - "Rank": 1, - "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"" - }, - { - "Id": 738, - "CommandName": "Get-PnPTeamsChannelFilesFolder", - "Rank": 2, - "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" - }, - { - "Id": 739, - "CommandName": "Get-PnPTeamsChannelMessage", - "Rank": 1, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"" - }, - { - "Id": 740, - "CommandName": "Get-PnPTeamsChannelMessage", - "Rank": 2, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293" - }, - { - "Id": 741, - "CommandName": "Get-PnPTeamsChannelMessageReply", - "Rank": 1, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted" - }, - { - "Id": 742, - "CommandName": "Get-PnPTeamsChannelMessageReply", - "Rank": 2, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630" - }, - { - "Id": 743, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 1, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"" - }, - { - "Id": 744, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 2, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member" - }, - { - "Id": 745, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 3, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com" - }, - { - "Id": 746, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 4, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" - }, - { - "Id": 747, - "CommandName": "Get-PnPTeamsPrimaryChannel", - "Rank": 1, - "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e" - }, - { - "Id": 748, - "CommandName": "Get-PnPTeamsPrimaryChannel", - "Rank": 2, - "Command": "Get-PnPTeamsPrimaryChannel -Team Sales" - }, - { - "Id": 749, - "CommandName": "Get-PnPTeamsTab", - "Rank": 1, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" - }, - { - "Id": 750, - "CommandName": "Get-PnPTeamsTab", - "Rank": 2, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"" - }, - { - "Id": 751, - "CommandName": "Get-PnPTeamsTab", - "Rank": 3, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25" - }, - { - "Id": 752, - "CommandName": "Get-PnPTeamsTab", - "Rank": 4, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"" - }, - { - "Id": 753, - "CommandName": "Get-PnPTeamsTab", - "Rank": 5, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"" - }, - { - "Id": 754, - "CommandName": "Get-PnPTeamsTag", - "Rank": 1, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5" - }, - { - "Id": 755, - "CommandName": "Get-PnPTeamsTag", - "Rank": 2, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" - }, - { - "Id": 756, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 1, - "Command": "Get-PnPTeamsTeam" - }, - { - "Id": 757, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 2, - "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"" - }, - { - "Id": 758, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 3, - "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"" - }, - { - "Id": 759, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 4, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"" - }, - { - "Id": 760, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 5, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"" - }, - { - "Id": 761, - "CommandName": "Get-PnPTeamsUser", - "Rank": 1, - "Command": "Get-PnPTeamsUser -Team MyTeam" - }, - { - "Id": 762, - "CommandName": "Get-PnPTeamsUser", - "Rank": 2, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner" - }, - { - "Id": 763, - "CommandName": "Get-PnPTeamsUser", - "Rank": 3, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member" - }, - { - "Id": 764, - "CommandName": "Get-PnPTeamsUser", - "Rank": 4, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest" - }, - { - "Id": 765, - "CommandName": "Get-PnPTemporarilyDisableAppBar", - "Rank": 1, - "Command": "Get-PnPTemporarilyDisableAppBar" - }, - { - "Id": 766, - "CommandName": "Get-PnPTenant", - "Rank": 1, - "Command": "Get-PnPTenant" - }, - { - "Id": 767, - "CommandName": "Get-PnPTenantAppCatalogUrl", - "Rank": 1, - "Command": "Get-PnPTenantAppCatalogUrl" - }, - { - "Id": 768, - "CommandName": "Get-PnPTenantCdnEnabled", - "Rank": 1, - "Command": "Get-PnPTenantCdnEnabled -CdnType Public" - }, - { - "Id": 769, - "CommandName": "Get-PnPTenantCdnOrigin", - "Rank": 1, - "Command": "Get-PnPTenantCdnOrigin -CdnType Public" - }, - { - "Id": 770, - "CommandName": "Get-PnPTenantCdnPolicies", - "Rank": 1, - "Command": "Get-PnPTenantCdnPolicies -CdnType Public" - }, - { - "Id": 771, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 1, - "Command": "Get-PnPTenantDeletedSite" - }, - { - "Id": 772, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 2, - "Command": "Get-PnPTenantDeletedSite -Detailed" - }, - { - "Id": 773, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 3, - "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 774, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 4, - "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite" - }, - { - "Id": 775, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 5, - "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite" - }, - { - "Id": 776, - "CommandName": "Get-PnPTenantId", - "Rank": 1, - "Command": "Get-PnPTenantId" - }, - { - "Id": 777, - "CommandName": "Get-PnPTenantId", - "Rank": 2, - "Command": "Get-PnPTenantId contoso" - }, - { - "Id": 778, - "CommandName": "Get-PnPTenantId", - "Rank": 3, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com" - }, - { - "Id": 779, - "CommandName": "Get-PnPTenantId", - "Rank": 4, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment" - }, - { - "Id": 780, - "CommandName": "Get-PnPTenantInfo", - "Rank": 1, - "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"" - }, - { - "Id": 781, - "CommandName": "Get-PnPTenantInfo", - "Rank": 2, - "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"" - }, - { - "Id": 782, - "CommandName": "Get-PnPTenantInfo", - "Rank": 3, - "Command": "Get-PnPTenantInfo" - }, - { - "Id": 783, - "CommandName": "Get-PnPTenantInfo", - "Rank": 4, - "Command": "Get-PnPTenantInfo -CurrentTenant" - }, - { - "Id": 784, - "CommandName": "Get-PnPTenantInstance", - "Rank": 1, - "Command": "Get-PnPTenantInstance" - }, - { - "Id": 785, - "CommandName": "Get-PnPTenantRecycleBinItem", - "Rank": 1, - "Command": "Get-PnPTenantRecycleBinItem" - }, - { - "Id": 786, - "CommandName": "Get-PnPTenantSequence", - "Rank": 1, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject" - }, - { - "Id": 787, - "CommandName": "Get-PnPTenantSequence", - "Rank": 2, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"" - }, - { - "Id": 788, - "CommandName": "Get-PnPTenantSequenceSite", - "Rank": 1, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence" - }, - { - "Id": 789, - "CommandName": "Get-PnPTenantSequenceSite", - "Rank": 2, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e" - }, - { - "Id": 790, - "CommandName": "Get-PnPTenantSite", - "Rank": 1, - "Command": "Get-PnPTenantSite" - }, - { - "Id": 791, - "CommandName": "Get-PnPTenantSite", - "Rank": 2, - "Command": "Get-PnPTenantSite -Detailed" - }, - { - "Id": 792, - "CommandName": "Get-PnPTenantSite", - "Rank": 3, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites" - }, - { - "Id": 793, - "CommandName": "Get-PnPTenantSite", - "Rank": 4, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"" - }, - { - "Id": 794, - "CommandName": "Get-PnPTenantSite", - "Rank": 5, - "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"" - }, - { - "Id": 795, - "CommandName": "Get-PnPTenantSite", - "Rank": 6, - "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a" - }, - { - "Id": 796, - "CommandName": "Get-PnPTenantSite", - "Rank": 7, - "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0" - }, - { - "Id": 797, - "CommandName": "Get-PnPTenantSite", - "Rank": 8, - "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"" - }, - { - "Id": 798, - "CommandName": "Get-PnPTenantSite", - "Rank": 9, - "Command": "Get-PnPTenantSite -GroupIdDefined $true" - }, - { - "Id": 799, - "CommandName": "Get-PnPTenantSyncClientRestriction", - "Rank": 1, - "Command": "Get-PnPTenantSyncClientRestriction" - }, - { - "Id": 800, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 1, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml" - }, - { - "Id": 801, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 2, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite" - }, - { - "Id": 802, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 3, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force" - }, - { - "Id": 803, - "CommandName": "Get-PnPTenantTheme", - "Rank": 1, - "Command": "Get-PnPTenantTheme" - }, - { - "Id": 804, - "CommandName": "Get-PnPTenantTheme", - "Rank": 2, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"" - }, - { - "Id": 805, - "CommandName": "Get-PnPTenantTheme", - "Rank": 3, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson" - }, - { - "Id": 806, - "CommandName": "Get-PnPTerm", - "Rank": 1, - "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 807, - "CommandName": "Get-PnPTerm", - "Rank": 2, - "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 808, - "CommandName": "Get-PnPTerm", - "Rank": 3, - "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 809, - "CommandName": "Get-PnPTerm", - "Rank": 4, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive" - }, - { - "Id": 810, - "CommandName": "Get-PnPTerm", - "Rank": 5, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated" - }, - { - "Id": 811, - "CommandName": "Get-PnPTermGroup", - "Rank": 1, - "Command": "Get-PnPTermGroup" - }, - { - "Id": 812, - "CommandName": "Get-PnPTermGroup", - "Rank": 2, - "Command": "Get-PnPTermGroup -Identity \"Departments\"" - }, - { - "Id": 813, - "CommandName": "Get-PnPTermGroup", - "Rank": 3, - "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d" - }, - { - "Id": 814, - "CommandName": "Get-PnPTermLabel", - "Rank": 1, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83" - }, - { - "Id": 815, - "CommandName": "Get-PnPTermLabel", - "Rank": 2, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033" - }, - { - "Id": 816, - "CommandName": "Get-PnPTermLabel", - "Rank": 3, - "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 817, - "CommandName": "Get-PnPTermSet", - "Rank": 1, - "Command": "Get-PnPTermSet -TermGroup \"Corporate\"" - }, - { - "Id": 818, - "CommandName": "Get-PnPTermSet", - "Rank": 2, - "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 819, - "CommandName": "Get-PnPTermSet", - "Rank": 3, - "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate" - }, - { - "Id": 820, - "CommandName": "Get-PnPTheme", - "Rank": 1, - "Command": "Get-PnPTheme" - }, - { - "Id": 821, - "CommandName": "Get-PnPTheme", - "Rank": 2, - "Command": "Get-PnPTheme -DetectCurrentComposedLook" - }, - { - "Id": 822, - "CommandName": "Get-PnPTimeZoneId", - "Rank": 1, - "Command": "Get-PnPTimeZoneId" - }, - { - "Id": 823, - "CommandName": "Get-PnPTimeZoneId", - "Rank": 2, - "Command": "Get-PnPTimeZoneId -Match Stockholm" - }, - { - "Id": 824, - "CommandName": "Get-PnPUnfurlLink", - "Rank": 1, - "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"" - }, - { - "Id": 825, - "CommandName": "Get-PnPUnifiedAuditLog", - "Rank": 1, - "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1)" - }, - { - "Id": 826, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 1, - "Command": "Get-PnPUPABulkImportStatus" - }, - { - "Id": 827, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 2, - "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails" - }, - { - "Id": 828, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 3, - "Command": "Get-PnPUPABulkImportStatus -JobId " - }, - { - "Id": 829, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 4, - "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails" - }, - { - "Id": 830, - "CommandName": "Get-PnPUser", - "Rank": 1, - "Command": "Get-PnPUser" - }, - { - "Id": 831, - "CommandName": "Get-PnPUser", - "Rank": 2, - "Command": "Get-PnPUser -Identity 23" - }, - { - "Id": 832, - "CommandName": "Get-PnPUser", - "Rank": 3, - "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"" - }, - { - "Id": 833, - "CommandName": "Get-PnPUser", - "Rank": 4, - "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"" - }, - { - "Id": 834, - "CommandName": "Get-PnPUser", - "Rank": 5, - "Command": "Get-PnPUser -WithRightsAssigned" - }, - { - "Id": 835, - "CommandName": "Get-PnPUser", - "Rank": 6, - "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1" - }, - { - "Id": 836, - "CommandName": "Get-PnPUser", - "Rank": 7, - "Command": "Get-PnPUser -WithRightsAssignedDetailed" - }, - { - "Id": 837, - "CommandName": "Get-PnPUserOneDriveQuota", - "Rank": 1, - "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'" - }, - { - "Id": 838, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 1, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'" - }, - { - "Id": 839, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 2, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'" - }, - { - "Id": 840, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 3, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'" - }, - { - "Id": 841, - "CommandName": "Get-PnPView", - "Rank": 1, - "Command": "Get-PnPView -List \"Demo List\"" - }, - { - "Id": 842, - "CommandName": "Get-PnPView", - "Rank": 2, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"" - }, - { - "Id": 843, - "CommandName": "Get-PnPView", - "Rank": 3, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"" - }, - { - "Id": 844, - "CommandName": "Get-PnPVivaConnectionsDashboardACE", - "Rank": 1, - "Command": "Get-PnPVivaConnectionsDashboardACE" - }, - { - "Id": 845, - "CommandName": "Get-PnPVivaConnectionsDashboardACE", - "Rank": 2, - "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" - }, - { - "Id": 846, - "CommandName": "Get-PnPWeb", - "Rank": 1, - "Command": "Get-PnPWeb" - }, - { - "Id": 847, - "CommandName": "Get-PnPWebHeader", - "Rank": 1, - "Command": "Get-PnPWebHeader" - }, - { - "Id": 848, - "CommandName": "Get-PnPWebhookSubscription", - "Rank": 1, - "Command": "Get-PnPWebhookSubscription -List MyList" - }, - { - "Id": 849, - "CommandName": "Get-PnPWebPart", - "Rank": 1, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"" - }, - { - "Id": 850, - "CommandName": "Get-PnPWebPart", - "Rank": 2, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" - }, - { - "Id": 851, - "CommandName": "Get-PnPWebPartProperty", - "Rank": 1, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914" - }, - { - "Id": 852, - "CommandName": "Get-PnPWebPartProperty", - "Rank": 2, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"" - }, - { - "Id": 853, - "CommandName": "Get-PnPWebPartXml", - "Rank": 1, - "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" - }, - { - "Id": 854, - "CommandName": "Get-PnPWebTemplates", - "Rank": 1, - "Command": "Get-PnPWebTemplates" - }, - { - "Id": 855, - "CommandName": "Get-PnPWebTemplates", - "Rank": 2, - "Command": "Get-PnPWebTemplates -LCID 1033" - }, - { - "Id": 856, - "CommandName": "Get-PnPWebTemplates", - "Rank": 3, - "Command": "Get-PnPWebTemplates -CompatibilityLevel 15" - }, - { - "Id": 857, - "CommandName": "Get-PnPWikiPageContent", - "Rank": 1, - "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'" - }, - { - "Id": 858, - "CommandName": "Grant-PnPAzureADAppSitePermission", - "Rank": 1, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read" - }, - { - "Id": 859, - "CommandName": "Grant-PnPAzureADAppSitePermission", - "Rank": 2, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects" - }, - { - "Id": 860, - "CommandName": "Grant-PnPHubSiteRights", - "Rank": 1, - "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" - }, - { - "Id": 861, - "CommandName": "Grant-PnPSiteDesignRights", - "Rank": 1, - "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" - }, - { - "Id": 862, - "CommandName": "Grant-PnPTenantServicePrincipalPermission", - "Rank": 1, - "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" - }, - { - "Id": 863, - "CommandName": "Import-PnPTaxonomy", - "Rank": 1, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'" - }, - { - "Id": 864, - "CommandName": "Import-PnPTaxonomy", - "Rank": 2, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'" - }, - { - "Id": 865, - "CommandName": "Import-PnPTaxonomy", - "Rank": 3, - "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt" - }, - { - "Id": 866, - "CommandName": "Import-PnPTermGroupFromXml", - "Rank": 1, - "Command": "Import-PnPTermGroupFromXml -Xml $xml" - }, - { - "Id": 867, - "CommandName": "Import-PnPTermGroupFromXml", - "Rank": 2, - "Command": "Import-PnPTermGroupFromXml -Path input.xml" - }, - { - "Id": 868, - "CommandName": "Import-PnPTermSet", - "Rank": 1, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions" - }, - { - "Id": 869, - "CommandName": "Import-PnPTermSet", - "Rank": 2, - "Command": "Import-PnPTermSet -TermStoreName 'My Term Store' -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -TermSetId '{15A98DB6-D8E2-43E6-8771-066C1EC2B8D8}'" - }, - { - "Id": 870, - "CommandName": "Import-PnPTermSet", - "Rank": 3, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -IsOpen $true -Contact 'user@example.org' -Owner 'user@example.org'" - }, - { - "Id": 871, - "CommandName": "Install-PnPApp", - "Rank": 1, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 872, - "CommandName": "Install-PnPApp", - "Rank": 2, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" - }, - { - "Id": 873, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 1, - "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'" - }, - { - "Id": 874, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 2, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete" - }, - { - "Id": 875, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 3, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }" - }, - { - "Id": 876, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 4, - "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual" - }, - { - "Id": 877, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 5, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"" - }, - { - "Id": 878, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 6, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg" - }, - { - "Id": 879, - "CommandName": "Invoke-PnPGraphMethod", - "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\"" - }, - { - "Id": 880, - "CommandName": "Invoke-PnPListDesign", - "Rank": 1, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 881, - "CommandName": "Invoke-PnPListDesign", - "Rank": 2, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" - }, - { - "Id": 882, - "CommandName": "Invoke-PnPQuery", - "Rank": 1, - "Command": "Invoke-PnPQuery -RetryCount 5" - }, - { - "Id": 883, - "CommandName": "Invoke-PnPSiteDesign", - "Rank": 1, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 884, - "CommandName": "Invoke-PnPSiteDesign", - "Rank": 2, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" - }, - { - "Id": 885, - "CommandName": "Invoke-PnPSiteScript", - "Rank": 1, - "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite" - }, - { - "Id": 886, - "CommandName": "Invoke-PnPSiteSwap", - "Rank": 1, - "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive" - }, - { - "Id": 887, - "CommandName": "Invoke-PnPSiteSwap", - "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" - }, - { - "Id": 888, - "CommandName": "Invoke-PnPSiteSwap", - "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" - }, - { - "Id": 889, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 1, - "Command": "Invoke-PnPSiteTemplate -Path template.xml" - }, - { - "Id": 890, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 2, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources" - }, - { - "Id": 891, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 3, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" - }, - { - "Id": 892, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 4, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity" - }, - { - "Id": 893, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 5, - "Command": "Invoke-PnPSiteTemplate -Path template.pnp" - }, - { - "Id": 894, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 6, - "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"" - }, - { - "Id": 895, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 7, - "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template" - }, - { - "Id": 896, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 8, - "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"" - }, - { - "Id": 897, - "CommandName": "Invoke-PnPSPRestMethod", - "Rank": 1, - "Command": "Invoke-PnPSPRestMethod -Url /_api/web" - }, - { - "Id": 898, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 1, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp" - }, - { - "Id": 899, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 2, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"" - }, - { - "Id": 900, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 3, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" - }, - { - "Id": 901, - "CommandName": "Invoke-PnPWebAction", - "Rank": 1, - "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}" - }, - { - "Id": 902, - "CommandName": "Invoke-PnPWebAction", - "Rank": 2, - "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}" - }, - { - "Id": 903, - "CommandName": "Measure-PnPList", - "Rank": 1, - "Command": "Measure-PnPList \"Documents\"" - }, - { - "Id": 904, - "CommandName": "Measure-PnPList", - "Rank": 2, - "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel" - }, - { - "Id": 905, - "CommandName": "Measure-PnPWeb", - "Rank": 1, - "Command": "Measure-PnPWeb" - }, - { - "Id": 906, - "CommandName": "Measure-PnPWeb", - "Rank": 2, - "Command": "Measure-PnPWeb $web -Recursive" - }, - { - "Id": 907, - "CommandName": "Move-PnPFile", - "Rank": 1, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"" - }, - { - "Id": 908, - "CommandName": "Move-PnPFile", - "Rank": 2, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite" - }, - { - "Id": 909, - "CommandName": "Move-PnPFile", - "Rank": 3, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" - }, - { - "Id": 910, - "CommandName": "Move-PnPFile", - "Rank": 4, - "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" - }, - { - "Id": 911, - "CommandName": "Move-PnPFolder", - "Rank": 1, - "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'" - }, - { - "Id": 912, - "CommandName": "Move-PnPFolder", - "Rank": 2, - "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'" - }, - { - "Id": 913, - "CommandName": "Move-PnPListItemToRecycleBin", - "Rank": 1, - "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force" - }, - { - "Id": 914, - "CommandName": "Move-PnPPageComponent", - "Rank": 1, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1" - }, - { - "Id": 915, - "CommandName": "Move-PnPPageComponent", - "Rank": 2, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2" - }, - { - "Id": 916, - "CommandName": "Move-PnPPageComponent", - "Rank": 3, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2" - }, - { - "Id": 917, - "CommandName": "Move-PnPPageComponent", - "Rank": 4, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2" - }, - { - "Id": 918, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 1, - "Command": "Move-PnPRecycleBinItem" - }, - { - "Id": 919, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 2, - "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125" - }, - { - "Id": 920, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 3, - "Command": "Move-PnPRecycleBinItem -Force" - }, - { - "Id": 921, - "CommandName": "Move-PnPTerm", - "Rank": 1, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTermSet 95e13729-3ccf-4ec8-998c-78e9ef1daa0b -TargetTermGroup b2645144-5757-4cd7-b7f9-e5d24757addf" - }, - { - "Id": 922, - "CommandName": "Move-PnPTerm", - "Rank": 2, - "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"" - }, - { - "Id": 923, - "CommandName": "Move-PnPTerm", - "Rank": 3, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm" - }, - { - "Id": 924, - "CommandName": "Move-PnPTermSet", - "Rank": 1, - "Command": "Move-PnPTermSet -Identity 81e0a4b8-701d-459c-ad61-a1c7a81810ff -TermGroup 17e16b98-a8c2-4db6-a860-5c42dbc818f4 -TargetTermGroup cf33d1cd-42d8-431c-9e43-3d8dab9ea8fd" - }, - { - "Id": 925, - "CommandName": "Move-PnPTermSet", - "Rank": 2, - "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"" - }, - { - "Id": 926, - "CommandName": "New-PnPAzureADGroup", - "Rank": 1, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname" - }, - { - "Id": 927, - "CommandName": "New-PnPAzureADGroup", - "Rank": 2, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers" - }, - { - "Id": 928, - "CommandName": "New-PnPAzureADGroup", - "Rank": 3, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled" - }, - { - "Id": 929, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 1, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com" - }, - { - "Id": 930, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 2, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true" - }, - { - "Id": 931, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 3, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true" - }, - { - "Id": 932, - "CommandName": "New-PnPAzureCertificate", - "Rank": 1, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer" - }, - { - "Id": 933, - "CommandName": "New-PnPAzureCertificate", - "Rank": 2, - "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30" - }, - { - "Id": 934, - "CommandName": "New-PnPAzureCertificate", - "Rank": 3, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)" - }, - { - "Id": 935, - "CommandName": "New-PnPAzureCertificate", - "Rank": 4, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null" - }, - { - "Id": 936, - "CommandName": "New-PnPGraphSubscription", - "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()" - }, - { - "Id": 937, - "CommandName": "New-PnPGraphSubscription", - "Rank": 2, - "Command": "New-PnPGraphSubscription -ChangeType Updates -NotificationUrl https://mywebapiservice/notifications -Resource \"Users\" -ExpirationDateTime (Get-Date).AddHours(1) -ClientState [Guid]::NewGuid().ToString()" - }, - { - "Id": 938, - "CommandName": "New-PnPGroup", - "Rank": 1, - "Command": "New-PnPGroup -Title \"My Site Users\"" - }, - { - "Id": 939, - "CommandName": "New-PnPList", - "Rank": 1, - "Command": "New-PnPList -Title Announcements -Template Announcements" - }, - { - "Id": 940, - "CommandName": "New-PnPList", - "Rank": 2, - "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements" - }, - { - "Id": 941, - "CommandName": "New-PnPList", - "Rank": 3, - "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden" - }, - { - "Id": 942, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 1, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname" - }, - { - "Id": 943, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 2, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"" - }, - { - "Id": 944, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 3, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate" - }, - { - "Id": 945, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 4, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate" - }, - { - "Id": 946, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 5, - "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" - }, - { - "Id": 947, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 6, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" - }, - { - "Id": 948, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 7, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"" - }, - { - "Id": 949, - "CommandName": "New-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "New-PnPMicrosoft365GroupSettings -DisplayName \"Group.Unified\" -TemplateId \"62375ab9-6b52-47ed-826b-58e47e0e304b\" -Values @{\"GuestUsageGuidelinesUrl\"=\"https://privacy.contoso.com/privacystatement\";\"EnableMSStandardBlockedWords\"=\"true\"}" - }, - { - "Id": 950, - "CommandName": "New-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}" - }, - { - "Id": 951, - "CommandName": "New-PnPPersonalSite", - "Rank": 1, - "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')" - }, - { - "Id": 952, - "CommandName": "New-PnPPlannerPlan", - "Rank": 1, - "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"" - }, - { - "Id": 953, - "CommandName": "New-PnPSdnProvider", - "Rank": 1, - "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"" - }, - { - "Id": 954, - "CommandName": "New-PnPSite", - "Rank": 1, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" - }, - { - "Id": 955, - "CommandName": "New-PnPSite", - "Rank": 2, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase" - }, - { - "Id": 956, - "CommandName": "New-PnPSite", - "Rank": 3, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" - }, - { - "Id": 957, - "CommandName": "New-PnPSite", - "Rank": 4, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" - }, - { - "Id": 958, - "CommandName": "New-PnPSite", - "Rank": 5, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" - }, - { - "Id": 959, - "CommandName": "New-PnPSite", - "Rank": 6, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" - }, - { - "Id": 960, - "CommandName": "New-PnPSite", - "Rank": 7, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso" - }, - { - "Id": 961, - "CommandName": "New-PnPSite", - "Rank": 8, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic" - }, - { - "Id": 962, - "CommandName": "New-PnPSite", - "Rank": 9, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040" - }, - { - "Id": 963, - "CommandName": "New-PnPSite", - "Rank": 10, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site" - }, - { - "Id": 964, - "CommandName": "New-PnPSite", - "Rank": 11, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" - }, - { - "Id": 965, - "CommandName": "New-PnPSite", - "Rank": 12, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" - }, - { - "Id": 966, - "CommandName": "New-PnPSite", - "Rank": 13, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" - }, - { - "Id": 967, - "CommandName": "New-PnPSite", - "Rank": 14, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" - }, - { - "Id": 968, - "CommandName": "New-PnPSite", - "Rank": 15, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" - }, - { - "Id": 969, - "CommandName": "New-PnPSite", - "Rank": 16, - "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"" - }, - { - "Id": 970, - "CommandName": "New-PnPSiteCollectionTermStore", - "Rank": 1, - "Command": "New-PnPSiteCollectionTermStore" - }, - { - "Id": 971, - "CommandName": "New-PnPSiteGroup", - "Rank": 1, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"" - }, - { - "Id": 972, - "CommandName": "New-PnPSiteGroup", - "Rank": 2, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"" - }, - { - "Id": 973, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 1, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml" - }, - { - "Id": 974, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 2, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp" - }, - { - "Id": 975, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 3, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js" - }, - { - "Id": 976, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 4, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"" - }, - { - "Id": 977, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 5, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"" - }, - { - "Id": 978, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 6, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -Properties @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 979, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 7, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp" - }, - { - "Id": 980, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 8, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp" - }, - { - "Id": 981, - "CommandName": "New-PnPTeamsApp", - "Rank": 1, - "Command": "New-PnPTeamsApp -Path c:\\myapp.zip" - }, - { - "Id": 982, - "CommandName": "New-PnPTeamsTeam", - "Rank": 1, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false" - }, - { - "Id": 983, - "CommandName": "New-PnPTeamsTeam", - "Rank": 2, - "Command": "New-PnPTeamsTeam -GroupId $groupId" - }, - { - "Id": 984, - "CommandName": "New-PnPTeamsTeam", - "Rank": 3, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled" - }, - { - "Id": 985, - "CommandName": "New-PnPTeamsTeam", - "Rank": 4, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" - }, - { - "Id": 986, - "CommandName": "New-PnPTeamsTeam", - "Rank": 5, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\"" - }, - { - "Id": 987, - "CommandName": "New-PnPTeamsTeam", - "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\"" - }, - { - "Id": 988, - "CommandName": "New-PnPTenantSite", - "Rank": 1, - "Command": "New-PnPTenantSite -Title Contoso -Url \"https://tenant.sharepoint.com/sites/contoso\" -Owner user@example.org -TimeZone 4 -Template STS#0" - }, - { - "Id": 989, - "CommandName": "New-PnPTenantSite", - "Rank": 2, - "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0" - }, - { - "Id": 990, - "CommandName": "New-PnPTerm", - "Rank": 1, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"" - }, - { - "Id": 991, - "CommandName": "New-PnPTerm", - "Rank": 2, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" - }, - { - "Id": 992, - "CommandName": "New-PnPTermGroup", - "Rank": 1, - "Command": "New-PnPTermGroup -GroupName \"Countries\"" - }, - { - "Id": 993, - "CommandName": "New-PnPTermLabel", - "Rank": 1, - "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")" - }, - { - "Id": 994, - "CommandName": "New-PnPTermSet", - "Rank": 1, - "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"" - }, - { - "Id": 995, - "CommandName": "New-PnPUPABulkImportJob", - "Rank": 1, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}" - }, - { - "Id": 996, - "CommandName": "New-PnPUPABulkImportJob", - "Rank": 2, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/sites/userprofilesync/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"} -Wait -Verbose" - }, - { - "Id": 997, - "CommandName": "New-PnPUser", - "Rank": 1, - "Command": "New-PnPUser -LoginName user@company.com" - }, - { - "Id": 998, - "CommandName": "New-PnPWeb", - "Rank": 1, - "Command": "New-PnPWeb -Title \"Project A Web\" -Url projectA -Description \"Information about Project A\" -Locale 1033 -Template \"STS#0\"" - }, - { - "Id": 999, - "CommandName": "Publish-PnPApp", - "Rank": 1, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" - }, - { - "Id": 1000, - "CommandName": "Publish-PnPApp", - "Rank": 2, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site" - }, - { - "Id": 1001, - "CommandName": "Publish-PnPCompanyApp", - "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" - }, - { - "Id": 1002, - "CommandName": "Publish-PnPContentType", - "Rank": 1, - "Command": "Publish-PnPContentType -ContentType 0x0101" - }, - { - "Id": 1003, - "CommandName": "Publish-PnPSyntexModel", - "Rank": 1, - "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" - }, - { - "Id": 1004, - "CommandName": "Publish-PnPSyntexModel", - "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" - }, - { - "Id": 1005, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 1, - "Command": "Read-PnPSiteTemplate -Path template.pnp" - }, - { - "Id": 1006, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 2, - "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions" - }, - { - "Id": 1007, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 3, - "Command": "Read-PnPSiteTemplate -Xml $xml" - }, - { - "Id": 1008, - "CommandName": "Read-PnPTenantTemplate", - "Rank": 1, - "Command": "Read-PnPTenantTemplate -Path template.pnp" - }, - { - "Id": 1009, - "CommandName": "Register-PnPAppCatalogSite", - "Rank": 1, - "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4" - }, - { - "Id": 1010, - "CommandName": "Register-PnPAzureADApp", - "Rank": 1, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" - }, - { - "Id": 1011, - "CommandName": "Register-PnPAzureADApp", - "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\")" - }, - { - "Id": 1012, - "CommandName": "Register-PnPAzureADApp", - "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\")" - }, - { - "Id": 1013, - "CommandName": "Register-PnPAzureADApp", - "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\")" - }, - { - "Id": 1014, - "CommandName": "Register-PnPAzureADApp", - "Rank": 5, - "Command": "Register-PnPAzureADApp -DeviceLogin -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" - }, - { - "Id": 1015, - "CommandName": "Register-PnPAzureADApp", - "Rank": 6, - "Command": "Register-PnPAzureADApp -Interactive -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" - }, - { - "Id": 1016, - "CommandName": "Register-PnPAzureADApp", - "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" - }, - { - "Id": 1017, - "CommandName": "Register-PnPHubSite", - "Rank": 1, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" - }, - { - "Id": 1018, - "CommandName": "Register-PnPHubSite", - "Rank": 2, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"" - }, - { - "Id": 1019, - "CommandName": "Register-PnPManagementShellAccess", - "Rank": 1, - "Command": "Register-PnPManagementShellAccess" - }, - { - "Id": 1020, - "CommandName": "Register-PnPManagementShellAccess", - "Rank": 2, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl" - }, - { - "Id": 1021, - "CommandName": "Register-PnPManagementShellAccess", - "Rank": 3, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com" - }, - { - "Id": 1022, - "CommandName": "Remove-PnPAdaptiveScopeProperty", - "Rank": 1, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey" - }, - { - "Id": 1023, - "CommandName": "Remove-PnPAdaptiveScopeProperty", - "Rank": 2, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force" - }, - { - "Id": 1024, - "CommandName": "Remove-PnPAlert", - "Rank": 1, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7" - }, - { - "Id": 1025, - "CommandName": "Remove-PnPAlert", - "Rank": 2, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" - }, - { - "Id": 1026, - "CommandName": "Remove-PnPApp", - "Rank": 1, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 1027, - "CommandName": "Remove-PnPApp", - "Rank": 2, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" - }, - { - "Id": 1028, - "CommandName": "Remove-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" - }, - { - "Id": 1029, - "CommandName": "Remove-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" - }, - { - "Id": 1030, - "CommandName": "Remove-PnPAvailableSiteClassification", - "Rank": 1, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"" - }, - { - "Id": 1031, - "CommandName": "Remove-PnPAvailableSiteClassification", - "Rank": 2, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" - }, - { - "Id": 1032, - "CommandName": "Remove-PnPAzureADApp", - "Rank": 1, - "Command": "Remove-PnPAzureADApp -Identity MyApp" - }, - { - "Id": 1033, - "CommandName": "Remove-PnPAzureADApp", - "Rank": 2, - "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" - }, - { - "Id": 1034, - "CommandName": "Remove-PnPAzureADGroup", - "Rank": 1, - "Command": "Remove-PnPAzureADGroup -Identity $groupId" - }, - { - "Id": 1035, - "CommandName": "Remove-PnPAzureADGroup", - "Rank": 2, - "Command": "Remove-PnPAzureADGroup -Identity $group" - }, - { - "Id": 1036, - "CommandName": "Remove-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 1037, - "CommandName": "Remove-PnPAzureADGroupOwner", - "Rank": 1, - "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 1038, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 1, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"" - }, - { - "Id": 1039, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 2, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"" - }, - { - "Id": 1040, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 3, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" - }, - { - "Id": 1041, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 4, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" - }, - { - "Id": 1042, - "CommandName": "Remove-PnPContentType", - "Rank": 1, - "Command": "Remove-PnPContentType -Identity \"Project Document\"" - }, - { - "Id": 1043, - "CommandName": "Remove-PnPContentType", - "Rank": 2, - "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force" - }, - { - "Id": 1044, - "CommandName": "Remove-PnPContentTypeFromDocumentSet", - "Rank": 1, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" - }, - { - "Id": 1045, - "CommandName": "Remove-PnPContentTypeFromDocumentSet", - "Rank": 2, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" - }, - { - "Id": 1046, - "CommandName": "Remove-PnPContentTypeFromList", - "Rank": 1, - "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"" - }, - { - "Id": 1047, - "CommandName": "Remove-PnPCustomAction", - "Rank": 1, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" - }, - { - "Id": 1048, - "CommandName": "Remove-PnPCustomAction", - "Rank": 2, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" - }, - { - "Id": 1049, - "CommandName": "Remove-PnPCustomAction", - "Rank": 3, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force" - }, - { - "Id": 1050, - "CommandName": "Remove-PnPDeletedMicrosoft365Group", - "Rank": 1, - "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" - }, - { - "Id": 1051, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 1, - "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" - }, - { - "Id": 1052, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 2, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" - }, - { - "Id": 1053, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 3, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver" - }, - { - "Id": 1054, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 4, - "Command": "Remove-PnPEventReceiver -List ProjectList" - }, - { - "Id": 1055, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 5, - "Command": "Remove-PnPEventReceiver" - }, - { - "Id": 1056, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 6, - "Command": "Remove-PnPEventReceiver -Scope Site" - }, - { - "Id": 1057, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 7, - "Command": "Remove-PnPEventReceiver -Scope Web" - }, - { - "Id": 1058, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 8, - "Command": "Remove-PnPEventReceiver -Scope All" - }, - { - "Id": 1059, - "CommandName": "Remove-PnPField", - "Rank": 1, - "Command": "Remove-PnPField -Identity \"Speakers\"" - }, - { - "Id": 1060, - "CommandName": "Remove-PnPField", - "Rank": 2, - "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"" - }, - { - "Id": 1061, - "CommandName": "Remove-PnPFieldFromContentType", - "Rank": 1, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"" - }, - { - "Id": 1062, - "CommandName": "Remove-PnPFieldFromContentType", - "Rank": 2, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren" - }, - { - "Id": 1063, - "CommandName": "Remove-PnPFile", - "Rank": 1, - "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor" - }, - { - "Id": 1064, - "CommandName": "Remove-PnPFile", - "Rank": 2, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor" - }, - { - "Id": 1065, - "CommandName": "Remove-PnPFile", - "Rank": 3, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle" - }, - { - "Id": 1066, - "CommandName": "Remove-PnPFileFromSiteTemplate", - "Rank": 1, - "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath" - }, - { - "Id": 1067, - "CommandName": "Remove-PnPFileSharingLink", - "Rank": 1, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" - }, - { - "Id": 1068, - "CommandName": "Remove-PnPFileSharingLink", - "Rank": 2, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force" - }, - { - "Id": 1069, - "CommandName": "Remove-PnPFileVersion", - "Rank": 1, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" - }, - { - "Id": 1070, - "CommandName": "Remove-PnPFileVersion", - "Rank": 2, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" - }, - { - "Id": 1071, - "CommandName": "Remove-PnPFileVersion", - "Rank": 3, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All" - }, - { - "Id": 1072, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 1, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com" - }, - { - "Id": 1073, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 2, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04" - }, - { - "Id": 1074, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 3, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin" - }, - { - "Id": 1075, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 4, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force" - }, - { - "Id": 1076, - "CommandName": "Remove-PnPFolder", - "Rank": 1, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" - }, - { - "Id": 1077, - "CommandName": "Remove-PnPFolder", - "Rank": 2, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle" - }, - { - "Id": 1078, - "CommandName": "Remove-PnPFolderSharingLink", - "Rank": 1, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" - }, - { - "Id": 1079, - "CommandName": "Remove-PnPFolderSharingLink", - "Rank": 2, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force" - }, - { - "Id": 1080, - "CommandName": "Remove-PnPGraphSubscription", - "Rank": 1, - "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da" - }, - { - "Id": 1081, - "CommandName": "Remove-PnPGroup", - "Rank": 1, - "Command": "Remove-PnPGroup -Identity \"My Users\"" - }, - { - "Id": 1082, - "CommandName": "Remove-PnPGroupMember", - "Rank": 1, - "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" - }, - { - "Id": 1083, - "CommandName": "Remove-PnPHomeSite", - "Rank": 1, - "Command": "Remove-PnPHomeSite" - }, - { - "Id": 1084, - "CommandName": "Remove-PnPHubSiteAssociation", - "Rank": 1, - "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"" - }, - { - "Id": 1085, - "CommandName": "Remove-PnPHubToHubAssociation", - "Rank": 1, - "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15" - }, - { - "Id": 1086, - "CommandName": "Remove-PnPHubToHubAssociation", - "Rank": 2, - "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"" - }, - { - "Id": 1087, - "CommandName": "Remove-PnPIndexedProperty", - "Rank": 1, - "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"" - }, - { - "Id": 1088, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 1, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery" - }, - { - "Id": 1089, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 2, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site" - }, - { - "Id": 1090, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 3, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false" - }, - { - "Id": 1091, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 4, - "Command": "Remove-PnPJavaScriptLink -Scope Site" - }, - { - "Id": 1092, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 5, - "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All" - }, - { - "Id": 1093, - "CommandName": "Remove-PnPKnowledgeHubSite", - "Rank": 1, - "Command": "Remove-PnPKnowledgeHubSite" - }, - { - "Id": 1094, - "CommandName": "Remove-PnPList", - "Rank": 1, - "Command": "Remove-PnPList -Identity Announcements" - }, - { - "Id": 1095, - "CommandName": "Remove-PnPList", - "Rank": 2, - "Command": "Remove-PnPList -Identity Announcements -Force" - }, - { - "Id": 1096, - "CommandName": "Remove-PnPList", - "Rank": 3, - "Command": "Remove-PnPList -Identity Announcements -Recycle" - }, - { - "Id": 1097, - "CommandName": "Remove-PnPList", - "Rank": 4, - "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList" - }, - { - "Id": 1098, - "CommandName": "Remove-PnPListDesign", - "Rank": 1, - "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 1099, - "CommandName": "Remove-PnPListItem", - "Rank": 1, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force" - }, - { - "Id": 1100, - "CommandName": "Remove-PnPListItem", - "Rank": 2, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle" - }, - { - "Id": 1101, - "CommandName": "Remove-PnPListItem", - "Rank": 3, - "Command": "Remove-PnPListItem -List \"Demo List\"" - }, - { - "Id": 1102, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 1, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt" - }, - { - "Id": 1103, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 2, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle" - }, - { - "Id": 1104, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 3, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force" - }, - { - "Id": 1105, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 4, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force" - }, - { - "Id": 1106, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 5, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All" - }, - { - "Id": 1107, - "CommandName": "Remove-PnPListItemVersion", - "Rank": 1, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" - }, - { - "Id": 1108, - "CommandName": "Remove-PnPListItemVersion", - "Rank": 2, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" - }, - { - "Id": 1109, - "CommandName": "Remove-PnPMicrosoft365Group", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365Group -Identity $groupId" - }, - { - "Id": 1110, - "CommandName": "Remove-PnPMicrosoft365Group", - "Rank": 2, - "Command": "Remove-PnPMicrosoft365Group -Identity $group" - }, - { - "Id": 1111, - "CommandName": "Remove-PnPMicrosoft365GroupMember", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 1112, - "CommandName": "Remove-PnPMicrosoft365GroupOwner", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" - }, - { - "Id": 1113, - "CommandName": "Remove-PnPMicrosoft365GroupPhoto", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"" - }, - { - "Id": 1114, - "CommandName": "Remove-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"" - }, - { - "Id": 1115, - "CommandName": "Remove-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId" - }, - { - "Id": 1116, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 1, - "Command": "Remove-PnPNavigationNode -Identity 1032" - }, - { - "Id": 1117, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 2, - "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch" - }, - { - "Id": 1118, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 3, - "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force" - }, - { - "Id": 1119, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 1, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"" - }, - { - "Id": 1120, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 2, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true" - }, - { - "Id": 1121, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 3, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private" - }, - { - "Id": 1122, - "CommandName": "Remove-PnPOrgNewsSite", - "Rank": 1, - "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"" - }, - { - "Id": 1123, - "CommandName": "Remove-PnPPage", - "Rank": 1, - "Command": "Remove-PnPPage -Identity \"MyPage\"" - }, - { - "Id": 1124, - "CommandName": "Remove-PnPPage", - "Rank": 2, - "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"" - }, - { - "Id": 1125, - "CommandName": "Remove-PnPPage", - "Rank": 3, - "Command": "Remove-PnPPage $page" - }, - { - "Id": 1126, - "CommandName": "Remove-PnPPage", - "Rank": 4, - "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle" - }, - { - "Id": 1127, - "CommandName": "Remove-PnPPageComponent", - "Rank": 1, - "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" - }, - { - "Id": 1128, - "CommandName": "Remove-PnPPlannerBucket", - "Rank": 1, - "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"" - }, - { - "Id": 1129, - "CommandName": "Remove-PnPPlannerPlan", - "Rank": 1, - "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"" - }, - { - "Id": 1130, - "CommandName": "Remove-PnPPlannerRoster", - "Rank": 1, - "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"" - }, - { - "Id": 1131, - "CommandName": "Remove-PnPPlannerRosterMember", - "Rank": 1, - "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" - }, - { - "Id": 1132, - "CommandName": "Remove-PnPPlannerTask", - "Rank": 1, - "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk" - }, - { - "Id": 1133, - "CommandName": "Remove-PnPPropertyBagValue", - "Rank": 1, - "Command": "Remove-PnPPropertyBagValue -Key MyKey" - }, - { - "Id": 1134, - "CommandName": "Remove-PnPPropertyBagValue", - "Rank": 2, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder" - }, - { - "Id": 1135, - "CommandName": "Remove-PnPPropertyBagValue", - "Rank": 3, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /" - }, - { - "Id": 1136, - "CommandName": "Remove-PnPPublishingImageRendition", - "Rank": 1, - "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" - }, - { - "Id": 1137, - "CommandName": "Remove-PnPRoleDefinition", - "Rank": 1, - "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition" - }, - { - "Id": 1138, - "CommandName": "Remove-PnPSdnProvider", - "Rank": 1, - "Command": "Remove-PnPSdnProvider -Confirm:false" - }, - { - "Id": 1139, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 1, - "Command": "Remove-PnPSearchConfiguration -Configuration $config" - }, - { - "Id": 1140, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 2, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site" - }, - { - "Id": 1141, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 3, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription" - }, - { - "Id": 1142, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 4, - "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" - }, - { - "Id": 1143, - "CommandName": "Remove-PnPSiteCollectionAdmin", - "Rank": 1, - "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" - }, - { - "Id": 1144, - "CommandName": "Remove-PnPSiteCollectionAdmin", - "Rank": 2, - "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" - }, - { - "Id": 1145, - "CommandName": "Remove-PnPSiteCollectionAppCatalog", - "Rank": 1, - "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" - }, - { - "Id": 1146, - "CommandName": "Remove-PnPSiteCollectionTermStore", - "Rank": 1, - "Command": "Remove-PnPSiteCollectionTermStore" - }, - { - "Id": 1147, - "CommandName": "Remove-PnPSiteDesign", - "Rank": 1, - "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 1148, - "CommandName": "Remove-PnPSiteDesignTask", - "Rank": 1, - "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 1149, - "CommandName": "Remove-PnPSiteGroup", - "Rank": 1, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"" - }, - { - "Id": 1150, - "CommandName": "Remove-PnPSiteGroup", - "Rank": 2, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove" - }, - { - "Id": 1151, - "CommandName": "Remove-PnPSiteScript", - "Rank": 1, - "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" - }, - { - "Id": 1152, - "CommandName": "Remove-PnPSiteUserInvitations", - "Rank": 1, - "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" - }, - { - "Id": 1153, - "CommandName": "Remove-PnPStorageEntity", - "Rank": 1, - "Command": "Remove-PnPStorageEntity -Key MyKey" - }, - { - "Id": 1154, - "CommandName": "Remove-PnPStorageEntity", - "Rank": 2, - "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site" - }, - { - "Id": 1155, - "CommandName": "Remove-PnPStoredCredential", - "Rank": 1, - "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"" - }, - { - "Id": 1156, - "CommandName": "Remove-PnPTaxonomyItem", - "Rank": 1, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"" - }, - { - "Id": 1157, - "CommandName": "Remove-PnPTaxonomyItem", - "Rank": 2, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force" - }, - { - "Id": 1158, - "CommandName": "Remove-PnPTeamsApp", - "Rank": 1, - "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b" - }, - { - "Id": 1159, - "CommandName": "Remove-PnPTeamsApp", - "Rank": 2, - "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"" - }, - { - "Id": 1160, - "CommandName": "Remove-PnPTeamsChannel", - "Rank": 1, - "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"" - }, - { - "Id": 1161, - "CommandName": "Remove-PnPTeamsChannelUser", - "Rank": 1, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==" - }, - { - "Id": 1162, - "CommandName": "Remove-PnPTeamsChannelUser", - "Rank": 2, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" - }, - { - "Id": 1163, - "CommandName": "Remove-PnPTeamsChannelUser", - "Rank": 3, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force" - }, - { - "Id": 1164, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 1, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki" - }, - { - "Id": 1165, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 2, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki" - }, - { - "Id": 1166, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 3, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852" - }, - { - "Id": 1167, - "CommandName": "Remove-PnPTeamsTag", - "Rank": 1, - "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" - }, - { - "Id": 1168, - "CommandName": "Remove-PnPTeamsTeam", - "Rank": 1, - "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5" - }, - { - "Id": 1169, - "CommandName": "Remove-PnPTeamsTeam", - "Rank": 2, - "Command": "Remove-PnPTeamsTeam -Identity testteam" - }, - { - "Id": 1170, - "CommandName": "Remove-PnPTeamsUser", - "Rank": 1, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com" - }, - { - "Id": 1171, - "CommandName": "Remove-PnPTeamsUser", - "Rank": 2, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" - }, - { - "Id": 1172, - "CommandName": "Remove-PnPTenantCdnOrigin", - "Rank": 1, - "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" - }, - { - "Id": 1173, - "CommandName": "Remove-PnPTenantDeletedSite", - "Rank": 1, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 1174, - "CommandName": "Remove-PnPTenantDeletedSite", - "Rank": 2, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" - }, - { - "Id": 1175, - "CommandName": "Remove-PnPTenantSite", - "Rank": 1, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 1176, - "CommandName": "Remove-PnPTenantSite", - "Rank": 2, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin" - }, - { - "Id": 1177, - "CommandName": "Remove-PnPTenantSite", - "Rank": 3, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin" - }, - { - "Id": 1178, - "CommandName": "Remove-PnPTenantSyncClientRestriction", - "Rank": 1, - "Command": "Remove-PnPTenantSyncClientRestriction" - }, - { - "Id": 1179, - "CommandName": "Remove-PnPTenantTheme", - "Rank": 1, - "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"" - }, - { - "Id": 1180, - "CommandName": "Remove-PnPTerm", - "Rank": 1, - "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" - }, - { - "Id": 1181, - "CommandName": "Remove-PnPTerm", - "Rank": 2, - "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 1182, - "CommandName": "Remove-PnPTermGroup", - "Rank": 1, - "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" - }, - { - "Id": 1183, - "CommandName": "Remove-PnPTermGroup", - "Rank": 2, - "Command": "Remove-PnPTermGroup -Identity \"Corporate\"" - }, - { - "Id": 1184, - "CommandName": "Remove-PnPTermGroup", - "Rank": 3, - "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force" - }, - { - "Id": 1185, - "CommandName": "Remove-PnPTermLabel", - "Rank": 1, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62" - }, - { - "Id": 1186, - "CommandName": "Remove-PnPTermLabel", - "Rank": 2, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" - }, - { - "Id": 1187, - "CommandName": "Remove-PnPUser", - "Rank": 1, - "Command": "Remove-PnPUser -Identity 23" - }, - { - "Id": 1188, - "CommandName": "Remove-PnPUser", - "Rank": 2, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com" - }, - { - "Id": 1189, - "CommandName": "Remove-PnPUser", - "Rank": 3, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false" - }, - { - "Id": 1190, - "CommandName": "Remove-PnPUserInfo", - "Rank": 1, - "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" - }, - { - "Id": 1191, - "CommandName": "Remove-PnPUserProfile", - "Rank": 1, - "Command": "Remove-PnPUserProfile -LoginName user@domain.com" - }, - { - "Id": 1192, - "CommandName": "Remove-PnPView", - "Rank": 1, - "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"" - }, - { - "Id": 1193, - "CommandName": "Remove-PnPVivaConnectionsDashboardACE", - "Rank": 1, - "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" - }, - { - "Id": 1194, - "CommandName": "Remove-PnPWeb", - "Rank": 1, - "Command": "Remove-PnPWeb -Identity projectA" - }, - { - "Id": 1195, - "CommandName": "Remove-PnPWeb", - "Rank": 2, - "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0" - }, - { - "Id": 1196, - "CommandName": "Remove-PnPWebhookSubscription", - "Rank": 1, - "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6" - }, - { - "Id": 1197, - "CommandName": "Remove-PnPWebPart", - "Rank": 1, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" - }, - { - "Id": 1198, - "CommandName": "Remove-PnPWebPart", - "Rank": 2, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart" - }, - { - "Id": 1199, - "CommandName": "Remove-PnPWikiPage", - "Rank": 1, - "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'" - }, - { - "Id": 1200, - "CommandName": "Rename-PnPFile", - "Rank": 1, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx" - }, - { - "Id": 1201, - "CommandName": "Rename-PnPFile", - "Rank": 2, - "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx" - }, - { - "Id": 1202, - "CommandName": "Rename-PnPFile", - "Rank": 3, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists" - }, - { - "Id": 1203, - "CommandName": "Rename-PnPFolder", - "Rank": 1, - "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'" - }, - { - "Id": 1204, - "CommandName": "Repair-PnPSite", - "Rank": 1, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" - }, - { - "Id": 1205, - "CommandName": "Repair-PnPSite", - "Rank": 2, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" - }, - { - "Id": 1206, - "CommandName": "Request-PnPAccessToken", - "Rank": 1, - "Command": "Request-PnPAccessToken" - }, - { - "Id": 1207, - "CommandName": "Request-PnPAccessToken", - "Rank": 2, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2" - }, - { - "Id": 1208, - "CommandName": "Request-PnPAccessToken", - "Rank": 3, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All" - }, - { - "Id": 1209, - "CommandName": "Request-PnPAccessToken", - "Rank": 4, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl" - }, - { - "Id": 1210, - "CommandName": "Request-PnPPersonalSite", - "Rank": 1, - "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")" - }, - { - "Id": 1211, - "CommandName": "Request-PnPPersonalSite", - "Rank": 2, - "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"" - }, - { - "Id": 1212, - "CommandName": "Request-PnPReIndexList", - "Rank": 1, - "Command": "Request-PnPReIndexList -Identity \"Demo List\"" - }, - { - "Id": 1213, - "CommandName": "Request-PnPReIndexWeb", - "Rank": 1, - "Command": "Request-PnPReIndexWeb" - }, - { - "Id": 1214, - "CommandName": "Request-PnPSyntexClassifyAndExtract", - "Rank": 1, - "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"" - }, - { - "Id": 1215, - "CommandName": "Request-PnPSyntexClassifyAndExtract", - "Rank": 2, - "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"" - }, - { - "Id": 1216, - "CommandName": "Request-PnPSyntexClassifyAndExtract", - "Rank": 3, - "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")" - }, - { - "Id": 1217, - "CommandName": "Reset-PnPFileVersion", - "Rank": 1, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"" - }, - { - "Id": 1218, - "CommandName": "Reset-PnPFileVersion", - "Rank": 2, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"" - }, - { - "Id": 1219, - "CommandName": "Reset-PnPLabel", - "Rank": 1, - "Command": "Reset-PnPLabel -List \"Demo List\"" - }, - { - "Id": 1220, - "CommandName": "Reset-PnPLabel", - "Rank": 2, - "Command": "Reset-PnPLabel -List \"Demo List\" -SyncToItems $true" - }, - { - "Id": 1221, - "CommandName": "Reset-PnPMicrosoft365GroupExpiration", - "Rank": 1, - "Command": "Reset-PnPMicrosoft365GroupExpiration" - }, - { - "Id": 1222, - "CommandName": "Reset-PnPUserOneDriveQuotaToDefault", - "Rank": 1, - "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'" - }, - { - "Id": 1223, - "CommandName": "Resolve-PnPFolder", - "Rank": 1, - "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"" - }, - { - "Id": 1224, - "CommandName": "Restore-PnPDeletedMicrosoft365Group", - "Rank": 1, - "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" - }, - { - "Id": 1225, - "CommandName": "Restore-PnPFileVersion", - "Rank": 1, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" - }, - { - "Id": 1226, - "CommandName": "Restore-PnPFileVersion", - "Rank": 2, - "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512" - }, - { - "Id": 1227, - "CommandName": "Restore-PnPFileVersion", - "Rank": 3, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" - }, - { - "Id": 1228, - "CommandName": "Restore-PnPListItemVersion", - "Rank": 1, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" - }, - { - "Id": 1229, - "CommandName": "Restore-PnPListItemVersion", - "Rank": 2, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" - }, - { - "Id": 1230, - "CommandName": "Restore-PnPRecycleBinItem", - "Rank": 1, - "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" - }, - { - "Id": 1231, - "CommandName": "Restore-PnPTenantRecycleBinItem", - "Rank": 1, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 1232, - "CommandName": "Restore-PnPTenantRecycleBinItem", - "Rank": 2, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" - }, - { - "Id": 1233, - "CommandName": "Restore-PnPTenantSite", - "Rank": 1, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" - }, - { - "Id": 1234, - "CommandName": "Restore-PnPTenantSite", - "Rank": 2, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" - }, - { - "Id": 1235, - "CommandName": "Restore-PnPTenantSite", - "Rank": 3, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait" - }, - { - "Id": 1236, - "CommandName": "Revoke-PnPAzureADAppSitePermission", - "Rank": 1, - "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa" - }, - { - "Id": 1237, - "CommandName": "Revoke-PnPHubSiteRights", - "Rank": 1, - "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" - }, - { - "Id": 1238, - "CommandName": "Revoke-PnPSiteDesignRights", - "Rank": 1, - "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" - }, - { - "Id": 1239, - "CommandName": "Revoke-PnPTenantServicePrincipalPermission", - "Rank": 1, - "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" - }, - { - "Id": 1240, - "CommandName": "Revoke-PnPUserSession", - "Rank": 1, - "Command": "Revoke-PnPUserSession -User user1@contoso.com" - }, - { - "Id": 1241, - "CommandName": "Save-PnPPageConversionLog", - "Rank": 1, - "Command": "Save-PnPPageConversionLog" - }, - { - "Id": 1242, - "CommandName": "Save-PnPSiteTemplate", - "Rank": 1, - "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp" - }, - { - "Id": 1243, - "CommandName": "Save-PnPTenantTemplate", - "Rank": 1, - "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp" - }, - { - "Id": 1244, - "CommandName": "Send-PnPMail", - "Rank": 1, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\"" - }, - { - "Id": 1245, - "CommandName": "Send-PnPMail", - "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" - }, - { - "Id": 1246, - "CommandName": "Send-PnPMail", - "Rank": 3, - "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"" - }, - { - "Id": 1247, - "CommandName": "Send-PnPMail", - "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" - }, - { - "Id": 1248, - "CommandName": "Send-PnPMail", - "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" - }, - { - "Id": 1249, - "CommandName": "Send-PnPMail", - "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\"" - }, - { - "Id": 1250, - "CommandName": "Set-PnPAdaptiveScopeProperty", - "Rank": 1, - "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue" - }, - { - "Id": 1251, - "CommandName": "Set-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" - }, - { - "Id": 1252, - "CommandName": "Set-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Set-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"" - }, - { - "Id": 1253, - "CommandName": "Set-PnPAppSideLoading", - "Rank": 1, - "Command": "Set-PnPAppSideLoading -On" - }, - { - "Id": 1254, - "CommandName": "Set-PnPAppSideLoading", - "Rank": 2, - "Command": "Set-PnPAppSideLoading -Off" - }, - { - "Id": 1255, - "CommandName": "Set-PnPAuditing", - "Rank": 1, - "Command": "Set-PnPAuditing -EnableAll" - }, - { - "Id": 1256, - "CommandName": "Set-PnPAuditing", - "Rank": 2, - "Command": "Set-PnPAuditing -DisableAll" - }, - { - "Id": 1257, - "CommandName": "Set-PnPAuditing", - "Rank": 3, - "Command": "Set-PnPAuditing -RetentionTime 7" - }, - { - "Id": 1258, - "CommandName": "Set-PnPAuditing", - "Rank": 4, - "Command": "Set-PnPAuditing -TrimAuditLog" - }, - { - "Id": 1259, - "CommandName": "Set-PnPAuditing", - "Rank": 5, - "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent" - }, - { - "Id": 1260, - "CommandName": "Set-PnPAvailablePageLayouts", - "Rank": 1, - "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts" - }, - { - "Id": 1261, - "CommandName": "Set-PnPAzureADAppSitePermission", - "Rank": 1, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read" - }, - { - "Id": 1262, - "CommandName": "Set-PnPAzureADAppSitePermission", - "Rank": 2, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects" - }, - { - "Id": 1263, - "CommandName": "Set-PnPAzureADGroup", - "Rank": 1, - "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"" - }, - { - "Id": 1264, - "CommandName": "Set-PnPAzureADGroup", - "Rank": 2, - "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" - }, - { - "Id": 1265, - "CommandName": "Set-PnPAzureADGroup", - "Rank": 3, - "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com" - }, - { - "Id": 1266, - "CommandName": "Set-PnPBrowserIdleSignout", - "Rank": 1, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"" - }, - { - "Id": 1267, - "CommandName": "Set-PnPBrowserIdleSignout", - "Rank": 2, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)" - }, - { - "Id": 1268, - "CommandName": "Set-PnPBrowserIdleSignout", - "Rank": 3, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false" - }, - { - "Id": 1269, - "CommandName": "Set-PnPBuiltInDesignPackageVisibility", - "Rank": 1, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false" - }, - { - "Id": 1270, - "CommandName": "Set-PnPBuiltInDesignPackageVisibility", - "Rank": 2, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true" - }, - { - "Id": 1271, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 1, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false" - }, - { - "Id": 1272, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 2, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true" - }, - { - "Id": 1273, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 3, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true" - }, - { - "Id": 1274, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 4, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false" - }, - { - "Id": 1275, - "CommandName": "Set-PnPContentType", - "Rank": 1, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"" - }, - { - "Id": 1276, - "CommandName": "Set-PnPContentType", - "Rank": 2, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden" - }, - { - "Id": 1277, - "CommandName": "Set-PnPContentType", - "Rank": 3, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"" - }, - { - "Id": 1278, - "CommandName": "Set-PnPContentType", - "Rank": 4, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" - }, - { - "Id": 1279, - "CommandName": "Set-PnPContentType", - "Rank": 5, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" - }, - { - "Id": 1280, - "CommandName": "Set-PnPDefaultColumnValues", - "Rank": 1, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"" - }, - { - "Id": 1281, - "CommandName": "Set-PnPDefaultColumnValues", - "Rank": 2, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"" - }, - { - "Id": 1282, - "CommandName": "Set-PnPDefaultColumnValues", - "Rank": 3, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"" - }, - { - "Id": 1283, - "CommandName": "Set-PnPDefaultColumnValues", - "Rank": 4, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"" - }, - { - "Id": 1284, - "CommandName": "Set-PnPDefaultContentTypeToList", - "Rank": 1, - "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"" - }, - { - "Id": 1285, - "CommandName": "Set-PnPDefaultPageLayout", - "Rank": 1, - "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx" - }, - { - "Id": 1286, - "CommandName": "Set-PnPDefaultPageLayout", - "Rank": 2, - "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx" - }, - { - "Id": 1287, - "CommandName": "Set-PnPDefaultPageLayout", - "Rank": 3, - "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite" - }, - { - "Id": 1288, - "CommandName": "Set-PnPDisableSpacesActivation", - "Rank": 1, - "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant" - }, - { - "Id": 1289, - "CommandName": "Set-PnPDisableSpacesActivation", - "Rank": 2, - "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"" - }, - { - "Id": 1290, - "CommandName": "Set-PnPDisableSpacesActivation", - "Rank": 3, - "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"" - }, - { - "Id": 1291, - "CommandName": "Set-PnPDocumentSetField", - "Rank": 1, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField" - }, - { - "Id": 1292, - "CommandName": "Set-PnPDocumentSetField", - "Rank": 2, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField" - }, - { - "Id": 1293, - "CommandName": "Set-PnPField", - "Rank": 1, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}" - }, - { - "Id": 1294, - "CommandName": "Set-PnPField", - "Rank": 2, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists" - }, - { - "Id": 1295, - "CommandName": "Set-PnPField", - "Rank": 3, - "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}" - }, - { - "Id": 1296, - "CommandName": "Set-PnPFileCheckedIn", - "Rank": 1, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"" - }, - { - "Id": 1297, - "CommandName": "Set-PnPFileCheckedIn", - "Rank": 2, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"" - }, - { - "Id": 1298, - "CommandName": "Set-PnPFileCheckedOut", - "Rank": 1, - "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"" - }, - { - "Id": 1299, - "CommandName": "Set-PnPFolderPermission", - "Rank": 1, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'" - }, - { - "Id": 1300, - "CommandName": "Set-PnPFolderPermission", - "Rank": 2, - "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'" - }, - { - "Id": 1301, - "CommandName": "Set-PnPFolderPermission", - "Rank": 3, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" - }, - { - "Id": 1302, - "CommandName": "Set-PnPFooter", - "Rank": 1, - "Command": "Set-PnPFooter -Enabled:$true" - }, - { - "Id": 1303, - "CommandName": "Set-PnPFooter", - "Rank": 2, - "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral" - }, - { - "Id": 1304, - "CommandName": "Set-PnPFooter", - "Rank": 3, - "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"" - }, - { - "Id": 1305, - "CommandName": "Set-PnPFooter", - "Rank": 4, - "Command": "Set-PnPFooter -LogoUrl \"\"" - }, - { - "Id": 1306, - "CommandName": "Set-PnPGraphSubscription", - "Rank": 1, - "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"" - }, - { - "Id": 1307, - "CommandName": "Set-PnPGroup", - "Rank": 1, - "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members" - }, - { - "Id": 1308, - "CommandName": "Set-PnPGroup", - "Rank": 2, - "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'" - }, - { - "Id": 1309, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 1, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute" - }, - { - "Id": 1310, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 2, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'" - }, - { - "Id": 1311, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 3, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')" - }, - { - "Id": 1312, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 4, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')" - }, - { - "Id": 1313, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 5, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')" - }, - { - "Id": 1314, - "CommandName": "Set-PnPHideDefaultThemes", - "Rank": 1, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true" - }, - { - "Id": 1315, - "CommandName": "Set-PnPHideDefaultThemes", - "Rank": 2, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false" - }, - { - "Id": 1316, - "CommandName": "Set-PnPHomePage", - "Rank": 1, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx" - }, - { - "Id": 1317, - "CommandName": "Set-PnPHomePage", - "Rank": 2, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx" - }, - { - "Id": 1318, - "CommandName": "Set-PnPHomeSite", - "Rank": 1, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"" - }, - { - "Id": 1319, - "CommandName": "Set-PnPHomeSite", - "Rank": 2, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true" - }, - { - "Id": 1320, - "CommandName": "Set-PnPHubSite", - "Rank": 1, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"" - }, - { - "Id": 1321, - "CommandName": "Set-PnPHubSite", - "Rank": 2, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"" - }, - { - "Id": 1322, - "CommandName": "Set-PnPHubSite", - "Rank": 3, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745" - }, - { - "Id": 1323, - "CommandName": "Set-PnPHubSite", - "Rank": 4, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"" - }, - { - "Id": 1324, - "CommandName": "Set-PnPHubSite", - "Rank": 5, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync" - }, - { - "Id": 1325, - "CommandName": "Set-PnPHubSite", - "Rank": 6, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false" - }, - { - "Id": 1326, - "CommandName": "Set-PnPImageListItemColumn", - "Rank": 1, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"" - }, - { - "Id": 1327, - "CommandName": "Set-PnPImageListItemColumn", - "Rank": 2, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png" - }, - { - "Id": 1328, - "CommandName": "Set-PnPIndexedProperties", - "Rank": 1, - "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName" - }, - { - "Id": 1329, - "CommandName": "Set-PnPInPlaceRecordsManagement", - "Rank": 1, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true" - }, - { - "Id": 1330, - "CommandName": "Set-PnPInPlaceRecordsManagement", - "Rank": 2, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false" - }, - { - "Id": 1331, - "CommandName": "Set-PnPKnowledgeHubSite", - "Rank": 1, - "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"" - }, - { - "Id": 1332, - "CommandName": "Set-PnPLabel", - "Rank": 1, - "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\"" - }, - { - "Id": 1333, - "CommandName": "Set-PnPLabel", - "Rank": 2, - "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true" - }, - { - "Id": 1334, - "CommandName": "Set-PnPList", - "Rank": 1, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true" - }, - { - "Id": 1335, - "CommandName": "Set-PnPList", - "Rank": 2, - "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true" - }, - { - "Id": 1336, - "CommandName": "Set-PnPList", - "Rank": 3, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true" - }, - { - "Id": 1337, - "CommandName": "Set-PnPList", - "Rank": 4, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20" - }, - { - "Id": 1338, - "CommandName": "Set-PnPList", - "Rank": 5, - "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5" - }, - { - "Id": 1339, - "CommandName": "Set-PnPList", - "Rank": 6, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true" - }, - { - "Id": 1340, - "CommandName": "Set-PnPList", - "Rank": 7, - "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"" - }, - { - "Id": 1341, - "CommandName": "Set-PnPList", - "Rank": 8, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true" - }, - { - "Id": 1342, - "CommandName": "Set-PnPList", - "Rank": 9, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500" - }, - { - "Id": 1343, - "CommandName": "Set-PnPList", - "Rank": 10, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500" - }, - { - "Id": 1344, - "CommandName": "Set-PnPList", - "Rank": 11, - "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"" - }, - { - "Id": 1345, - "CommandName": "Set-PnPListInformationRightsManagement", - "Rank": 1, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true" - }, - { - "Id": 1346, - "CommandName": "Set-PnPListInformationRightsManagement", - "Rank": 2, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14" - }, - { - "Id": 1347, - "CommandName": "Set-PnPListItem", - "Rank": 1, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 1348, - "CommandName": "Set-PnPListItem", - "Rank": 2, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 1349, - "CommandName": "Set-PnPListItem", - "Rank": 3, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" - }, - { - "Id": 1350, - "CommandName": "Set-PnPListItem", - "Rank": 4, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"" - }, - { - "Id": 1351, - "CommandName": "Set-PnPListItem", - "Rank": 5, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion" - }, - { - "Id": 1352, - "CommandName": "Set-PnPListItemAsRecord", - "Rank": 1, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4" - }, - { - "Id": 1353, - "CommandName": "Set-PnPListItemAsRecord", - "Rank": 2, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date" - }, - { - "Id": 1354, - "CommandName": "Set-PnPListItemPermission", - "Rank": 1, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'" - }, - { - "Id": 1355, - "CommandName": "Set-PnPListItemPermission", - "Rank": 2, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'" - }, - { - "Id": 1356, - "CommandName": "Set-PnPListItemPermission", - "Rank": 3, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" - }, - { - "Id": 1357, - "CommandName": "Set-PnPListItemPermission", - "Rank": 4, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions" - }, - { - "Id": 1358, - "CommandName": "Set-PnPListItemPermission", - "Rank": 5, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"" - }, - { - "Id": 1359, - "CommandName": "Set-PnPListPermission", - "Rank": 1, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'" - }, - { - "Id": 1360, - "CommandName": "Set-PnPListPermission", - "Rank": 2, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'" - }, - { - "Id": 1361, - "CommandName": "Set-PnPListRecordDeclaration", - "Rank": 1, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration" - }, - { - "Id": 1362, - "CommandName": "Set-PnPListRecordDeclaration", - "Rank": 2, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true" - }, - { - "Id": 1363, - "CommandName": "Set-PnPMasterPage", - "Rank": 1, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" - }, - { - "Id": 1364, - "CommandName": "Set-PnPMasterPage", - "Rank": 2, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" - }, - { - "Id": 1365, - "CommandName": "Set-PnPMasterPage", - "Rank": 3, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" - }, - { - "Id": 1366, - "CommandName": "Set-PnPMasterPage", - "Rank": 4, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" - }, - { - "Id": 1367, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"" - }, - { - "Id": 1368, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1369, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived" - }, - { - "Id": 1370, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"" - }, - { - "Id": 1371, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1372, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite" - }, - { - "Id": 1373, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"" - }, - { - "Id": 1374, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1375, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived" - }, - { - "Id": 1376, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"" - }, - { - "Id": 1377, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1378, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite" - }, - { - "Id": 1379, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"" - }, - { - "Id": 1380, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1381, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsRead" - }, - { - "Id": 1382, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"" - }, - { - "Id": 1383, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"" - }, - { - "Id": 1384, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread" - }, - { - "Id": 1385, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 1, - "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"" - }, - { - "Id": 1386, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 2, - "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" - }, - { - "Id": 1387, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 3, - "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"" - }, - { - "Id": 1388, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 4, - "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false" - }, - { - "Id": 1389, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 5, - "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com" - }, - { - "Id": 1390, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 6, - "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" - }, - { - "Id": 1391, - "CommandName": "Set-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}" - }, - { - "Id": 1392, - "CommandName": "Set-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId" - }, - { - "Id": 1393, - "CommandName": "Set-PnPMinimalDownloadStrategy", - "Rank": 1, - "Command": "Set-PnPMinimalDownloadStrategy -Off" - }, - { - "Id": 1394, - "CommandName": "Set-PnPMinimalDownloadStrategy", - "Rank": 2, - "Command": "Set-PnPMinimalDownloadStrategy -On" - }, - { - "Id": 1395, - "CommandName": "Set-PnPPage", - "Rank": 1, - "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"" - }, - { - "Id": 1396, - "CommandName": "Set-PnPPage", - "Rank": 2, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled" - }, - { - "Id": 1397, - "CommandName": "Set-PnPPage", - "Rank": 3, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false" - }, - { - "Id": 1398, - "CommandName": "Set-PnPPage", - "Rank": 4, - "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default" - }, - { - "Id": 1399, - "CommandName": "Set-PnPPage", - "Rank": 5, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None" - }, - { - "Id": 1400, - "CommandName": "Set-PnPPage", - "Rank": 6, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0" - }, - { - "Id": 1401, - "CommandName": "Set-PnPPage", - "Rank": 7, - "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)" - }, - { - "Id": 1402, - "CommandName": "Set-PnPPage", - "Rank": 8, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate" - }, - { - "Id": 1403, - "CommandName": "Set-PnPPage", - "Rank": 9, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043" - }, - { - "Id": 1404, - "CommandName": "Set-PnPPage", - "Rank": 10, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035" - }, - { - "Id": 1405, - "CommandName": "Set-PnPPage", - "Rank": 11, - "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish" - }, - { - "Id": 1406, - "CommandName": "Set-PnPPageTextPart", - "Rank": 1, - "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"" - }, - { - "Id": 1407, - "CommandName": "Set-PnPPageWebPart", - "Rank": 1, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"" - }, - { - "Id": 1408, - "CommandName": "Set-PnPPageWebPart", - "Rank": 2, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties" - }, - { - "Id": 1409, - "CommandName": "Set-PnPPlannerBucket", - "Rank": 1, - "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"" - }, - { - "Id": 1410, - "CommandName": "Set-PnPPlannerConfiguration", - "Rank": 1, - "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true" - }, - { - "Id": 1411, - "CommandName": "Set-PnPPlannerConfiguration", - "Rank": 2, - "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false" - }, - { - "Id": 1412, - "CommandName": "Set-PnPPlannerPlan", - "Rank": 1, - "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"" - }, - { - "Id": 1413, - "CommandName": "Set-PnPPlannerTask", - "Rank": 1, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01" - }, - { - "Id": 1414, - "CommandName": "Set-PnPPlannerTask", - "Rank": 2, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"" - }, - { - "Id": 1415, - "CommandName": "Set-PnPPlannerTask", - "Rank": 3, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" - }, - { - "Id": 1416, - "CommandName": "Set-PnPPlannerUserPolicy", - "Rank": 1, - "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" - }, - { - "Id": 1417, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 1, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue" - }, - { - "Id": 1418, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 2, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /" - }, - { - "Id": 1419, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 3, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder" - }, - { - "Id": 1420, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 1, - "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com" - }, - { - "Id": 1421, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 2, - "Command": "Set-PnPRequestAccessEmails -Disabled" - }, - { - "Id": 1422, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 3, - "Command": "Set-PnPRequestAccessEmails -Disabled:$false" - }, - { - "Id": 1423, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 1, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems" - }, - { - "Id": 1424, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 2, - "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems" - }, - { - "Id": 1425, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 3, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"" - }, - { - "Id": 1426, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 4, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500" - }, - { - "Id": 1427, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 1, - "Command": "Set-PnPSearchConfiguration -Configuration $config" - }, - { - "Id": 1428, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 2, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site" - }, - { - "Id": 1429, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 3, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription" - }, - { - "Id": 1430, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 4, - "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" - }, - { - "Id": 1431, - "CommandName": "Set-PnPSearchExternalItem", - "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" - }, - { - "Id": 1432, - "CommandName": "Set-PnPSearchExternalItem", - "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\"" - }, - { - "Id": 1433, - "CommandName": "Set-PnPSearchSettings", - "Rank": 1, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site" - }, - { - "Id": 1434, - "CommandName": "Set-PnPSearchSettings", - "Rank": 2, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web" - }, - { - "Id": 1435, - "CommandName": "Set-PnPSearchSettings", - "Rank": 3, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"" - }, - { - "Id": 1436, - "CommandName": "Set-PnPSearchSettings", - "Rank": 4, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"" - }, - { - "Id": 1437, - "CommandName": "Set-PnPSearchSettings", - "Rank": 5, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site" - }, - { - "Id": 1438, - "CommandName": "Set-PnPSearchSettings", - "Rank": 6, - "Command": "Set-PnPSearchSettings -SearchScope Tenant" - }, - { - "Id": 1439, - "CommandName": "Set-PnPSearchSettings", - "Rank": 7, - "Command": "Set-PnPSearchSettings -SearchScope Hub" - }, - { - "Id": 1440, - "CommandName": "Set-PnPSite", - "Rank": 1, - "Command": "Set-PnPSite -Classification \"HBI\"" - }, - { - "Id": 1441, - "CommandName": "Set-PnPSite", - "Rank": 2, - "Command": "Set-PnPSite -Classification $null" - }, - { - "Id": 1442, - "CommandName": "Set-PnPSite", - "Rank": 3, - "Command": "Set-PnPSite -DisableFlows" - }, - { - "Id": 1443, - "CommandName": "Set-PnPSite", - "Rank": 4, - "Command": "Set-PnPSite -DisableFlows:$false" - }, - { - "Id": 1444, - "CommandName": "Set-PnPSite", - "Rank": 5, - "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png" - }, - { - "Id": 1445, - "CommandName": "Set-PnPSite", - "Rank": 6, - "Command": "Set-PnPSite -NoScriptSite $false" - }, - { - "Id": 1446, - "CommandName": "Set-PnPSite", - "Rank": 7, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true" - }, - { - "Id": 1447, - "CommandName": "Set-PnPSite", - "Rank": 8, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 10 -ExpireVersionsAfterDays 200" - }, - { - "Id": 1448, - "CommandName": "Set-PnPSite", - "Rank": 9, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MinorVersions 20 -ExpireVersionsAfterDays 0" - }, - { - "Id": 1449, - "CommandName": "Set-PnPSite", - "Rank": 10, - "Command": "Set-PnPSite -InheritTenantVPForNewDocLibs" - }, - { - "Id": 1450, - "CommandName": "Set-PnPSite", - "Rank": 11, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForNewLibs" - }, - { - "Id": 1451, - "CommandName": "Set-PnPSite", - "Rank": 12, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyForNewLibs" - }, - { - "Id": 1452, - "CommandName": "Set-PnPSite", - "Rank": 13, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyForNewLibs" - }, - { - "Id": 1453, - "CommandName": "Set-PnPSite", - "Rank": 14, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForExistingLibs" - }, - { - "Id": 1454, - "CommandName": "Set-PnPSite", - "Rank": 15, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyForExistingLibs" - }, - { - "Id": 1455, - "CommandName": "Set-PnPSite", - "Rank": 16, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyForExistingLibs" - }, - { - "Id": 1456, - "CommandName": "Set-PnPSite", - "Rank": 17, - "Command": "Set-PnPSite -CancelVPForExistingLibs" - }, - { - "Id": 1457, - "CommandName": "Set-PnPSiteClassification", - "Rank": 1, - "Command": "Set-PnPSiteClassification -Identity \"LBI\"" - }, - { - "Id": 1458, - "CommandName": "Set-PnPSiteClosure", - "Rank": 1, - "Command": "Set-PnPSiteClosure -State Open" - }, - { - "Id": 1459, - "CommandName": "Set-PnPSiteClosure", - "Rank": 2, - "Command": "Set-PnPSiteClosure -State Closed" - }, - { - "Id": 1460, - "CommandName": "Set-PnPSiteDesign", - "Rank": 1, - "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"" - }, - { - "Id": 1461, - "CommandName": "Set-PnPSiteDesign", - "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\"" - }, - { - "Id": 1462, - "CommandName": "Set-PnPSiteGroup", - "Rank": 1, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"" - }, - { - "Id": 1463, - "CommandName": "Set-PnPSiteGroup", - "Rank": 2, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com" - }, - { - "Id": 1464, - "CommandName": "Set-PnPSitePolicy", - "Rank": 1, - "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"" - }, - { - "Id": 1465, - "CommandName": "Set-PnPSiteScript", - "Rank": 1, - "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" - }, - { - "Id": 1466, - "CommandName": "Set-PnPSiteScriptPackage", - "Rank": 1, - "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" - }, - { - "Id": 1467, - "CommandName": "Set-PnPSiteSensitivityLabel", - "Rank": 1, - "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"" - }, - { - "Id": 1468, - "CommandName": "Set-PnPSiteSensitivityLabel", - "Rank": 2, - "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7" - }, - { - "Id": 1469, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 1, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"" - }, - { - "Id": 1470, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 2, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"" - }, - { - "Id": 1471, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 3, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" - }, - { - "Id": 1472, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 4, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" - }, - { - "Id": 1473, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 5, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" - }, - { - "Id": 1474, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 6, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" - }, - { - "Id": 1475, - "CommandName": "Set-PnPStorageEntity", - "Rank": 1, - "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" - }, - { - "Id": 1476, - "CommandName": "Set-PnPStorageEntity", - "Rank": 2, - "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" - }, - { - "Id": 1477, - "CommandName": "Set-PnPStructuralNavigationCacheSiteState", - "Rank": 1, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" - }, - { - "Id": 1478, - "CommandName": "Set-PnPStructuralNavigationCacheSiteState", - "Rank": 2, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" - }, - { - "Id": 1479, - "CommandName": "Set-PnPStructuralNavigationCacheWebState", - "Rank": 1, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" - }, - { - "Id": 1480, - "CommandName": "Set-PnPStructuralNavigationCacheWebState", - "Rank": 2, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" - }, - { - "Id": 1481, - "CommandName": "Set-PnPSubscribeSharePointNewsDigest", - "Rank": 1, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true" - }, - { - "Id": 1482, - "CommandName": "Set-PnPSubscribeSharePointNewsDigest", - "Rank": 2, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false" - }, - { - "Id": 1483, - "CommandName": "Set-PnPTaxonomyFieldValue", - "Rank": 1, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c" - }, - { - "Id": 1484, - "CommandName": "Set-PnPTaxonomyFieldValue", - "Rank": 2, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'" - }, - { - "Id": 1485, - "CommandName": "Set-PnPTaxonomyFieldValue", - "Rank": 3, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}" - }, - { - "Id": 1486, - "CommandName": "Set-PnPTeamifyPromptHidden", - "Rank": 1, - "Command": "Set-PnPTeamifyPromptHidden" - }, - { - "Id": 1487, - "CommandName": "Set-PnPTeamsChannel", - "Rank": 1, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"" - }, - { - "Id": 1488, - "CommandName": "Set-PnPTeamsChannel", - "Rank": 2, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true" - }, - { - "Id": 1489, - "CommandName": "Set-PnpTeamsChannelUser", - "Rank": 1, - "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner" - }, - { - "Id": 1490, - "CommandName": "Set-PnpTeamsChannelUser", - "Rank": 2, - "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member" - }, - { - "Id": 1491, - "CommandName": "Set-PnPTeamsTab", - "Rank": 1, - "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"" - }, - { - "Id": 1492, - "CommandName": "Set-PnPTeamsTag", - "Rank": 1, - "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"" - }, - { - "Id": 1493, - "CommandName": "Set-PnPTeamsTeam", - "Rank": 1, - "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'" - }, - { - "Id": 1494, - "CommandName": "Set-PnPTeamsTeam", - "Rank": 2, - "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public" - }, - { - "Id": 1495, - "CommandName": "Set-PnPTeamsTeam", - "Rank": 3, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false" - }, - { - "Id": 1496, - "CommandName": "Set-PnPTeamsTeam", - "Rank": 4, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate" - }, - { - "Id": 1497, - "CommandName": "Set-PnPTeamsTeamArchivedState", - "Rank": 1, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true" - }, - { - "Id": 1498, - "CommandName": "Set-PnPTeamsTeamArchivedState", - "Rank": 2, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false" - }, - { - "Id": 1499, - "CommandName": "Set-PnPTeamsTeamArchivedState", - "Rank": 3, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true" - }, - { - "Id": 1500, - "CommandName": "Set-PnPTeamsTeamPicture", - "Rank": 1, - "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"" - }, - { - "Id": 1501, - "CommandName": "Set-PnPTemporarilyDisableAppBar", - "Rank": 1, - "Command": "Set-PnPTemporarilyDisableAppBar $true" - }, - { - "Id": 1502, - "CommandName": "Set-PnPTemporarilyDisableAppBar", - "Rank": 2, - "Command": "Set-PnPTemporarilyDisableAppBar $false" - }, - { - "Id": 1503, - "CommandName": "Set-PnPTenant", - "Rank": 1, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/team1\" -LockState NoAccess\r ; Set-PnPTenant -NoAccessRedirectUrl \"http://www.contoso.com\"" - }, - { - "Id": 1504, - "CommandName": "Set-PnPTenant", - "Rank": 2, - "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false" - }, - { - "Id": 1505, - "CommandName": "Set-PnPTenant", - "Rank": 3, - "Command": "Set-PnPTenant -ShowAllUsersClaim $false" - }, - { - "Id": 1506, - "CommandName": "Set-PnPTenant", - "Rank": 4, - "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true" - }, - { - "Id": 1507, - "CommandName": "Set-PnPTenantAppCatalogUrl", - "Rank": 1, - "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"" - }, - { - "Id": 1508, - "CommandName": "Set-PnPTenantCdnEnabled", - "Rank": 1, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true" - }, - { - "Id": 1509, - "CommandName": "Set-PnPTenantCdnEnabled", - "Rank": 2, - "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false" - }, - { - "Id": 1510, - "CommandName": "Set-PnPTenantCdnEnabled", - "Rank": 3, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins" - }, - { - "Id": 1511, - "CommandName": "Set-PnPTenantCdnPolicy", - "Rank": 1, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue \"CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF\"" - }, - { - "Id": 1512, - "CommandName": "Set-PnPTenantCdnPolicy", - "Rank": 2, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"" - }, - { - "Id": 1513, - "CommandName": "Set-PnPTenantSite", - "Rank": 1, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled" - }, - { - "Id": 1514, - "CommandName": "Set-PnPTenantSite", - "Rank": 2, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000" - }, - { - "Id": 1515, - "CommandName": "Set-PnPTenantSite", - "Rank": 3, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"" - }, - { - "Id": 1516, - "CommandName": "Set-PnPTenantSite", - "Rank": 4, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" - }, - { - "Id": 1517, - "CommandName": "Set-PnPTenantSite", - "Rank": 5, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false" - }, - { - "Id": 1518, - "CommandName": "Set-PnPTenantSyncClientRestriction", - "Rank": 1, - "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false" - }, - { - "Id": 1519, - "CommandName": "Set-PnPTenantSyncClientRestriction", - "Rank": 2, - "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"" - }, - { - "Id": 1520, - "CommandName": "Set-PnPTerm", - "Rank": 1, - "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"" - }, - { - "Id": 1521, - "CommandName": "Set-PnPTerm", - "Rank": 2, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" - }, - { - "Id": 1522, - "CommandName": "Set-PnPTerm", - "Rank": 3, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}" - }, - { - "Id": 1523, - "CommandName": "Set-PnPTerm", - "Rank": 4, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true" - }, - { - "Id": 1524, - "CommandName": "Set-PnPTermGroup", - "Rank": 1, - "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"" - }, - { - "Id": 1525, - "CommandName": "Set-PnPTermSet", - "Rank": 1, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"" - }, - { - "Id": 1526, - "CommandName": "Set-PnPTermSet", - "Rank": 2, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true" - }, - { - "Id": 1527, - "CommandName": "Set-PnPTermSet", - "Rank": 3, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false" - }, - { - "Id": 1528, - "CommandName": "Set-PnPTheme", - "Rank": 1, - "Command": "Set-PnPTheme" - }, - { - "Id": 1529, - "CommandName": "Set-PnPTheme", - "Rank": 2, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor" - }, - { - "Id": 1530, - "CommandName": "Set-PnPTheme", - "Rank": 3, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'" - }, - { - "Id": 1531, - "CommandName": "Set-PnPTheme", - "Rank": 4, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit" - }, - { - "Id": 1532, - "CommandName": "Set-PnPTraceLog", - "Rank": 1, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt" - }, - { - "Id": 1533, - "CommandName": "Set-PnPTraceLog", - "Rank": 2, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug" - }, - { - "Id": 1534, - "CommandName": "Set-PnPTraceLog", - "Rank": 3, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"" - }, - { - "Id": 1535, - "CommandName": "Set-PnPTraceLog", - "Rank": 4, - "Command": "Set-PnPTraceLog -Off" - }, - { - "Id": 1536, - "CommandName": "Set-PnPUserOneDriveQuota", - "Rank": 1, - "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208" - }, - { - "Id": 1537, - "CommandName": "Set-PnPUserProfileProperty", - "Rank": 1, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'SPS-Location' -Value 'Stockholm'" - }, - { - "Id": 1538, - "CommandName": "Set-PnPUserProfileProperty", - "Rank": 2, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'" - }, - { - "Id": 1539, - "CommandName": "Set-PnPView", - "Rank": 1, - "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}" - }, - { - "Id": 1540, - "CommandName": "Set-PnPView", - "Rank": 2, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"" - }, - { - "Id": 1541, - "CommandName": "Set-PnPView", - "Rank": 3, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"" - }, - { - "Id": 1542, - "CommandName": "Set-PnPView", - "Rank": 4, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}" - }, - { - "Id": 1543, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", - "Rank": 1, - "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" - }, - { - "Id": 1544, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", - "Rank": 2, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"" - }, - { - "Id": 1545, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", - "Rank": 3, - "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" - }, - { - "Id": 1546, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", - "Rank": 4, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large" - }, - { - "Id": 1547, - "CommandName": "Set-PnPWeb", - "Rank": 1, - "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true" - }, - { - "Id": 1548, - "CommandName": "Set-PnPWeb", - "Rank": 2, - "Command": "Set-PnPWeb -QuickLaunchEnabled:$false" - }, - { - "Id": 1549, - "CommandName": "Set-PnPWeb", - "Rank": 3, - "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact" - }, - { - "Id": 1550, - "CommandName": "Set-PnPWeb", - "Rank": 4, - "Command": "Set-PnPWeb -NoCrawl:$true" - }, - { - "Id": 1551, - "CommandName": "Set-PnPWebHeader", - "Rank": 1, - "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended" - }, - { - "Id": 1552, - "CommandName": "Set-PnPWebHeader", - "Rank": 2, - "Command": "Set-PnPWebHeader -HeaderEmphasis Strong" - }, - { - "Id": 1553, - "CommandName": "Set-PnPWebHeader", - "Rank": 3, - "Command": "Set-PnPWebHeader -LogoAlignment Middle" - }, - { - "Id": 1554, - "CommandName": "Set-PnPWebhookSubscription", - "Rank": 1, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook" - }, - { - "Id": 1555, - "CommandName": "Set-PnPWebhookSubscription", - "Rank": 2, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" - }, - { - "Id": 1556, - "CommandName": "Set-PnPWebPartProperty", - "Rank": 1, - "Command": "Set-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\" -Value \"New Title\"" - }, - { - "Id": 1557, - "CommandName": "Set-PnPWebPermission", - "Rank": 1, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"" - }, - { - "Id": 1558, - "CommandName": "Set-PnPWebPermission", - "Rank": 2, - "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"" - }, - { - "Id": 1559, - "CommandName": "Set-PnPWebPermission", - "Rank": 3, - "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"" - }, - { - "Id": 1560, - "CommandName": "Set-PnPWebPermission", - "Rank": 4, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"" - }, - { - "Id": 1561, - "CommandName": "Set-PnPWebTheme", - "Rank": 1, - "Command": "Set-PnPWebTheme -Theme MyTheme" - }, - { - "Id": 1562, - "CommandName": "Set-PnPWebTheme", - "Rank": 2, - "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb" - }, - { - "Id": 1563, - "CommandName": "Set-PnPWikiPageContent", - "Rank": 1, - "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html" - }, - { - "Id": 1564, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 1, - "Command": "Submit-PnPSearchQuery -Query \"finance\"" - }, - { - "Id": 1565, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 2, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10" - }, - { - "Id": 1566, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 3, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All" - }, - { - "Id": 1567, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 4, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"" - }, - { - "Id": 1568, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 5, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All" - }, - { - "Id": 1569, - "CommandName": "Submit-PnPSearchQuery", - "Rank": 6, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All" - }, - { - "Id": 1570, - "CommandName": "Submit-PnPTeamsChannelMessage", - "Rank": 1, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"" - }, - { - "Id": 1571, - "CommandName": "Submit-PnPTeamsChannelMessage", - "Rank": 2, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html" - }, - { - "Id": 1572, - "CommandName": "Sync-PnPAppToTeams", - "Rank": 1, - "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 1573, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", - "Rank": 1, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}" - }, - { - "Id": 1574, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", - "Rank": 2, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"" - }, - { - "Id": 1575, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", - "Rank": 3, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose" - }, - { - "Id": 1576, - "CommandName": "Test-PnPListItemIsRecord", - "Rank": 1, - "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4" - }, - { - "Id": 1577, - "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed", - "Rank": 1, - "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"" - }, - { - "Id": 1578, - "CommandName": "Test-PnPSite", - "Rank": 1, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" - }, - { - "Id": 1579, - "CommandName": "Test-PnPSite", - "Rank": 2, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" - }, - { - "Id": 1580, - "CommandName": "Test-PnPTenantTemplate", - "Rank": 1, - "Command": "Test-PnPTenantTemplate -Template $myTemplate" - }, - { - "Id": 1581, - "CommandName": "Undo-PnPFileCheckedOut", - "Rank": 1, - "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"" - }, - { - "Id": 1582, - "CommandName": "Uninstall-PnPApp", - "Rank": 1, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 1583, - "CommandName": "Uninstall-PnPApp", - "Rank": 2, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" - }, - { - "Id": 1584, - "CommandName": "Unpublish-PnPApp", - "Rank": 1, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 1585, - "CommandName": "Unpublish-PnPApp", - "Rank": 2, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" - }, - { - "Id": 1586, - "CommandName": "Unpublish-PnPContentType", - "Rank": 1, - "Command": "Unpublish-PnPContentType -ContentType 0x0101" - }, - { - "Id": 1587, - "CommandName": "Unpublish-PnPSyntexModel", - "Rank": 1, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" - }, - { - "Id": 1588, - "CommandName": "Unpublish-PnPSyntexModel", - "Rank": 2, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch" - }, - { - "Id": 1589, - "CommandName": "Unregister-PnPHubSite", - "Rank": 1, - "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" - }, - { - "Id": 1590, - "CommandName": "Update-PnPApp", - "Rank": 1, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" - }, - { - "Id": 1591, - "CommandName": "Update-PnPApp", - "Rank": 2, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" - }, - { - "Id": 1592, - "CommandName": "Update-PnPAvailableSiteClassification", - "Rank": 1, - "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" - }, - { - "Id": 1593, - "CommandName": "Update-PnPAvailableSiteClassification", - "Rank": 2, - "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"" - }, - { - "Id": 1594, - "CommandName": "Update-PnPAvailableSiteClassification", - "Rank": 3, - "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp" - }, - { - "Id": 1595, - "CommandName": "Update-PnPSiteDesignFromWeb", - "Rank": 1, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll" - }, - { - "Id": 1596, - "CommandName": "Update-PnPSiteDesignFromWeb", - "Rank": 2, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" - }, - { - "Id": 1597, - "CommandName": "Update-PnPSiteDesignFromWeb", - "Rank": 3, - "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"" - }, - { - "Id": 1598, - "CommandName": "Update-PnPTeamsApp", - "Rank": 1, - "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip" - }, - { - "Id": 1599, - "CommandName": "Update-PnPTeamsUser", - "Rank": 1, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" - }, - { - "Id": 1600, - "CommandName": "Update-PnPTeamsUser", - "Rank": 2, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" - }, - { - "Id": 1601, - "CommandName": "Update-PnPTeamsUser", - "Rank": 3, - "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force" - }, - { - "Id": 1602, - "CommandName": "Update-PnPUserType", - "Rank": 1, - "Command": "Update-PnPUserType -LoginName jdoe@contoso.com" - } -] diff --git a/resources/predictor/resources/predictor/PnP.PowerShell.Suggestions.nightly.json b/resources/predictor/PnP.PowerShell.Suggestions.nightly.json similarity index 56% rename from resources/predictor/resources/predictor/PnP.PowerShell.Suggestions.nightly.json rename to resources/predictor/PnP.PowerShell.Suggestions.nightly.json index b71f1f4ea..c1fff0b8c 100644 --- a/resources/predictor/resources/predictor/PnP.PowerShell.Suggestions.nightly.json +++ b/resources/predictor/PnP.PowerShell.Suggestions.nightly.json @@ -1,9614 +1,9782 @@ [ { - "Id": 1, - "CommandName": "Add-PnPAlert", "Rank": 1, - "Command": "Add-PnPAlert -List \"Demo List\"" + "Id": 1, + "Command": "Add-PnPAlert -List \"Demo List\"", + "CommandName": "Add-PnPAlert" }, { - "Id": 2, - "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)" + "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" }, { - "Id": 3, - "CommandName": "Add-PnPAlert", "Rank": 3, - "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" + "Id": 3, + "Command": "Add-PnPAlert -Title \"Alert for user\" -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPAlert" }, { - "Id": 4, - "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))" + "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" }, { - "Id": 5, - "CommandName": "Add-PnPApp", "Rank": 1, - "Command": "Add-PnPApp -Path ./myapp.sppkg" + "Id": 5, + "Command": "Add-PnPApp -Path ./myapp.sppkg", + "CommandName": "Add-PnPApp" }, { - "Id": 6, - "CommandName": "Add-PnPApp", "Rank": 2, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish" + "Id": 6, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish", + "CommandName": "Add-PnPApp" }, { - "Id": 7, - "CommandName": "Add-PnPApp", "Rank": 3, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Scope Site -Publish" + "Id": 7, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Scope Site -Publish", + "CommandName": "Add-PnPApp" }, { - "Id": 8, - "CommandName": "Add-PnPApp", "Rank": 4, - "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish -SkipFeatureDeployment" + "Id": 8, + "Command": "Add-PnPApp -Path ./myapp.sppkg -Publish -SkipFeatureDeployment", + "CommandName": "Add-PnPApp" }, { - "Id": 9, - "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`\"}" + "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" }, { - "Id": 10, - "CommandName": "Add-PnPAvailableSiteClassification", "Rank": 1, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\"" + "Id": 10, + "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\"", + "CommandName": "Add-PnPAvailableSiteClassification" }, { - "Id": 11, - "CommandName": "Add-PnPAvailableSiteClassification", "Rank": 2, - "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\",\"HBI\"" + "Id": 11, + "Command": "Add-PnPAvailableSiteClassification -Classifications \"Top Secret\",\"HBI\"", + "CommandName": "Add-PnPAvailableSiteClassification" }, { - "Id": 12, - "CommandName": "Add-PnPAzureADGroupMember", "Rank": 1, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 12, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPAzureADGroupMember" }, { - "Id": 13, - "CommandName": "Add-PnPAzureADGroupMember", "Rank": 2, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" + "Id": 13, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", + "CommandName": "Add-PnPAzureADGroupMember" }, { - "Id": 14, - "CommandName": "Add-PnPAzureADGroupMember", "Rank": 3, - "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" + "Id": 14, + "Command": "Add-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"", + "CommandName": "Add-PnPAzureADGroupMember" }, { - "Id": 15, - "CommandName": "Add-PnPAzureADGroupOwner", "Rank": 1, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 15, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPAzureADGroupOwner" }, { - "Id": 16, - "CommandName": "Add-PnPAzureADGroupOwner", "Rank": 2, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" + "Id": 16, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", + "CommandName": "Add-PnPAzureADGroupOwner" }, { - "Id": 17, - "CommandName": "Add-PnPAzureADGroupOwner", "Rank": 3, - "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"" + "Id": 17, + "Command": "Add-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"125eaa87-7b54-41fd-b30f-2adfa68c4afe\"", + "CommandName": "Add-PnPAzureADGroupOwner" }, { - "Id": 18, - "CommandName": "Add-PnPAzureADServicePrincipalAppRole", "Rank": 1, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"Directory.Read.All\" -BuiltInType MicrosoftGraph" + "Id": 18, + "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"Directory.Read.All\" -BuiltInType MicrosoftGraph", + "CommandName": "Add-PnPAzureADServicePrincipalAppRole" }, { - "Id": 19, - "CommandName": "Add-PnPAzureADServicePrincipalAppRole", "Rank": 2, - "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"MyApplication.Read\" -Resource \"b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e\"" + "Id": 19, + "Command": "Add-PnPAzureADServicePrincipalAppRole -Principal \"62614f96-cb78-4534-bf12-1f6693e8237c\" -AppRole \"MyApplication.Read\" -Resource \"b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e\"", + "CommandName": "Add-PnPAzureADServicePrincipalAppRole" }, { - "Id": 20, - "CommandName": "Add-PnPContentType", "Rank": 1, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType $ct" + "Id": 20, + "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ParentContentType $ct", + "CommandName": "Add-PnPContentType" }, { - "Id": 21, - "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\"" + "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" }, { - "Id": 22, - "CommandName": "Add-PnPContentType", "Rank": 3, - "Command": "Add-PnPContentType -Name \"Project Item\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\"" + "Id": 22, + "Command": "Add-PnPContentType -Name \"Project Item\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\"", + "CommandName": "Add-PnPContentType" }, { - "Id": 23, - "CommandName": "Add-PnPContentType", "Rank": 4, - "Command": "Add-PnPContentType -Name \"Project Item\"" + "Id": 23, + "Command": "Add-PnPContentType -Name \"Project Item\"", + "CommandName": "Add-PnPContentType" }, { - "Id": 24, - "CommandName": "Add-PnPContentType", "Rank": 5, - "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ContentTypeId 0x010100CD5BDB7DDE03324794E155CE37E4B6BB" + "Id": 24, + "Command": "Add-PnPContentType -Name \"Project Document\" -Description \"Use for Contoso projects\" -Group \"Contoso Content Types\" -ContentTypeId 0x010100CD5BDB7DDE03324794E155CE37E4B6BB", + "CommandName": "Add-PnPContentType" }, { - "Id": 25, - "CommandName": "Add-PnPContentTypesFromContentTypeHub", "Rank": 1, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x0101\", \"0x01\"" + "Id": 25, + "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x0101\", \"0x01\"", + "CommandName": "Add-PnPContentTypesFromContentTypeHub" }, { - "Id": 26, - "CommandName": "Add-PnPContentTypesFromContentTypeHub", "Rank": 2, - "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x010057C83E557396744783531D80144BD08D\" -Site https://tenant.sharepoint.com/sites/HR" + "Id": 26, + "Command": "Add-PnPContentTypesFromContentTypeHub -ContentTypes \"0x010057C83E557396744783531D80144BD08D\" -Site https://tenant.sharepoint.com/sites/HR", + "CommandName": "Add-PnPContentTypesFromContentTypeHub" }, { - "Id": 27, - "CommandName": "Add-PnPContentTypeToDocumentSet", "Rank": 1, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" + "Id": 27, + "Command": "Add-PnPContentTypeToDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"", + "CommandName": "Add-PnPContentTypeToDocumentSet" }, { - "Id": 28, - "CommandName": "Add-PnPContentTypeToDocumentSet", "Rank": 2, - "Command": "Add-PnPContentTypeToDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" + "Id": 28, + "Command": "Add-PnPContentTypeToDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B", + "CommandName": "Add-PnPContentTypeToDocumentSet" }, { - "Id": 29, - "CommandName": "Add-PnPContentTypeToList", "Rank": 1, - "Command": "Add-PnPContentTypeToList -List \"Documents\" -ContentType \"Project Document\" -DefaultContentType" + "Id": 29, + "Command": "Add-PnPContentTypeToList -List \"Documents\" -ContentType \"Project Document\" -DefaultContentType", + "CommandName": "Add-PnPContentTypeToList" }, { - "Id": 30, - "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`\"}\"" + "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" }, { - "Id": 31, - "CommandName": "Add-PnPDataRowsToSiteTemplate", "Rank": 1, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Fields 'Title','Choice'" + "Id": 31, + "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Fields 'Title','Choice'", + "CommandName": "Add-PnPDataRowsToSiteTemplate" }, { - "Id": 32, - "CommandName": "Add-PnPDataRowsToSiteTemplate", "Rank": 2, - "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Query '' -Fields 'Title','Choice' -IncludeSecurity" + "Id": 32, + "Command": "Add-PnPDataRowsToSiteTemplate -Path template.pnp -List 'PnPTestList' -Query '' -Fields 'Title','Choice' -IncludeSecurity", + "CommandName": "Add-PnPDataRowsToSiteTemplate" }, { - "Id": 33, - "CommandName": "Add-PnPDocumentSet", "Rank": 1, - "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"" + "Id": 33, + "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"", + "CommandName": "Add-PnPDocumentSet" }, { - "Id": 34, - "CommandName": "Add-PnPEventReceiver", "Rank": 1, - "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous" + "Id": 34, + "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous", + "CommandName": "Add-PnPEventReceiver" }, { - "Id": 35, - "CommandName": "Add-PnPEventReceiver", "Rank": 2, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous" + "Id": 35, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous", + "CommandName": "Add-PnPEventReceiver" }, { - "Id": 36, - "CommandName": "Add-PnPEventReceiver", "Rank": 3, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site" + "Id": 36, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site", + "CommandName": "Add-PnPEventReceiver" }, { - "Id": 37, - "CommandName": "Add-PnPEventReceiver", "Rank": 4, - "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web" + "Id": 37, + "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web", + "CommandName": "Add-PnPEventReceiver" }, { - "Id": 38, - "CommandName": "Add-PnPField", "Rank": 1, - "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"" + "Id": 38, + "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"", + "CommandName": "Add-PnPField" }, { - "Id": 39, - "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\"" + "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" }, { - "Id": 40, - "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\"" + "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" }, { - "Id": 41, - "CommandName": "Add-PnPField", "Rank": 4, - "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"" + "Id": 41, + "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"", + "CommandName": "Add-PnPField" }, { - "Id": 42, - "CommandName": "Add-PnPField", "Rank": 5, - "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"" + "Id": 42, + "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"", + "CommandName": "Add-PnPField" }, { - "Id": 43, - "CommandName": "Add-PnPField", "Rank": 6, - "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"" + "Id": 43, + "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"", + "CommandName": "Add-PnPField" }, { - "Id": 44, - "CommandName": "Add-PnPFieldToContentType", "Rank": 1, - "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"" + "Id": 44, + "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"", + "CommandName": "Add-PnPFieldToContentType" }, { - "Id": 45, - "CommandName": "Add-PnPFile", "Rank": 1, - "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"" + "Id": 45, + "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"", + "CommandName": "Add-PnPFile" }, { - "Id": 46, - "CommandName": "Add-PnPFile", "Rank": 2, - "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"" + "Id": 46, + "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"", + "CommandName": "Add-PnPFile" }, { - "Id": 47, - "CommandName": "Add-PnPFile", "Rank": 3, - "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}" + "Id": 47, + "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}", + "CommandName": "Add-PnPFile" }, { - "Id": 48, - "CommandName": "Add-PnPFile", "Rank": 4, - "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}" + "Id": 48, + "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}", + "CommandName": "Add-PnPFile" }, { - "Id": 49, - "CommandName": "Add-PnPFile", "Rank": 5, - "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}" + "Id": 49, + "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}", + "CommandName": "Add-PnPFile" }, { - "Id": 50, - "CommandName": "Add-PnPFile", "Rank": 6, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}" + "Id": 50, + "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}", + "CommandName": "Add-PnPFile" }, { - "Id": 51, - "CommandName": "Add-PnPFile", "Rank": 7, - "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"" + "Id": 51, + "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"", + "CommandName": "Add-PnPFile" }, { - "Id": 52, - "CommandName": "Add-PnPFile", "Rank": 8, - "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'" + "Id": 52, + "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'", + "CommandName": "Add-PnPFile" }, { - "Id": 53, - "CommandName": "Add-PnPFileAnonymousSharingLink", "Rank": 1, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" + "Id": 53, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", + "CommandName": "Add-PnPFileAnonymousSharingLink" }, { - "Id": 54, - "CommandName": "Add-PnPFileAnonymousSharingLink", "Rank": 2, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"" + "Id": 54, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"", + "CommandName": "Add-PnPFileAnonymousSharingLink" }, { - "Id": 55, - "CommandName": "Add-PnPFileAnonymousSharingLink", "Rank": 3, - "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)" + "Id": 55, + "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)", + "CommandName": "Add-PnPFileAnonymousSharingLink" }, { - "Id": 56, - "CommandName": "Add-PnPFileOrganizationalSharingLink", "Rank": 1, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" + "Id": 56, + "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", + "CommandName": "Add-PnPFileOrganizationalSharingLink" }, { - "Id": 57, - "CommandName": "Add-PnPFileOrganizationalSharingLink", "Rank": 2, - "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit" + "Id": 57, + "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit", + "CommandName": "Add-PnPFileOrganizationalSharingLink" }, { - "Id": 58, - "CommandName": "Add-PnPFileSharingInvite", "Rank": 1, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" + "Id": 58, + "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn", + "CommandName": "Add-PnPFileSharingInvite" }, { - "Id": 59, - "CommandName": "Add-PnPFileSharingInvite", "Rank": 2, - "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" + "Id": 59, + "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner", + "CommandName": "Add-PnPFileSharingInvite" }, { - "Id": 60, - "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)" + "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" }, { - "Id": 61, - "CommandName": "Add-PnPFileToSiteTemplate", "Rank": 1, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"" + "Id": 61, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"", + "CommandName": "Add-PnPFileToSiteTemplate" }, { - "Id": 62, - "CommandName": "Add-PnPFileToSiteTemplate", "Rank": 2, - "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"" + "Id": 62, + "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"", + "CommandName": "Add-PnPFileToSiteTemplate" }, { - "Id": 63, - "CommandName": "Add-PnPFileToSiteTemplate", "Rank": 3, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false" + "Id": 63, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false", + "CommandName": "Add-PnPFileToSiteTemplate" }, { - "Id": 64, - "CommandName": "Add-PnPFileToSiteTemplate", "Rank": 4, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container" + "Id": 64, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container", + "CommandName": "Add-PnPFileToSiteTemplate" }, { - "Id": 65, - "CommandName": "Add-PnPFileToSiteTemplate", "Rank": 5, - "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"" + "Id": 65, + "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"", + "CommandName": "Add-PnPFileToSiteTemplate" }, { - "Id": 66, - "CommandName": "Add-PnPFileUserSharingLink", "Rank": 1, - "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 66, + "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPFileUserSharingLink" }, { - "Id": 67, - "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\"" + "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" }, { - "Id": 68, - "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" + "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" }, { - "Id": 69, - "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" + "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" }, { - "Id": 70, - "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" + "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" }, { - "Id": 71, - "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" + "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" }, { - "Id": 72, - "CommandName": "Add-PnPFolder", "Rank": 1, - "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" + "Id": 72, + "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage", + "CommandName": "Add-PnPFolder" }, { - "Id": 73, - "CommandName": "Add-PnPFolder", "Rank": 2, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"" + "Id": 73, + "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"", + "CommandName": "Add-PnPFolder" }, { - "Id": 74, - "CommandName": "Add-PnPFolder", "Rank": 3, - "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"" + "Id": 74, + "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"", + "CommandName": "Add-PnPFolder" }, { - "Id": 75, - "CommandName": "Add-PnPFolderAnonymousSharingLink", "Rank": 1, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" + "Id": 75, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", + "CommandName": "Add-PnPFolderAnonymousSharingLink" }, { - "Id": 76, - "CommandName": "Add-PnPFolderAnonymousSharingLink", "Rank": 2, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"" + "Id": 76, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"", + "CommandName": "Add-PnPFolderAnonymousSharingLink" }, { - "Id": 77, - "CommandName": "Add-PnPFolderAnonymousSharingLink", "Rank": 3, - "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)" + "Id": 77, + "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)", + "CommandName": "Add-PnPFolderAnonymousSharingLink" }, { - "Id": 78, - "CommandName": "Add-PnPFolderOrganizationalSharingLink", "Rank": 1, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" + "Id": 78, + "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", + "CommandName": "Add-PnPFolderOrganizationalSharingLink" }, { - "Id": 79, - "CommandName": "Add-PnPFolderOrganizationalSharingLink", "Rank": 2, - "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit" + "Id": 79, + "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit", + "CommandName": "Add-PnPFolderOrganizationalSharingLink" }, { - "Id": 80, - "CommandName": "Add-PnPFolderSharingInvite", "Rank": 1, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" + "Id": 80, + "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn", + "CommandName": "Add-PnPFolderSharingInvite" }, { - "Id": 81, - "CommandName": "Add-PnPFolderSharingInvite", "Rank": 2, - "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" + "Id": 81, + "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner", + "CommandName": "Add-PnPFolderSharingInvite" }, { - "Id": 82, - "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)" + "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" }, { - "Id": 83, - "CommandName": "Add-PnPFolderUserSharingLink", "Rank": 1, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 83, + "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPFolderUserSharingLink" }, { - "Id": 84, - "CommandName": "Add-PnPFolderUserSharingLink", "Rank": 2, - "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "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" }, { - "Id": 85, - "CommandName": "Add-PnPGroupMember", "Rank": 1, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" + "Id": 85, + "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'", + "CommandName": "Add-PnPGroupMember" }, { - "Id": 86, - "CommandName": "Add-PnPGroupMember", "Rank": 2, - "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5" + "Id": 86, + "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5", + "CommandName": "Add-PnPGroupMember" }, { - "Id": 87, - "CommandName": "Add-PnPHtmlPublishingPageLayout", "Rank": 1, - "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" + "Id": 87, + "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901", + "CommandName": "Add-PnPHtmlPublishingPageLayout" }, { - "Id": 88, - "CommandName": "Add-PnPHubSiteAssociation", "Rank": 1, - "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"" + "Id": 88, + "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"", + "CommandName": "Add-PnPHubSiteAssociation" }, { - "Id": 89, - "CommandName": "Add-PnPHubToHubAssociation", "Rank": 1, - "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443" + "Id": 89, + "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443", + "CommandName": "Add-PnPHubToHubAssociation" }, { - "Id": 90, - "CommandName": "Add-PnPHubToHubAssociation", "Rank": 2, - "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"" + "Id": 90, + "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"", + "CommandName": "Add-PnPHubToHubAssociation" }, { - "Id": 91, - "CommandName": "Add-PnPHubToHubAssociation", "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\"" + "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" }, { - "Id": 92, - "CommandName": "Add-PnPJavaScriptBlock", "Rank": 1, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site" + "Id": 92, + "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site", + "CommandName": "Add-PnPJavaScriptBlock" }, { - "Id": 93, - "CommandName": "Add-PnPJavaScriptBlock", "Rank": 2, - "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''" + "Id": 93, + "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''", + "CommandName": "Add-PnPJavaScriptBlock" }, { - "Id": 94, - "CommandName": "Add-PnPJavaScriptLink", "Rank": 1, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site" + "Id": 94, + "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site", + "CommandName": "Add-PnPJavaScriptLink" }, { - "Id": 95, - "CommandName": "Add-PnPJavaScriptLink", "Rank": 2, - "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js" + "Id": 95, + "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js", + "CommandName": "Add-PnPJavaScriptLink" }, { - "Id": 96, - "CommandName": "Add-PnPListDesign", "Rank": 1, - "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"" + "Id": 96, + "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"", + "CommandName": "Add-PnPListDesign" }, { - "Id": 97, - "CommandName": "Add-PnPListDesign", "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\"" + "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" }, { - "Id": 98, - "CommandName": "Add-PnPListFoldersToSiteTemplate", "Rank": 1, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'" + "Id": 98, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'", + "CommandName": "Add-PnPListFoldersToSiteTemplate" }, { - "Id": 99, - "CommandName": "Add-PnPListFoldersToSiteTemplate", "Rank": 2, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive" + "Id": 99, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive", + "CommandName": "Add-PnPListFoldersToSiteTemplate" }, { - "Id": 100, - "CommandName": "Add-PnPListFoldersToSiteTemplate", "Rank": 3, - "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity" + "Id": 100, + "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity", + "CommandName": "Add-PnPListFoldersToSiteTemplate" }, { - "Id": 101, - "CommandName": "Add-PnPListItem", "Rank": 1, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Id": 101, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", + "CommandName": "Add-PnPListItem" }, { - "Id": 102, - "CommandName": "Add-PnPListItem", "Rank": 2, - "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Id": 102, + "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", + "CommandName": "Add-PnPListItem" }, { - "Id": 103, - "CommandName": "Add-PnPListItem", "Rank": 3, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}" + "Id": 103, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}", + "CommandName": "Add-PnPListItem" }, { - "Id": 104, - "CommandName": "Add-PnPListItem", "Rank": 4, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"" + "Id": 104, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"", + "CommandName": "Add-PnPListItem" }, { - "Id": 105, - "CommandName": "Add-PnPListItem", "Rank": 5, - "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"" + "Id": 105, + "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"", + "CommandName": "Add-PnPListItem" }, { - "Id": 106, - "CommandName": "Add-PnPListItemAttachment", "Rank": 1, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4" + "Id": 106, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4", + "CommandName": "Add-PnPListItemAttachment" }, { - "Id": 107, - "CommandName": "Add-PnPListItemAttachment", "Rank": 2, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'" + "Id": 107, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'", + "CommandName": "Add-PnPListItemAttachment" }, { - "Id": 108, - "CommandName": "Add-PnPListItemAttachment", "Rank": 3, - "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream" + "Id": 108, + "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream", + "CommandName": "Add-PnPListItemAttachment" }, { - "Id": 109, - "CommandName": "Add-PnPListItemComment", "Rank": 1, - "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"" + "Id": 109, + "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"", + "CommandName": "Add-PnPListItemComment" }, { - "Id": 110, - "CommandName": "Add-PnPMasterPage", "Rank": 1, - "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"" + "Id": 110, + "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"", + "CommandName": "Add-PnPMasterPage" }, { - "Id": 111, - "CommandName": "Add-PnPMicrosoft365GroupMember", "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 111, + "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPMicrosoft365GroupMember" }, { - "Id": 112, - "CommandName": "Add-PnPMicrosoft365GroupMember", "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" + "Id": 112, + "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", + "CommandName": "Add-PnPMicrosoft365GroupMember" }, { - "Id": 113, - "CommandName": "Add-PnPMicrosoft365GroupOwner", "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 113, + "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPMicrosoft365GroupOwner" }, { - "Id": 114, - "CommandName": "Add-PnPMicrosoft365GroupOwner", "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" + "Id": 114, + "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting", + "CommandName": "Add-PnPMicrosoft365GroupOwner" }, { - "Id": 115, - "CommandName": "Add-PnPMicrosoft365GroupToSite", "Rank": 1, - "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"" + "Id": 115, + "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"", + "CommandName": "Add-PnPMicrosoft365GroupToSite" }, { - "Id": 116, - "CommandName": "Add-PnPMicrosoft365GroupToSite", "Rank": 2, - "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"" + "Id": 116, + "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"", + "CommandName": "Add-PnPMicrosoft365GroupToSite" }, { - "Id": 117, - "CommandName": "Add-PnPMicrosoft365GroupToSite", "Rank": 3, - "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage" + "Id": 117, + "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage", + "CommandName": "Add-PnPMicrosoft365GroupToSite" }, { - "Id": 118, - "CommandName": "Add-PnPNavigationNode", "Rank": 1, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"" + "Id": 118, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 119, - "CommandName": "Add-PnPNavigationNode", "Rank": 2, - "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012" + "Id": 119, + "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 120, - "CommandName": "Add-PnPNavigationNode", "Rank": 3, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First" + "Id": 120, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 121, - "CommandName": "Add-PnPNavigationNode", "Rank": 4, - "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External" + "Id": 121, + "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 122, - "CommandName": "Add-PnPNavigationNode", "Rank": 5, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"" + "Id": 122, + "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 123, - "CommandName": "Add-PnPNavigationNode", "Rank": 6, - "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"" + "Id": 123, + "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 124, - "CommandName": "Add-PnPNavigationNode", "Rank": 7, - "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012" + "Id": 124, + "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 125, - "CommandName": "Add-PnPNavigationNode", "Rank": 8, - "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab" + "Id": 125, + "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab", + "CommandName": "Add-PnPNavigationNode" }, { - "Id": 126, - "CommandName": "Add-PnPOrgAssetsLibrary", "Rank": 1, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"" + "Id": 126, + "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"", + "CommandName": "Add-PnPOrgAssetsLibrary" }, { - "Id": 127, - "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\"" + "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" }, { - "Id": 128, - "CommandName": "Add-PnPOrgAssetsLibrary", "Rank": 3, - "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private" + "Id": 128, + "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private", + "CommandName": "Add-PnPOrgAssetsLibrary" }, { - "Id": 129, - "CommandName": "Add-PnPOrgNewsSite", "Rank": 1, - "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"" + "Id": 129, + "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"", + "CommandName": "Add-PnPOrgNewsSite" }, { - "Id": 130, - "CommandName": "Add-PnPPage", "Rank": 1, - "Command": "Add-PnPPage -Name \"NewPage\"" + "Id": 130, + "Command": "Add-PnPPage -Name \"NewPage\"", + "CommandName": "Add-PnPPage" }, { - "Id": 131, - "CommandName": "Add-PnPPage", "Rank": 2, - "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"" + "Id": 131, + "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"", + "CommandName": "Add-PnPPage" }, { - "Id": 132, - "CommandName": "Add-PnPPage", "Rank": 3, - "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"" + "Id": 132, + "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"", + "CommandName": "Add-PnPPage" }, { - "Id": 133, - "CommandName": "Add-PnPPage", "Rank": 4, - "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template" + "Id": 133, + "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template", + "CommandName": "Add-PnPPage" }, { - "Id": 134, - "CommandName": "Add-PnPPage", "Rank": 5, - "Command": "Add-PnPPage -Name \"Folder/NewPage\"" + "Id": 134, + "Command": "Add-PnPPage -Name \"Folder/NewPage\"", + "CommandName": "Add-PnPPage" }, { - "Id": 135, - "CommandName": "Add-PnPPage", "Rank": 6, - "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock" + "Id": 135, + "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock", + "CommandName": "Add-PnPPage" }, { - "Id": 136, - "CommandName": "Add-PnPPage", "Rank": 7, - "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)" + "Id": 136, + "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)", + "CommandName": "Add-PnPPage" }, { - "Id": 137, - "CommandName": "Add-PnPPage", "Rank": 8, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate" + "Id": 137, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate", + "CommandName": "Add-PnPPage" }, { - "Id": 138, - "CommandName": "Add-PnPPage", "Rank": 9, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043" + "Id": 138, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043", + "CommandName": "Add-PnPPage" }, { - "Id": 139, - "CommandName": "Add-PnPPage", "Rank": 10, - "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035" + "Id": 139, + "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035", + "CommandName": "Add-PnPPage" }, { - "Id": 140, - "CommandName": "Add-PnPPageImageWebPart", "Rank": 1, - "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"" + "Id": 140, + "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"", + "CommandName": "Add-PnPPageImageWebPart" }, { - "Id": 141, - "CommandName": "Add-PnPPageImageWebPart", "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\"" + "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" }, { - "Id": 142, - "CommandName": "Add-PnPPageSection", "Rank": 1, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn" + "Id": 142, + "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn", + "CommandName": "Add-PnPPageSection" }, { - "Id": 143, - "CommandName": "Add-PnPPageSection", "Rank": 2, - "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10" + "Id": 143, + "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10", + "CommandName": "Add-PnPPageSection" }, { - "Id": 144, - "CommandName": "Add-PnPPageTextPart", "Rank": 1, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"" + "Id": 144, + "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"", + "CommandName": "Add-PnPPageTextPart" }, { - "Id": 145, - "CommandName": "Add-PnPPageTextPart", "Rank": 2, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"" + "Id": 145, + "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"", + "CommandName": "Add-PnPPageTextPart" }, { - "Id": 146, - "CommandName": "Add-PnPPageTextPart", "Rank": 3, - "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -TextBeforeImage \"Text before\" -TextAfterImage \"Text after\"" + "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" }, { - "Id": 147, - "CommandName": "Add-PnPPageWebPart", "Rank": 1, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap" + "Id": 147, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap", + "CommandName": "Add-PnPPageWebPart" }, { - "Id": 148, - "CommandName": "Add-PnPPageWebPart", "Rank": 2, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"" + "Id": 148, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"", + "CommandName": "Add-PnPPageWebPart" }, { - "Id": 149, - "CommandName": "Add-PnPPageWebPart", "Rank": 3, - "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2" + "Id": 149, + "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2", + "CommandName": "Add-PnPPageWebPart" }, { - "Id": 150, - "CommandName": "Add-PnPPlannerBucket", "Rank": 1, - "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"" + "Id": 150, + "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"", + "CommandName": "Add-PnPPlannerBucket" }, { - "Id": 151, - "CommandName": "Add-PnPPlannerBucket", "Rank": 2, - "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"" + "Id": 151, + "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"", + "CommandName": "Add-PnPPlannerBucket" }, { - "Id": 152, - "CommandName": "Add-PnPPlannerRoster", "Rank": 1, - "Command": "Add-PnPPlannerRoster" + "Id": 152, + "Command": "Add-PnPPlannerRoster", + "CommandName": "Add-PnPPlannerRoster" }, { - "Id": 153, - "CommandName": "Add-PnPPlannerRosterMember", "Rank": 1, - "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" + "Id": 153, + "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPPlannerRosterMember" }, { - "Id": 154, - "CommandName": "Add-PnPPlannerTask", "Rank": 1, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"" + "Id": 154, + "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"", + "CommandName": "Add-PnPPlannerTask" }, { - "Id": 155, - "CommandName": "Add-PnPPlannerTask", "Rank": 2, - "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"" + "Id": 155, + "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"", + "CommandName": "Add-PnPPlannerTask" }, { - "Id": 156, - "CommandName": "Add-PnPPlannerTask", "Rank": 3, - "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" + "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" }, { - "Id": 157, - "CommandName": "Add-PnPPublishingImageRendition", "Rank": 1, - "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" + "Id": 157, + "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600", + "CommandName": "Add-PnPPublishingImageRendition" }, { - "Id": 158, - "CommandName": "Add-PnPPublishingPage", "Rank": 1, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'" + "Id": 158, + "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'", + "CommandName": "Add-PnPPublishingPage" }, { - "Id": 159, - "CommandName": "Add-PnPPublishingPage", "Rank": 2, - "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'" + "Id": 159, + "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'", + "CommandName": "Add-PnPPublishingPage" }, { - "Id": 160, - "CommandName": "Add-PnPPublishingPageLayout", "Rank": 1, - "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" + "Id": 160, + "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901", + "CommandName": "Add-PnPPublishingPageLayout" }, { - "Id": 161, - "CommandName": "Add-PnPRoleDefinition", "Rank": 1, - "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"" + "Id": 161, + "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"", + "CommandName": "Add-PnPRoleDefinition" }, { - "Id": 162, - "CommandName": "Add-PnPRoleDefinition", "Rank": 2, - "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems" + "Id": 162, + "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems", + "CommandName": "Add-PnPRoleDefinition" }, { - "Id": 163, - "CommandName": "Add-PnPRoleDefinition", "Rank": 3, - "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems" + "Id": 163, + "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems", + "CommandName": "Add-PnPRoleDefinition" }, { - "Id": 164, - "CommandName": "Add-PnPSiteCollectionAdmin", "Rank": 1, - "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" + "Id": 164, + "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPSiteCollectionAdmin" }, { - "Id": 165, - "CommandName": "Add-PnPSiteCollectionAdmin", "Rank": 2, - "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" + "Id": 165, + "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", + "CommandName": "Add-PnPSiteCollectionAdmin" }, { - "Id": 166, - "CommandName": "Add-PnPSiteCollectionAdmin", "Rank": 3, - "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"" + "Id": 166, + "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"", + "CommandName": "Add-PnPSiteCollectionAdmin" }, { - "Id": 167, - "CommandName": "Add-PnPSiteCollectionAppCatalog", "Rank": 1, - "Command": "Add-PnPSiteCollectionAppCatalog" + "Id": 167, + "Command": "Add-PnPSiteCollectionAppCatalog", + "CommandName": "Add-PnPSiteCollectionAppCatalog" }, { - "Id": 168, - "CommandName": "Add-PnPSiteCollectionAppCatalog", "Rank": 2, - "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" + "Id": 168, + "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"", + "CommandName": "Add-PnPSiteCollectionAppCatalog" }, { - "Id": 169, - "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" + "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" }, { - "Id": 170, - "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" + "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" }, { - "Id": 171, - "CommandName": "Add-PnPSiteDesign", "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\"" + "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" }, { - "Id": 172, - "CommandName": "Add-PnPSiteDesignFromWeb", "Rank": 1, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll" + "Id": 172, + "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll", + "CommandName": "Add-PnPSiteDesignFromWeb" }, { - "Id": 173, - "CommandName": "Add-PnPSiteDesignFromWeb", "Rank": 2, - "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" + "Id": 173, + "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)", + "CommandName": "Add-PnPSiteDesignFromWeb" }, { - "Id": 174, - "CommandName": "Add-PnPSiteDesignFromWeb", "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" + "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" }, { - "Id": 175, - "CommandName": "Add-PnPSiteDesignTask", "Rank": 1, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82" + "Id": 175, + "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82", + "CommandName": "Add-PnPSiteDesignTask" }, { - "Id": 176, - "CommandName": "Add-PnPSiteDesignTask", "Rank": 2, - "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"" + "Id": 176, + "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"", + "CommandName": "Add-PnPSiteDesignTask" }, { - "Id": 177, - "CommandName": "Add-PnPSiteScript", "Rank": 1, - "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script" + "Id": 177, + "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script", + "CommandName": "Add-PnPSiteScript" }, { - "Id": 178, - "CommandName": "Add-PnPSiteScriptPackage", "Rank": 1, - "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"" + "Id": 178, + "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"", + "CommandName": "Add-PnPSiteScriptPackage" }, { - "Id": 179, - "CommandName": "Add-PnPSiteTemplate", "Rank": 1, - "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate" + "Id": 179, + "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate", + "CommandName": "Add-PnPSiteTemplate" }, { - "Id": 180, - "CommandName": "Add-PnPStoredCredential", "Rank": 1, - "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com" + "Id": 180, + "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com", + "CommandName": "Add-PnPStoredCredential" }, { - "Id": 181, - "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)" + "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" }, { - "Id": 182, - "CommandName": "Add-PnPStoredCredential", "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\"" + "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" }, { - "Id": 183, - "CommandName": "Add-PnPTaxonomyField", "Rank": 1, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"" + "Id": 183, + "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"", + "CommandName": "Add-PnPTaxonomyField" }, { - "Id": 184, - "CommandName": "Add-PnPTaxonomyField", "Rank": 2, - "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"" + "Id": 184, + "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"", + "CommandName": "Add-PnPTaxonomyField" }, { - "Id": 185, - "CommandName": "Add-PnPTeamsChannel", "Rank": 1, - "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true" + "Id": 185, + "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true", + "CommandName": "Add-PnPTeamsChannel" }, { - "Id": 186, - "CommandName": "Add-PnPTeamsChannel", "Rank": 2, - "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"" + "Id": 186, + "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"", + "CommandName": "Add-PnPTeamsChannel" }, { - "Id": 187, - "CommandName": "Add-PnPTeamsChannel", "Rank": 3, - "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com" + "Id": 187, + "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com", + "CommandName": "Add-PnPTeamsChannel" }, { - "Id": 188, - "CommandName": "Add-PnPTeamsChannel", "Rank": 4, - "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com" + "Id": 188, + "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com", + "CommandName": "Add-PnPTeamsChannel" }, { - "Id": 189, - "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" + "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" }, { - "Id": 190, - "CommandName": "Add-PnpTeamsChannelUser", "Rank": 2, - "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member" + "Id": 190, + "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member", + "CommandName": "Add-PnpTeamsChannelUser" }, { - "Id": 191, - "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\"" + "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" }, { - "Id": 192, - "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\"" + "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" }, { - "Id": 193, - "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\"" + "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" }, { - "Id": 194, - "CommandName": "Add-PnPTeamsTab", "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" + "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" }, { - "Id": 195, - "CommandName": "Add-PnPTeamsTeam", "Rank": 1, - "Command": "Add-PnPTeamsTeam" + "Id": 195, + "Command": "Add-PnPTeamsTeam", + "CommandName": "Add-PnPTeamsTeam" }, { - "Id": 196, - "CommandName": "Add-PnPTeamsUser", "Rank": 1, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" + "Id": 196, + "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", + "CommandName": "Add-PnPTeamsUser" }, { - "Id": 197, - "CommandName": "Add-PnPTeamsUser", "Rank": 2, - "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" + "Id": 197, + "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member", + "CommandName": "Add-PnPTeamsUser" }, { - "Id": 198, - "CommandName": "Add-PnPTeamsUser", "Rank": 3, - "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member" + "Id": 198, + "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member", + "CommandName": "Add-PnPTeamsUser" }, { - "Id": 199, - "CommandName": "Add-PnPTeamsUser", "Rank": 4, - "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private" + "Id": 199, + "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private", + "CommandName": "Add-PnPTeamsUser" }, { - "Id": 200, - "CommandName": "Add-PnPTenantCdnOrigin", "Rank": 1, - "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" + "Id": 200, + "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public", + "CommandName": "Add-PnPTenantCdnOrigin" }, { - "Id": 201, - "CommandName": "Add-PnPTenantSequence", "Rank": 1, - "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence" + "Id": 201, + "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence", + "CommandName": "Add-PnPTenantSequence" }, { - "Id": 202, - "CommandName": "Add-PnPTenantSequenceSite", "Rank": 1, - "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence" + "Id": 202, + "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence", + "CommandName": "Add-PnPTenantSequenceSite" }, { - "Id": 203, - "CommandName": "Add-PnPTenantSequenceSubSite", "Rank": 1, - "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite" + "Id": 203, + "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite", + "CommandName": "Add-PnPTenantSequenceSubSite" }, { - "Id": 204, - "CommandName": "Add-PnPTermToTerm", "Rank": 1, - "Command": "Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}" + "Id": 204, + "Command": "Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}", + "CommandName": "Add-PnPTermToTerm" }, { - "Id": 205, - "CommandName": "Add-PnPView", "Rank": 1, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"" + "Id": 205, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"", + "CommandName": "Add-PnPView" }, { - "Id": 206, - "CommandName": "Add-PnPView", "Rank": 2, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100" + "Id": 206, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100", + "CommandName": "Add-PnPView" }, { - "Id": 207, - "CommandName": "Add-PnPView", "Rank": 3, - "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"" + "Id": 207, + "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"", + "CommandName": "Add-PnPView" }, { - "Id": 208, - "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\"" + "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" }, { - "Id": 209, - "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\"" + "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" }, { - "Id": 210, - "CommandName": "Add-PnPVivaConnectionsDashboardACE", "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\"" + "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" }, { - "Id": 211, - "CommandName": "Add-PnPWebhookSubscription", "Rank": 1, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook" + "Id": 211, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook", + "CommandName": "Add-PnPWebhookSubscription" }, { - "Id": 212, - "CommandName": "Add-PnPWebhookSubscription", "Rank": 2, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" + "Id": 212, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"", + "CommandName": "Add-PnPWebhookSubscription" }, { - "Id": 213, - "CommandName": "Add-PnPWebhookSubscription", "Rank": 3, - "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"" + "Id": 213, + "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"", + "CommandName": "Add-PnPWebhookSubscription" }, { - "Id": 214, - "CommandName": "Add-PnPWebPartToWebPartPage", "Rank": 1, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1" + "Id": 214, + "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1", + "CommandName": "Add-PnPWebPartToWebPartPage" }, { - "Id": 215, - "CommandName": "Add-PnPWebPartToWebPartPage", "Rank": 2, - "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1" + "Id": 215, + "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1", + "CommandName": "Add-PnPWebPartToWebPartPage" }, { - "Id": 216, - "CommandName": "Add-PnPWebPartToWikiPage", "Rank": 1, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1" + "Id": 216, + "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1", + "CommandName": "Add-PnPWebPartToWikiPage" }, { - "Id": 217, - "CommandName": "Add-PnPWebPartToWikiPage", "Rank": 2, - "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1" + "Id": 217, + "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1", + "CommandName": "Add-PnPWebPartToWikiPage" }, { - "Id": 218, - "CommandName": "Add-PnPWikiPage", "Rank": 1, - "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'" + "Id": 218, + "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'", + "CommandName": "Add-PnPWikiPage" }, { - "Id": 219, - "CommandName": "Clear-PnPAzureADGroupMember", "Rank": 1, - "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"" + "Id": 219, + "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"", + "CommandName": "Clear-PnPAzureADGroupMember" }, { - "Id": 220, - "CommandName": "Clear-PnPAzureADGroupOwner", "Rank": 1, - "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"" + "Id": 220, + "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"", + "CommandName": "Clear-PnPAzureADGroupOwner" }, { - "Id": 221, - "CommandName": "Clear-PnPDefaultColumnValues", "Rank": 1, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField" + "Id": 221, + "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField", + "CommandName": "Clear-PnPDefaultColumnValues" }, { - "Id": 222, - "CommandName": "Clear-PnPDefaultColumnValues", "Rank": 2, - "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A" + "Id": 222, + "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A", + "CommandName": "Clear-PnPDefaultColumnValues" }, { - "Id": 223, - "CommandName": "Clear-PnPListItemAsRecord", "Rank": 1, - "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4" + "Id": 223, + "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4", + "CommandName": "Clear-PnPListItemAsRecord" }, { - "Id": 224, - "CommandName": "Clear-PnPMicrosoft365GroupMember", "Rank": 1, - "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"" + "Id": 224, + "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"", + "CommandName": "Clear-PnPMicrosoft365GroupMember" }, { - "Id": 225, - "CommandName": "Clear-PnPMicrosoft365GroupOwner", "Rank": 1, - "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"" + "Id": 225, + "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"", + "CommandName": "Clear-PnPMicrosoft365GroupOwner" }, { - "Id": 226, - "CommandName": "Clear-PnpRecycleBinItem", "Rank": 1, - "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" + "Id": 226, + "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442", + "CommandName": "Clear-PnpRecycleBinItem" }, { - "Id": 227, - "CommandName": "Clear-PnpRecycleBinItem", "Rank": 2, - "Command": "Clear-PnPRecycleBinItem -Identity $item -Force" + "Id": 227, + "Command": "Clear-PnPRecycleBinItem -Identity $item -Force", + "CommandName": "Clear-PnpRecycleBinItem" }, { - "Id": 228, - "CommandName": "Clear-PnpRecycleBinItem", "Rank": 3, - "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000" + "Id": 228, + "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000", + "CommandName": "Clear-PnpRecycleBinItem" }, { - "Id": 229, - "CommandName": "Clear-PnPTenantAppCatalogUrl", "Rank": 1, - "Command": "Clear-PnPTenantAppCatalogUrl" + "Id": 229, + "Command": "Clear-PnPTenantAppCatalogUrl", + "CommandName": "Clear-PnPTenantAppCatalogUrl" }, { - "Id": 230, - "CommandName": "Clear-PnPTenantRecycleBinItem", "Rank": 1, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" + "Id": 230, + "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Clear-PnPTenantRecycleBinItem" }, { - "Id": 231, - "CommandName": "Clear-PnPTenantRecycleBinItem", "Rank": 2, - "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" + "Id": 231, + "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait", + "CommandName": "Clear-PnPTenantRecycleBinItem" }, { - "Id": 232, - "CommandName": "Connect-PnPOnline", "Rank": 1, - "Command": "Connect-PnPOnline -Url contoso.sharepoint.com -AzureEnvironment Custom -MicrosoftGraphEndPoint \"custom.graph.microsoft.com\" -AzureADLoginEndPoint \"https://custom.login.microsoftonline.com\"" + "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" }, { - "Id": 233, - "CommandName": "Convert-PnPFolderToSiteTemplate", "Rank": 1, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp" + "Id": 233, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -AsMemoryStream", + "CommandName": "Convert-PnPFile" }, { - "Id": 234, - "CommandName": "Convert-PnPFolderToSiteTemplate", "Rank": 2, - "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp" + "Id": 234, + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\"", + "CommandName": "Convert-PnPFile" }, { + "Rank": 3, "Id": 235, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 1, - "Command": "Convert-PnPSiteTemplate -Path template.xml" + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\"", + "CommandName": "Convert-PnPFile" }, { + "Rank": 4, "Id": 236, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 2, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml" + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\" -Force", + "CommandName": "Convert-PnPFile" }, { + "Rank": 5, "Id": 237, - "CommandName": "Convert-PnPSiteTemplate", - "Rank": 3, - "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512" + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.xlsx\" -Folder \"/sites/demo/Shared Documents/Archive\"", + "CommandName": "Convert-PnPFile" }, { + "Rank": 6, "Id": 238, - "CommandName": "Convert-PnPSiteTemplateToMarkdown", - "Rank": 1, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml" + "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.png\" -ConvertToFormat Jpg -Folder \"/sites/demo/Shared Documents/Archive\"", + "CommandName": "Convert-PnPFile" }, { + "Rank": 1, "Id": 239, - "CommandName": "Convert-PnPSiteTemplateToMarkdown", - "Rank": 2, - "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md" + "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp", + "CommandName": "Convert-PnPFolderToSiteTemplate" }, { + "Rank": 2, "Id": 240, - "CommandName": "ConvertTo-PnPPage", - "Rank": 1, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite" + "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp", + "CommandName": "Convert-PnPFolderToSiteTemplate" }, { + "Rank": 1, "Id": 241, - "CommandName": "ConvertTo-PnPPage", - "Rank": 2, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml" + "Command": "Convert-PnPSiteTemplate -Path template.xml", + "CommandName": "Convert-PnPSiteTemplate" }, { + "Rank": 2, "Id": 242, - "CommandName": "ConvertTo-PnPPage", - "Rank": 3, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner" + "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml", + "CommandName": "Convert-PnPSiteTemplate" }, { + "Rank": 3, "Id": 243, - "CommandName": "ConvertTo-PnPPage", - "Rank": 4, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata" + "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512", + "CommandName": "Convert-PnPSiteTemplate" }, { + "Rank": 1, "Id": 244, - "CommandName": "ConvertTo-PnPPage", - "Rank": 5, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" + "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml", + "CommandName": "Convert-PnPSiteTemplateToMarkdown" }, { + "Rank": 2, "Id": 245, - "CommandName": "ConvertTo-PnPPage", - "Rank": 6, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target" + "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md", + "CommandName": "Convert-PnPSiteTemplateToMarkdown" }, { + "Rank": 1, "Id": 246, - "CommandName": "ConvertTo-PnPPage", - "Rank": 7, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 2, "Id": 247, - "CommandName": "ConvertTo-PnPPage", - "Rank": 8, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 3, "Id": 248, - "CommandName": "ConvertTo-PnPPage", - "Rank": 9, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 4, "Id": 249, - "CommandName": "ConvertTo-PnPPage", - "Rank": 10, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 5, "Id": 250, - "CommandName": "ConvertTo-PnPPage", - "Rank": 11, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 6, "Id": 251, - "CommandName": "ConvertTo-PnPPage", - "Rank": 12, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 7, "Id": 252, - "CommandName": "ConvertTo-PnPPage", - "Rank": 13, - "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 8, "Id": 253, - "CommandName": "ConvertTo-PnPPage", - "Rank": 14, - "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 9, "Id": 254, - "CommandName": "Copy-PnPFile", - "Rank": 1, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 10, "Id": 255, - "CommandName": "Copy-PnPFile", - "Rank": 2, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 11, "Id": 256, - "CommandName": "Copy-PnPFile", - "Rank": 3, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 12, "Id": 257, - "CommandName": "Copy-PnPFile", - "Rank": 4, - "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 13, "Id": 258, - "CommandName": "Copy-PnPFile", - "Rank": 5, - "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" + "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 14, "Id": 259, - "CommandName": "Copy-PnPFile", - "Rank": 6, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" + "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv", + "CommandName": "ConvertTo-PnPPage" }, { + "Rank": 1, "Id": 260, - "CommandName": "Copy-PnPFile", - "Rank": 7, - "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFile" }, { + "Rank": 2, "Id": 261, - "CommandName": "Copy-PnPFile", - "Rank": 8, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"", + "CommandName": "Copy-PnPFile" }, { + "Rank": 3, "Id": 262, - "CommandName": "Copy-PnPFile", - "Rank": 9, - "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory", + "CommandName": "Copy-PnPFile" }, { + "Rank": 4, "Id": 263, - "CommandName": "Copy-PnPFile", - "Rank": 10, - "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" + "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFile" }, { + "Rank": 5, "Id": 264, - "CommandName": "Copy-PnPFolder", - "Rank": 1, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"", + "CommandName": "Copy-PnPFile" }, { + "Rank": 6, "Id": 265, - "CommandName": "Copy-PnPFolder", - "Rank": 2, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"", + "CommandName": "Copy-PnPFile" }, { + "Rank": 7, "Id": 266, - "CommandName": "Copy-PnPFolder", - "Rank": 3, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" + "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"", + "CommandName": "Copy-PnPFile" }, { + "Rank": 8, "Id": 267, - "CommandName": "Copy-PnPFolder", - "Rank": 4, - "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFile" }, { + "Rank": 9, "Id": 268, - "CommandName": "Copy-PnPFolder", - "Rank": 5, - "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" + "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite", + "CommandName": "Copy-PnPFile" }, { + "Rank": 10, "Id": 269, - "CommandName": "Copy-PnPFolder", - "Rank": 6, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" + "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"", + "CommandName": "Copy-PnPFile" }, { + "Rank": 1, "Id": 270, - "CommandName": "Copy-PnPFolder", - "Rank": 7, - "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 2, "Id": 271, - "CommandName": "Copy-PnPFolder", - "Rank": 8, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" + "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 3, "Id": 272, - "CommandName": "Copy-PnPFolder", - "Rank": 9, - "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 4, "Id": 273, - "CommandName": "Copy-PnPFolder", - "Rank": 10, - "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" + "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 5, "Id": 274, - "CommandName": "Copy-PnPItemProxy", - "Rank": 1, - "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"" + "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 6, "Id": 275, - "CommandName": "Copy-PnPList", - "Rank": 1, - "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"" + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 7, "Id": 276, - "CommandName": "Copy-PnPList", - "Rank": 2, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment" + "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 8, "Id": 277, - "CommandName": "Copy-PnPList", - "Rank": 3, - "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"" + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 9, "Id": 278, - "CommandName": "Copy-PnPList", - "Rank": 4, - "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\" + "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 10, "Id": 279, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 1, - "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members" + "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"", + "CommandName": "Copy-PnPFolder" }, { + "Rank": 1, "Id": 280, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 2, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"" + "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"", + "CommandName": "Copy-PnPItemProxy" }, { + "Rank": 1, "Id": 281, - "CommandName": "Copy-PnPTeamsTeam", - "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" + "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"", + "CommandName": "Copy-PnPList" }, { + "Rank": 2, "Id": 282, - "CommandName": "Copy-PnPTeamsTeam", - "Rank": 4, - "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone settings,channels -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" + "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment", + "CommandName": "Copy-PnPList" }, { + "Rank": 3, "Id": 283, - "CommandName": "Disable-PnPFeature", - "Rank": 1, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"", + "CommandName": "Copy-PnPList" }, { + "Rank": 4, "Id": 284, - "CommandName": "Disable-PnPFeature", - "Rank": 2, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" + "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\", + "CommandName": "Copy-PnPList" }, { + "Rank": 1, "Id": 285, - "CommandName": "Disable-PnPFeature", - "Rank": 3, - "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" + "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members", + "CommandName": "Copy-PnPTeamsTeam" }, { + "Rank": 2, "Id": 286, - "CommandName": "Disable-PnPPageScheduling", - "Rank": 1, - "Command": "Disable-PnPPageScheduling" + "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"", + "CommandName": "Copy-PnPTeamsTeam" }, { + "Rank": 3, "Id": 287, - "CommandName": "Disable-PnPPowerShellTelemetry", - "Rank": 1, - "Command": "Disable-PnPPowerShellTelemetry" + "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": 4, "Id": 288, - "CommandName": "Disable-PnPPowerShellTelemetry", - "Rank": 2, - "Command": "Disable-PnPPowerShellTelemetry -Force" + "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" }, { - "Id": 289, - "CommandName": "Disable-PnPSharingForNonOwnersOfSite", "Rank": 1, - "Command": "Disable-PnPSharingForNonOwnersOfSite" + "Id": 289, + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Disable-PnPFeature" }, { + "Rank": 2, "Id": 290, - "CommandName": "Disable-PnPSiteClassification", - "Rank": 1, - "Command": "Disable-PnPSiteClassification" + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force", + "CommandName": "Disable-PnPFeature" }, { + "Rank": 3, "Id": 291, - "CommandName": "Disconnect-PnPOnline", - "Rank": 1, - "Command": "Disconnect-PnPOnline" + "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web", + "CommandName": "Disable-PnPFeature" }, { - "Id": 292, - "CommandName": "Enable-PnPCommSite", "Rank": 1, - "Command": "Enable-PnPCommSite" + "Id": 292, + "Command": "Disable-PnPPageScheduling", + "CommandName": "Disable-PnPPageScheduling" }, { + "Rank": 1, "Id": 293, - "CommandName": "Enable-PnPCommSite", - "Rank": 2, - "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767" + "Command": "Disable-PnPPowerShellTelemetry", + "CommandName": "Disable-PnPPowerShellTelemetry" }, { + "Rank": 2, "Id": 294, - "CommandName": "Enable-PnPFeature", - "Rank": 1, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Command": "Disable-PnPPowerShellTelemetry -Force", + "CommandName": "Disable-PnPPowerShellTelemetry" }, { + "Rank": 1, "Id": 295, - "CommandName": "Enable-PnPFeature", - "Rank": 2, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" + "Command": "Disable-PnPSharingForNonOwnersOfSite", + "CommandName": "Disable-PnPSharingForNonOwnersOfSite" }, { + "Rank": 1, "Id": 296, - "CommandName": "Enable-PnPFeature", - "Rank": 3, - "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" + "Command": "Disable-PnPSiteClassification", + "CommandName": "Disable-PnPSiteClassification" }, { - "Id": 297, - "CommandName": "Enable-PnPPageScheduling", "Rank": 1, - "Command": "Enable-PnPPageScheduling" + "Id": 297, + "Command": "Disconnect-PnPOnline", + "CommandName": "Disconnect-PnPOnline" }, { - "Id": 298, - "CommandName": "Enable-PnPPowerShellTelemetry", "Rank": 1, - "Command": "Enable-PnPPowerShellTelemetry" + "Id": 298, + "Command": "Enable-PnPCommSite", + "CommandName": "Enable-PnPCommSite" }, { - "Id": 299, - "CommandName": "Enable-PnPPowerShellTelemetry", "Rank": 2, - "Command": "Enable-PnPPowerShellTelemetry -Force" + "Id": 299, + "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767", + "CommandName": "Enable-PnPCommSite" }, { - "Id": 300, - "CommandName": "Enable-PnPSiteClassification", "Rank": 1, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"" + "Id": 300, + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Enable-PnPFeature" }, { - "Id": 301, - "CommandName": "Enable-PnPSiteClassification", "Rank": 2, - "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp" + "Id": 301, + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force", + "CommandName": "Enable-PnPFeature" }, { + "Rank": 3, "Id": 302, - "CommandName": "Export-PnPListToSiteTemplate", - "Rank": 1, - "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"" + "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web", + "CommandName": "Enable-PnPFeature" }, { + "Rank": 1, "Id": 303, - "CommandName": "Export-PnPListToSiteTemplate", - "Rank": 2, - "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"" + "Command": "Enable-PnPPageScheduling", + "CommandName": "Enable-PnPPageScheduling" }, { - "Id": 304, - "CommandName": "Export-PnPPage", "Rank": 1, - "Command": "Export-PnPPage -Identity Home.aspx" + "Id": 304, + "Command": "Enable-PnPPowerShellTelemetry", + "CommandName": "Enable-PnPPowerShellTelemetry" }, { + "Rank": 2, "Id": 305, - "CommandName": "Export-PnPPageMapping", - "Rank": 1, - "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite" + "Command": "Enable-PnPPowerShellTelemetry -Force", + "CommandName": "Enable-PnPPowerShellTelemetry" }, { + "Rank": 1, "Id": 306, - "CommandName": "Export-PnPPageMapping", - "Rank": 2, - "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite" + "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"", + "CommandName": "Enable-PnPSiteClassification" }, { + "Rank": 2, "Id": 307, - "CommandName": "Export-PnPPageMapping", - "Rank": 3, - "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite" + "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp", + "CommandName": "Enable-PnPSiteClassification" }, { - "Id": 308, - "CommandName": "Export-PnPTaxonomy", "Rank": 1, - "Command": "Export-PnPTaxonomy" + "Id": 308, + "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"", + "CommandName": "Export-PnPListToSiteTemplate" }, { - "Id": 309, - "CommandName": "Export-PnPTaxonomy", "Rank": 2, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt" + "Id": 309, + "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"", + "CommandName": "Export-PnPListToSiteTemplate" }, { + "Rank": 1, "Id": 310, - "CommandName": "Export-PnPTaxonomy", - "Rank": 3, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254" + "Command": "Export-PnPPage -Identity Home.aspx", + "CommandName": "Export-PnPPage" }, { + "Rank": 2, "Id": 311, - "CommandName": "Export-PnPTaxonomy", - "Rank": 4, - "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044" + "Command": "Export-PnPPage -Identity HR/Home.aspx -Out template.pnp", + "CommandName": "Export-PnPPage" }, { - "Id": 312, - "CommandName": "Export-PnPTermGroupToXml", "Rank": 1, - "Command": "Export-PnPTermGroupToXml" + "Id": 312, + "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite", + "CommandName": "Export-PnPPageMapping" }, { - "Id": 313, - "CommandName": "Export-PnPTermGroupToXml", "Rank": 2, - "Command": "Export-PnPTermGroupToXml -Out output.xml" + "Id": 313, + "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite", + "CommandName": "Export-PnPPageMapping" }, { - "Id": 314, - "CommandName": "Export-PnPTermGroupToXml", "Rank": 3, - "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"" + "Id": 314, + "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite", + "CommandName": "Export-PnPPageMapping" }, { - "Id": 315, - "CommandName": "Export-PnPUserInfo", "Rank": 1, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" + "Id": 315, + "Command": "Export-PnPTaxonomy", + "CommandName": "Export-PnPTaxonomy" }, { - "Id": 316, - "CommandName": "Export-PnPUserInfo", "Rank": 2, - "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\" | ConvertTo-Csv | Out-File MyFile.csv" + "Id": 316, + "Command": "Export-PnPTaxonomy -Path c:\\output.txt", + "CommandName": "Export-PnPTaxonomy" }, { + "Rank": 3, "Id": 317, - "CommandName": "Export-PnPUserProfile", - "Rank": 1, - "Command": "Export-PnPUserProfile -LoginName user@domain.com" + "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254", + "CommandName": "Export-PnPTaxonomy" }, { + "Rank": 4, "Id": 318, - "CommandName": "Export-PnPUserProfile", - "Rank": 2, - "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv" + "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044", + "CommandName": "Export-PnPTaxonomy" }, { - "Id": 319, - "CommandName": "Find-PnPFile", "Rank": 1, - "Command": "Find-PnPFile -Match *.master" + "Id": 319, + "Command": "Export-PnPTermGroupToXml", + "CommandName": "Export-PnPTermGroupToXml" }, { - "Id": 320, - "CommandName": "Find-PnPFile", "Rank": 2, - "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf" + "Id": 320, + "Command": "Export-PnPTermGroupToXml -Out output.xml", + "CommandName": "Export-PnPTermGroupToXml" }, { - "Id": 321, - "CommandName": "Find-PnPFile", "Rank": 3, - "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx" + "Id": 321, + "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"", + "CommandName": "Export-PnPTermGroupToXml" }, { - "Id": 322, - "CommandName": "Get-PnPAccessToken", "Rank": 1, - "Command": "Get-PnPAccessToken" + "Id": 322, + "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"", + "CommandName": "Export-PnPUserInfo" }, { - "Id": 323, - "CommandName": "Get-PnPAccessToken", "Rank": 2, - "Command": "Get-PnPAccessToken -Decoded" + "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": 1, "Id": 324, - "CommandName": "Get-PnPAccessToken", - "Rank": 3, - "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint" + "Command": "Export-PnPUserProfile -LoginName user@domain.com", + "CommandName": "Export-PnPUserProfile" }, { + "Rank": 2, "Id": 325, - "CommandName": "Get-PnPAccessToken", - "Rank": 4, - "Command": "Get-PnPAccessToken -ResourceTypeName ARM" + "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv", + "CommandName": "Export-PnPUserProfile" }, { + "Rank": 1, "Id": 326, - "CommandName": "Get-PnPAccessToken", - "Rank": 5, - "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"" + "Command": "Find-PnPFile -Match *.master", + "CommandName": "Find-PnPFile" }, { + "Rank": 2, "Id": 327, - "CommandName": "Get-PnPAlert", - "Rank": 1, - "Command": "Get-PnPAlert" + "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf", + "CommandName": "Find-PnPFile" }, { + "Rank": 3, "Id": 328, - "CommandName": "Get-PnPAlert", - "Rank": 2, - "Command": "Get-PnPAlert -List \"Demo List\"" + "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx", + "CommandName": "Find-PnPFile" }, { + "Rank": 1, "Id": 329, - "CommandName": "Get-PnPAlert", - "Rank": 3, - "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" + "Command": "Get-PnPAccessToken", + "CommandName": "Get-PnPAccessToken" }, { + "Rank": 2, "Id": 330, - "CommandName": "Get-PnPAlert", - "Rank": 4, - "Command": "Get-PnPAlert -Title \"Demo Alert\"" + "Command": "Get-PnPAccessToken -Decoded", + "CommandName": "Get-PnPAccessToken" }, { + "Rank": 3, "Id": 331, - "CommandName": "Get-PnPAlert", - "Rank": 5, - "Command": "Get-PnPAlert -AllUsers" + "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint", + "CommandName": "Get-PnPAccessToken" }, { + "Rank": 4, "Id": 332, - "CommandName": "Get-PnPAlert", - "Rank": 6, - "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers" + "Command": "Get-PnPAccessToken -ResourceTypeName ARM", + "CommandName": "Get-PnPAccessToken" }, { + "Rank": 5, "Id": 333, - "CommandName": "Get-PnPApp", - "Rank": 1, - "Command": "Get-PnPApp" + "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"", + "CommandName": "Get-PnPAccessToken" }, { + "Rank": 1, "Id": 334, - "CommandName": "Get-PnPApp", - "Rank": 2, - "Command": "Get-PnPApp -Scope Site" + "Command": "Get-PnPAlert", + "CommandName": "Get-PnPAlert" }, { + "Rank": 2, "Id": 335, - "CommandName": "Get-PnPApp", - "Rank": 3, - "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" + "Command": "Get-PnPAlert -List \"Demo List\"", + "CommandName": "Get-PnPAlert" }, { + "Rank": 3, "Id": 336, - "CommandName": "Get-PnPAppErrors", - "Rank": 1, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b" + "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", + "CommandName": "Get-PnPAlert" }, { + "Rank": 4, "Id": 337, - "CommandName": "Get-PnPAppErrors", - "Rank": 2, - "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()" + "Command": "Get-PnPAlert -Title \"Demo Alert\"", + "CommandName": "Get-PnPAlert" }, { + "Rank": 5, "Id": 338, - "CommandName": "Get-PnPAppInfo", - "Rank": 1, - "Command": "Get-PnPAppInfo -Name \"Excel Service\"" + "Command": "Get-PnPAlert -AllUsers", + "CommandName": "Get-PnPAlert" }, { + "Rank": 6, "Id": 339, - "CommandName": "Get-PnPAppInfo", - "Rank": 2, - "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f" + "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers", + "CommandName": "Get-PnPAlert" }, { + "Rank": 1, "Id": 340, - "CommandName": "Get-PnPAppInfo", - "Rank": 3, - "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name" + "Command": "Get-PnPApp", + "CommandName": "Get-PnPApp" }, { + "Rank": 2, "Id": 341, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Get-PnPApplicationCustomizer" + "Command": "Get-PnPApp -Scope Site", + "CommandName": "Get-PnPApp" }, { + "Rank": 3, "Id": 342, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" + "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f", + "CommandName": "Get-PnPApp" }, { + "Rank": 1, "Id": 343, - "CommandName": "Get-PnPApplicationCustomizer", - "Rank": 3, - "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web" + "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b", + "CommandName": "Get-PnPAppErrors" }, { + "Rank": 2, "Id": 344, - "CommandName": "Get-PnPAuditing", - "Rank": 1, - "Command": "Get-PnPAuditing" + "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()", + "CommandName": "Get-PnPAppErrors" }, { - "Id": 345, - "CommandName": "Get-PnPAuthenticationRealm", "Rank": 1, - "Command": "Get-PnPAuthenticationRealm" + "Id": 345, + "Command": "Get-PnPAppInfo -Name \"Excel Service\"", + "CommandName": "Get-PnPAppInfo" }, { - "Id": 346, - "CommandName": "Get-PnPAuthenticationRealm", "Rank": 2, - "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"" + "Id": 346, + "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f", + "CommandName": "Get-PnPAppInfo" }, { + "Rank": 3, "Id": 347, - "CommandName": "Get-PnPAvailableLanguage", - "Rank": 1, - "Command": "Get-PnPAvailableLanguage" + "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name", + "CommandName": "Get-PnPAppInfo" }, { - "Id": 348, - "CommandName": "Get-PnPAvailableSensitivityLabel", "Rank": 1, - "Command": "Get-PnPAvailableSensitivityLabel" + "Id": 348, + "Command": "Get-PnPApplicationCustomizer", + "CommandName": "Get-PnPApplicationCustomizer" }, { - "Id": 349, - "CommandName": "Get-PnPAvailableSensitivityLabel", "Rank": 2, - "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com" + "Id": 349, + "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", + "CommandName": "Get-PnPApplicationCustomizer" }, { - "Id": 350, - "CommandName": "Get-PnPAvailableSensitivityLabel", "Rank": 3, - "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884" + "Id": 350, + "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web", + "CommandName": "Get-PnPApplicationCustomizer" }, { - "Id": 351, - "CommandName": "Get-PnPAvailableSiteClassification", "Rank": 1, - "Command": "Get-PnPAvailableSiteClassification" + "Id": 351, + "Command": "Get-PnPAuditing", + "CommandName": "Get-PnPAuditing" }, { - "Id": 352, - "CommandName": "Get-PnPAzureACSPrincipal", "Rank": 1, - "Command": "Get-PnPAzureACSPrincipal" + "Id": 352, + "Command": "Get-PnPAuthenticationRealm", + "CommandName": "Get-PnPAuthenticationRealm" }, { - "Id": 353, - "CommandName": "Get-PnPAzureACSPrincipal", "Rank": 2, - "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites" + "Id": 353, + "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"", + "CommandName": "Get-PnPAuthenticationRealm" }, { + "Rank": 1, "Id": 354, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 3, - "Command": "Get-PnPAzureACSPrincipal -Scope Tenant" + "Command": "Get-PnPAvailableLanguage", + "CommandName": "Get-PnPAvailableLanguage" }, { + "Rank": 1, "Id": 355, - "CommandName": "Get-PnPAzureACSPrincipal", - "Rank": 4, - "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites" + "Command": "Get-PnPAvailableSensitivityLabel", + "CommandName": "Get-PnPAvailableSensitivityLabel" }, { + "Rank": 2, "Id": 356, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 1, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit" + "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com", + "CommandName": "Get-PnPAvailableSensitivityLabel" }, { + "Rank": 3, "Id": 357, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 2, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"" + "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884", + "CommandName": "Get-PnPAvailableSensitivityLabel" }, { + "Rank": 1, "Id": 358, - "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", - "Rank": 3, - "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"" + "Command": "Get-PnPAvailableSiteClassification", + "CommandName": "Get-PnPAvailableSiteClassification" }, { - "Id": 359, - "CommandName": "Get-PnPAzureADActivityReportSignIn", "Rank": 1, - "Command": "Get-PnPAzureADActivityReportSignIn" + "Id": 359, + "Command": "Get-PnPAzureACSPrincipal", + "CommandName": "Get-PnPAzureACSPrincipal" }, { - "Id": 360, - "CommandName": "Get-PnPAzureADActivityReportSignIn", "Rank": 2, - "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"" + "Id": 360, + "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites", + "CommandName": "Get-PnPAzureACSPrincipal" }, { - "Id": 361, - "CommandName": "Get-PnPAzureADActivityReportSignIn", "Rank": 3, - "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"" + "Id": 361, + "Command": "Get-PnPAzureACSPrincipal -Scope Tenant", + "CommandName": "Get-PnPAzureACSPrincipal" }, { + "Rank": 4, "Id": 362, - "CommandName": "Get-PnPAzureADApp", - "Rank": 1, - "Command": "Get-PnPAzureADApp" + "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites", + "CommandName": "Get-PnPAzureACSPrincipal" }, { + "Rank": 1, "Id": 363, - "CommandName": "Get-PnPAzureADApp", - "Rank": 2, - "Command": "Get-PnPAzureADApp -Identity MyApp" + "Command": "Get-PnPAzureADActivityReportDirectoryAudit", + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" }, { + "Rank": 2, "Id": 364, - "CommandName": "Get-PnPAzureADApp", - "Rank": 3, - "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" + "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"", + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" }, { + "Rank": 3, "Id": 365, - "CommandName": "Get-PnPAzureADApp", - "Rank": 4, - "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"" + "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"", + "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit" }, { - "Id": 366, - "CommandName": "Get-PnPAzureADAppPermission", "Rank": 1, - "Command": "Get-PnPAzureADAppPermission" + "Id": 366, + "Command": "Get-PnPAzureADActivityReportSignIn", + "CommandName": "Get-PnPAzureADActivityReportSignIn" }, { - "Id": 367, - "CommandName": "Get-PnPAzureADAppPermission", "Rank": 2, - "Command": "Get-PnPAzureADAppPermission -Identity MyApp" + "Id": 367, + "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"", + "CommandName": "Get-PnPAzureADActivityReportSignIn" }, { - "Id": 368, - "CommandName": "Get-PnPAzureADAppPermission", "Rank": 3, - "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" + "Id": 368, + "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"", + "CommandName": "Get-PnPAzureADActivityReportSignIn" }, { - "Id": 369, - "CommandName": "Get-PnPAzureADAppSitePermission", "Rank": 1, - "Command": "Get-PnPAzureADAppSitePermission" + "Id": 369, + "Command": "Get-PnPAzureADApp", + "CommandName": "Get-PnPAzureADApp" }, { - "Id": 370, - "CommandName": "Get-PnPAzureADAppSitePermission", "Rank": 2, - "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects" + "Id": 370, + "Command": "Get-PnPAzureADApp -Identity MyApp", + "CommandName": "Get-PnPAzureADApp" }, { - "Id": 371, - "CommandName": "Get-PnPAzureADAppSitePermission", "Rank": 3, - "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1" + "Id": 371, + "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", + "CommandName": "Get-PnPAzureADApp" }, { - "Id": 372, - "CommandName": "Get-PnPAzureADAppSitePermission", "Rank": 4, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"" + "Id": 372, + "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"", + "CommandName": "Get-PnPAzureADApp" }, { + "Rank": 1, "Id": 373, - "CommandName": "Get-PnPAzureADAppSitePermission", - "Rank": 5, - "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"" + "Command": "Get-PnPAzureADAppPermission", + "CommandName": "Get-PnPAzureADAppPermission" }, { + "Rank": 2, "Id": 374, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 1, - "Command": "Get-PnPAzureADGroup" + "Command": "Get-PnPAzureADAppPermission -Identity MyApp", + "CommandName": "Get-PnPAzureADAppPermission" }, { + "Rank": 3, "Id": 375, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 2, - "Command": "Get-PnPAzureADGroup -Identity $groupId" + "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", + "CommandName": "Get-PnPAzureADAppPermission" }, { + "Rank": 1, "Id": 376, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 3, - "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName" + "Command": "Get-PnPAzureADAppSitePermission", + "CommandName": "Get-PnPAzureADAppSitePermission" }, { + "Rank": 2, "Id": 377, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 4, - "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName" + "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects", + "CommandName": "Get-PnPAzureADAppSitePermission" }, { + "Rank": 3, "Id": 378, - "CommandName": "Get-PnPAzureADGroup", - "Rank": 5, - "Command": "Get-PnPAzureADGroup -Identity $group" + "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1", + "CommandName": "Get-PnPAzureADAppSitePermission" }, { + "Rank": 4, "Id": 379, - "CommandName": "Get-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Get-PnPAzureADGroupMember -Identity $groupId" + "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"", + "CommandName": "Get-PnPAzureADAppSitePermission" }, { + "Rank": 5, "Id": 380, - "CommandName": "Get-PnPAzureADGroupMember", - "Rank": 2, - "Command": "Get-PnPAzureADGroupMember -Identity $group" + "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"", + "CommandName": "Get-PnPAzureADAppSitePermission" }, { - "Id": 381, - "CommandName": "Get-PnPAzureADGroupOwner", "Rank": 1, - "Command": "Get-PnPAzureADGroupOwner -Identity $groupId" + "Id": 381, + "Command": "Get-PnPAzureADGroup", + "CommandName": "Get-PnPAzureADGroup" }, { - "Id": 382, - "CommandName": "Get-PnPAzureADGroupOwner", "Rank": 2, - "Command": "Get-PnPAzureADGroupOwner -Identity $group" + "Id": 382, + "Command": "Get-PnPAzureADGroup -Identity $groupId", + "CommandName": "Get-PnPAzureADGroup" }, { + "Rank": 3, "Id": 383, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipal" + "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName", + "CommandName": "Get-PnPAzureADGroup" }, { + "Rank": 4, "Id": 384, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e" + "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName", + "CommandName": "Get-PnPAzureADGroup" }, { + "Rank": 5, "Id": 385, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 3, - "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec" + "Command": "Get-PnPAzureADGroup -Identity $group", + "CommandName": "Get-PnPAzureADGroup" }, { + "Rank": 1, "Id": 386, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 4, - "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"" + "Command": "Get-PnPAzureADGroupMember -Identity $groupId", + "CommandName": "Get-PnPAzureADGroupMember" }, { + "Rank": 2, "Id": 387, - "CommandName": "Get-PnPAzureADServicePrincipal", - "Rank": 5, - "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"" + "Command": "Get-PnPAzureADGroupMember -Identity $group", + "CommandName": "Get-PnPAzureADGroupMember" }, { - "Id": 388, - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" + "Id": 388, + "Command": "Get-PnPAzureADGroupOwner -Identity $groupId", + "CommandName": "Get-PnPAzureADGroupOwner" }, { - "Id": 389, - "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" + "Id": 389, + "Command": "Get-PnPAzureADGroupOwner -Identity $group", + "CommandName": "Get-PnPAzureADGroupOwner" }, { - "Id": 390, - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", "Rank": 1, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" + "Id": 390, + "Command": "Get-PnPAzureADServicePrincipal", + "CommandName": "Get-PnPAzureADServicePrincipal" }, { - "Id": 391, - "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", "Rank": 2, - "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"" + "Id": 391, + "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e", + "CommandName": "Get-PnPAzureADServicePrincipal" }, { + "Rank": 3, "Id": 392, - "CommandName": "Get-PnPAzureADUser", - "Rank": 1, - "Command": "Get-PnPAzureADUser" + "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec", + "CommandName": "Get-PnPAzureADServicePrincipal" }, { + "Rank": 4, "Id": 393, - "CommandName": "Get-PnPAzureADUser", - "Rank": 2, - "Command": "Get-PnPAzureADUser -EndIndex 50" + "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"", + "CommandName": "Get-PnPAzureADServicePrincipal" }, { + "Rank": 5, "Id": 394, - "CommandName": "Get-PnPAzureADUser", - "Rank": 3, - "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" + "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"", + "CommandName": "Get-PnPAzureADServicePrincipal" }, { + "Rank": 1, "Id": 395, - "CommandName": "Get-PnPAzureADUser", - "Rank": 4, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com" + "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", + "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole" }, { + "Rank": 2, "Id": 396, - "CommandName": "Get-PnPAzureADUser", - "Rank": 5, - "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"" + "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"", + "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole" }, { + "Rank": 1, "Id": 397, - "CommandName": "Get-PnPAzureADUser", - "Rank": 6, - "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"" + "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", + "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole" }, { + "Rank": 2, "Id": 398, - "CommandName": "Get-PnPAzureADUser", - "Rank": 7, - "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"" + "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"", + "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole" }, { + "Rank": 1, "Id": 399, - "CommandName": "Get-PnPAzureADUser", - "Rank": 8, - "Command": "Get-PnPAzureADUser -Delta" + "Command": "Get-PnPAzureADUser", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 2, "Id": 400, - "CommandName": "Get-PnPAzureADUser", - "Rank": 9, - "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef" + "Command": "Get-PnPAzureADUser -EndIndex 50", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 3, "Id": 401, - "CommandName": "Get-PnPAzureADUser", - "Rank": 10, - "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20" + "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 4, "Id": 402, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 1, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"" + "Command": "Get-PnPAzureADUser -Identity john@contoso.com", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 5, "Id": 403, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 2, - "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" + "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 6, "Id": 404, - "CommandName": "Get-PnPAzureCertificate", - "Rank": 3, - "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip" + "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 7, "Id": 405, - "CommandName": "Get-PnPBrowserIdleSignout", - "Rank": 1, - "Command": "Get-PnPBrowserIdleSignout" + "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 8, "Id": 406, - "CommandName": "Get-PnPBuiltInDesignPackageVisibility", - "Rank": 1, - "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase" + "Command": "Get-PnPAzureADUser -Delta", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 9, "Id": 407, - "CommandName": "Get-PnPBuiltInDesignPackageVisibility", - "Rank": 2, - "Command": "Get-PnPBuiltInDesignPackageVisibility" + "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 10, "Id": 408, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 1, - "Command": "Get-PnPBuiltInSiteTemplateSettings" + "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20", + "CommandName": "Get-PnPAzureADUser" }, { + "Rank": 1, "Id": 409, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 2, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344" + "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"", + "CommandName": "Get-PnPAzureCertificate" }, { + "Rank": 2, "Id": 410, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 3, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement" + "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)", + "CommandName": "Get-PnPAzureCertificate" }, { + "Rank": 3, "Id": 411, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 4, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000" + "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip", + "CommandName": "Get-PnPAzureCertificate" }, { + "Rank": 1, "Id": 412, - "CommandName": "Get-PnPBuiltInSiteTemplateSettings", - "Rank": 5, - "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All" + "Command": "Get-PnPBrowserIdleSignout", + "CommandName": "Get-PnPBrowserIdleSignout" }, { - "Id": 413, - "CommandName": "Get-PnPChangeLog", "Rank": 1, - "Command": "Get-PnPChangeLog" + "Id": 413, + "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase", + "CommandName": "Get-PnPBuiltInDesignPackageVisibility" }, { - "Id": 414, - "CommandName": "Get-PnPChangeLog", "Rank": 2, - "Command": "Get-PnPChangeLog -Nightly" + "Id": 414, + "Command": "Get-PnPBuiltInDesignPackageVisibility", + "CommandName": "Get-PnPBuiltInDesignPackageVisibility" }, { - "Id": 415, - "CommandName": "Get-PnPCompatibleHubContentTypes", "Rank": 1, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'" + "Id": 415, + "Command": "Get-PnPBuiltInSiteTemplateSettings", + "CommandName": "Get-PnPBuiltInSiteTemplateSettings" }, { - "Id": 416, - "CommandName": "Get-PnPCompatibleHubContentTypes", "Rank": 2, - "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'" + "Id": 416, + "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344", + "CommandName": "Get-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 3, "Id": 417, - "CommandName": "Get-PnPContainer", - "Rank": 1, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996" + "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement", + "CommandName": "Get-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 4, "Id": 418, - "CommandName": "Get-PnPContainer", - "Rank": 2, - "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" + "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000", + "CommandName": "Get-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 5, "Id": 419, - "CommandName": "Get-PnPContainer", - "Rank": 3, - "Command": "Get-PnPContainer -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\" -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" + "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All", + "CommandName": "Get-PnPBuiltInSiteTemplateSettings" }, { - "Id": 420, - "CommandName": "Get-PnPContentType", "Rank": 1, - "Command": "Get-PnPContentType" + "Id": 420, + "Command": "Get-PnPChangeLog", + "CommandName": "Get-PnPChangeLog" }, { - "Id": 421, - "CommandName": "Get-PnPContentType", "Rank": 2, - "Command": "Get-PnPContentType -InSiteHierarchy" + "Id": 421, + "Command": "Get-PnPChangeLog -Nightly", + "CommandName": "Get-PnPChangeLog" }, { + "Rank": 1, "Id": 422, - "CommandName": "Get-PnPContentType", - "Rank": 3, - "Command": "Get-PnPContentType -Identity \"Project Document\"" + "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'", + "CommandName": "Get-PnPCompatibleHubContentTypes" }, { + "Rank": 2, "Id": 423, - "CommandName": "Get-PnPContentType", - "Rank": 4, - "Command": "Get-PnPContentType -List \"Documents\"" + "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'", + "CommandName": "Get-PnPCompatibleHubContentTypes" }, { + "Rank": 1, "Id": 424, - "CommandName": "Get-PnPContentType", - "Rank": 5, - "Command": "Get-PnPContentType -Includes \"SchemaXml\"" + "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996", + "CommandName": "Get-PnPContainer" }, { + "Rank": 2, "Id": 425, - "CommandName": "Get-PnPContentTypePublishingStatus", - "Rank": 1, - "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101" + "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", + "CommandName": "Get-PnPContainer" }, { + "Rank": 3, "Id": 426, - "CommandName": "Get-PnPCustomAction", - "Rank": 1, - "Command": "Get-PnPCustomAction" + "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, "Id": 427, - "CommandName": "Get-PnPCustomAction", - "Rank": 2, - "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" + "Command": "Get-PnPContainerTypeConfiguration -Identity a187e399-0c36-4b98-8f04-1edc167a0996", + "CommandName": "Get-PnPContainerTypeConfiguration" }, { + "Rank": 1, "Id": 428, - "CommandName": "Get-PnPCustomAction", - "Rank": 3, - "Command": "Get-PnPCustomAction -Scope web" + "Command": "Get-PnPContentType", + "CommandName": "Get-PnPContentType" }, { + "Rank": 2, "Id": 429, - "CommandName": "Get-PnPDeletedMicrosoft365Group", - "Rank": 1, - "Command": "Get-PnPDeletedMicrosoft365Group" + "Command": "Get-PnPContentType -InSiteHierarchy", + "CommandName": "Get-PnPContentType" }, { + "Rank": 3, "Id": 430, - "CommandName": "Get-PnPDeletedMicrosoft365Group", - "Rank": 2, - "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" + "Command": "Get-PnPContentType -Identity \"Project Document\"", + "CommandName": "Get-PnPContentType" }, { + "Rank": 4, "Id": 431, - "CommandName": "Get-PnPDeletedTeam", - "Rank": 1, - "Command": "Get-PnPDeletedTeam" + "Command": "Get-PnPContentType -List \"Documents\"", + "CommandName": "Get-PnPContentType" }, { + "Rank": 5, "Id": 432, - "CommandName": "Get-PnPDiagnostics", - "Rank": 1, - "Command": "Get-PnPDiagnostics" + "Command": "Get-PnPContentType -Includes \"SchemaXml\"", + "CommandName": "Get-PnPContentType" }, { - "Id": 433, - "CommandName": "Get-PnPDisableSpacesActivation", "Rank": 1, - "Command": "Get-PnPDisableSpacesActivation" + "Id": 433, + "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101", + "CommandName": "Get-PnPContentTypePublishingStatus" }, { - "Id": 434, - "CommandName": "Get-PnPDocumentSetTemplate", "Rank": 1, - "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"" + "Id": 434, + "Command": "Get-PnPCustomAction", + "CommandName": "Get-PnPCustomAction" }, { - "Id": 435, - "CommandName": "Get-PnPDocumentSetTemplate", "Rank": 2, - "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"" + "Id": 435, + "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", + "CommandName": "Get-PnPCustomAction" }, { + "Rank": 3, "Id": 436, - "CommandName": "Get-PnPEventReceiver", - "Rank": 1, - "Command": "Get-PnPEventReceiver" + "Command": "Get-PnPCustomAction -Scope web", + "CommandName": "Get-PnPCustomAction" }, { + "Rank": 1, "Id": 437, - "CommandName": "Get-PnPEventReceiver", - "Rank": 2, - "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" + "Command": "Get-PnPDeletedContainer", + "CommandName": "Get-PnPDeletedContainer" }, { + "Rank": 1, "Id": 438, - "CommandName": "Get-PnPEventReceiver", - "Rank": 3, - "Command": "Get-PnPEventReceiver -Identity MyReceiver" + "Command": "Get-PnPDeletedMicrosoft365Group", + "CommandName": "Get-PnPDeletedMicrosoft365Group" }, { + "Rank": 2, "Id": 439, - "CommandName": "Get-PnPEventReceiver", - "Rank": 4, - "Command": "Get-PnPEventReceiver -List \"ProjectList\"" + "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", + "CommandName": "Get-PnPDeletedMicrosoft365Group" }, { + "Rank": 1, "Id": 440, - "CommandName": "Get-PnPEventReceiver", - "Rank": 5, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" + "Command": "Get-PnPDeletedTeam", + "CommandName": "Get-PnPDeletedTeam" }, { + "Rank": 1, "Id": 441, - "CommandName": "Get-PnPEventReceiver", - "Rank": 6, - "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver" + "Command": "Get-PnPDiagnostics", + "CommandName": "Get-PnPDiagnostics" }, { + "Rank": 1, "Id": 442, - "CommandName": "Get-PnPEventReceiver", - "Rank": 7, - "Command": "Get-PnPEventReceiver -Scope Site" + "Command": "Get-PnPDisableSpacesActivation", + "CommandName": "Get-PnPDisableSpacesActivation" }, { + "Rank": 1, "Id": 443, - "CommandName": "Get-PnPEventReceiver", - "Rank": 8, - "Command": "Get-PnPEventReceiver -Scope Web" + "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"", + "CommandName": "Get-PnPDocumentSetTemplate" }, { + "Rank": 2, "Id": 444, - "CommandName": "Get-PnPEventReceiver", - "Rank": 9, - "Command": "Get-PnPEventReceiver -Scope All" + "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"", + "CommandName": "Get-PnPDocumentSetTemplate" }, { - "Id": 445, - "CommandName": "Get-PnPException", "Rank": 1, - "Command": "Get-PnPException" + "Id": 445, + "Command": "Get-PnPEventReceiver", + "CommandName": "Get-PnPEventReceiver" }, { - "Id": 446, - "CommandName": "Get-PnPException", "Rank": 2, - "Command": "Get-PnPException -All" + "Id": 446, + "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 3, "Id": 447, - "CommandName": "Get-PnPExternalUser", - "Rank": 1, - "Command": "Get-PnPExternalUser -Position 0 -PageSize 2" + "Command": "Get-PnPEventReceiver -Identity MyReceiver", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 4, "Id": 448, - "CommandName": "Get-PnPExternalUser", - "Rank": 2, - "Command": "Get-PnPExternalUser -Position 2 -PageSize 2" + "Command": "Get-PnPEventReceiver -List \"ProjectList\"", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 5, "Id": 449, - "CommandName": "Get-PnPFeature", - "Rank": 1, - "Command": "Get-PnPFeature" + "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 6, "Id": 450, - "CommandName": "Get-PnPFeature", - "Rank": 2, - "Command": "Get-PnPFeature -Scope Site" + "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 7, "Id": 451, - "CommandName": "Get-PnPFeature", - "Rank": 3, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" + "Command": "Get-PnPEventReceiver -Scope Site", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 8, "Id": 452, - "CommandName": "Get-PnPFeature", - "Rank": 4, - "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site" + "Command": "Get-PnPEventReceiver -Scope Web", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 9, "Id": 453, - "CommandName": "Get-PnPField", - "Rank": 1, - "Command": "Get-PnPField" + "Command": "Get-PnPEventReceiver -Scope All", + "CommandName": "Get-PnPEventReceiver" }, { + "Rank": 1, "Id": 454, - "CommandName": "Get-PnPField", - "Rank": 2, - "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"" + "Command": "Get-PnPException", + "CommandName": "Get-PnPException" }, { + "Rank": 2, "Id": 455, - "CommandName": "Get-PnPField", - "Rank": 3, - "Command": "Get-PnPField -Group \"Custom Columns\"" + "Command": "Get-PnPException -All", + "CommandName": "Get-PnPException" }, { - "Id": 456, - "CommandName": "Get-PnPFile", "Rank": 1, - "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"" + "Id": 456, + "Command": "Get-PnPExternalUser -Position 0 -PageSize 2", + "CommandName": "Get-PnPExternalUser" }, { - "Id": 457, - "CommandName": "Get-PnPFile", "Rank": 2, - "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile" + "Id": 457, + "Command": "Get-PnPExternalUser -Position 2 -PageSize 2", + "CommandName": "Get-PnPExternalUser" }, { + "Rank": 1, "Id": 458, - "CommandName": "Get-PnPFile", - "Rank": 3, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString" + "Command": "Get-PnPFeature", + "CommandName": "Get-PnPFeature" }, { + "Rank": 2, "Id": 459, - "CommandName": "Get-PnPFile", - "Rank": 4, - "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject" + "Command": "Get-PnPFeature -Scope Site", + "CommandName": "Get-PnPFeature" }, { + "Rank": 3, "Id": 460, - "CommandName": "Get-PnPFile", - "Rank": 5, - "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem" + "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", + "CommandName": "Get-PnPFeature" }, { + "Rank": 4, "Id": 461, - "CommandName": "Get-PnPFile", - "Rank": 6, - "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile" + "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site", + "CommandName": "Get-PnPFeature" }, { + "Rank": 1, "Id": 462, - "CommandName": "Get-PnPFile", - "Rank": 7, - "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream" + "Command": "Get-PnPField", + "CommandName": "Get-PnPField" }, { + "Rank": 2, "Id": 463, - "CommandName": "Get-PnPFileInFolder", - "Rank": 1, - "Command": "Get-PnPFileInFolder" + "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"", + "CommandName": "Get-PnPField" }, { + "Rank": 3, "Id": 464, - "CommandName": "Get-PnPFileInFolder", - "Rank": 2, - "Command": "Get-PnPFileInFolder -Recurse" + "Command": "Get-PnPField -Group \"Custom Columns\"", + "CommandName": "Get-PnPField" }, { + "Rank": 1, "Id": 465, - "CommandName": "Get-PnPFileInFolder", - "Rank": 3, - "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"" + "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"", + "CommandName": "Get-PnPFile" }, { + "Rank": 2, "Id": 466, - "CommandName": "Get-PnPFileInFolder", - "Rank": 4, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" + "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile", + "CommandName": "Get-PnPFile" }, { + "Rank": 3, "Id": 467, - "CommandName": "Get-PnPFileInFolder", - "Rank": 5, - "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" + "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString", + "CommandName": "Get-PnPFile" }, { + "Rank": 4, "Id": 468, - "CommandName": "Get-PnPFileSharingLink", - "Rank": 1, - "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" + "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject", + "CommandName": "Get-PnPFile" }, { + "Rank": 5, "Id": 469, - "CommandName": "Get-PnPFileVersion", - "Rank": 1, - "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx" + "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem", + "CommandName": "Get-PnPFile" }, { + "Rank": 6, "Id": 470, - "CommandName": "Get-PnPFileVersion", - "Rank": 2, - "Command": "Get-PnPFileVersion -Url \"/sites/blah/Shared Documents/MyDocument.docx\"" + "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile", + "CommandName": "Get-PnPFile" }, { + "Rank": 7, "Id": 471, - "CommandName": "Get-PnPFlow", - "Rank": 1, - "Command": "Get-PnPFlow -AsAdmin" + "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream", + "CommandName": "Get-PnPFile" }, { + "Rank": 1, "Id": 472, - "CommandName": "Get-PnPFlow", - "Rank": 2, - "Command": "Get-PnPFlow -SharingStatus SharedWithMe" + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\"", + "CommandName": "Get-PnPFileAnalyticsData" }, { + "Rank": 2, "Id": 473, - "CommandName": "Get-PnPFlow", - "Rank": 3, - "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182" + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -LastSevenDays", + "CommandName": "Get-PnPFileAnalyticsData" }, { + "Rank": 3, "Id": 474, - "CommandName": "Get-PnPFlowOwner", - "Rank": 1, - "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30" + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", + "CommandName": "Get-PnPFileAnalyticsData" }, { - "Id": 475, - "CommandName": "Get-PnPFolder", "Rank": 1, - "Command": "Get-PnPFolder" + "Id": 475, + "Command": "Get-PnPFileInFolder", + "CommandName": "Get-PnPFileInFolder" }, { - "Id": 476, - "CommandName": "Get-PnPFolder", "Rank": 2, - "Command": "Get-PnPFolder -CurrentWebRootFolder" + "Id": 476, + "Command": "Get-PnPFileInFolder -Recurse", + "CommandName": "Get-PnPFileInFolder" }, { - "Id": 477, - "CommandName": "Get-PnPFolder", "Rank": 3, - "Command": "Get-PnPFolder -Url \"Shared Documents\"" + "Id": 477, + "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"", + "CommandName": "Get-PnPFileInFolder" }, { - "Id": 478, - "CommandName": "Get-PnPFolder", "Rank": 4, - "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"" + "Id": 478, + "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"", + "CommandName": "Get-PnPFileInFolder" }, { - "Id": 479, - "CommandName": "Get-PnPFolder", "Rank": 5, - "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"" + "Id": 479, + "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse", + "CommandName": "Get-PnPFileInFolder" }, { + "Rank": 1, "Id": 480, - "CommandName": "Get-PnPFolder", - "Rank": 6, - "Command": "Get-PnPFolder -List \"Shared Documents\"" + "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", + "CommandName": "Get-PnPFileSharingLink" }, { - "Id": 481, - "CommandName": "Get-PnPFolderInFolder", "Rank": 1, - "Command": "Get-PnPFolderInFolder" + "Id": 481, + "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx", + "CommandName": "Get-PnPFileVersion" }, { - "Id": 482, - "CommandName": "Get-PnPFolderInFolder", "Rank": 2, - "Command": "Get-PnPFolderInFolder -Recurse" + "Id": 482, + "Command": "Get-PnPFileVersion -Url \"/sites/blah/Shared Documents/MyDocument.docx\"", + "CommandName": "Get-PnPFileVersion" }, { + "Rank": 1, "Id": 483, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 3, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"" + "Command": "Get-PnPFlow -AsAdmin", + "CommandName": "Get-PnPFlow" }, { + "Rank": 2, "Id": 484, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 4, - "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders" + "Command": "Get-PnPFlow -SharingStatus SharedWithMe", + "CommandName": "Get-PnPFlow" }, { + "Rank": 3, "Id": 485, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 5, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"" + "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182", + "CommandName": "Get-PnPFlow" }, { + "Rank": 1, "Id": 486, - "CommandName": "Get-PnPFolderInFolder", - "Rank": 6, - "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" + "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30", + "CommandName": "Get-PnPFlowOwner" }, { - "Id": 487, - "CommandName": "Get-PnPFolderItem", "Rank": 1, - "Command": "Get-PnPFolderItem" + "Id": 487, + "Command": "Get-PnPFolder", + "CommandName": "Get-PnPFolder" }, { - "Id": 488, - "CommandName": "Get-PnPFolderItem", "Rank": 2, - "Command": "Get-PnPFolderItem -Recurse" + "Id": 488, + "Command": "Get-PnPFolder -CurrentWebRootFolder", + "CommandName": "Get-PnPFolder" }, { - "Id": 489, - "CommandName": "Get-PnPFolderItem", "Rank": 3, - "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"" + "Id": 489, + "Command": "Get-PnPFolder -Url \"Shared Documents\"", + "CommandName": "Get-PnPFolder" }, { - "Id": 490, - "CommandName": "Get-PnPFolderItem", "Rank": 4, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" + "Id": 490, + "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"", + "CommandName": "Get-PnPFolder" }, { - "Id": 491, - "CommandName": "Get-PnPFolderItem", "Rank": 5, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder" + "Id": 491, + "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"", + "CommandName": "Get-PnPFolder" }, { - "Id": 492, - "CommandName": "Get-PnPFolderItem", "Rank": 6, - "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive" + "Id": 492, + "Command": "Get-PnPFolder -List \"Shared Documents\"", + "CommandName": "Get-PnPFolder" }, { - "Id": 493, - "CommandName": "Get-PnPFolderSharingLink", "Rank": 1, - "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" + "Id": 493, + "Command": "Get-PnPFolderInFolder", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 2, "Id": 494, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 1, - "Command": "Get-PnPFolderStorageMetric" + "Command": "Get-PnPFolderInFolder -Recurse", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 3, "Id": 495, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 2, - "Command": "Get-PnPFolderStorageMetric -List \"Documents\"" + "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 4, "Id": 496, - "CommandName": "Get-PnPFolderStorageMetric", - "Rank": 3, - "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"" + "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 5, "Id": 497, - "CommandName": "Get-PnPFooter", - "Rank": 1, - "Command": "Get-PnPFooter" + "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 6, "Id": 498, - "CommandName": "Get-PnPGraphAccessToken", - "Rank": 1, - "Command": "Get-PnPGraphAccessToken" + "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse", + "CommandName": "Get-PnPFolderInFolder" }, { + "Rank": 1, "Id": 499, - "CommandName": "Get-PnPGraphAccessToken", - "Rank": 2, - "Command": "Get-PnPGraphAccessToken -Decoded" + "Command": "Get-PnPFolderItem", + "CommandName": "Get-PnPFolderItem" }, { + "Rank": 2, "Id": 500, - "CommandName": "Get-PnPGraphSubscription", - "Rank": 1, - "Command": "Get-PnPGraphSubscription" + "Command": "Get-PnPFolderItem -Recurse", + "CommandName": "Get-PnPFolderItem" }, { + "Rank": 3, "Id": 501, - "CommandName": "Get-PnPGraphSubscription", - "Rank": 2, - "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" + "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"", + "CommandName": "Get-PnPFolderItem" }, { + "Rank": 4, "Id": 502, - "CommandName": "Get-PnPGroup", - "Rank": 1, - "Command": "Get-PnPGroup" + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"", + "CommandName": "Get-PnPFolderItem" }, { + "Rank": 5, "Id": 503, - "CommandName": "Get-PnPGroup", - "Rank": 2, - "Command": "Get-PnPGroup -Identity 'My Site Users'" + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder", + "CommandName": "Get-PnPFolderItem" }, { + "Rank": 6, "Id": 504, - "CommandName": "Get-PnPGroup", - "Rank": 3, - "Command": "Get-PnPGroup -AssociatedMemberGroup" + "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive", + "CommandName": "Get-PnPFolderItem" }, { - "Id": 505, - "CommandName": "Get-PnPGroupMember", "Rank": 1, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"" + "Id": 505, + "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", + "CommandName": "Get-PnPFolderSharingLink" }, { + "Rank": 1, "Id": 506, - "CommandName": "Get-PnPGroupMember", - "Rank": 2, - "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"" + "Command": "Get-PnPFolderStorageMetric", + "CommandName": "Get-PnPFolderStorageMetric" }, { + "Rank": 2, "Id": 507, - "CommandName": "Get-PnPGroupPermissions", - "Rank": 1, - "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'" + "Command": "Get-PnPFolderStorageMetric -List \"Documents\"", + "CommandName": "Get-PnPFolderStorageMetric" }, { + "Rank": 3, "Id": 508, - "CommandName": "Get-PnPHideDefaultThemes", - "Rank": 1, - "Command": "Get-PnPHideDefaultThemes" + "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"", + "CommandName": "Get-PnPFolderStorageMetric" }, { - "Id": 509, - "CommandName": "Get-PnPHomePage", "Rank": 1, - "Command": "Get-PnPHomePage" + "Id": 509, + "Command": "Get-PnPFooter", + "CommandName": "Get-PnPFooter" }, { - "Id": 510, - "CommandName": "Get-PnPHomeSite", "Rank": 1, - "Command": "Get-PnPHomeSite" + "Id": 510, + "Command": "Get-PnPGraphAccessToken", + "CommandName": "Get-PnPGraphAccessToken" }, { - "Id": 511, - "CommandName": "Get-PnPHomeSite", "Rank": 2, - "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled" + "Id": 511, + "Command": "Get-PnPGraphAccessToken -Decoded", + "CommandName": "Get-PnPGraphAccessToken" }, { + "Rank": 1, "Id": 512, - "CommandName": "Get-PnPHomeSite", - "Rank": 3, - "Command": "Get-PnPHomeSite -Detailed" + "Command": "Get-PnPGraphSubscription", + "CommandName": "Get-PnPGraphSubscription" }, { + "Rank": 2, "Id": 513, - "CommandName": "Get-PnPHubSite", - "Rank": 1, - "Command": "Get-PnPHubSite" + "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98", + "CommandName": "Get-PnPGraphSubscription" }, { + "Rank": 1, "Id": 514, - "CommandName": "Get-PnPHubSite", - "Rank": 2, - "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" + "Command": "Get-PnPGroup", + "CommandName": "Get-PnPGroup" }, { + "Rank": 2, "Id": 515, - "CommandName": "Get-PnPHubSite", - "Rank": 3, - "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"" + "Command": "Get-PnPGroup -Identity 'My Site Users'", + "CommandName": "Get-PnPGroup" }, { + "Rank": 3, "Id": 516, - "CommandName": "Get-PnPHubSiteChild", - "Rank": 1, - "Command": "Get-PnPHubSiteChild" + "Command": "Get-PnPGroup -AssociatedMemberGroup", + "CommandName": "Get-PnPGroup" }, { + "Rank": 1, "Id": 517, - "CommandName": "Get-PnPHubSiteChild", - "Rank": 2, - "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" + "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"", + "CommandName": "Get-PnPGroupMember" }, { + "Rank": 2, "Id": 518, - "CommandName": "Get-PnPInPlaceRecordsManagement", - "Rank": 1, - "Command": "Get-PnPInPlaceRecordsManagement" + "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"", + "CommandName": "Get-PnPGroupMember" }, { - "Id": 519, - "CommandName": "Get-PnPIsSiteAliasAvailable", "Rank": 1, - "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"" + "Id": 519, + "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'", + "CommandName": "Get-PnPGroupPermissions" }, { - "Id": 520, - "CommandName": "Get-PnPJavaScriptLink", "Rank": 1, - "Command": "Get-PnPJavaScriptLink" + "Id": 520, + "Command": "Get-PnPHideDefaultThemes", + "CommandName": "Get-PnPHideDefaultThemes" }, { + "Rank": 1, "Id": 521, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 2, - "Command": "Get-PnPJavaScriptLink -Scope All" + "Command": "Get-PnPHomePage", + "CommandName": "Get-PnPHomePage" }, { + "Rank": 1, "Id": 522, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 3, - "Command": "Get-PnPJavaScriptLink -Scope Web" + "Command": "Get-PnPHomeSite", + "CommandName": "Get-PnPHomeSite" }, { + "Rank": 2, "Id": 523, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 4, - "Command": "Get-PnPJavaScriptLink -Scope Site" + "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled", + "CommandName": "Get-PnPHomeSite" }, { + "Rank": 3, "Id": 524, - "CommandName": "Get-PnPJavaScriptLink", - "Rank": 5, - "Command": "Get-PnPJavaScriptLink -Name Test" + "Command": "Get-PnPHomeSite -Detailed", + "CommandName": "Get-PnPHomeSite" }, { - "Id": 525, - "CommandName": "Get-PnPKnowledgeHubSite", "Rank": 1, - "Command": "Get-PnPKnowledgeHubSite" + "Id": 525, + "Command": "Get-PnPHubSite", + "CommandName": "Get-PnPHubSite" }, { + "Rank": 2, "Id": 526, - "CommandName": "Get-PnPLabel", - "Rank": 1, - "Command": "Get-PnPLabel" + "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"", + "CommandName": "Get-PnPHubSite" }, { + "Rank": 3, "Id": 527, - "CommandName": "Get-PnPLabel", - "Rank": 2, - "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly" + "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"", + "CommandName": "Get-PnPHubSite" }, { - "Id": 528, - "CommandName": "Get-PnPLargeListOperationStatus", "Rank": 1, - "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481" + "Id": 528, + "Command": "Get-PnPHubSiteChild", + "CommandName": "Get-PnPHubSiteChild" }, { + "Rank": 2, "Id": 529, - "CommandName": "Get-PnPList", - "Rank": 1, - "Command": "Get-PnPList" + "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"", + "CommandName": "Get-PnPHubSiteChild" }, { + "Rank": 1, "Id": 530, - "CommandName": "Get-PnPList", - "Rank": 2, - "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Command": "Get-PnPInPlaceRecordsManagement", + "CommandName": "Get-PnPInPlaceRecordsManagement" }, { + "Rank": 1, "Id": 531, - "CommandName": "Get-PnPList", - "Rank": 3, - "Command": "Get-PnPList -Identity Lists/Announcements" + "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"", + "CommandName": "Get-PnPIsSiteAliasAvailable" }, { + "Rank": 1, "Id": 532, - "CommandName": "Get-PnPList", - "Rank": 4, - "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}" + "Command": "Get-PnPJavaScriptLink", + "CommandName": "Get-PnPJavaScriptLink" }, { + "Rank": 2, "Id": 533, - "CommandName": "Get-PnPList", - "Rank": 5, - "Command": "Get-PnPList -Includes HasUniqueRoleAssignments" + "Command": "Get-PnPJavaScriptLink -Scope All", + "CommandName": "Get-PnPJavaScriptLink" }, { + "Rank": 3, "Id": 534, - "CommandName": "Get-PnPListDesign", - "Rank": 1, - "Command": "Get-PnPListDesign" + "Command": "Get-PnPJavaScriptLink -Scope Web", + "CommandName": "Get-PnPJavaScriptLink" }, { + "Rank": 4, "Id": 535, - "CommandName": "Get-PnPListDesign", - "Rank": 2, - "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Get-PnPJavaScriptLink -Scope Site", + "CommandName": "Get-PnPJavaScriptLink" }, { + "Rank": 5, "Id": 536, - "CommandName": "Get-PnPListDesign", - "Rank": 3, - "Command": "Get-PnPListDesign -Identity ListEvent" + "Command": "Get-PnPJavaScriptLink -Name Test", + "CommandName": "Get-PnPJavaScriptLink" }, { - "Id": 537, - "CommandName": "Get-PnPListInformationRightsManagement", "Rank": 1, - "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"" + "Id": 537, + "Command": "Get-PnPKnowledgeHubSite", + "CommandName": "Get-PnPKnowledgeHubSite" }, { - "Id": 538, - "CommandName": "Get-PnPListItem", "Rank": 1, - "Command": "Get-PnPListItem -List Tasks" + "Id": 538, + "Command": "Get-PnPLabel", + "CommandName": "Get-PnPLabel" }, { - "Id": 539, - "CommandName": "Get-PnPListItem", "Rank": 2, - "Command": "Get-PnPListItem -List Tasks -Id 1" + "Id": 539, + "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly", + "CommandName": "Get-PnPLabel" }, { + "Rank": 1, "Id": 540, - "CommandName": "Get-PnPListItem", - "Rank": 3, - "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3" + "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481", + "CommandName": "Get-PnPLargeListOperationStatus" }, { + "Rank": 1, "Id": 541, - "CommandName": "Get-PnPListItem", - "Rank": 4, - "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"" + "Command": "Get-PnPList", + "CommandName": "Get-PnPList" }, { + "Rank": 2, "Id": 542, - "CommandName": "Get-PnPListItem", - "Rank": 5, - "Command": "Get-PnPListItem -List Tasks -Query \"\"" + "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Get-PnPList" }, { + "Rank": 3, "Id": 543, - "CommandName": "Get-PnPListItem", - "Rank": 6, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000" + "Command": "Get-PnPList -Identity Lists/Announcements", + "CommandName": "Get-PnPList" }, { + "Rank": 4, "Id": 544, - "CommandName": "Get-PnPListItem", - "Rank": 7, - "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }" + "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}", + "CommandName": "Get-PnPList" }, { + "Rank": 5, "Id": 545, - "CommandName": "Get-PnPListItem", - "Rank": 8, - "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"" + "Command": "Get-PnPList -Includes HasUniqueRoleAssignments", + "CommandName": "Get-PnPList" }, { + "Rank": 1, "Id": 546, - "CommandName": "Get-PnPListItem", - "Rank": 9, - "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType" + "Command": "Get-PnPListDesign", + "CommandName": "Get-PnPListDesign" }, { + "Rank": 2, "Id": 547, - "CommandName": "Get-PnPListItemAttachment", - "Rank": 1, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"" + "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Get-PnPListDesign" }, { + "Rank": 3, "Id": 548, - "CommandName": "Get-PnPListItemAttachment", - "Rank": 2, - "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force" + "Command": "Get-PnPListDesign -Identity ListEvent", + "CommandName": "Get-PnPListDesign" }, { - "Id": 549, - "CommandName": "Get-PnPListItemComment", "Rank": 1, - "Command": "Get-PnPListItemComment -List Tasks -Identity 1" + "Id": 549, + "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"", + "CommandName": "Get-PnPListInformationRightsManagement" }, { - "Id": 550, - "CommandName": "Get-PnPListItemPermission", "Rank": 1, - "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1" + "Id": 550, + "Command": "Get-PnPListItem -List Tasks", + "CommandName": "Get-PnPListItem" }, { + "Rank": 2, "Id": 551, - "CommandName": "Get-PnPListItemVersion", - "Rank": 1, - "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1" + "Command": "Get-PnPListItem -List Tasks -Id 1", + "CommandName": "Get-PnPListItem" }, { + "Rank": 3, "Id": 552, - "CommandName": "Get-PnPListPermissions", - "Rank": 1, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60" + "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3", + "CommandName": "Get-PnPListItem" }, { + "Rank": 4, "Id": 553, - "CommandName": "Get-PnPListPermissions", - "Rank": 2, - "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" + "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"", + "CommandName": "Get-PnPListItem" }, { + "Rank": 5, "Id": 554, - "CommandName": "Get-PnPListRecordDeclaration", - "Rank": 1, - "Command": "Get-PnPListRecordDeclaration -List \"Documents\"" + "Command": "Get-PnPListItem -List Tasks -Query \"\"", + "CommandName": "Get-PnPListItem" }, { + "Rank": 6, "Id": 555, - "CommandName": "Get-PnPMasterPage", - "Rank": 1, - "Command": "Get-PnPMasterPage" + "Command": "Get-PnPListItem -List Tasks -PageSize 1000", + "CommandName": "Get-PnPListItem" }, { + "Rank": 7, "Id": 556, - "CommandName": "Get-PnPMessageCenterAnnouncement", - "Rank": 1, - "Command": "Get-PnPMessageCenterAnnouncement" + "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }", + "CommandName": "Get-PnPListItem" }, { + "Rank": 8, "Id": 557, - "CommandName": "Get-PnPMessageCenterAnnouncement", - "Rank": 2, - "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"" + "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"", + "CommandName": "Get-PnPListItem" }, { + "Rank": 9, "Id": 558, - "CommandName": "Get-PnPMicrosoft365ExpiringGroup", - "Rank": 1, - "Command": "Get-PnPMicrosoft365ExpiringGroup" + "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType", + "CommandName": "Get-PnPListItem" }, { + "Rank": 1, "Id": 559, - "CommandName": "Get-PnPMicrosoft365ExpiringGroup", - "Rank": 2, - "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93" + "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"", + "CommandName": "Get-PnPListItemAttachment" }, { + "Rank": 2, "Id": 560, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 1, - "Command": "Get-PnPMicrosoft365Group" + "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force", + "CommandName": "Get-PnPListItemAttachment" }, { + "Rank": 1, "Id": 561, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 2, - "Command": "Get-PnPMicrosoft365Group -Identity $groupId" + "Command": "Get-PnPListItemComment -List Tasks -Identity 1", + "CommandName": "Get-PnPListItemComment" }, { + "Rank": 1, "Id": 562, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 3, - "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName" + "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1", + "CommandName": "Get-PnPListItemPermission" }, { + "Rank": 1, "Id": 563, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 4, - "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName" + "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1", + "CommandName": "Get-PnPListItemVersion" }, { + "Rank": 1, "Id": 564, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 5, - "Command": "Get-PnPMicrosoft365Group -Identity $group" + "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60", + "CommandName": "Get-PnPListPermissions" }, { + "Rank": 2, "Id": 565, - "CommandName": "Get-PnPMicrosoft365Group", - "Rank": 6, - "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl" + "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id", + "CommandName": "Get-PnPListPermissions" }, { - "Id": 566, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupEndpoint" + "Id": 566, + "Command": "Get-PnPListRecordDeclaration -List \"Documents\"", + "CommandName": "Get-PnPListRecordDeclaration" }, { + "Rank": 1, "Id": 567, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"" + "Command": "Get-PnPMasterPage", + "CommandName": "Get-PnPMasterPage" }, { + "Rank": 1, "Id": 568, - "CommandName": "Get-PnPMicrosoft365GroupEndpoint", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" + "Command": "Get-PnPMessageCenterAnnouncement", + "CommandName": "Get-PnPMessageCenterAnnouncement" }, { + "Rank": 2, "Id": 569, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId" + "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"", + "CommandName": "Get-PnPMessageCenterAnnouncement" }, { + "Rank": 1, "Id": 570, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupMember -Identity $group" + "Command": "Get-PnPMicrosoft365ExpiringGroup", + "CommandName": "Get-PnPMicrosoft365ExpiringGroup" }, { + "Rank": 2, "Id": 571, - "CommandName": "Get-PnPMicrosoft365GroupMember", - "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest" + "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93", + "CommandName": "Get-PnPMicrosoft365ExpiringGroup" }, { - "Id": 572, - "CommandName": "Get-PnPMicrosoft365GroupOwner", "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId" + "Id": 572, + "Command": "Get-PnPMicrosoft365Group", + "CommandName": "Get-PnPMicrosoft365Group" }, { - "Id": 573, - "CommandName": "Get-PnPMicrosoft365GroupOwner", "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group" + "Id": 573, + "Command": "Get-PnPMicrosoft365Group -Identity $groupId", + "CommandName": "Get-PnPMicrosoft365Group" }, { + "Rank": 3, "Id": 574, - "CommandName": "Get-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupSettings" + "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName", + "CommandName": "Get-PnPMicrosoft365Group" }, { + "Rank": 4, "Id": 575, - "CommandName": "Get-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId" + "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName", + "CommandName": "Get-PnPMicrosoft365Group" }, { + "Rank": 5, "Id": 576, - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", - "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates" + "Command": "Get-PnPMicrosoft365Group -Identity $group", + "CommandName": "Get-PnPMicrosoft365Group" }, { + "Rank": 6, "Id": 577, - "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", - "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"" + "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl", + "CommandName": "Get-PnPMicrosoft365Group" }, { - "Id": 578, - "CommandName": "Get-PnPMicrosoft365GroupTeam", "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupTeam" + "Id": 578, + "Command": "Get-PnPMicrosoft365GroupEndpoint", + "CommandName": "Get-PnPMicrosoft365GroupEndpoint" }, { - "Id": 579, - "CommandName": "Get-PnPMicrosoft365GroupTeam", "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"" + "Id": 579, + "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"", + "CommandName": "Get-PnPMicrosoft365GroupEndpoint" }, { - "Id": 580, - "CommandName": "Get-PnPMicrosoft365GroupTeam", "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" + "Id": 580, + "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", + "CommandName": "Get-PnPMicrosoft365GroupEndpoint" }, { - "Id": 581, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Rank": 1, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity" + "Id": 581, + "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId", + "CommandName": "Get-PnPMicrosoft365GroupMember" }, { - "Id": 582, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Rank": 2, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"" + "Id": 582, + "Command": "Get-PnPMicrosoft365GroupMember -Identity $group", + "CommandName": "Get-PnPMicrosoft365GroupMember" }, { - "Id": 583, - "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", "Rank": 3, - "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" + "Id": 583, + "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest", + "CommandName": "Get-PnPMicrosoft365GroupMember" }, { - "Id": 584, - "CommandName": "Get-PnPNavigationNode", "Rank": 1, - "Command": "Get-PnPNavigationNode" + "Id": 584, + "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId", + "CommandName": "Get-PnPMicrosoft365GroupOwner" }, { - "Id": 585, - "CommandName": "Get-PnPNavigationNode", "Rank": 2, - "Command": "Get-PnPNavigationNode -Location QuickLaunch" + "Id": 585, + "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group", + "CommandName": "Get-PnPMicrosoft365GroupOwner" }, { + "Rank": 1, "Id": 586, - "CommandName": "Get-PnPNavigationNode", - "Rank": 3, - "Command": "Get-PnPNavigationNode -Location TopNavigationBar" + "Command": "Get-PnPMicrosoft365GroupSettings", + "CommandName": "Get-PnPMicrosoft365GroupSettings" }, { + "Rank": 2, "Id": 587, - "CommandName": "Get-PnPOrgAssetsLibrary", - "Rank": 1, - "Command": "Get-PnPOrgAssetsLibrary" + "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId", + "CommandName": "Get-PnPMicrosoft365GroupSettings" }, { - "Id": 588, - "CommandName": "Get-PnPOrgNewsSite", "Rank": 1, - "Command": "Get-PnPOrgNewsSite" + "Id": 588, + "Command": "Get-PnPMicrosoft365GroupSettingTemplates", + "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates" }, { + "Rank": 2, "Id": 589, - "CommandName": "Get-PnPPage", - "Rank": 1, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\"" + "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"", + "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates" }, { + "Rank": 1, "Id": 590, - "CommandName": "Get-PnPPage", - "Rank": 2, - "Command": "Get-PnPPage \"MyPage\"" + "Command": "Get-PnPMicrosoft365GroupTeam", + "CommandName": "Get-PnPMicrosoft365GroupTeam" }, { + "Rank": 2, "Id": 591, - "CommandName": "Get-PnPPage", - "Rank": 3, - "Command": "Get-PnPPage \"Templates/MyPageTemplate\"" + "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"", + "CommandName": "Get-PnPMicrosoft365GroupTeam" }, { + "Rank": 3, "Id": 592, - "CommandName": "Get-PnPPage", - "Rank": 4, - "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")" + "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", + "CommandName": "Get-PnPMicrosoft365GroupTeam" }, { - "Id": 593, - "CommandName": "Get-PnPPageComponent", "Rank": 1, - "Command": "Get-PnPPageComponent -Page Home" + "Id": 593, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity", + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" }, { - "Id": 594, - "CommandName": "Get-PnPPageComponent", "Rank": 2, - "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" + "Id": 594, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"", + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" }, { - "Id": 595, - "CommandName": "Get-PnPPageComponent", "Rank": 3, - "Command": "Get-PnPPageComponent -Page Home -ListAvailable" + "Id": 595, + "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409", + "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity" }, { - "Id": 596, - "CommandName": "Get-PnPPlannerBucket", "Rank": 1, - "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"" + "Id": 596, + "Command": "Get-PnPNavigationNode", + "CommandName": "Get-PnPNavigationNode" }, { + "Rank": 2, "Id": 597, - "CommandName": "Get-PnPPlannerConfiguration", - "Rank": 1, - "Command": "Get-PnPPlannerConfiguration" + "Command": "Get-PnPNavigationNode -Location QuickLaunch", + "CommandName": "Get-PnPNavigationNode" }, { + "Rank": 3, "Id": 598, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 1, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\"" + "Command": "Get-PnPNavigationNode -Location TopNavigationBar", + "CommandName": "Get-PnPNavigationNode" }, { + "Rank": 1, "Id": 599, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 2, - "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"" + "Command": "Get-PnPOrgAssetsLibrary", + "CommandName": "Get-PnPOrgAssetsLibrary" }, { + "Rank": 1, "Id": 600, - "CommandName": "Get-PnPPlannerPlan", - "Rank": 3, - "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities" + "Command": "Get-PnPOrgNewsSite", + "CommandName": "Get-PnPOrgNewsSite" }, { - "Id": 601, - "CommandName": "Get-PnPPlannerRosterMember", "Rank": 1, - "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"" + "Id": 601, + "Command": "Get-PnPPage -Identity \"MyPage.aspx\"", + "CommandName": "Get-PnPPage" }, { + "Rank": 2, "Id": 602, - "CommandName": "Get-PnPPlannerRosterPlan", - "Rank": 1, - "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"" + "Command": "Get-PnPPage \"MyPage\"", + "CommandName": "Get-PnPPage" }, { + "Rank": 3, "Id": 603, - "CommandName": "Get-PnPPlannerRosterPlan", - "Rank": 2, - "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"" + "Command": "Get-PnPPage \"Templates/MyPageTemplate\"", + "CommandName": "Get-PnPPage" }, { + "Rank": 4, "Id": 604, - "CommandName": "Get-PnPPlannerTask", - "Rank": 1, - "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"" + "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")", + "CommandName": "Get-PnPPage" }, { + "Rank": 1, "Id": 605, - "CommandName": "Get-PnPPlannerTask", - "Rank": 2, - "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" + "Command": "Get-PnPPageComponent -Page Home", + "CommandName": "Get-PnPPageComponent" }, { + "Rank": 2, "Id": 606, - "CommandName": "Get-PnPPlannerTask", - "Rank": 3, - "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" + "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82", + "CommandName": "Get-PnPPageComponent" }, { + "Rank": 3, "Id": 607, - "CommandName": "Get-PnPPlannerUserPolicy", - "Rank": 1, - "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" + "Command": "Get-PnPPageComponent -Page Home -ListAvailable", + "CommandName": "Get-PnPPageComponent" }, { - "Id": 608, - "CommandName": "Get-PnPPowerPlatformConnector", "Rank": 1, - "Command": "Get-PnPPowerPlatformConnector -Environment (Get-PnPPowerPlatformEnvironment)" + "Id": 608, + "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"", + "CommandName": "Get-PnPPlannerBucket" }, { - "Id": 609, - "CommandName": "Get-PnPPowerPlatformEnvironment", "Rank": 1, - "Command": "Get-PnPPowerPlatformEnvironment" + "Id": 609, + "Command": "Get-PnPPlannerConfiguration", + "CommandName": "Get-PnPPlannerConfiguration" }, { + "Rank": 1, "Id": 610, - "CommandName": "Get-PnPPowerPlatformEnvironment", - "Rank": 2, - "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true" + "Command": "Get-PnPPlannerPlan -Group \"Marketing\"", + "CommandName": "Get-PnPPlannerPlan" }, { + "Rank": 2, "Id": 611, - "CommandName": "Get-PnPPowerPlatformEnvironment", - "Rank": 3, - "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"" + "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"", + "CommandName": "Get-PnPPlannerPlan" }, { + "Rank": 3, "Id": 612, - "CommandName": "Get-PnPPowerShellTelemetryEnabled", - "Rank": 1, - "Command": "Get-PnPPowerShellTelemetryEnabled" + "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities", + "CommandName": "Get-PnPPlannerPlan" }, { - "Id": 613, - "CommandName": "Get-PnPPropertyBag", "Rank": 1, - "Command": "Get-PnPPropertyBag" + "Id": 613, + "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"", + "CommandName": "Get-PnPPlannerRosterMember" }, { + "Rank": 1, "Id": 614, - "CommandName": "Get-PnPPropertyBag", - "Rank": 2, - "Command": "Get-PnPPropertyBag -Key MyKey" + "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"", + "CommandName": "Get-PnPPlannerRosterPlan" }, { + "Rank": 2, "Id": 615, - "CommandName": "Get-PnPPropertyBag", - "Rank": 3, - "Command": "Get-PnPPropertyBag -Folder /MyFolder" + "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"", + "CommandName": "Get-PnPPlannerRosterPlan" }, { + "Rank": 1, "Id": 616, - "CommandName": "Get-PnPPropertyBag", - "Rank": 4, - "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey" + "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"", + "CommandName": "Get-PnPPlannerTask" }, { + "Rank": 2, "Id": 617, - "CommandName": "Get-PnPPropertyBag", - "Rank": 5, - "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey" + "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"", + "CommandName": "Get-PnPPlannerTask" }, { + "Rank": 3, "Id": 618, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 1, - "Command": "Get-PnPPublishingImageRendition" + "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"", + "CommandName": "Get-PnPPlannerTask" }, { + "Rank": 1, "Id": 619, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 2, - "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"" + "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"", + "CommandName": "Get-PnPPlannerUserPolicy" }, { + "Rank": 1, "Id": 620, - "CommandName": "Get-PnPPublishingImageRendition", - "Rank": 3, - "Command": "Get-PnPPublishingImageRendition -Identity 2" + "Command": "Get-PnPPowerPlatformCustomConnector -Environment (Get-PnPPowerPlatformEnvironment)", + "CommandName": "Get-PnPPowerPlatformCustomConnector" }, { - "Id": 621, - "CommandName": "Get-PnPRecycleBinItem", "Rank": 1, - "Command": "Get-PnPRecycleBinItem" + "Id": 621, + "Command": "Get-PnPPowerPlatformEnvironment", + "CommandName": "Get-PnPPowerPlatformEnvironment" }, { - "Id": 622, - "CommandName": "Get-PnPRecycleBinItem", "Rank": 2, - "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2" + "Id": 622, + "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true", + "CommandName": "Get-PnPPowerPlatformEnvironment" }, { - "Id": 623, - "CommandName": "Get-PnPRecycleBinItem", "Rank": 3, - "Command": "Get-PnPRecycleBinItem -FirstStage" + "Id": 623, + "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"", + "CommandName": "Get-PnPPowerPlatformEnvironment" }, { + "Rank": 1, "Id": 624, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 4, - "Command": "Get-PnPRecycleBinItem -SecondStage" + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment)", + "CommandName": "Get-PnPPowerPlatformSolution" }, { + "Rank": 2, "Id": 625, - "CommandName": "Get-PnPRecycleBinItem", - "Rank": 5, - "Command": "Get-PnPRecycleBinItem -RowLimit 10000" + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Name 'My Solution Name'", + "CommandName": "Get-PnPPowerPlatformSolution" }, { - "Id": 626, - "CommandName": "Get-PnPRequestAccessEmails", "Rank": 1, - "Command": "Get-PnPRequestAccessEmails" + "Id": 626, + "Command": "Get-PnPPowerShellTelemetryEnabled", + "CommandName": "Get-PnPPowerShellTelemetryEnabled" }, { - "Id": 627, - "CommandName": "Get-PnPRetentionLabel", "Rank": 1, - "Command": "Get-PnPRetentionLabel" + "Id": 627, + "Command": "Get-PnPPropertyBag", + "CommandName": "Get-PnPPropertyBag" }, { - "Id": 628, - "CommandName": "Get-PnPRetentionLabel", "Rank": 2, - "Command": "Get-PnPRetentionLabel -Identity 58f77809-9738-5080-90f1-gh7afeba2995" + "Id": 628, + "Command": "Get-PnPPropertyBag -Key MyKey", + "CommandName": "Get-PnPPropertyBag" }, { + "Rank": 3, "Id": 629, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 1, - "Command": "Get-PnPRoleDefinition" + "Command": "Get-PnPPropertyBag -Folder /MyFolder", + "CommandName": "Get-PnPPropertyBag" }, { + "Rank": 4, "Id": 630, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 2, - "Command": "Get-PnPRoleDefinition -Identity Read" + "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey", + "CommandName": "Get-PnPPropertyBag" }, { + "Rank": 5, "Id": 631, - "CommandName": "Get-PnPRoleDefinition", - "Rank": 3, - "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }" + "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey", + "CommandName": "Get-PnPPropertyBag" }, { - "Id": 632, - "CommandName": "Get-PnPSearchConfiguration", "Rank": 1, - "Command": "Get-PnPSearchConfiguration" + "Id": 632, + "Command": "Get-PnPPublishingImageRendition", + "CommandName": "Get-PnPPublishingImageRendition" }, { - "Id": 633, - "CommandName": "Get-PnPSearchConfiguration", "Rank": 2, - "Command": "Get-PnPSearchConfiguration -Scope Site" + "Id": 633, + "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"", + "CommandName": "Get-PnPPublishingImageRendition" }, { - "Id": 634, - "CommandName": "Get-PnPSearchConfiguration", "Rank": 3, - "Command": "Get-PnPSearchConfiguration -Scope Subscription" + "Id": 634, + "Command": "Get-PnPPublishingImageRendition -Identity 2", + "CommandName": "Get-PnPPublishingImageRendition" }, { + "Rank": 1, "Id": 635, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 4, - "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" + "Command": "Get-PnPRecycleBinItem", + "CommandName": "Get-PnPRecycleBinItem" }, { + "Rank": 2, "Id": 636, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 5, - "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings" + "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2", + "CommandName": "Get-PnPRecycleBinItem" }, { + "Rank": 3, "Id": 637, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 6, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv" + "Command": "Get-PnPRecycleBinItem -FirstStage", + "CommandName": "Get-PnPRecycleBinItem" }, { + "Rank": 4, "Id": 638, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 7, - "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published" + "Command": "Get-PnPRecycleBinItem -SecondStage", + "CommandName": "Get-PnPRecycleBinItem" }, { + "Rank": 5, "Id": 639, - "CommandName": "Get-PnPSearchConfiguration", - "Rank": 8, - "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false" + "Command": "Get-PnPRecycleBinItem -RowLimit 10000", + "CommandName": "Get-PnPRecycleBinItem" }, { - "Id": 640, - "CommandName": "Get-PnPSearchCrawlLog", "Rank": 1, - "Command": "Get-PnPSearchCrawlLog" + "Id": 640, + "Command": "Get-PnPRequestAccessEmails", + "CommandName": "Get-PnPRequestAccessEmails" }, { + "Rank": 1, "Id": 641, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 2, - "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"" + "Command": "Get-PnPRoleDefinition", + "CommandName": "Get-PnPRoleDefinition" }, { + "Rank": 2, "Id": 642, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 3, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles" + "Command": "Get-PnPRoleDefinition -Identity Read", + "CommandName": "Get-PnPRoleDefinition" }, { + "Rank": 3, "Id": 643, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 4, - "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"" + "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }", + "CommandName": "Get-PnPRoleDefinition" }, { + "Rank": 1, "Id": 644, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 5, - "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10" + "Command": "Get-PnPSearchConfiguration", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 2, "Id": 645, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 6, - "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)" + "Command": "Get-PnPSearchConfiguration -Scope Site", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 3, "Id": 646, - "CommandName": "Get-PnPSearchCrawlLog", - "Rank": 7, - "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat" + "Command": "Get-PnPSearchConfiguration -Scope Subscription", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 4, "Id": 647, - "CommandName": "Get-PnPSearchSettings", - "Rank": 1, - "Command": "Get-PnPSearchSettings" + "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 5, "Id": 648, - "CommandName": "Get-PnPServiceCurrentHealth", - "Rank": 1, - "Command": "Get-PnPServiceCurrentHealth" + "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 6, "Id": 649, - "CommandName": "Get-PnPServiceCurrentHealth", - "Rank": 2, - "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"" + "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 7, "Id": 650, - "CommandName": "Get-PnPServiceHealthIssue", - "Rank": 1, - "Command": "Get-PnPServiceHealthIssue" + "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published", + "CommandName": "Get-PnPSearchConfiguration" }, { + "Rank": 8, "Id": 651, - "CommandName": "Get-PnPServiceHealthIssue", - "Rank": 2, - "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"" + "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false", + "CommandName": "Get-PnPSearchConfiguration" }, { - "Id": 652, - "CommandName": "Get-PnPSharePointAddIn", "Rank": 1, - "Command": "Get-PnPSharePointAddIn" + "Id": 652, + "Command": "Get-PnPSearchCrawlLog", + "CommandName": "Get-PnPSearchCrawlLog" }, { - "Id": 653, - "CommandName": "Get-PnPSharePointAddIn", "Rank": 2, - "Command": "Get-PnPSharePointAddIn -IncludeSubsites" + "Id": 653, + "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"", + "CommandName": "Get-PnPSearchCrawlLog" }, { + "Rank": 3, "Id": 654, - "CommandName": "Get-PnPSharingForNonOwnersOfSite", - "Rank": 1, - "Command": "Get-PnPSharingForNonOwnersOfSite" + "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles", + "CommandName": "Get-PnPSearchCrawlLog" }, { + "Rank": 4, "Id": 655, - "CommandName": "Get-PnPSite", - "Rank": 1, - "Command": "Get-PnPSite" + "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"", + "CommandName": "Get-PnPSearchCrawlLog" }, { + "Rank": 5, "Id": 656, - "CommandName": "Get-PnPSite", - "Rank": 2, - "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl" + "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10", + "CommandName": "Get-PnPSearchCrawlLog" }, { + "Rank": 6, "Id": 657, - "CommandName": "Get-PnPSiteClosure", - "Rank": 1, - "Command": "Get-PnPSiteClosure" + "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)", + "CommandName": "Get-PnPSearchCrawlLog" }, { + "Rank": 7, "Id": 658, - "CommandName": "Get-PnPSiteCollectionAdmin", - "Rank": 1, - "Command": "Get-PnPSiteCollectionAdmin" + "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat", + "CommandName": "Get-PnPSearchCrawlLog" }, { - "Id": 659, - "CommandName": "Get-PnPSiteCollectionAppCatalog", "Rank": 1, - "Command": "Get-PnPSiteCollectionAppCatalog" + "Id": 659, + "Command": "Get-PnPSearchSettings", + "CommandName": "Get-PnPSearchSettings" }, { + "Rank": 1, "Id": 660, - "CommandName": "Get-PnPSiteCollectionAppCatalog", - "Rank": 2, - "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite" + "Command": "Get-PnPServiceCurrentHealth", + "CommandName": "Get-PnPServiceCurrentHealth" }, { + "Rank": 2, "Id": 661, - "CommandName": "Get-PnPSiteCollectionAppCatalog", - "Rank": 3, - "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites" + "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"", + "CommandName": "Get-PnPServiceCurrentHealth" }, { - "Id": 662, - "CommandName": "Get-PnPSiteCollectionTermStore", "Rank": 1, - "Command": "Get-PnPSiteCollectionTermStore" + "Id": 662, + "Command": "Get-PnPServiceHealthIssue", + "CommandName": "Get-PnPServiceHealthIssue" }, { + "Rank": 2, "Id": 663, - "CommandName": "Get-PnPSiteDesign", - "Rank": 1, - "Command": "Get-PnPSiteDesign" + "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"", + "CommandName": "Get-PnPServiceHealthIssue" }, { + "Rank": 1, "Id": 664, - "CommandName": "Get-PnPSiteDesign", - "Rank": 2, - "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Get-PnPSharePointAddIn", + "CommandName": "Get-PnPSharePointAddIn" }, { + "Rank": 2, "Id": 665, - "CommandName": "Get-PnPSiteDesignRights", - "Rank": 1, - "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Get-PnPSharePointAddIn -IncludeSubsites", + "CommandName": "Get-PnPSharePointAddIn" }, { - "Id": 666, - "CommandName": "Get-PnPSiteDesignRun", "Rank": 1, - "Command": "Get-PnPSiteDesignRun" + "Id": 666, + "Command": "Get-PnPSharingForNonOwnersOfSite", + "CommandName": "Get-PnPSharingForNonOwnersOfSite" }, { + "Rank": 1, "Id": 667, - "CommandName": "Get-PnPSiteDesignRun", - "Rank": 2, - "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"" + "Command": "Get-PnPSite", + "CommandName": "Get-PnPSite" }, { + "Rank": 2, "Id": 668, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 1, - "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82" + "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl", + "CommandName": "Get-PnPSite" }, { + "Rank": 1, "Id": 669, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 2, - "Command": "Get-PnPSiteDesignTask" + "Command": "Get-PnPSiteAnalyticsData -All", + "CommandName": "Get-PnPSiteAnalyticsData" }, { + "Rank": 2, "Id": 670, - "CommandName": "Get-PnPSiteDesignTask", - "Rank": 3, - "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"" + "Command": "Get-PnPSiteAnalyticsData -LastSevenDays", + "CommandName": "Get-PnPSiteAnalyticsData" }, { + "Rank": 3, "Id": 671, - "CommandName": "Get-PnPSiteGroup", - "Rank": 1, - "Command": "Get-PnPSiteGroup" + "Command": "Get-PnPSiteAnalyticsData -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", + "CommandName": "Get-PnPSiteAnalyticsData" }, { + "Rank": 4, "Id": 672, - "CommandName": "Get-PnPSiteGroup", - "Rank": 2, - "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"" + "Command": "Get-PnPSiteAnalyticsData -Identity \"https://tenant.sharepoint.com/sites/mysite\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day", + "CommandName": "Get-PnPSiteAnalyticsData" }, { + "Rank": 1, "Id": 673, - "CommandName": "Get-PnPSiteGroup", - "Rank": 3, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"" + "Command": "Get-PnPSiteClosure", + "CommandName": "Get-PnPSiteClosure" }, { + "Rank": 1, "Id": 674, - "CommandName": "Get-PnPSiteGroup", - "Rank": 4, - "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"" + "Command": "Get-PnPSiteCollectionAdmin", + "CommandName": "Get-PnPSiteCollectionAdmin" }, { - "Id": 675, - "CommandName": "Get-PnPSitePolicy", "Rank": 1, - "Command": "Get-PnPSitePolicy" + "Id": 675, + "Command": "Get-PnPSiteCollectionAppCatalog", + "CommandName": "Get-PnPSiteCollectionAppCatalog" }, { - "Id": 676, - "CommandName": "Get-PnPSitePolicy", "Rank": 2, - "Command": "Get-PnPSitePolicy -AllAvailable" + "Id": 676, + "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite", + "CommandName": "Get-PnPSiteCollectionAppCatalog" }, { - "Id": 677, - "CommandName": "Get-PnPSitePolicy", "Rank": 3, - "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"" + "Id": 677, + "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites", + "CommandName": "Get-PnPSiteCollectionAppCatalog" }, { - "Id": 678, - "CommandName": "Get-PnPSiteScript", "Rank": 1, - "Command": "Get-PnPSiteScript" + "Id": 678, + "Command": "Get-PnPSiteCollectionTermStore", + "CommandName": "Get-PnPSiteCollectionTermStore" }, { + "Rank": 1, "Id": 679, - "CommandName": "Get-PnPSiteScript", - "Rank": 2, - "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Get-PnPSiteDesign", + "CommandName": "Get-PnPSiteDesign" }, { + "Rank": 2, "Id": 680, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 1, - "Command": "Get-PnPSiteScriptFromList -List \"MyList\"" + "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Get-PnPSiteDesign" }, { + "Rank": 1, "Id": 681, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 2, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"" + "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Get-PnPSiteDesignRights" }, { + "Rank": 1, "Id": 682, - "CommandName": "Get-PnPSiteScriptFromList", - "Rank": 3, - "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"" + "Command": "Get-PnPSiteDesignRun", + "CommandName": "Get-PnPSiteDesignRun" }, { + "Rank": 2, "Id": 683, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 1, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAll" + "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"", + "CommandName": "Get-PnPSiteDesignRun" }, { + "Rank": 1, "Id": 684, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 2, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll" + "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82", + "CommandName": "Get-PnPSiteDesignTask" }, { + "Rank": 2, "Id": 685, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 3, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"" + "Command": "Get-PnPSiteDesignTask", + "CommandName": "Get-PnPSiteDesignTask" }, { + "Rank": 3, "Id": 686, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 4, - "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems" + "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"", + "CommandName": "Get-PnPSiteDesignTask" }, { + "Rank": 1, "Id": 687, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 5, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists" + "Command": "Get-PnPSiteGroup", + "CommandName": "Get-PnPSiteGroup" }, { + "Rank": 2, "Id": 688, - "CommandName": "Get-PnPSiteScriptFromWeb", - "Rank": 6, - "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite" + "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"", + "CommandName": "Get-PnPSiteGroup" }, { + "Rank": 3, "Id": 689, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 1, - "Command": "Get-PnPSiteSearchQueryResults" + "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"", + "CommandName": "Get-PnPSiteGroup" }, { + "Rank": 4, "Id": 690, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 2, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"" + "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"", + "CommandName": "Get-PnPSiteGroup" }, { + "Rank": 1, "Id": 691, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 3, - "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"" + "Command": "Get-PnPSitePolicy", + "CommandName": "Get-PnPSitePolicy" }, { + "Rank": 2, "Id": 692, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 4, - "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"" + "Command": "Get-PnPSitePolicy -AllAvailable", + "CommandName": "Get-PnPSitePolicy" }, { + "Rank": 3, "Id": 693, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 5, - "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10" + "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"", + "CommandName": "Get-PnPSitePolicy" }, { + "Rank": 1, "Id": 694, - "CommandName": "Get-PnPSiteSearchQueryResults", - "Rank": 6, - "Command": "Get-PnPSiteSearchQueryResults -All" + "Command": "Get-PnPSiteScript", + "CommandName": "Get-PnPSiteScript" }, { + "Rank": 2, "Id": 695, - "CommandName": "Get-PnPSiteSensitivityLabel", - "Rank": 1, - "Command": "Get-PnPSiteSensitivityLabel" + "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Get-PnPSiteScript" }, { - "Id": 696, - "CommandName": "Get-PnPSiteSetVersionPolicyProgress", "Rank": 1, - "Command": "Get-PnPSiteSetVersionPolicyProgress" + "Id": 696, + "Command": "Get-PnPSiteScriptFromList -List \"MyList\"", + "CommandName": "Get-PnPSiteScriptFromList" }, { + "Rank": 2, "Id": 697, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 1, - "Command": "Get-PnPSiteTemplate -Out template.pnp" + "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"", + "CommandName": "Get-PnPSiteScriptFromList" }, { + "Rank": 3, "Id": 698, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 2, - "Command": "Get-PnPSiteTemplate -Out template.xml" + "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"", + "CommandName": "Get-PnPSiteScriptFromList" }, { + "Rank": 1, "Id": 699, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 3, - "Command": "Get-PnPSiteTemplate -Out template.md" + "Command": "Get-PnPSiteScriptFromWeb -IncludeAll", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 2, "Id": 700, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 4, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503" + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 3, "Id": 701, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 5, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups" + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 4, "Id": 702, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 6, - "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup" + "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 5, "Id": 703, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 7, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles" + "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 6, "Id": 704, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 8, - "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity" + "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite", + "CommandName": "Get-PnPSiteScriptFromWeb" }, { + "Rank": 1, "Id": 705, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 9, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources" + "Command": "Get-PnPSiteSearchQueryResults", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { + "Rank": 2, "Id": 706, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 10, - "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources" + "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { + "Rank": 3, "Id": 707, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 11, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"" + "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { + "Rank": 4, "Id": 708, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 12, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication" + "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { + "Rank": 5, "Id": 709, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 13, - "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"" + "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { + "Rank": 6, "Id": 710, - "CommandName": "Get-PnPSiteTemplate", - "Rank": 14, - "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources" + "Command": "Get-PnPSiteSearchQueryResults -All", + "CommandName": "Get-PnPSiteSearchQueryResults" }, { - "Id": 711, - "CommandName": "Get-PnPSiteUserInvitations", "Rank": 1, - "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" + "Id": 711, + "Command": "Get-PnPSiteSensitivityLabel", + "CommandName": "Get-PnPSiteSensitivityLabel" }, { - "Id": 712, - "CommandName": "Get-PnPSiteVersionPolicy", "Rank": 1, - "Command": "Get-PnPSiteVersionPolicy" + "Id": 712, + "Command": "Get-PnPSiteTemplate -Out template.pnp", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 2, "Id": 713, - "CommandName": "Get-PnPStorageEntity", - "Rank": 1, - "Command": "Get-PnPStorageEntity" + "Command": "Get-PnPSiteTemplate -Out template.xml", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 3, "Id": 714, - "CommandName": "Get-PnPStorageEntity", - "Rank": 2, - "Command": "Get-PnPStorageEntity -Key MyKey" + "Command": "Get-PnPSiteTemplate -Out template.md", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 4, "Id": 715, - "CommandName": "Get-PnPStorageEntity", - "Rank": 3, - "Command": "Get-PnPStorageEntity -Scope Site" + "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 5, "Id": 716, - "CommandName": "Get-PnPStorageEntity", - "Rank": 4, - "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site" + "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 6, "Id": 717, - "CommandName": "Get-PnPStoredCredential", - "Rank": 1, - "Command": "Get-PnPStoredCredential -Name O365" + "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 7, "Id": 718, - "CommandName": "Get-PnPStructuralNavigationCacheSiteState", - "Rank": 1, - "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 8, "Id": 719, - "CommandName": "Get-PnPStructuralNavigationCacheWebState", - "Rank": 1, - "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" + "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 9, "Id": 720, - "CommandName": "Get-PnPSubscribeSharePointNewsDigest", - "Rank": 1, - "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'" + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 10, "Id": 721, - "CommandName": "Get-PnPSubWeb", - "Rank": 1, - "Command": "Get-PnPSubWeb" + "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 11, "Id": 722, - "CommandName": "Get-PnPSubWeb", - "Rank": 2, - "Command": "Get-PnPSubWeb -Recurse" + "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 12, "Id": 723, - "CommandName": "Get-PnPSubWeb", - "Rank": 3, - "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description" + "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 13, "Id": 724, - "CommandName": "Get-PnPSubWeb", - "Rank": 4, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse" + "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"", + "CommandName": "Get-PnPSiteTemplate" }, { + "Rank": 14, "Id": 725, - "CommandName": "Get-PnPSubWeb", - "Rank": 5, - "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb" + "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources", + "CommandName": "Get-PnPSiteTemplate" }, { - "Id": 726, - "CommandName": "Get-PnPSyntexModel", "Rank": 1, - "Command": "Get-PnPSyntexModel" + "Id": 726, + "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com", + "CommandName": "Get-PnPSiteUserInvitations" }, { + "Rank": 1, "Id": 727, - "CommandName": "Get-PnPSyntexModel", - "Rank": 2, - "Command": "Get-PnPSyntexModel -Identity 1" + "Command": "Get-PnPSiteVersionPolicy", + "CommandName": "Get-PnPSiteVersionPolicy" }, { + "Rank": 1, "Id": 728, - "CommandName": "Get-PnPSyntexModel", - "Rank": 3, - "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"" + "Command": "Get-PnPSiteVersionPolicyProgress", + "CommandName": "Get-PnPSiteVersionPolicyProgress" }, { - "Id": 729, - "CommandName": "Get-PnPSyntexModelPublication", "Rank": 1, - "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"" + "Id": 729, + "Command": "Get-PnPStorageEntity", + "CommandName": "Get-PnPStorageEntity" }, { + "Rank": 2, "Id": 730, - "CommandName": "Get-PnPTaxonomyItem", - "Rank": 1, - "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"" + "Command": "Get-PnPStorageEntity -Key MyKey", + "CommandName": "Get-PnPStorageEntity" }, { + "Rank": 3, "Id": 731, - "CommandName": "Get-PnPTeamsApp", - "Rank": 1, - "Command": "Get-PnPTeamsApp" + "Command": "Get-PnPStorageEntity -Scope Site", + "CommandName": "Get-PnPStorageEntity" }, { + "Rank": 4, "Id": 732, - "CommandName": "Get-PnPTeamsApp", - "Rank": 2, - "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4" + "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site", + "CommandName": "Get-PnPStorageEntity" }, { + "Rank": 1, "Id": 733, - "CommandName": "Get-PnPTeamsApp", - "Rank": 3, - "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"" + "Command": "Get-PnPStoredCredential -Name O365", + "CommandName": "Get-PnPStoredCredential" }, { - "Id": 734, - "CommandName": "Get-PnPTeamsChannel", "Rank": 1, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8" + "Id": 734, + "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", + "CommandName": "Get-PnPStructuralNavigationCacheSiteState" }, { + "Rank": 1, "Id": 735, - "CommandName": "Get-PnPTeamsChannel", - "Rank": 2, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"" + "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", + "CommandName": "Get-PnPStructuralNavigationCacheWebState" }, { + "Rank": 1, "Id": 736, - "CommandName": "Get-PnPTeamsChannel", - "Rank": 3, - "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" + "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'", + "CommandName": "Get-PnPSubscribeSharePointNewsDigest" }, { - "Id": 737, - "CommandName": "Get-PnPTeamsChannelFilesFolder", "Rank": 1, - "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"" + "Id": 737, + "Command": "Get-PnPSubWeb", + "CommandName": "Get-PnPSubWeb" }, { - "Id": 738, - "CommandName": "Get-PnPTeamsChannelFilesFolder", "Rank": 2, - "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" + "Id": 738, + "Command": "Get-PnPSubWeb -Recurse", + "CommandName": "Get-PnPSubWeb" }, { + "Rank": 3, "Id": 739, - "CommandName": "Get-PnPTeamsChannelMessage", - "Rank": 1, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"" + "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description", + "CommandName": "Get-PnPSubWeb" }, { + "Rank": 4, "Id": 740, - "CommandName": "Get-PnPTeamsChannelMessage", - "Rank": 2, - "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293" + "Command": "Get-PnPSubWeb -Identity Team1 -Recurse", + "CommandName": "Get-PnPSubWeb" }, { + "Rank": 5, "Id": 741, - "CommandName": "Get-PnPTeamsChannelMessageReply", - "Rank": 1, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted" + "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb", + "CommandName": "Get-PnPSubWeb" }, { + "Rank": 1, "Id": 742, - "CommandName": "Get-PnPTeamsChannelMessageReply", - "Rank": 2, - "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630" + "Command": "Get-PnPSyntexModel", + "CommandName": "Get-PnPSyntexModel" }, { + "Rank": 2, "Id": 743, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 1, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"" + "Command": "Get-PnPSyntexModel -Identity 1", + "CommandName": "Get-PnPSyntexModel" }, { + "Rank": 3, "Id": 744, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 2, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member" + "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"", + "CommandName": "Get-PnPSyntexModel" }, { + "Rank": 1, "Id": 745, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 3, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com" + "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"", + "CommandName": "Get-PnPSyntexModelPublication" }, { + "Rank": 1, "Id": 746, - "CommandName": "Get-PnPTeamsChannelUser", - "Rank": 4, - "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" + "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"", + "CommandName": "Get-PnPTaxonomyItem" }, { - "Id": 747, - "CommandName": "Get-PnPTeamsPrimaryChannel", "Rank": 1, - "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e" + "Id": 747, + "Command": "Get-PnPTeamsApp", + "CommandName": "Get-PnPTeamsApp" }, { - "Id": 748, - "CommandName": "Get-PnPTeamsPrimaryChannel", "Rank": 2, - "Command": "Get-PnPTeamsPrimaryChannel -Team Sales" + "Id": 748, + "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4", + "CommandName": "Get-PnPTeamsApp" }, { + "Rank": 3, "Id": 749, - "CommandName": "Get-PnPTeamsTab", - "Rank": 1, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" + "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"", + "CommandName": "Get-PnPTeamsApp" }, { + "Rank": 1, "Id": 750, - "CommandName": "Get-PnPTeamsTab", - "Rank": 2, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"" + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8", + "CommandName": "Get-PnPTeamsChannel" }, { + "Rank": 2, "Id": 751, - "CommandName": "Get-PnPTeamsTab", - "Rank": 3, - "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25" + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"", + "CommandName": "Get-PnPTeamsChannel" }, { + "Rank": 3, "Id": 752, - "CommandName": "Get-PnPTeamsTab", - "Rank": 4, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"" + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"", + "CommandName": "Get-PnPTeamsChannel" }, { + "Rank": 4, "Id": 753, - "CommandName": "Get-PnPTeamsTab", - "Rank": 5, - "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"" + "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -IncludeModerationSettings", + "CommandName": "Get-PnPTeamsChannel" }, { - "Id": 754, - "CommandName": "Get-PnPTeamsTag", "Rank": 1, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5" + "Id": 754, + "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"", + "CommandName": "Get-PnPTeamsChannelFilesFolder" }, { - "Id": 755, - "CommandName": "Get-PnPTeamsTag", "Rank": 2, - "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" + "Id": 755, + "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"", + "CommandName": "Get-PnPTeamsChannelFilesFolder" }, { - "Id": 756, - "CommandName": "Get-PnPTeamsTeam", "Rank": 1, - "Command": "Get-PnPTeamsTeam" + "Id": 756, + "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"", + "CommandName": "Get-PnPTeamsChannelMessage" }, { - "Id": 757, - "CommandName": "Get-PnPTeamsTeam", "Rank": 2, - "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"" + "Id": 757, + "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293", + "CommandName": "Get-PnPTeamsChannelMessage" }, { + "Rank": 1, "Id": 758, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 3, - "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"" + "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted", + "CommandName": "Get-PnPTeamsChannelMessageReply" }, { + "Rank": 2, "Id": 759, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 4, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"" + "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630", + "CommandName": "Get-PnPTeamsChannelMessageReply" }, { + "Rank": 1, "Id": 760, - "CommandName": "Get-PnPTeamsTeam", - "Rank": 5, - "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"" + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"", + "CommandName": "Get-PnPTeamsChannelUser" }, { + "Rank": 2, "Id": 761, - "CommandName": "Get-PnPTeamsUser", - "Rank": 1, - "Command": "Get-PnPTeamsUser -Team MyTeam" + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member", + "CommandName": "Get-PnPTeamsChannelUser" }, { + "Rank": 3, "Id": 762, - "CommandName": "Get-PnPTeamsUser", - "Rank": 2, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner" + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com", + "CommandName": "Get-PnPTeamsChannelUser" }, { + "Rank": 4, "Id": 763, - "CommandName": "Get-PnPTeamsUser", - "Rank": 3, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member" + "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000", + "CommandName": "Get-PnPTeamsChannelUser" }, { + "Rank": 1, "Id": 764, - "CommandName": "Get-PnPTeamsUser", - "Rank": 4, - "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest" + "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e", + "CommandName": "Get-PnPTeamsPrimaryChannel" }, { + "Rank": 2, "Id": 765, - "CommandName": "Get-PnPTemporarilyDisableAppBar", - "Rank": 1, - "Command": "Get-PnPTemporarilyDisableAppBar" + "Command": "Get-PnPTeamsPrimaryChannel -Team Sales", + "CommandName": "Get-PnPTeamsPrimaryChannel" }, { - "Id": 766, - "CommandName": "Get-PnPTenant", "Rank": 1, - "Command": "Get-PnPTenant" + "Id": 766, + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype", + "CommandName": "Get-PnPTeamsTab" }, { + "Rank": 2, "Id": 767, - "CommandName": "Get-PnPTenantAppCatalogUrl", - "Rank": 1, - "Command": "Get-PnPTenantAppCatalogUrl" + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"", + "CommandName": "Get-PnPTeamsTab" }, { + "Rank": 3, "Id": 768, - "CommandName": "Get-PnPTenantCdnEnabled", - "Rank": 1, - "Command": "Get-PnPTenantCdnEnabled -CdnType Public" + "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25", + "CommandName": "Get-PnPTeamsTab" }, { + "Rank": 4, "Id": 769, - "CommandName": "Get-PnPTenantCdnOrigin", - "Rank": 1, - "Command": "Get-PnPTenantCdnOrigin -CdnType Public" + "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"", + "CommandName": "Get-PnPTeamsTab" }, { + "Rank": 5, "Id": 770, - "CommandName": "Get-PnPTenantCdnPolicies", - "Rank": 1, - "Command": "Get-PnPTenantCdnPolicies -CdnType Public" + "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"", + "CommandName": "Get-PnPTeamsTab" }, { - "Id": 771, - "CommandName": "Get-PnPTenantDeletedSite", "Rank": 1, - "Command": "Get-PnPTenantDeletedSite" + "Id": 771, + "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5", + "CommandName": "Get-PnPTeamsTag" }, { - "Id": 772, - "CommandName": "Get-PnPTenantDeletedSite", "Rank": 2, - "Command": "Get-PnPTenantDeletedSite -Detailed" + "Id": 772, + "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"", + "CommandName": "Get-PnPTeamsTag" }, { + "Rank": 1, "Id": 773, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 3, - "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" + "Command": "Get-PnPTeamsTeam", + "CommandName": "Get-PnPTeamsTeam" }, { + "Rank": 2, "Id": 774, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 4, - "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite" + "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"", + "CommandName": "Get-PnPTeamsTeam" }, { + "Rank": 3, "Id": 775, - "CommandName": "Get-PnPTenantDeletedSite", - "Rank": 5, - "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite" + "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"", + "CommandName": "Get-PnPTeamsTeam" }, { + "Rank": 4, "Id": 776, - "CommandName": "Get-PnPTenantId", - "Rank": 1, - "Command": "Get-PnPTenantId" + "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"", + "CommandName": "Get-PnPTeamsTeam" }, { + "Rank": 5, "Id": 777, - "CommandName": "Get-PnPTenantId", - "Rank": 2, - "Command": "Get-PnPTenantId contoso" + "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"", + "CommandName": "Get-PnPTeamsTeam" }, { + "Rank": 1, "Id": 778, - "CommandName": "Get-PnPTenantId", - "Rank": 3, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com" + "Command": "Get-PnPTeamsUser -Team MyTeam", + "CommandName": "Get-PnPTeamsUser" }, { + "Rank": 2, "Id": 779, - "CommandName": "Get-PnPTenantId", - "Rank": 4, - "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment" + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner", + "CommandName": "Get-PnPTeamsUser" }, { + "Rank": 3, "Id": 780, - "CommandName": "Get-PnPTenantInfo", - "Rank": 1, - "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"" + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member", + "CommandName": "Get-PnPTeamsUser" }, { + "Rank": 4, "Id": 781, - "CommandName": "Get-PnPTenantInfo", - "Rank": 2, - "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"" + "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest", + "CommandName": "Get-PnPTeamsUser" }, { + "Rank": 1, "Id": 782, - "CommandName": "Get-PnPTenantInfo", - "Rank": 3, - "Command": "Get-PnPTenantInfo" + "Command": "Get-PnPTemporarilyDisableAppBar", + "CommandName": "Get-PnPTemporarilyDisableAppBar" }, { + "Rank": 1, "Id": 783, - "CommandName": "Get-PnPTenantInfo", - "Rank": 4, - "Command": "Get-PnPTenantInfo -CurrentTenant" + "Command": "Get-PnPTenant", + "CommandName": "Get-PnPTenant" }, { - "Id": 784, - "CommandName": "Get-PnPTenantInstance", "Rank": 1, - "Command": "Get-PnPTenantInstance" + "Id": 784, + "Command": "Get-PnPTenantAppCatalogUrl", + "CommandName": "Get-PnPTenantAppCatalogUrl" }, { - "Id": 785, - "CommandName": "Get-PnPTenantRecycleBinItem", "Rank": 1, - "Command": "Get-PnPTenantRecycleBinItem" + "Id": 785, + "Command": "Get-PnPTenantCdnEnabled -CdnType Public", + "CommandName": "Get-PnPTenantCdnEnabled" }, { - "Id": 786, - "CommandName": "Get-PnPTenantSequence", "Rank": 1, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject" + "Id": 786, + "Command": "Get-PnPTenantCdnOrigin -CdnType Public", + "CommandName": "Get-PnPTenantCdnOrigin" }, { + "Rank": 1, "Id": 787, - "CommandName": "Get-PnPTenantSequence", - "Rank": 2, - "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"" + "Command": "Get-PnPTenantCdnPolicies -CdnType Public", + "CommandName": "Get-PnPTenantCdnPolicies" }, { - "Id": 788, - "CommandName": "Get-PnPTenantSequenceSite", "Rank": 1, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence" + "Id": 788, + "Command": "Get-PnPTenantDeletedSite", + "CommandName": "Get-PnPTenantDeletedSite" }, { - "Id": 789, - "CommandName": "Get-PnPTenantSequenceSite", "Rank": 2, - "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e" + "Id": 789, + "Command": "Get-PnPTenantDeletedSite -Detailed", + "CommandName": "Get-PnPTenantDeletedSite" }, { + "Rank": 3, "Id": 790, - "CommandName": "Get-PnPTenantSite", - "Rank": 1, - "Command": "Get-PnPTenantSite" + "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Get-PnPTenantDeletedSite" }, { + "Rank": 4, "Id": 791, - "CommandName": "Get-PnPTenantSite", - "Rank": 2, - "Command": "Get-PnPTenantSite -Detailed" + "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite", + "CommandName": "Get-PnPTenantDeletedSite" }, { + "Rank": 5, "Id": 792, - "CommandName": "Get-PnPTenantSite", - "Rank": 3, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites" + "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite", + "CommandName": "Get-PnPTenantDeletedSite" }, { + "Rank": 1, "Id": 793, - "CommandName": "Get-PnPTenantSite", - "Rank": 4, - "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"" + "Command": "Get-PnPTenantId", + "CommandName": "Get-PnPTenantId" }, { + "Rank": 2, "Id": 794, - "CommandName": "Get-PnPTenantSite", - "Rank": 5, - "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"" + "Command": "Get-PnPTenantId contoso", + "CommandName": "Get-PnPTenantId" }, { + "Rank": 3, "Id": 795, - "CommandName": "Get-PnPTenantSite", - "Rank": 6, - "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a" + "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com", + "CommandName": "Get-PnPTenantId" }, { + "Rank": 4, "Id": 796, - "CommandName": "Get-PnPTenantSite", - "Rank": 7, - "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0" + "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment", + "CommandName": "Get-PnPTenantId" }, { + "Rank": 1, "Id": 797, - "CommandName": "Get-PnPTenantSite", - "Rank": 8, - "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"" + "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"", + "CommandName": "Get-PnPTenantInfo" }, { + "Rank": 2, "Id": 798, - "CommandName": "Get-PnPTenantSite", - "Rank": 9, - "Command": "Get-PnPTenantSite -GroupIdDefined $true" + "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"", + "CommandName": "Get-PnPTenantInfo" }, { + "Rank": 3, "Id": 799, - "CommandName": "Get-PnPTenantSyncClientRestriction", - "Rank": 1, - "Command": "Get-PnPTenantSyncClientRestriction" + "Command": "Get-PnPTenantInfo", + "CommandName": "Get-PnPTenantInfo" }, { + "Rank": 4, "Id": 800, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 1, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml" + "Command": "Get-PnPTenantInfo -CurrentTenant", + "CommandName": "Get-PnPTenantInfo" }, { + "Rank": 1, "Id": 801, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 2, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite" + "Command": "Get-PnPTenantInstance", + "CommandName": "Get-PnPTenantInstance" }, { + "Rank": 1, "Id": 802, - "CommandName": "Get-PnPTenantTemplate", - "Rank": 3, - "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force" + "Command": "Get-PnPTenantRecycleBinItem", + "CommandName": "Get-PnPTenantRecycleBinItem" }, { - "Id": 803, - "CommandName": "Get-PnPTenantTheme", "Rank": 1, - "Command": "Get-PnPTenantTheme" + "Id": 803, + "Command": "Get-PnPTenantSequence -Template $myTemplateObject", + "CommandName": "Get-PnPTenantSequence" }, { - "Id": 804, - "CommandName": "Get-PnPTenantTheme", "Rank": 2, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"" + "Id": 804, + "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"", + "CommandName": "Get-PnPTenantSequence" }, { + "Rank": 1, "Id": 805, - "CommandName": "Get-PnPTenantTheme", - "Rank": 3, - "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson" + "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence", + "CommandName": "Get-PnPTenantSequenceSite" }, { + "Rank": 2, "Id": 806, - "CommandName": "Get-PnPTerm", - "Rank": 1, - "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e", + "CommandName": "Get-PnPTenantSequenceSite" }, { + "Rank": 1, "Id": 807, - "CommandName": "Get-PnPTerm", - "Rank": 2, - "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Command": "Get-PnPTenantSite", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 2, "Id": 808, - "CommandName": "Get-PnPTerm", - "Rank": 3, - "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Command": "Get-PnPTenantSite -Detailed", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 3, "Id": 809, - "CommandName": "Get-PnPTerm", - "Rank": 4, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive" + "Command": "Get-PnPTenantSite -IncludeOneDriveSites", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 4, "Id": 810, - "CommandName": "Get-PnPTerm", - "Rank": 5, - "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated" + "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 5, "Id": 811, - "CommandName": "Get-PnPTermGroup", - "Rank": 1, - "Command": "Get-PnPTermGroup" + "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 6, "Id": 812, - "CommandName": "Get-PnPTermGroup", - "Rank": 2, - "Command": "Get-PnPTermGroup -Identity \"Departments\"" + "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 7, "Id": 813, - "CommandName": "Get-PnPTermGroup", - "Rank": 3, - "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d" + "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 8, "Id": 814, - "CommandName": "Get-PnPTermLabel", - "Rank": 1, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83" + "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 9, "Id": 815, - "CommandName": "Get-PnPTermLabel", - "Rank": 2, - "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033" + "Command": "Get-PnPTenantSite -GroupIdDefined $true", + "CommandName": "Get-PnPTenantSite" }, { + "Rank": 1, "Id": 816, - "CommandName": "Get-PnPTermLabel", - "Rank": 3, - "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Command": "Get-PnPTenantSyncClientRestriction", + "CommandName": "Get-PnPTenantSyncClientRestriction" }, { - "Id": 817, - "CommandName": "Get-PnPTermSet", "Rank": 1, - "Command": "Get-PnPTermSet -TermGroup \"Corporate\"" + "Id": 817, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml", + "CommandName": "Get-PnPTenantTemplate" }, { - "Id": 818, - "CommandName": "Get-PnPTermSet", "Rank": 2, - "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"" + "Id": 818, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite", + "CommandName": "Get-PnPTenantTemplate" }, { - "Id": 819, - "CommandName": "Get-PnPTermSet", "Rank": 3, - "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate" + "Id": 819, + "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force", + "CommandName": "Get-PnPTenantTemplate" }, { - "Id": 820, - "CommandName": "Get-PnPTheme", "Rank": 1, - "Command": "Get-PnPTheme" + "Id": 820, + "Command": "Get-PnPTenantTheme", + "CommandName": "Get-PnPTenantTheme" }, { - "Id": 821, - "CommandName": "Get-PnPTheme", "Rank": 2, - "Command": "Get-PnPTheme -DetectCurrentComposedLook" + "Id": 821, + "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"", + "CommandName": "Get-PnPTenantTheme" }, { + "Rank": 3, "Id": 822, - "CommandName": "Get-PnPTimeZoneId", - "Rank": 1, - "Command": "Get-PnPTimeZoneId" + "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson", + "CommandName": "Get-PnPTenantTheme" }, { + "Rank": 1, "Id": 823, - "CommandName": "Get-PnPTimeZoneId", - "Rank": 2, - "Command": "Get-PnPTimeZoneId -Match Stockholm" + "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTerm" }, { + "Rank": 2, "Id": 824, - "CommandName": "Get-PnPUnfurlLink", - "Rank": 1, - "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"" + "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTerm" }, { + "Rank": 3, "Id": 825, - "CommandName": "Get-PnPUnifiedAuditLog", - "Rank": 1, - "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1)" + "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTerm" }, { + "Rank": 4, "Id": 826, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 1, - "Command": "Get-PnPUPABulkImportStatus" + "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive", + "CommandName": "Get-PnPTerm" }, { + "Rank": 5, "Id": 827, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 2, - "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails" + "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated", + "CommandName": "Get-PnPTerm" }, { + "Rank": 1, "Id": 828, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 3, - "Command": "Get-PnPUPABulkImportStatus -JobId " + "Command": "Get-PnPTermGroup", + "CommandName": "Get-PnPTermGroup" }, { + "Rank": 2, "Id": 829, - "CommandName": "Get-PnPUPABulkImportStatus", - "Rank": 4, - "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails" + "Command": "Get-PnPTermGroup -Identity \"Departments\"", + "CommandName": "Get-PnPTermGroup" }, { + "Rank": 3, "Id": 830, - "CommandName": "Get-PnPUser", - "Rank": 1, - "Command": "Get-PnPUser" + "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d", + "CommandName": "Get-PnPTermGroup" }, { + "Rank": 1, "Id": 831, - "CommandName": "Get-PnPUser", - "Rank": 2, - "Command": "Get-PnPUser -Identity 23" + "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83", + "CommandName": "Get-PnPTermLabel" }, { + "Rank": 2, "Id": 832, - "CommandName": "Get-PnPUser", - "Rank": 3, - "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"" + "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033", + "CommandName": "Get-PnPTermLabel" }, { + "Rank": 3, "Id": 833, - "CommandName": "Get-PnPUser", - "Rank": 4, - "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"" + "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTermLabel" }, { + "Rank": 1, "Id": 834, - "CommandName": "Get-PnPUser", - "Rank": 5, - "Command": "Get-PnPUser -WithRightsAssigned" + "Command": "Get-PnPTermSet -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTermSet" }, { + "Rank": 2, "Id": 835, - "CommandName": "Get-PnPUser", - "Rank": 6, - "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1" + "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Get-PnPTermSet" }, { + "Rank": 3, "Id": 836, - "CommandName": "Get-PnPUser", - "Rank": 7, - "Command": "Get-PnPUser -WithRightsAssignedDetailed" + "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate", + "CommandName": "Get-PnPTermSet" }, { - "Id": 837, - "CommandName": "Get-PnPUserOneDriveQuota", "Rank": 1, - "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'" + "Id": 837, + "Command": "Get-PnPTheme", + "CommandName": "Get-PnPTheme" }, { + "Rank": 2, "Id": 838, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 1, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'" + "Command": "Get-PnPTheme -DetectCurrentComposedLook", + "CommandName": "Get-PnPTheme" }, { + "Rank": 1, "Id": 839, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 2, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'" + "Command": "Get-PnPTimeZoneId", + "CommandName": "Get-PnPTimeZoneId" }, { + "Rank": 2, "Id": 840, - "CommandName": "Get-PnPUserProfileProperty", - "Rank": 3, - "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'" + "Command": "Get-PnPTimeZoneId -Match Stockholm", + "CommandName": "Get-PnPTimeZoneId" }, { - "Id": 841, - "CommandName": "Get-PnPView", "Rank": 1, - "Command": "Get-PnPView -List \"Demo List\"" + "Id": 841, + "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"", + "CommandName": "Get-PnPUnfurlLink" }, { + "Rank": 1, "Id": 842, - "CommandName": "Get-PnPView", - "Rank": 2, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"" + "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date -asUtc).AddDays(-2) -EndTime (Get-Date -asUtc).AddDays(-1)", + "CommandName": "Get-PnPUnifiedAuditLog" }, { + "Rank": 1, "Id": 843, - "CommandName": "Get-PnPView", - "Rank": 3, - "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"" + "Command": "Get-PnPUPABulkImportStatus", + "CommandName": "Get-PnPUPABulkImportStatus" }, { + "Rank": 2, "Id": 844, - "CommandName": "Get-PnPVivaConnectionsDashboardACE", - "Rank": 1, - "Command": "Get-PnPVivaConnectionsDashboardACE" + "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails", + "CommandName": "Get-PnPUPABulkImportStatus" }, { + "Rank": 3, "Id": 845, - "CommandName": "Get-PnPVivaConnectionsDashboardACE", - "Rank": 2, - "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" + "Command": "Get-PnPUPABulkImportStatus -JobId ", + "CommandName": "Get-PnPUPABulkImportStatus" }, { + "Rank": 4, "Id": 846, - "CommandName": "Get-PnPWeb", - "Rank": 1, - "Command": "Get-PnPWeb" + "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails", + "CommandName": "Get-PnPUPABulkImportStatus" }, { - "Id": 847, - "CommandName": "Get-PnPWebHeader", "Rank": 1, - "Command": "Get-PnPWebHeader" + "Id": 847, + "Command": "Get-PnPUser", + "CommandName": "Get-PnPUser" }, { + "Rank": 2, "Id": 848, - "CommandName": "Get-PnPWebhookSubscription", - "Rank": 1, - "Command": "Get-PnPWebhookSubscription -List MyList" + "Command": "Get-PnPUser -Identity 23", + "CommandName": "Get-PnPUser" }, { + "Rank": 3, "Id": 849, - "CommandName": "Get-PnPWebPart", - "Rank": 1, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"" + "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"", + "CommandName": "Get-PnPUser" }, { + "Rank": 4, "Id": 850, - "CommandName": "Get-PnPWebPart", - "Rank": 2, - "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" + "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"", + "CommandName": "Get-PnPUser" }, { + "Rank": 5, "Id": 851, - "CommandName": "Get-PnPWebPartProperty", - "Rank": 1, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914" + "Command": "Get-PnPUser -WithRightsAssigned", + "CommandName": "Get-PnPUser" }, { + "Rank": 6, "Id": 852, - "CommandName": "Get-PnPWebPartProperty", - "Rank": 2, - "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"" + "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1", + "CommandName": "Get-PnPUser" }, { + "Rank": 7, "Id": 853, - "CommandName": "Get-PnPWebPartXml", - "Rank": 1, - "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" + "Command": "Get-PnPUser -WithRightsAssignedDetailed", + "CommandName": "Get-PnPUser" }, { - "Id": 854, - "CommandName": "Get-PnPWebTemplates", "Rank": 1, - "Command": "Get-PnPWebTemplates" + "Id": 854, + "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'", + "CommandName": "Get-PnPUserOneDriveQuota" }, { + "Rank": 1, "Id": 855, - "CommandName": "Get-PnPWebTemplates", - "Rank": 2, - "Command": "Get-PnPWebTemplates -LCID 1033" + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'", + "CommandName": "Get-PnPUserProfileProperty" }, { + "Rank": 2, "Id": 856, - "CommandName": "Get-PnPWebTemplates", - "Rank": 3, - "Command": "Get-PnPWebTemplates -CompatibilityLevel 15" + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'", + "CommandName": "Get-PnPUserProfileProperty" }, { + "Rank": 3, "Id": 857, - "CommandName": "Get-PnPWikiPageContent", - "Rank": 1, - "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'" + "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'", + "CommandName": "Get-PnPUserProfileProperty" }, { - "Id": 858, - "CommandName": "Grant-PnPAzureADAppSitePermission", "Rank": 1, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read" + "Id": 858, + "Command": "Get-PnPView -List \"Demo List\"", + "CommandName": "Get-PnPView" }, { - "Id": 859, - "CommandName": "Grant-PnPAzureADAppSitePermission", "Rank": 2, - "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects" + "Id": 859, + "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"", + "CommandName": "Get-PnPView" }, { + "Rank": 3, "Id": 860, - "CommandName": "Grant-PnPHubSiteRights", - "Rank": 1, - "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" + "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"", + "CommandName": "Get-PnPView" }, { - "Id": 861, - "CommandName": "Grant-PnPSiteDesignRights", "Rank": 1, - "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" + "Id": 861, + "Command": "Get-PnPVivaConnectionsDashboardACE", + "CommandName": "Get-PnPVivaConnectionsDashboardACE" }, { + "Rank": 2, "Id": 862, - "CommandName": "Grant-PnPTenantServicePrincipalPermission", - "Rank": 1, - "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" + "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"", + "CommandName": "Get-PnPVivaConnectionsDashboardACE" }, { - "Id": 863, - "CommandName": "Import-PnPTaxonomy", "Rank": 1, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'" + "Id": 863, + "Command": "Get-PnPWeb", + "CommandName": "Get-PnPWeb" }, { + "Rank": 1, "Id": 864, - "CommandName": "Import-PnPTaxonomy", - "Rank": 2, - "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'" + "Command": "Get-PnPWebHeader", + "CommandName": "Get-PnPWebHeader" }, { + "Rank": 1, "Id": 865, - "CommandName": "Import-PnPTaxonomy", - "Rank": 3, - "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt" + "Command": "Get-PnPWebhookSubscription -List MyList", + "CommandName": "Get-PnPWebhookSubscription" }, { - "Id": 866, - "CommandName": "Import-PnPTermGroupFromXml", "Rank": 1, - "Command": "Import-PnPTermGroupFromXml -Xml $xml" + "Id": 866, + "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"", + "CommandName": "Get-PnPWebPart" }, { - "Id": 867, - "CommandName": "Import-PnPTermGroupFromXml", "Rank": 2, - "Command": "Import-PnPTermGroupFromXml -Path input.xml" + "Id": 867, + "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", + "CommandName": "Get-PnPWebPart" }, { - "Id": 868, - "CommandName": "Import-PnPTermSet", "Rank": 1, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions" + "Id": 868, + "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914", + "CommandName": "Get-PnPWebPartProperty" }, { - "Id": 869, - "CommandName": "Import-PnPTermSet", "Rank": 2, - "Command": "Import-PnPTermSet -TermStoreName 'My Term Store' -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -TermSetId '{15A98DB6-D8E2-43E6-8771-066C1EC2B8D8}'" + "Id": 869, + "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"", + "CommandName": "Get-PnPWebPartProperty" }, { + "Rank": 1, "Id": 870, - "CommandName": "Import-PnPTermSet", - "Rank": 3, - "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -IsOpen $true -Contact 'user@example.org' -Owner 'user@example.org'" + "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", + "CommandName": "Get-PnPWebPartXml" }, { - "Id": 871, - "CommandName": "Install-PnPApp", "Rank": 1, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 871, + "Command": "Get-PnPWebPermission -Identity (Get-PnPWeb) -PrincipalId 60", + "CommandName": "Get-PnPWebPermission" }, { - "Id": 872, - "CommandName": "Install-PnPApp", "Rank": 2, - "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" + "Id": 872, + "Command": "Get-PnPWebPermission -Identity \"subsite\" -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id", + "CommandName": "Get-PnPWebPermission" }, { - "Id": 873, - "CommandName": "Invoke-PnPGraphMethod", "Rank": 1, - "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'" + "Id": 873, + "Command": "Get-PnPWebTemplates", + "CommandName": "Get-PnPWebTemplates" }, { - "Id": 874, - "CommandName": "Invoke-PnPGraphMethod", "Rank": 2, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete" + "Id": 874, + "Command": "Get-PnPWebTemplates -LCID 1033", + "CommandName": "Get-PnPWebTemplates" }, { - "Id": 875, - "CommandName": "Invoke-PnPGraphMethod", "Rank": 3, - "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }" + "Id": 875, + "Command": "Get-PnPWebTemplates -CompatibilityLevel 15", + "CommandName": "Get-PnPWebTemplates" }, { + "Rank": 1, "Id": 876, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 4, - "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual" + "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'", + "CommandName": "Get-PnPWikiPageContent" }, { + "Rank": 1, "Id": 877, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 5, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"" + "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read", + "CommandName": "Grant-PnPAzureADAppSitePermission" }, { + "Rank": 2, "Id": 878, - "CommandName": "Invoke-PnPGraphMethod", - "Rank": 6, - "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg" + "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects", + "CommandName": "Grant-PnPAzureADAppSitePermission" }, { + "Rank": 1, "Id": 879, - "CommandName": "Invoke-PnPGraphMethod", - "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\"" + "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", + "CommandName": "Grant-PnPHubSiteRights" }, { - "Id": 880, - "CommandName": "Invoke-PnPListDesign", "Rank": 1, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Id": 880, + "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", + "CommandName": "Grant-PnPSiteDesignRights" }, { + "Rank": 1, "Id": 881, - "CommandName": "Invoke-PnPListDesign", - "Rank": 2, - "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" + "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"", + "CommandName": "Grant-PnPTenantServicePrincipalPermission" }, { - "Id": 882, - "CommandName": "Invoke-PnPQuery", "Rank": 1, - "Command": "Invoke-PnPQuery -RetryCount 5" + "Id": 882, + "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'", + "CommandName": "Import-PnPTaxonomy" }, { + "Rank": 2, "Id": 883, - "CommandName": "Invoke-PnPSiteDesign", - "Rank": 1, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'", + "CommandName": "Import-PnPTaxonomy" }, { + "Rank": 3, "Id": 884, - "CommandName": "Invoke-PnPSiteDesign", - "Rank": 2, - "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" + "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt", + "CommandName": "Import-PnPTaxonomy" }, { - "Id": 885, - "CommandName": "Invoke-PnPSiteScript", "Rank": 1, - "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite" + "Id": 885, + "Command": "Import-PnPTermGroupFromXml -Xml $xml", + "CommandName": "Import-PnPTermGroupFromXml" }, { + "Rank": 2, "Id": 886, - "CommandName": "Invoke-PnPSiteSwap", - "Rank": 1, - "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive" + "Command": "Import-PnPTermGroupFromXml -Path input.xml", + "CommandName": "Import-PnPTermGroupFromXml" }, { + "Rank": 1, "Id": 887, - "CommandName": "Invoke-PnPSiteSwap", - "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" + "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions", + "CommandName": "Import-PnPTermSet" }, { + "Rank": 2, "Id": 888, - "CommandName": "Invoke-PnPSiteSwap", - "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" + "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": 3, "Id": 889, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 1, - "Command": "Invoke-PnPSiteTemplate -Path template.xml" + "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, "Id": 890, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 2, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources" + "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Install-PnPApp" }, { + "Rank": 2, "Id": 891, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 3, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" + "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", + "CommandName": "Install-PnPApp" }, { + "Rank": 1, "Id": 892, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 4, - "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity" + "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 2, "Id": 893, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 5, - "Command": "Invoke-PnPSiteTemplate -Path template.pnp" + "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 3, "Id": 894, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 6, - "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"" + "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 4, "Id": 895, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 7, - "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template" + "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 5, "Id": 896, - "CommandName": "Invoke-PnPSiteTemplate", - "Rank": 8, - "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"" + "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 6, "Id": 897, - "CommandName": "Invoke-PnPSPRestMethod", - "Rank": 1, - "Command": "Invoke-PnPSPRestMethod -Url /_api/web" + "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg", + "CommandName": "Invoke-PnPGraphMethod" }, { + "Rank": 7, "Id": 898, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 1, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp" + "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, "Id": 899, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 2, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"" + "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Invoke-PnPListDesign" }, { + "Rank": 2, "Id": 900, - "CommandName": "Invoke-PnPTenantTemplate", - "Rank": 3, - "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" + "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"", + "CommandName": "Invoke-PnPListDesign" }, { - "Id": 901, - "CommandName": "Invoke-PnPWebAction", "Rank": 1, - "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}" + "Id": 901, + "Command": "Invoke-PnPQuery -RetryCount 5", + "CommandName": "Invoke-PnPQuery" }, { + "Rank": 1, "Id": 902, - "CommandName": "Invoke-PnPWebAction", - "Rank": 2, - "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}" + "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Invoke-PnPSiteDesign" }, { + "Rank": 2, "Id": 903, - "CommandName": "Measure-PnPList", - "Rank": 1, - "Command": "Measure-PnPList \"Documents\"" + "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"", + "CommandName": "Invoke-PnPSiteDesign" }, { + "Rank": 1, "Id": 904, - "CommandName": "Measure-PnPList", - "Rank": 2, - "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel" + "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite", + "CommandName": "Invoke-PnPSiteScript" }, { - "Id": 905, - "CommandName": "Measure-PnPWeb", "Rank": 1, - "Command": "Measure-PnPWeb" + "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" }, { - "Id": 906, - "CommandName": "Measure-PnPWeb", "Rank": 2, - "Command": "Measure-PnPWeb $web -Recursive" + "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, "Id": 907, - "CommandName": "Move-PnPFile", - "Rank": 1, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"" + "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, "Id": 908, - "CommandName": "Move-PnPFile", - "Rank": 2, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite" + "Command": "Invoke-PnPSiteTemplate -Path template.xml", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 2, "Id": 909, - "CommandName": "Move-PnPFile", - "Rank": 3, - "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" + "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 3, "Id": 910, - "CommandName": "Move-PnPFile", - "Rank": 4, - "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" + "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 4, "Id": 911, - "CommandName": "Move-PnPFolder", - "Rank": 1, - "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'" + "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 5, "Id": 912, - "CommandName": "Move-PnPFolder", - "Rank": 2, - "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'" + "Command": "Invoke-PnPSiteTemplate -Path template.pnp", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 6, "Id": 913, - "CommandName": "Move-PnPListItemToRecycleBin", - "Rank": 1, - "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force" + "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 7, "Id": 914, - "CommandName": "Move-PnPPageComponent", - "Rank": 1, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1" + "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 8, "Id": 915, - "CommandName": "Move-PnPPageComponent", - "Rank": 2, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2" + "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"", + "CommandName": "Invoke-PnPSiteTemplate" }, { + "Rank": 1, "Id": 916, - "CommandName": "Move-PnPPageComponent", - "Rank": 3, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2" + "Command": "Invoke-PnPSPRestMethod -Url /_api/web", + "CommandName": "Invoke-PnPSPRestMethod" }, { + "Rank": 1, "Id": 917, - "CommandName": "Move-PnPPageComponent", - "Rank": 4, - "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2" + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp", + "CommandName": "Invoke-PnPTenantTemplate" }, { + "Rank": 2, "Id": 918, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 1, - "Command": "Move-PnPRecycleBinItem" + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"", + "CommandName": "Invoke-PnPTenantTemplate" }, { + "Rank": 3, "Id": 919, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 2, - "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125" + "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}", + "CommandName": "Invoke-PnPTenantTemplate" }, { + "Rank": 1, "Id": 920, - "CommandName": "Move-PnpRecycleBinItem", - "Rank": 3, - "Command": "Move-PnPRecycleBinItem -Force" + "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}", + "CommandName": "Invoke-PnPWebAction" }, { + "Rank": 2, "Id": 921, - "CommandName": "Move-PnPTerm", - "Rank": 1, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTermSet 95e13729-3ccf-4ec8-998c-78e9ef1daa0b -TargetTermGroup b2645144-5757-4cd7-b7f9-e5d24757addf" + "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}", + "CommandName": "Invoke-PnPWebAction" }, { + "Rank": 1, "Id": 922, - "CommandName": "Move-PnPTerm", - "Rank": 2, - "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"" + "Command": "Measure-PnPList \"Documents\"", + "CommandName": "Measure-PnPList" }, { + "Rank": 2, "Id": 923, - "CommandName": "Move-PnPTerm", - "Rank": 3, - "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm" + "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel", + "CommandName": "Measure-PnPList" }, { - "Id": 924, - "CommandName": "Move-PnPTermSet", "Rank": 1, - "Command": "Move-PnPTermSet -Identity 81e0a4b8-701d-459c-ad61-a1c7a81810ff -TermGroup 17e16b98-a8c2-4db6-a860-5c42dbc818f4 -TargetTermGroup cf33d1cd-42d8-431c-9e43-3d8dab9ea8fd" + "Id": 924, + "Command": "Measure-PnPWeb", + "CommandName": "Measure-PnPWeb" }, { - "Id": 925, - "CommandName": "Move-PnPTermSet", "Rank": 2, - "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"" + "Id": 925, + "Command": "Measure-PnPWeb $web -Recursive", + "CommandName": "Measure-PnPWeb" }, { - "Id": 926, - "CommandName": "New-PnPAzureADGroup", "Rank": 1, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname" + "Id": 926, + "Command": "Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b", + "CommandName": "Merge-PnPTerm" }, { + "Rank": 1, "Id": 927, - "CommandName": "New-PnPAzureADGroup", - "Rank": 2, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers" + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"", + "CommandName": "Move-PnPFile" }, { + "Rank": 2, "Id": 928, - "CommandName": "New-PnPAzureADGroup", - "Rank": 3, - "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled" + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite", + "CommandName": "Move-PnPFile" }, { + "Rank": 3, "Id": 929, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 1, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com" + "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination", + "CommandName": "Move-PnPFile" }, { + "Rank": 4, "Id": 930, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 2, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true" + "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination", + "CommandName": "Move-PnPFile" }, { + "Rank": 1, "Id": 931, - "CommandName": "New-PnPAzureADUserTemporaryAccessPass", - "Rank": 3, - "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true" + "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'", + "CommandName": "Move-PnPFolder" }, { + "Rank": 2, "Id": 932, - "CommandName": "New-PnPAzureCertificate", - "Rank": 1, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer" + "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'", + "CommandName": "Move-PnPFolder" }, { + "Rank": 1, "Id": 933, - "CommandName": "New-PnPAzureCertificate", - "Rank": 2, - "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30" + "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force", + "CommandName": "Move-PnPListItemToRecycleBin" }, { + "Rank": 1, "Id": 934, - "CommandName": "New-PnPAzureCertificate", - "Rank": 3, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)" + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1", + "CommandName": "Move-PnPPageComponent" }, { + "Rank": 2, "Id": 935, - "CommandName": "New-PnPAzureCertificate", - "Rank": 4, - "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null" + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2", + "CommandName": "Move-PnPPageComponent" }, { + "Rank": 3, "Id": 936, - "CommandName": "New-PnPGraphSubscription", - "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()" + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2", + "CommandName": "Move-PnPPageComponent" }, { + "Rank": 4, "Id": 937, - "CommandName": "New-PnPGraphSubscription", - "Rank": 2, - "Command": "New-PnPGraphSubscription -ChangeType Updates -NotificationUrl https://mywebapiservice/notifications -Resource \"Users\" -ExpirationDateTime (Get-Date).AddHours(1) -ClientState [Guid]::NewGuid().ToString()" + "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2", + "CommandName": "Move-PnPPageComponent" }, { - "Id": 938, - "CommandName": "New-PnPGroup", "Rank": 1, - "Command": "New-PnPGroup -Title \"My Site Users\"" + "Id": 938, + "Command": "Move-PnPRecycleBinItem", + "CommandName": "Move-PnpRecycleBinItem" }, { + "Rank": 2, "Id": 939, - "CommandName": "New-PnPList", - "Rank": 1, - "Command": "New-PnPList -Title Announcements -Template Announcements" + "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125", + "CommandName": "Move-PnpRecycleBinItem" }, { + "Rank": 3, "Id": 940, - "CommandName": "New-PnPList", - "Rank": 2, - "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements" + "Command": "Move-PnPRecycleBinItem -Force", + "CommandName": "Move-PnpRecycleBinItem" }, { + "Rank": 1, "Id": 941, - "CommandName": "New-PnPList", - "Rank": 3, - "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden" + "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": 2, "Id": 942, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 1, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname" + "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"", + "CommandName": "Move-PnPTerm" }, { + "Rank": 3, "Id": 943, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 2, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"" + "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm", + "CommandName": "Move-PnPTerm" }, { + "Rank": 1, "Id": 944, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 3, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate" + "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": 2, "Id": 945, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 4, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate" + "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"", + "CommandName": "Move-PnPTermSet" }, { + "Rank": 1, "Id": 946, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 5, - "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname", + "CommandName": "New-PnPAzureADGroup" }, { + "Rank": 2, "Id": 947, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 6, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers", + "CommandName": "New-PnPAzureADGroup" }, { + "Rank": 3, "Id": 948, - "CommandName": "New-PnPMicrosoft365Group", - "Rank": 7, - "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"" + "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled", + "CommandName": "New-PnPAzureADGroup" }, { - "Id": 949, - "CommandName": "New-PnPMicrosoft365GroupSettings", "Rank": 1, - "Command": "New-PnPMicrosoft365GroupSettings -DisplayName \"Group.Unified\" -TemplateId \"62375ab9-6b52-47ed-826b-58e47e0e304b\" -Values @{\"GuestUsageGuidelinesUrl\"=\"https://privacy.contoso.com/privacystatement\";\"EnableMSStandardBlockedWords\"=\"true\"}" + "Id": 949, + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com", + "CommandName": "New-PnPAzureADUserTemporaryAccessPass" }, { - "Id": 950, - "CommandName": "New-PnPMicrosoft365GroupSettings", "Rank": 2, - "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}" + "Id": 950, + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true", + "CommandName": "New-PnPAzureADUserTemporaryAccessPass" }, { + "Rank": 3, "Id": 951, - "CommandName": "New-PnPPersonalSite", - "Rank": 1, - "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')" + "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true", + "CommandName": "New-PnPAzureADUserTemporaryAccessPass" }, { - "Id": 952, - "CommandName": "New-PnPPlannerPlan", "Rank": 1, - "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"" + "Id": 952, + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer", + "CommandName": "New-PnPAzureCertificate" }, { + "Rank": 2, "Id": 953, - "CommandName": "New-PnPSdnProvider", - "Rank": 1, - "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"" + "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30", + "CommandName": "New-PnPAzureCertificate" }, { + "Rank": 3, "Id": 954, - "CommandName": "New-PnPSite", - "Rank": 1, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)", + "CommandName": "New-PnPAzureCertificate" }, { + "Rank": 4, "Id": 955, - "CommandName": "New-PnPSite", - "Rank": 2, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase" + "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null", + "CommandName": "New-PnPAzureCertificate" }, { + "Rank": 1, "Id": 956, - "CommandName": "New-PnPSite", - "Rank": 3, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" + "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": 1, "Id": 957, - "CommandName": "New-PnPSite", - "Rank": 4, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" + "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": 2, "Id": 958, - "CommandName": "New-PnPSite", - "Rank": 5, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" + "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, "Id": 959, - "CommandName": "New-PnPSite", - "Rank": 6, - "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" + "Command": "New-PnPGroup -Title \"My Site Users\"", + "CommandName": "New-PnPGroup" }, { + "Rank": 1, "Id": 960, - "CommandName": "New-PnPSite", - "Rank": 7, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso" + "Command": "New-PnPList -Title Announcements -Template Announcements", + "CommandName": "New-PnPList" }, { + "Rank": 2, "Id": 961, - "CommandName": "New-PnPSite", - "Rank": 8, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic" + "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements", + "CommandName": "New-PnPList" }, { + "Rank": 3, "Id": 962, - "CommandName": "New-PnPSite", - "Rank": 9, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040" + "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden", + "CommandName": "New-PnPList" }, { + "Rank": 1, "Id": 963, - "CommandName": "New-PnPSite", - "Rank": 10, - "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 2, "Id": 964, - "CommandName": "New-PnPSite", - "Rank": 11, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 3, "Id": 965, - "CommandName": "New-PnPSite", - "Rank": 12, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 4, "Id": 966, - "CommandName": "New-PnPSite", - "Rank": 13, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 5, "Id": 967, - "CommandName": "New-PnPSite", - "Rank": 14, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" + "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 6, "Id": 968, - "CommandName": "New-PnPSite", - "Rank": 15, - "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"", + "CommandName": "New-PnPMicrosoft365Group" }, { + "Rank": 7, "Id": 969, - "CommandName": "New-PnPSite", - "Rank": 16, - "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"" + "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"", + "CommandName": "New-PnPMicrosoft365Group" }, { - "Id": 970, - "CommandName": "New-PnPSiteCollectionTermStore", "Rank": 1, - "Command": "New-PnPSiteCollectionTermStore" + "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, "Id": 971, - "CommandName": "New-PnPSiteGroup", - "Rank": 1, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"" + "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}", + "CommandName": "New-PnPMicrosoft365GroupSettings" }, { + "Rank": 1, "Id": 972, - "CommandName": "New-PnPSiteGroup", - "Rank": 2, - "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"" + "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')", + "CommandName": "New-PnPPersonalSite" }, { - "Id": 973, - "CommandName": "New-PnPSiteTemplateFromFolder", "Rank": 1, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml" + "Id": 973, + "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"", + "CommandName": "New-PnPPlannerPlan" }, { + "Rank": 1, "Id": 974, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 2, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp" + "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"", + "CommandName": "New-PnPSdnProvider" }, { + "Rank": 1, "Id": 975, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 3, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso", + "CommandName": "New-PnPSite" }, { + "Rank": 2, "Id": 976, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 4, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase", + "CommandName": "New-PnPSite" }, { + "Rank": 3, "Id": 977, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 5, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac", + "CommandName": "New-PnPSite" }, { + "Rank": 4, "Id": 978, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 6, - "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -Properties @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"", + "CommandName": "New-PnPSite" }, { + "Rank": 5, "Id": 979, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 7, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled", + "CommandName": "New-PnPSite" }, { + "Rank": 6, "Id": 980, - "CommandName": "New-PnPSiteTemplateFromFolder", - "Rank": 8, - "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp" + "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040", + "CommandName": "New-PnPSite" }, { + "Rank": 7, "Id": 981, - "CommandName": "New-PnPTeamsApp", - "Rank": 1, - "Command": "New-PnPTeamsApp -Path c:\\myapp.zip" + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso", + "CommandName": "New-PnPSite" }, { + "Rank": 8, "Id": 982, - "CommandName": "New-PnPTeamsTeam", - "Rank": 1, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false" + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic", + "CommandName": "New-PnPSite" }, { + "Rank": 9, "Id": 983, - "CommandName": "New-PnPTeamsTeam", - "Rank": 2, - "Command": "New-PnPTeamsTeam -GroupId $groupId" + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040", + "CommandName": "New-PnPSite" }, { + "Rank": 10, "Id": 984, - "CommandName": "New-PnPTeamsTeam", - "Rank": 3, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled" + "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site", + "CommandName": "New-PnPSite" }, { + "Rank": 11, "Id": 985, - "CommandName": "New-PnPTeamsTeam", - "Rank": 4, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso", + "CommandName": "New-PnPSite" }, { + "Rank": 12, "Id": 986, - "CommandName": "New-PnPTeamsTeam", - "Rank": 5, - "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\"" + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac", + "CommandName": "New-PnPSite" }, { + "Rank": 13, "Id": 987, - "CommandName": "New-PnPTeamsTeam", - "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\"" + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"", + "CommandName": "New-PnPSite" }, { + "Rank": 14, "Id": 988, - "CommandName": "New-PnPTenantSite", - "Rank": 1, - "Command": "New-PnPTenantSite -Title Contoso -Url \"https://tenant.sharepoint.com/sites/contoso\" -Owner user@example.org -TimeZone 4 -Template STS#0" + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled", + "CommandName": "New-PnPSite" }, { + "Rank": 15, "Id": 989, - "CommandName": "New-PnPTenantSite", - "Rank": 2, - "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0" + "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040", + "CommandName": "New-PnPSite" }, { + "Rank": 16, "Id": 990, - "CommandName": "New-PnPTerm", - "Rank": 1, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"" + "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"", + "CommandName": "New-PnPSite" }, { + "Rank": 1, "Id": 991, - "CommandName": "New-PnPTerm", - "Rank": 2, - "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" + "Command": "New-PnPSiteCollectionTermStore", + "CommandName": "New-PnPSiteCollectionTermStore" }, { - "Id": 992, - "CommandName": "New-PnPTermGroup", "Rank": 1, - "Command": "New-PnPTermGroup -GroupName \"Countries\"" + "Id": 992, + "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"", + "CommandName": "New-PnPSiteGroup" }, { + "Rank": 2, "Id": 993, - "CommandName": "New-PnPTermLabel", - "Rank": 1, - "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")" + "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"", + "CommandName": "New-PnPSiteGroup" }, { - "Id": 994, - "CommandName": "New-PnPTermSet", "Rank": 1, - "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"" + "Id": 994, + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 2, "Id": 995, - "CommandName": "New-PnPUPABulkImportJob", - "Rank": 1, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}" + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 3, "Id": 996, - "CommandName": "New-PnPUPABulkImportJob", - "Rank": 2, - "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/sites/userprofilesync/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"} -Wait -Verbose" + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 4, "Id": 997, - "CommandName": "New-PnPUser", - "Rank": 1, - "Command": "New-PnPUser -LoginName user@company.com" + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 5, "Id": 998, - "CommandName": "New-PnPWeb", - "Rank": 1, - "Command": "New-PnPWeb -Title \"Project A Web\" -Url projectA -Description \"Information about Project A\" -Locale 1033 -Template \"STS#0\"" + "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 6, "Id": 999, - "CommandName": "Publish-PnPApp", - "Rank": 1, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" + "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": 7, "Id": 1000, - "CommandName": "Publish-PnPApp", - "Rank": 2, - "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site" + "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { + "Rank": 8, "Id": 1001, - "CommandName": "Publish-PnPCompanyApp", - "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" + "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp", + "CommandName": "New-PnPSiteTemplateFromFolder" }, { - "Id": 1002, - "CommandName": "Publish-PnPContentType", "Rank": 1, - "Command": "Publish-PnPContentType -ContentType 0x0101" + "Id": 1002, + "Command": "New-PnPTeamsApp -Path c:\\myapp.zip", + "CommandName": "New-PnPTeamsApp" }, { - "Id": 1003, - "CommandName": "Publish-PnPSyntexModel", "Rank": 1, - "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" + "Id": 1003, + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false", + "CommandName": "New-PnPTeamsTeam" }, { - "Id": 1004, - "CommandName": "Publish-PnPSyntexModel", "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" + "Id": 1004, + "Command": "New-PnPTeamsTeam -GroupId $groupId", + "CommandName": "New-PnPTeamsTeam" }, { + "Rank": 3, "Id": 1005, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 1, - "Command": "Read-PnPSiteTemplate -Path template.pnp" + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled", + "CommandName": "New-PnPTeamsTeam" }, { + "Rank": 4, "Id": 1006, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 2, - "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions" + "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook", + "CommandName": "New-PnPTeamsTeam" }, { + "Rank": 5, "Id": 1007, - "CommandName": "Read-PnPSiteTemplate", - "Rank": 3, - "Command": "Read-PnPSiteTemplate -Xml $xml" + "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": 6, "Id": 1008, - "CommandName": "Read-PnPTenantTemplate", - "Rank": 1, - "Command": "Read-PnPTenantTemplate -Path template.pnp" + "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" }, { - "Id": 1009, - "CommandName": "Register-PnPAppCatalogSite", "Rank": 1, - "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4" + "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": 2, "Id": 1010, - "CommandName": "Register-PnPAzureADApp", - "Rank": 1, - "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" + "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0", + "CommandName": "New-PnPTenantSite" }, { + "Rank": 1, "Id": 1011, - "CommandName": "Register-PnPAzureADApp", - "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\")" + "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"", + "CommandName": "New-PnPTerm" }, { + "Rank": 2, "Id": 1012, - "CommandName": "Register-PnPAzureADApp", - "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\")" + "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}", + "CommandName": "New-PnPTerm" }, { + "Rank": 1, "Id": 1013, - "CommandName": "Register-PnPAzureADApp", - "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\")" + "Command": "New-PnPTermGroup -GroupName \"Countries\"", + "CommandName": "New-PnPTermGroup" }, { + "Rank": 1, "Id": 1014, - "CommandName": "Register-PnPAzureADApp", - "Rank": 5, - "Command": "Register-PnPAzureADApp -DeviceLogin -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" + "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")", + "CommandName": "New-PnPTermLabel" }, { + "Rank": 1, "Id": 1015, - "CommandName": "Register-PnPAzureADApp", - "Rank": 6, - "Command": "Register-PnPAzureADApp -Interactive -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" + "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"", + "CommandName": "New-PnPTermSet" }, { + "Rank": 1, "Id": 1016, - "CommandName": "Register-PnPAzureADApp", - "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" + "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}", + "CommandName": "New-PnPUPABulkImportJob" }, { + "Rank": 2, "Id": 1017, - "CommandName": "Register-PnPHubSite", - "Rank": 1, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" + "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": 1, "Id": 1018, - "CommandName": "Register-PnPHubSite", - "Rank": 2, - "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"" + "Command": "New-PnPUser -LoginName user@company.com", + "CommandName": "New-PnPUser" }, { - "Id": 1019, - "CommandName": "Register-PnPManagementShellAccess", "Rank": 1, - "Command": "Register-PnPManagementShellAccess" + "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, "Id": 1020, - "CommandName": "Register-PnPManagementShellAccess", - "Rank": 2, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl" + "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f", + "CommandName": "Publish-PnPApp" }, { + "Rank": 2, "Id": 1021, - "CommandName": "Register-PnPManagementShellAccess", - "Rank": 3, - "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com" + "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site", + "CommandName": "Publish-PnPApp" }, { - "Id": 1022, - "CommandName": "Remove-PnPAdaptiveScopeProperty", "Rank": 1, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey" + "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": 1, "Id": 1023, - "CommandName": "Remove-PnPAdaptiveScopeProperty", - "Rank": 2, - "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force" + "Command": "Publish-PnPContentType -ContentType 0x0101", + "CommandName": "Publish-PnPContentType" }, { - "Id": 1024, - "CommandName": "Remove-PnPAlert", "Rank": 1, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7" + "Id": 1024, + "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"", + "CommandName": "Publish-PnPSyntexModel" }, { - "Id": 1025, - "CommandName": "Remove-PnPAlert", "Rank": 2, - "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" + "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" }, { - "Id": 1026, - "CommandName": "Remove-PnPApp", "Rank": 1, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 1026, + "Command": "Read-PnPSiteTemplate -Path template.pnp", + "CommandName": "Read-PnPSiteTemplate" }, { - "Id": 1027, - "CommandName": "Remove-PnPApp", "Rank": 2, - "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" + "Id": 1027, + "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions", + "CommandName": "Read-PnPSiteTemplate" }, { + "Rank": 3, "Id": 1028, - "CommandName": "Remove-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" + "Command": "Read-PnPSiteTemplate -Xml $xml", + "CommandName": "Read-PnPSiteTemplate" }, { + "Rank": 1, "Id": 1029, - "CommandName": "Remove-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" + "Command": "Read-PnPTenantTemplate -Path template.pnp", + "CommandName": "Read-PnPTenantTemplate" }, { - "Id": 1030, - "CommandName": "Remove-PnPAvailableSiteClassification", "Rank": 1, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"" + "Id": 1030, + "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4", + "CommandName": "Register-PnPAppCatalogSite" }, { + "Rank": 1, "Id": 1031, - "CommandName": "Remove-PnPAvailableSiteClassification", - "Rank": 2, - "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" + "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, "Id": 1032, - "CommandName": "Remove-PnPAzureADApp", - "Rank": 1, - "Command": "Remove-PnPAzureADApp -Identity MyApp" + "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, "Id": 1033, - "CommandName": "Remove-PnPAzureADApp", - "Rank": 2, - "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" + "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, "Id": 1034, - "CommandName": "Remove-PnPAzureADGroup", - "Rank": 1, - "Command": "Remove-PnPAzureADGroup -Identity $groupId" + "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, "Id": 1035, - "CommandName": "Remove-PnPAzureADGroup", - "Rank": 2, - "Command": "Remove-PnPAzureADGroup -Identity $group" + "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, "Id": 1036, - "CommandName": "Remove-PnPAzureADGroupMember", - "Rank": 1, - "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "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": 7, "Id": 1037, - "CommandName": "Remove-PnPAzureADGroupOwner", - "Rank": 1, - "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "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" }, { - "Id": 1038, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Rank": 1, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"" + "Id": 1038, + "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"", + "CommandName": "Register-PnPHubSite" }, { - "Id": 1039, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", "Rank": 2, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"" + "Id": 1039, + "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"", + "CommandName": "Register-PnPHubSite" }, { + "Rank": 1, "Id": 1040, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 3, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" + "Command": "Register-PnPManagementShellAccess", + "CommandName": "Register-PnPManagementShellAccess" }, { + "Rank": 2, "Id": 1041, - "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", - "Rank": 4, - "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" + "Command": "Register-PnPManagementShellAccess -ShowConsentUrl", + "CommandName": "Register-PnPManagementShellAccess" }, { + "Rank": 3, "Id": 1042, - "CommandName": "Remove-PnPContentType", - "Rank": 1, - "Command": "Remove-PnPContentType -Identity \"Project Document\"" + "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com", + "CommandName": "Register-PnPManagementShellAccess" }, { + "Rank": 1, "Id": 1043, - "CommandName": "Remove-PnPContentType", - "Rank": 2, - "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force" + "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey", + "CommandName": "Remove-PnPAdaptiveScopeProperty" }, { + "Rank": 2, "Id": 1044, - "CommandName": "Remove-PnPContentTypeFromDocumentSet", - "Rank": 1, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" + "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force", + "CommandName": "Remove-PnPAdaptiveScopeProperty" }, { + "Rank": 1, "Id": 1045, - "CommandName": "Remove-PnPContentTypeFromDocumentSet", - "Rank": 2, - "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" + "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7", + "CommandName": "Remove-PnPAlert" }, { + "Rank": 2, "Id": 1046, - "CommandName": "Remove-PnPContentTypeFromList", - "Rank": 1, - "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"" + "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPAlert" }, { - "Id": 1047, - "CommandName": "Remove-PnPCustomAction", "Rank": 1, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" + "Id": 1047, + "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Remove-PnPApp" }, { - "Id": 1048, - "CommandName": "Remove-PnPCustomAction", "Rank": 2, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" + "Id": 1048, + "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", + "CommandName": "Remove-PnPApp" }, { + "Rank": 1, "Id": 1049, - "CommandName": "Remove-PnPCustomAction", - "Rank": 3, - "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force" + "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", + "CommandName": "Remove-PnPApplicationCustomizer" }, { + "Rank": 2, "Id": 1050, - "CommandName": "Remove-PnPDeletedMicrosoft365Group", - "Rank": 1, - "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" + "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web", + "CommandName": "Remove-PnPApplicationCustomizer" }, { - "Id": 1051, - "CommandName": "Remove-PnPEventReceiver", "Rank": 1, - "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" + "Id": 1051, + "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"", + "CommandName": "Remove-PnPAvailableSiteClassification" }, { - "Id": 1052, - "CommandName": "Remove-PnPEventReceiver", "Rank": 2, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" + "Id": 1052, + "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"", + "CommandName": "Remove-PnPAvailableSiteClassification" }, { + "Rank": 1, "Id": 1053, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 3, - "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver" + "Command": "Remove-PnPAzureADApp -Identity MyApp", + "CommandName": "Remove-PnPAzureADApp" }, { + "Rank": 2, "Id": 1054, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 4, - "Command": "Remove-PnPEventReceiver -List ProjectList" + "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e", + "CommandName": "Remove-PnPAzureADApp" }, { + "Rank": 1, "Id": 1055, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 5, - "Command": "Remove-PnPEventReceiver" + "Command": "Remove-PnPAzureADGroup -Identity $groupId", + "CommandName": "Remove-PnPAzureADGroup" }, { + "Rank": 2, "Id": 1056, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 6, - "Command": "Remove-PnPEventReceiver -Scope Site" + "Command": "Remove-PnPAzureADGroup -Identity $group", + "CommandName": "Remove-PnPAzureADGroup" }, { + "Rank": 1, "Id": 1057, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 7, - "Command": "Remove-PnPEventReceiver -Scope Web" + "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPAzureADGroupMember" }, { + "Rank": 1, "Id": 1058, - "CommandName": "Remove-PnPEventReceiver", - "Rank": 8, - "Command": "Remove-PnPEventReceiver -Scope All" + "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPAzureADGroupOwner" }, { - "Id": 1059, - "CommandName": "Remove-PnPField", "Rank": 1, - "Command": "Remove-PnPField -Identity \"Speakers\"" + "Id": 1059, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"", + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" }, { - "Id": 1060, - "CommandName": "Remove-PnPField", "Rank": 2, - "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"" + "Id": 1060, + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"", + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" }, { + "Rank": 3, "Id": 1061, - "CommandName": "Remove-PnPFieldFromContentType", - "Rank": 1, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"" + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933", + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" }, { + "Rank": 4, "Id": 1062, - "CommandName": "Remove-PnPFieldFromContentType", - "Rank": 2, - "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren" + "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"", + "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole" }, { - "Id": 1063, - "CommandName": "Remove-PnPFile", "Rank": 1, - "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor" + "Id": 1063, + "Command": "Remove-PnPContainer -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", + "CommandName": "Remove-PnPContainer" }, { - "Id": 1064, - "CommandName": "Remove-PnPFile", "Rank": 2, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor" + "Id": 1064, + "Command": "Remove-PnPContainer -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"", + "CommandName": "Remove-PnPContainer" }, { + "Rank": 1, "Id": 1065, - "CommandName": "Remove-PnPFile", - "Rank": 3, - "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle" + "Command": "Remove-PnPContainerType -Identity 00be1092-0c75-028a-18db-89e57908e7d6", + "CommandName": "Remove-PnPContainerType" }, { - "Id": 1066, - "CommandName": "Remove-PnPFileFromSiteTemplate", "Rank": 1, - "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath" + "Id": 1066, + "Command": "Remove-PnPContentType -Identity \"Project Document\"", + "CommandName": "Remove-PnPContentType" }, { + "Rank": 2, "Id": 1067, - "CommandName": "Remove-PnPFileSharingLink", - "Rank": 1, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" + "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force", + "CommandName": "Remove-PnPContentType" }, { + "Rank": 1, "Id": 1068, - "CommandName": "Remove-PnPFileSharingLink", - "Rank": 2, - "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force" + "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"", + "CommandName": "Remove-PnPContentTypeFromDocumentSet" }, { + "Rank": 2, "Id": 1069, - "CommandName": "Remove-PnPFileVersion", - "Rank": 1, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" + "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B", + "CommandName": "Remove-PnPContentTypeFromDocumentSet" }, { + "Rank": 1, "Id": 1070, - "CommandName": "Remove-PnPFileVersion", - "Rank": 2, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" + "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"", + "CommandName": "Remove-PnPContentTypeFromList" }, { + "Rank": 1, "Id": 1071, - "CommandName": "Remove-PnPFileVersion", - "Rank": 3, - "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All" + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", + "CommandName": "Remove-PnPCustomAction" }, { + "Rank": 2, "Id": 1072, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 1, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com" + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web", + "CommandName": "Remove-PnPCustomAction" }, { + "Rank": 3, "Id": 1073, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 2, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04" + "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force", + "CommandName": "Remove-PnPCustomAction" }, { + "Rank": 1, "Id": 1074, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 3, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin" + "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", + "CommandName": "Remove-PnPDeletedMicrosoft365Group" }, { + "Rank": 1, "Id": 1075, - "CommandName": "Remove-PnPFlowOwner", - "Rank": 4, - "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force" + "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 2, "Id": 1076, - "CommandName": "Remove-PnPFolder", - "Rank": 1, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" + "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 3, "Id": 1077, - "CommandName": "Remove-PnPFolder", - "Rank": 2, - "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle" + "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 4, "Id": 1078, - "CommandName": "Remove-PnPFolderSharingLink", - "Rank": 1, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" + "Command": "Remove-PnPEventReceiver -List ProjectList", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 5, "Id": 1079, - "CommandName": "Remove-PnPFolderSharingLink", - "Rank": 2, - "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force" + "Command": "Remove-PnPEventReceiver", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 6, "Id": 1080, - "CommandName": "Remove-PnPGraphSubscription", - "Rank": 1, - "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da" + "Command": "Remove-PnPEventReceiver -Scope Site", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 7, "Id": 1081, - "CommandName": "Remove-PnPGroup", - "Rank": 1, - "Command": "Remove-PnPGroup -Identity \"My Users\"" + "Command": "Remove-PnPEventReceiver -Scope Web", + "CommandName": "Remove-PnPEventReceiver" }, { + "Rank": 8, "Id": 1082, - "CommandName": "Remove-PnPGroupMember", - "Rank": 1, - "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" + "Command": "Remove-PnPEventReceiver -Scope All", + "CommandName": "Remove-PnPEventReceiver" }, { - "Id": 1083, - "CommandName": "Remove-PnPHomeSite", "Rank": 1, - "Command": "Remove-PnPHomeSite" + "Id": 1083, + "Command": "Remove-PnPField -Identity \"Speakers\"", + "CommandName": "Remove-PnPField" }, { + "Rank": 2, "Id": 1084, - "CommandName": "Remove-PnPHubSiteAssociation", - "Rank": 1, - "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"" + "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"", + "CommandName": "Remove-PnPField" }, { - "Id": 1085, - "CommandName": "Remove-PnPHubToHubAssociation", "Rank": 1, - "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15" + "Id": 1085, + "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"", + "CommandName": "Remove-PnPFieldFromContentType" }, { - "Id": 1086, - "CommandName": "Remove-PnPHubToHubAssociation", "Rank": 2, - "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"" + "Id": 1086, + "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren", + "CommandName": "Remove-PnPFieldFromContentType" }, { - "Id": 1087, - "CommandName": "Remove-PnPIndexedProperty", "Rank": 1, - "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"" + "Id": 1087, + "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor", + "CommandName": "Remove-PnPFile" }, { + "Rank": 2, "Id": 1088, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 1, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery" + "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor", + "CommandName": "Remove-PnPFile" }, { + "Rank": 3, "Id": 1089, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 2, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site" + "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle", + "CommandName": "Remove-PnPFile" }, { + "Rank": 1, "Id": 1090, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 3, - "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false" + "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath", + "CommandName": "Remove-PnPFileFromSiteTemplate" }, { + "Rank": 1, "Id": 1091, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 4, - "Command": "Remove-PnPJavaScriptLink -Scope Site" + "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"", + "CommandName": "Remove-PnPFileSharingLink" }, { + "Rank": 2, "Id": 1092, - "CommandName": "Remove-PnPJavaScriptLink", - "Rank": 5, - "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All" + "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force", + "CommandName": "Remove-PnPFileSharingLink" }, { - "Id": 1093, - "CommandName": "Remove-PnPKnowledgeHubSite", "Rank": 1, - "Command": "Remove-PnPKnowledgeHubSite" + "Id": 1093, + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512", + "CommandName": "Remove-PnPFileVersion" }, { + "Rank": 2, "Id": 1094, - "CommandName": "Remove-PnPList", - "Rank": 1, - "Command": "Remove-PnPList -Identity Announcements" + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"", + "CommandName": "Remove-PnPFileVersion" }, { + "Rank": 3, "Id": 1095, - "CommandName": "Remove-PnPList", - "Rank": 2, - "Command": "Remove-PnPList -Identity Announcements -Force" + "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All", + "CommandName": "Remove-PnPFileVersion" }, { + "Rank": 1, "Id": 1096, - "CommandName": "Remove-PnPList", - "Rank": 3, - "Command": "Remove-PnPList -Identity Announcements -Recycle" + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com", + "CommandName": "Remove-PnPFlowOwner" }, { + "Rank": 2, "Id": 1097, - "CommandName": "Remove-PnPList", - "Rank": 4, - "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList" + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04", + "CommandName": "Remove-PnPFlowOwner" }, { + "Rank": 3, "Id": 1098, - "CommandName": "Remove-PnPListDesign", - "Rank": 1, - "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin", + "CommandName": "Remove-PnPFlowOwner" }, { + "Rank": 4, "Id": 1099, - "CommandName": "Remove-PnPListItem", - "Rank": 1, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force" + "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force", + "CommandName": "Remove-PnPFlowOwner" }, { + "Rank": 1, "Id": 1100, - "CommandName": "Remove-PnPListItem", - "Rank": 2, - "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle" + "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage", + "CommandName": "Remove-PnPFolder" }, { + "Rank": 2, "Id": 1101, - "CommandName": "Remove-PnPListItem", - "Rank": 3, - "Command": "Remove-PnPListItem -List \"Demo List\"" + "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle", + "CommandName": "Remove-PnPFolder" }, { - "Id": 1102, - "CommandName": "Remove-PnPListItemAttachment", "Rank": 1, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt" + "Id": 1102, + "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"", + "CommandName": "Remove-PnPFolderSharingLink" }, { - "Id": 1103, - "CommandName": "Remove-PnPListItemAttachment", "Rank": 2, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle" + "Id": 1103, + "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force", + "CommandName": "Remove-PnPFolderSharingLink" }, { + "Rank": 1, "Id": 1104, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 3, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force" + "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da", + "CommandName": "Remove-PnPGraphSubscription" }, { + "Rank": 1, "Id": 1105, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 4, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force" + "Command": "Remove-PnPGroup -Identity \"My Users\"", + "CommandName": "Remove-PnPGroup" }, { + "Rank": 1, "Id": 1106, - "CommandName": "Remove-PnPListItemAttachment", - "Rank": 5, - "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All" + "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'", + "CommandName": "Remove-PnPGroupMember" }, { - "Id": 1107, - "CommandName": "Remove-PnPListItemVersion", "Rank": 1, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" + "Id": 1107, + "Command": "Remove-PnPHomeSite", + "CommandName": "Remove-PnPHomeSite" }, { + "Rank": 1, "Id": 1108, - "CommandName": "Remove-PnPListItemVersion", - "Rank": 2, - "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" + "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"", + "CommandName": "Remove-PnPHubSiteAssociation" }, { - "Id": 1109, - "CommandName": "Remove-PnPMicrosoft365Group", "Rank": 1, - "Command": "Remove-PnPMicrosoft365Group -Identity $groupId" + "Id": 1109, + "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15", + "CommandName": "Remove-PnPHubToHubAssociation" }, { - "Id": 1110, - "CommandName": "Remove-PnPMicrosoft365Group", "Rank": 2, - "Command": "Remove-PnPMicrosoft365Group -Identity $group" + "Id": 1110, + "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"", + "CommandName": "Remove-PnPHubToHubAssociation" }, { - "Id": 1111, - "CommandName": "Remove-PnPMicrosoft365GroupMember", "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 1111, + "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"", + "CommandName": "Remove-PnPIndexedProperty" }, { - "Id": 1112, - "CommandName": "Remove-PnPMicrosoft365GroupOwner", "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" + "Id": 1112, + "Command": "Remove-PnPJavaScriptLink -Identity jQuery", + "CommandName": "Remove-PnPJavaScriptLink" }, { + "Rank": 2, "Id": 1113, - "CommandName": "Remove-PnPMicrosoft365GroupPhoto", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"" + "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site", + "CommandName": "Remove-PnPJavaScriptLink" }, { + "Rank": 3, "Id": 1114, - "CommandName": "Remove-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"" + "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false", + "CommandName": "Remove-PnPJavaScriptLink" }, { + "Rank": 4, "Id": 1115, - "CommandName": "Remove-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId" + "Command": "Remove-PnPJavaScriptLink -Scope Site", + "CommandName": "Remove-PnPJavaScriptLink" }, { + "Rank": 5, "Id": 1116, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 1, - "Command": "Remove-PnPNavigationNode -Identity 1032" + "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All", + "CommandName": "Remove-PnPJavaScriptLink" }, { + "Rank": 1, "Id": 1117, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 2, - "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch" + "Command": "Remove-PnPKnowledgeHubSite", + "CommandName": "Remove-PnPKnowledgeHubSite" }, { + "Rank": 1, "Id": 1118, - "CommandName": "Remove-PnPNavigationNode", - "Rank": 3, - "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force" + "Command": "Remove-PnPList -Identity Announcements", + "CommandName": "Remove-PnPList" }, { + "Rank": 2, "Id": 1119, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 1, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"" + "Command": "Remove-PnPList -Identity Announcements -Force", + "CommandName": "Remove-PnPList" }, { + "Rank": 3, "Id": 1120, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 2, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true" + "Command": "Remove-PnPList -Identity Announcements -Recycle", + "CommandName": "Remove-PnPList" }, { + "Rank": 4, "Id": 1121, - "CommandName": "Remove-PnPOrgAssetsLibrary", - "Rank": 3, - "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private" + "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList", + "CommandName": "Remove-PnPList" }, { - "Id": 1122, - "CommandName": "Remove-PnPOrgNewsSite", "Rank": 1, - "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"" + "Id": 1122, + "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Remove-PnPListDesign" }, { - "Id": 1123, - "CommandName": "Remove-PnPPage", "Rank": 1, - "Command": "Remove-PnPPage -Identity \"MyPage\"" + "Id": 1123, + "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force", + "CommandName": "Remove-PnPListItem" }, { - "Id": 1124, - "CommandName": "Remove-PnPPage", "Rank": 2, - "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"" + "Id": 1124, + "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle", + "CommandName": "Remove-PnPListItem" }, { - "Id": 1125, - "CommandName": "Remove-PnPPage", "Rank": 3, - "Command": "Remove-PnPPage $page" + "Id": 1125, + "Command": "Remove-PnPListItem -List \"Demo List\"", + "CommandName": "Remove-PnPListItem" }, { + "Rank": 1, "Id": 1126, - "CommandName": "Remove-PnPPage", - "Rank": 4, - "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle" + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt", + "CommandName": "Remove-PnPListItemAttachment" }, { + "Rank": 2, "Id": 1127, - "CommandName": "Remove-PnPPageComponent", - "Rank": 1, - "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle", + "CommandName": "Remove-PnPListItemAttachment" }, { + "Rank": 3, "Id": 1128, - "CommandName": "Remove-PnPPlannerBucket", - "Rank": 1, - "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"" + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force", + "CommandName": "Remove-PnPListItemAttachment" }, { + "Rank": 4, "Id": 1129, - "CommandName": "Remove-PnPPlannerPlan", - "Rank": 1, - "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"" + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force", + "CommandName": "Remove-PnPListItemAttachment" }, { + "Rank": 5, "Id": 1130, - "CommandName": "Remove-PnPPlannerRoster", - "Rank": 1, - "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"" + "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All", + "CommandName": "Remove-PnPListItemAttachment" }, { - "Id": 1131, - "CommandName": "Remove-PnPPlannerRosterMember", "Rank": 1, - "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" + "Id": 1131, + "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512", + "CommandName": "Remove-PnPListItemVersion" }, { + "Rank": 2, "Id": 1132, - "CommandName": "Remove-PnPPlannerTask", - "Rank": 1, - "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk" + "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"", + "CommandName": "Remove-PnPListItemVersion" }, { - "Id": 1133, - "CommandName": "Remove-PnPPropertyBagValue", "Rank": 1, - "Command": "Remove-PnPPropertyBagValue -Key MyKey" + "Id": 1133, + "Command": "Remove-PnPMicrosoft365Group -Identity $groupId", + "CommandName": "Remove-PnPMicrosoft365Group" }, { - "Id": 1134, - "CommandName": "Remove-PnPPropertyBagValue", "Rank": 2, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder" + "Id": 1134, + "Command": "Remove-PnPMicrosoft365Group -Identity $group", + "CommandName": "Remove-PnPMicrosoft365Group" }, { + "Rank": 1, "Id": 1135, - "CommandName": "Remove-PnPPropertyBagValue", - "Rank": 3, - "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /" + "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPMicrosoft365GroupMember" }, { - "Id": 1136, - "CommandName": "Remove-PnPPublishingImageRendition", "Rank": 1, - "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" + "Id": 1136, + "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPMicrosoft365GroupOwner" }, { - "Id": 1137, - "CommandName": "Remove-PnPRoleDefinition", "Rank": 1, - "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition" + "Id": 1137, + "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"", + "CommandName": "Remove-PnPMicrosoft365GroupPhoto" }, { - "Id": 1138, - "CommandName": "Remove-PnPSdnProvider", "Rank": 1, - "Command": "Remove-PnPSdnProvider -Confirm:false" + "Id": 1138, + "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"", + "CommandName": "Remove-PnPMicrosoft365GroupSettings" }, { + "Rank": 2, "Id": 1139, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 1, - "Command": "Remove-PnPSearchConfiguration -Configuration $config" + "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId", + "CommandName": "Remove-PnPMicrosoft365GroupSettings" }, { + "Rank": 1, "Id": 1140, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 2, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site" + "Command": "Remove-PnPNavigationNode -Identity 1032", + "CommandName": "Remove-PnPNavigationNode" }, { + "Rank": 2, "Id": 1141, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 3, - "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription" + "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch", + "CommandName": "Remove-PnPNavigationNode" }, { + "Rank": 3, "Id": 1142, - "CommandName": "Remove-PnPSearchConfiguration", - "Rank": 4, - "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" + "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force", + "CommandName": "Remove-PnPNavigationNode" }, { - "Id": 1143, - "CommandName": "Remove-PnPSiteCollectionAdmin", "Rank": 1, - "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" + "Id": 1143, + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"", + "CommandName": "Remove-PnPOrgAssetsLibrary" }, { - "Id": 1144, - "CommandName": "Remove-PnPSiteCollectionAdmin", "Rank": 2, - "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" + "Id": 1144, + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true", + "CommandName": "Remove-PnPOrgAssetsLibrary" }, { + "Rank": 3, "Id": 1145, - "CommandName": "Remove-PnPSiteCollectionAppCatalog", - "Rank": 1, - "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" + "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private", + "CommandName": "Remove-PnPOrgAssetsLibrary" }, { - "Id": 1146, - "CommandName": "Remove-PnPSiteCollectionTermStore", "Rank": 1, - "Command": "Remove-PnPSiteCollectionTermStore" + "Id": 1146, + "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"", + "CommandName": "Remove-PnPOrgNewsSite" }, { - "Id": 1147, - "CommandName": "Remove-PnPSiteDesign", "Rank": 1, - "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Id": 1147, + "Command": "Remove-PnPPage -Identity \"MyPage\"", + "CommandName": "Remove-PnPPage" }, { + "Rank": 2, "Id": 1148, - "CommandName": "Remove-PnPSiteDesignTask", - "Rank": 1, - "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"", + "CommandName": "Remove-PnPPage" }, { + "Rank": 3, "Id": 1149, - "CommandName": "Remove-PnPSiteGroup", - "Rank": 1, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"" + "Command": "Remove-PnPPage $page", + "CommandName": "Remove-PnPPage" }, { + "Rank": 4, "Id": 1150, - "CommandName": "Remove-PnPSiteGroup", - "Rank": 2, - "Command": "Remove-PnPSiteGroup -Identity GroupToRemove" + "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle", + "CommandName": "Remove-PnPPage" }, { - "Id": 1151, - "CommandName": "Remove-PnPSiteScript", "Rank": 1, - "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" + "Id": 1151, + "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82", + "CommandName": "Remove-PnPPageComponent" }, { - "Id": 1152, - "CommandName": "Remove-PnPSiteUserInvitations", "Rank": 1, - "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" + "Id": 1152, + "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"", + "CommandName": "Remove-PnPPlannerBucket" }, { - "Id": 1153, - "CommandName": "Remove-PnPStorageEntity", "Rank": 1, - "Command": "Remove-PnPStorageEntity -Key MyKey" + "Id": 1153, + "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"", + "CommandName": "Remove-PnPPlannerPlan" }, { + "Rank": 1, "Id": 1154, - "CommandName": "Remove-PnPStorageEntity", - "Rank": 2, - "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site" + "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"", + "CommandName": "Remove-PnPPlannerRoster" }, { - "Id": 1155, - "CommandName": "Remove-PnPStoredCredential", "Rank": 1, - "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"" + "Id": 1155, + "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPPlannerRosterMember" }, { - "Id": 1156, - "CommandName": "Remove-PnPTaxonomyItem", "Rank": 1, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"" + "Id": 1156, + "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk", + "CommandName": "Remove-PnPPlannerTask" }, { + "Rank": 1, "Id": 1157, - "CommandName": "Remove-PnPTaxonomyItem", - "Rank": 2, - "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force" + "Command": "Remove-PnPPropertyBagValue -Key MyKey", + "CommandName": "Remove-PnPPropertyBagValue" }, { + "Rank": 2, "Id": 1158, - "CommandName": "Remove-PnPTeamsApp", - "Rank": 1, - "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b" + "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder", + "CommandName": "Remove-PnPPropertyBagValue" }, { + "Rank": 3, "Id": 1159, - "CommandName": "Remove-PnPTeamsApp", - "Rank": 2, - "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"" + "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /", + "CommandName": "Remove-PnPPropertyBagValue" }, { - "Id": 1160, - "CommandName": "Remove-PnPTeamsChannel", "Rank": 1, - "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"" + "Id": 1160, + "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600", + "CommandName": "Remove-PnPPublishingImageRendition" }, { - "Id": 1161, - "CommandName": "Remove-PnPTeamsChannelUser", "Rank": 1, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==" + "Id": 1161, + "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition", + "CommandName": "Remove-PnPRoleDefinition" }, { + "Rank": 1, "Id": 1162, - "CommandName": "Remove-PnPTeamsChannelUser", - "Rank": 2, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" + "Command": "Remove-PnPSdnProvider -Confirm:false", + "CommandName": "Remove-PnPSdnProvider" }, { + "Rank": 1, "Id": 1163, - "CommandName": "Remove-PnPTeamsChannelUser", - "Rank": 3, - "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force" + "Command": "Remove-PnPSearchConfiguration -Configuration $config", + "CommandName": "Remove-PnPSearchConfiguration" }, { + "Rank": 2, "Id": 1164, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 1, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki" + "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site", + "CommandName": "Remove-PnPSearchConfiguration" }, { + "Rank": 3, "Id": 1165, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 2, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki" + "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription", + "CommandName": "Remove-PnPSearchConfiguration" }, { + "Rank": 4, "Id": 1166, - "CommandName": "Remove-PnPTeamsTab", - "Rank": 3, - "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852" + "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", + "CommandName": "Remove-PnPSearchConfiguration" }, { - "Id": 1167, - "CommandName": "Remove-PnPTeamsTag", "Rank": 1, - "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" + "Id": 1167, + "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"", + "CommandName": "Remove-PnPSiteCollectionAdmin" }, { + "Rank": 2, "Id": 1168, - "CommandName": "Remove-PnPTeamsTeam", - "Rank": 1, - "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5" + "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", + "CommandName": "Remove-PnPSiteCollectionAdmin" }, { + "Rank": 1, "Id": 1169, - "CommandName": "Remove-PnPTeamsTeam", - "Rank": 2, - "Command": "Remove-PnPTeamsTeam -Identity testteam" + "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"", + "CommandName": "Remove-PnPSiteCollectionAppCatalog" }, { - "Id": 1170, - "CommandName": "Remove-PnPTeamsUser", "Rank": 1, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com" + "Id": 1170, + "Command": "Remove-PnPSiteCollectionTermStore", + "CommandName": "Remove-PnPSiteCollectionTermStore" }, { + "Rank": 1, "Id": 1171, - "CommandName": "Remove-PnPTeamsUser", - "Rank": 2, - "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" + "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Remove-PnPSiteDesign" }, { - "Id": 1172, - "CommandName": "Remove-PnPTenantCdnOrigin", "Rank": 1, - "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" + "Id": 1172, + "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Remove-PnPSiteDesignTask" }, { - "Id": 1173, - "CommandName": "Remove-PnPTenantDeletedSite", "Rank": 1, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" + "Id": 1173, + "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"", + "CommandName": "Remove-PnPSiteGroup" }, { - "Id": 1174, - "CommandName": "Remove-PnPTenantDeletedSite", "Rank": 2, - "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" + "Id": 1174, + "Command": "Remove-PnPSiteGroup -Identity GroupToRemove", + "CommandName": "Remove-PnPSiteGroup" }, { - "Id": 1175, - "CommandName": "Remove-PnPTenantSite", "Rank": 1, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"" + "Id": 1175, + "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd", + "CommandName": "Remove-PnPSiteScript" }, { + "Rank": 1, "Id": 1176, - "CommandName": "Remove-PnPTenantSite", - "Rank": 2, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin" + "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com", + "CommandName": "Remove-PnPSiteUserInvitations" }, { + "Rank": 1, "Id": 1177, - "CommandName": "Remove-PnPTenantSite", - "Rank": 3, - "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin" + "Command": "Remove-PnPStorageEntity -Key MyKey", + "CommandName": "Remove-PnPStorageEntity" }, { + "Rank": 2, "Id": 1178, - "CommandName": "Remove-PnPTenantSyncClientRestriction", - "Rank": 1, - "Command": "Remove-PnPTenantSyncClientRestriction" + "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site", + "CommandName": "Remove-PnPStorageEntity" }, { - "Id": 1179, - "CommandName": "Remove-PnPTenantTheme", "Rank": 1, - "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"" + "Id": 1179, + "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"", + "CommandName": "Remove-PnPStoredCredential" }, { - "Id": 1180, - "CommandName": "Remove-PnPTerm", "Rank": 1, - "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" + "Id": 1180, + "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"", + "CommandName": "Remove-PnPTaxonomyItem" }, { - "Id": 1181, - "CommandName": "Remove-PnPTerm", "Rank": 2, - "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Id": 1181, + "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force", + "CommandName": "Remove-PnPTaxonomyItem" }, { - "Id": 1182, - "CommandName": "Remove-PnPTermGroup", "Rank": 1, - "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" + "Id": 1182, + "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b", + "CommandName": "Remove-PnPTeamsApp" }, { - "Id": 1183, - "CommandName": "Remove-PnPTermGroup", "Rank": 2, - "Command": "Remove-PnPTermGroup -Identity \"Corporate\"" + "Id": 1183, + "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"", + "CommandName": "Remove-PnPTeamsApp" }, { + "Rank": 1, "Id": 1184, - "CommandName": "Remove-PnPTermGroup", - "Rank": 3, - "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force" + "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"", + "CommandName": "Remove-PnPTeamsChannel" }, { - "Id": 1185, - "CommandName": "Remove-PnPTermLabel", "Rank": 1, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62" + "Id": 1185, + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==", + "CommandName": "Remove-PnPTeamsChannelUser" }, { - "Id": 1186, - "CommandName": "Remove-PnPTermLabel", "Rank": 2, - "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" + "Id": 1186, + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000", + "CommandName": "Remove-PnPTeamsChannelUser" }, { + "Rank": 3, "Id": 1187, - "CommandName": "Remove-PnPUser", - "Rank": 1, - "Command": "Remove-PnPUser -Identity 23" + "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force", + "CommandName": "Remove-PnPTeamsChannelUser" }, { + "Rank": 1, "Id": 1188, - "CommandName": "Remove-PnPUser", - "Rank": 2, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com" + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki", + "CommandName": "Remove-PnPTeamsTab" }, { + "Rank": 2, "Id": 1189, - "CommandName": "Remove-PnPUser", - "Rank": 3, - "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false" + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki", + "CommandName": "Remove-PnPTeamsTab" }, { + "Rank": 3, "Id": 1190, - "CommandName": "Remove-PnPUserInfo", - "Rank": 1, - "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" + "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852", + "CommandName": "Remove-PnPTeamsTab" }, { - "Id": 1191, - "CommandName": "Remove-PnPUserProfile", "Rank": 1, - "Command": "Remove-PnPUserProfile -LoginName user@domain.com" + "Id": 1191, + "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"", + "CommandName": "Remove-PnPTeamsTag" }, { - "Id": 1192, - "CommandName": "Remove-PnPView", "Rank": 1, - "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"" + "Id": 1192, + "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5", + "CommandName": "Remove-PnPTeamsTeam" }, { + "Rank": 2, "Id": 1193, - "CommandName": "Remove-PnPVivaConnectionsDashboardACE", - "Rank": 1, - "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" + "Command": "Remove-PnPTeamsTeam -Identity testteam", + "CommandName": "Remove-PnPTeamsTeam" }, { - "Id": 1194, - "CommandName": "Remove-PnPWeb", "Rank": 1, - "Command": "Remove-PnPWeb -Identity projectA" + "Id": 1194, + "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com", + "CommandName": "Remove-PnPTeamsUser" }, { - "Id": 1195, - "CommandName": "Remove-PnPWeb", "Rank": 2, - "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0" + "Id": 1195, + "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", + "CommandName": "Remove-PnPTeamsUser" }, { - "Id": 1196, - "CommandName": "Remove-PnPWebhookSubscription", "Rank": 1, - "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6" + "Id": 1196, + "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public", + "CommandName": "Remove-PnPTenantCdnOrigin" }, { - "Id": 1197, - "CommandName": "Remove-PnPWebPart", "Rank": 1, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" + "Id": 1197, + "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Remove-PnPTenantDeletedSite" }, { - "Id": 1198, - "CommandName": "Remove-PnPWebPart", "Rank": 2, - "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart" + "Id": 1198, + "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force", + "CommandName": "Remove-PnPTenantDeletedSite" }, { - "Id": 1199, - "CommandName": "Remove-PnPWikiPage", "Rank": 1, - "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'" + "Id": 1199, + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Remove-PnPTenantSite" }, { + "Rank": 2, "Id": 1200, - "CommandName": "Rename-PnPFile", - "Rank": 1, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx" + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin", + "CommandName": "Remove-PnPTenantSite" }, { + "Rank": 3, "Id": 1201, - "CommandName": "Rename-PnPFile", - "Rank": 2, - "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx" + "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin", + "CommandName": "Remove-PnPTenantSite" }, { + "Rank": 1, "Id": 1202, - "CommandName": "Rename-PnPFile", - "Rank": 3, - "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists" + "Command": "Remove-PnPTenantSyncClientRestriction", + "CommandName": "Remove-PnPTenantSyncClientRestriction" }, { - "Id": 1203, - "CommandName": "Rename-PnPFolder", "Rank": 1, - "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'" + "Id": 1203, + "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"", + "CommandName": "Remove-PnPTenantTheme" }, { - "Id": 1204, - "CommandName": "Repair-PnPSite", "Rank": 1, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" + "Id": 1204, + "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380", + "CommandName": "Remove-PnPTerm" }, { - "Id": 1205, - "CommandName": "Repair-PnPSite", "Rank": 2, - "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" + "Id": 1205, + "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Remove-PnPTerm" }, { - "Id": 1206, - "CommandName": "Request-PnPAccessToken", "Rank": 1, - "Command": "Request-PnPAccessToken" + "Id": 1206, + "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380", + "CommandName": "Remove-PnPTermGroup" }, { - "Id": 1207, - "CommandName": "Request-PnPAccessToken", "Rank": 2, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2" + "Id": 1207, + "Command": "Remove-PnPTermGroup -Identity \"Corporate\"", + "CommandName": "Remove-PnPTermGroup" }, { - "Id": 1208, - "CommandName": "Request-PnPAccessToken", "Rank": 3, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All" + "Id": 1208, + "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force", + "CommandName": "Remove-PnPTermGroup" }, { + "Rank": 1, "Id": 1209, - "CommandName": "Request-PnPAccessToken", - "Rank": 4, - "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl" + "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62", + "CommandName": "Remove-PnPTermLabel" }, { + "Rank": 2, "Id": 1210, - "CommandName": "Request-PnPPersonalSite", - "Rank": 1, - "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")" + "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"", + "CommandName": "Remove-PnPTermLabel" }, { + "Rank": 1, "Id": 1211, - "CommandName": "Request-PnPPersonalSite", - "Rank": 2, - "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"" + "Command": "Remove-PnPUser -Identity 23", + "CommandName": "Remove-PnPUser" }, { + "Rank": 2, "Id": 1212, - "CommandName": "Request-PnPReIndexList", - "Rank": 1, - "Command": "Request-PnPReIndexList -Identity \"Demo List\"" + "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com", + "CommandName": "Remove-PnPUser" }, { + "Rank": 3, "Id": 1213, - "CommandName": "Request-PnPReIndexWeb", - "Rank": 1, - "Command": "Request-PnPReIndexWeb" + "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false", + "CommandName": "Remove-PnPUser" }, { - "Id": 1214, - "CommandName": "Request-PnPSyntexClassifyAndExtract", "Rank": 1, - "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"" + "Id": 1214, + "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"", + "CommandName": "Remove-PnPUserInfo" }, { + "Rank": 1, "Id": 1215, - "CommandName": "Request-PnPSyntexClassifyAndExtract", - "Rank": 2, - "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"" + "Command": "Remove-PnPUserProfile -LoginName user@domain.com", + "CommandName": "Remove-PnPUserProfile" }, { + "Rank": 1, "Id": 1216, - "CommandName": "Request-PnPSyntexClassifyAndExtract", - "Rank": 3, - "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")" + "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"", + "CommandName": "Remove-PnPView" }, { - "Id": 1217, - "CommandName": "Reset-PnPFileVersion", "Rank": 1, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"" + "Id": 1217, + "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"", + "CommandName": "Remove-PnPVivaConnectionsDashboardACE" }, { + "Rank": 1, "Id": 1218, - "CommandName": "Reset-PnPFileVersion", - "Rank": 2, - "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"" + "Command": "Remove-PnPWeb -Identity projectA", + "CommandName": "Remove-PnPWeb" }, { + "Rank": 2, "Id": 1219, - "CommandName": "Reset-PnPLabel", - "Rank": 1, - "Command": "Reset-PnPLabel -List \"Demo List\"" + "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0", + "CommandName": "Remove-PnPWeb" }, { + "Rank": 1, "Id": 1220, - "CommandName": "Reset-PnPLabel", - "Rank": 2, - "Command": "Reset-PnPLabel -List \"Demo List\" -SyncToItems $true" + "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6", + "CommandName": "Remove-PnPWebhookSubscription" }, { - "Id": 1221, - "CommandName": "Reset-PnPMicrosoft365GroupExpiration", "Rank": 1, - "Command": "Reset-PnPMicrosoft365GroupExpiration" + "Id": 1221, + "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82", + "CommandName": "Remove-PnPWebPart" }, { + "Rank": 2, "Id": 1222, - "CommandName": "Reset-PnPUserOneDriveQuotaToDefault", - "Rank": 1, - "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'" + "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart", + "CommandName": "Remove-PnPWebPart" }, { - "Id": 1223, - "CommandName": "Resolve-PnPFolder", "Rank": 1, - "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"" + "Id": 1223, + "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'", + "CommandName": "Remove-PnPWikiPage" }, { - "Id": 1224, - "CommandName": "Restore-PnPDeletedMicrosoft365Group", "Rank": 1, - "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" + "Id": 1224, + "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx", + "CommandName": "Rename-PnPFile" }, { + "Rank": 2, "Id": 1225, - "CommandName": "Restore-PnPFileVersion", - "Rank": 1, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" + "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx", + "CommandName": "Rename-PnPFile" }, { + "Rank": 3, "Id": 1226, - "CommandName": "Restore-PnPFileVersion", - "Rank": 2, - "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512" + "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists", + "CommandName": "Rename-PnPFile" }, { + "Rank": 1, "Id": 1227, - "CommandName": "Restore-PnPFileVersion", - "Rank": 3, - "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" + "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'", + "CommandName": "Rename-PnPFolder" }, { - "Id": 1228, - "CommandName": "Restore-PnPListItemVersion", "Rank": 1, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" + "Id": 1228, + "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"", + "CommandName": "Repair-PnPSite" }, { - "Id": 1229, - "CommandName": "Restore-PnPListItemVersion", "Rank": 2, - "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" + "Id": 1229, + "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"", + "CommandName": "Repair-PnPSite" }, { - "Id": 1230, - "CommandName": "Restore-PnPRecycleBinItem", "Rank": 1, - "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" + "Id": 1230, + "Command": "Request-PnPAccessToken", + "CommandName": "Request-PnPAccessToken" }, { + "Rank": 2, "Id": 1231, - "CommandName": "Restore-PnPTenantRecycleBinItem", - "Rank": 1, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2", + "CommandName": "Request-PnPAccessToken" }, { + "Rank": 3, "Id": 1232, - "CommandName": "Restore-PnPTenantRecycleBinItem", - "Rank": 2, - "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All", + "CommandName": "Request-PnPAccessToken" }, { + "Rank": 4, "Id": 1233, - "CommandName": "Restore-PnPTenantSite", - "Rank": 1, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" + "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl", + "CommandName": "Request-PnPAccessToken" }, { + "Rank": 1, "Id": 1234, - "CommandName": "Restore-PnPTenantSite", - "Rank": 2, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" + "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")", + "CommandName": "Request-PnPPersonalSite" }, { + "Rank": 2, "Id": 1235, - "CommandName": "Restore-PnPTenantSite", - "Rank": 3, - "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait" + "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"", + "CommandName": "Request-PnPPersonalSite" }, { - "Id": 1236, - "CommandName": "Revoke-PnPAzureADAppSitePermission", "Rank": 1, - "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa" + "Id": 1236, + "Command": "Request-PnPReIndexList -Identity \"Demo List\"", + "CommandName": "Request-PnPReIndexList" }, { - "Id": 1237, - "CommandName": "Revoke-PnPHubSiteRights", "Rank": 1, - "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" + "Id": 1237, + "Command": "Request-PnPReIndexWeb", + "CommandName": "Request-PnPReIndexWeb" }, { - "Id": 1238, - "CommandName": "Revoke-PnPSiteDesignRights", "Rank": 1, - "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" + "Id": 1238, + "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"", + "CommandName": "Request-PnPSyntexClassifyAndExtract" }, { + "Rank": 2, "Id": 1239, - "CommandName": "Revoke-PnPTenantServicePrincipalPermission", - "Rank": 1, - "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" + "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"", + "CommandName": "Request-PnPSyntexClassifyAndExtract" }, { + "Rank": 3, "Id": 1240, - "CommandName": "Revoke-PnPUserSession", - "Rank": 1, - "Command": "Revoke-PnPUserSession -User user1@contoso.com" + "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")", + "CommandName": "Request-PnPSyntexClassifyAndExtract" }, { - "Id": 1241, - "CommandName": "Save-PnPPageConversionLog", "Rank": 1, - "Command": "Save-PnPPageConversionLog" + "Id": 1241, + "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"", + "CommandName": "Reset-PnPFileVersion" }, { + "Rank": 2, "Id": 1242, - "CommandName": "Save-PnPSiteTemplate", - "Rank": 1, - "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp" + "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"", + "CommandName": "Reset-PnPFileVersion" }, { - "Id": 1243, - "CommandName": "Save-PnPTenantTemplate", "Rank": 1, - "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp" + "Id": 1243, + "Command": "Reset-PnPMicrosoft365GroupExpiration", + "CommandName": "Reset-PnPMicrosoft365GroupExpiration" }, { - "Id": 1244, - "CommandName": "Send-PnPMail", "Rank": 1, - "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\"" + "Id": 1244, + "Command": "Reset-PnPRetentionLabel -List \"Demo List\"", + "CommandName": "Reset-PnPRetentionLabel" }, { - "Id": 1245, - "CommandName": "Send-PnPMail", "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" + "Id": 1245, + "Command": "Reset-PnPRetentionLabel -List \"Demo List\" -SyncToItems $true", + "CommandName": "Reset-PnPRetentionLabel" }, { + "Rank": 1, "Id": 1246, - "CommandName": "Send-PnPMail", - "Rank": 3, - "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"" + "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'", + "CommandName": "Reset-PnPUserOneDriveQuotaToDefault" }, { + "Rank": 1, "Id": 1247, - "CommandName": "Send-PnPMail", - "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" + "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"", + "CommandName": "Resolve-PnPFolder" }, { + "Rank": 1, "Id": 1248, - "CommandName": "Send-PnPMail", - "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" + "Command": "Restore-PnPDeletedContainer -Identity \"b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"", + "CommandName": "Restore-PnPDeletedContainer" }, { + "Rank": 1, "Id": 1249, - "CommandName": "Send-PnPMail", - "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\"" + "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f", + "CommandName": "Restore-PnPDeletedMicrosoft365Group" }, { - "Id": 1250, - "CommandName": "Set-PnPAdaptiveScopeProperty", "Rank": 1, - "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue" + "Id": 1250, + "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512", + "CommandName": "Restore-PnPFileVersion" }, { + "Rank": 2, "Id": 1251, - "CommandName": "Set-PnPApplicationCustomizer", - "Rank": 1, - "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" + "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512", + "CommandName": "Restore-PnPFileVersion" }, { + "Rank": 3, "Id": 1252, - "CommandName": "Set-PnPApplicationCustomizer", - "Rank": 2, - "Command": "Set-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"" + "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"", + "CommandName": "Restore-PnPFileVersion" }, { - "Id": 1253, - "CommandName": "Set-PnPAppSideLoading", "Rank": 1, - "Command": "Set-PnPAppSideLoading -On" + "Id": 1253, + "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512", + "CommandName": "Restore-PnPListItemVersion" }, { - "Id": 1254, - "CommandName": "Set-PnPAppSideLoading", "Rank": 2, - "Command": "Set-PnPAppSideLoading -Off" + "Id": 1254, + "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"", + "CommandName": "Restore-PnPListItemVersion" }, { - "Id": 1255, - "CommandName": "Set-PnPAuditing", "Rank": 1, - "Command": "Set-PnPAuditing -EnableAll" + "Id": 1255, + "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442", + "CommandName": "Restore-PnPRecycleBinItem" }, { + "Rank": 1, "Id": 1256, - "CommandName": "Set-PnPAuditing", - "Rank": 2, - "Command": "Set-PnPAuditing -DisableAll" + "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Restore-PnPTenantRecycleBinItem" }, { + "Rank": 2, "Id": 1257, - "CommandName": "Set-PnPAuditing", - "Rank": 3, - "Command": "Set-PnPAuditing -RetentionTime 7" + "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait", + "CommandName": "Restore-PnPTenantRecycleBinItem" }, { + "Rank": 1, "Id": 1258, - "CommandName": "Set-PnPAuditing", - "Rank": 4, - "Command": "Set-PnPAuditing -TrimAuditLog" + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"", + "CommandName": "Restore-PnPTenantSite" }, { + "Rank": 2, "Id": 1259, - "CommandName": "Set-PnPAuditing", - "Rank": 5, - "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent" + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force", + "CommandName": "Restore-PnPTenantSite" }, { + "Rank": 3, "Id": 1260, - "CommandName": "Set-PnPAvailablePageLayouts", - "Rank": 1, - "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts" + "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait", + "CommandName": "Restore-PnPTenantSite" }, { - "Id": 1261, - "CommandName": "Set-PnPAzureADAppSitePermission", "Rank": 1, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read" + "Id": 1261, + "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa", + "CommandName": "Revoke-PnPAzureADAppSitePermission" }, { + "Rank": 1, "Id": 1262, - "CommandName": "Set-PnPAzureADAppSitePermission", - "Rank": 2, - "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects" + "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", + "CommandName": "Revoke-PnPHubSiteRights" }, { - "Id": 1263, - "CommandName": "Set-PnPAzureADGroup", "Rank": 1, - "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"" + "Id": 1263, + "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"", + "CommandName": "Revoke-PnPSiteDesignRights" }, { + "Rank": 1, "Id": 1264, - "CommandName": "Set-PnPAzureADGroup", - "Rank": 2, - "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" + "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"", + "CommandName": "Revoke-PnPTenantServicePrincipalPermission" }, { + "Rank": 1, "Id": 1265, - "CommandName": "Set-PnPAzureADGroup", - "Rank": 3, - "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com" + "Command": "Revoke-PnPUserSession -User user1@contoso.com", + "CommandName": "Revoke-PnPUserSession" }, { - "Id": 1266, - "CommandName": "Set-PnPBrowserIdleSignout", "Rank": 1, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"" + "Id": 1266, + "Command": "Save-PnPPageConversionLog", + "CommandName": "Save-PnPPageConversionLog" }, { + "Rank": 1, "Id": 1267, - "CommandName": "Set-PnPBrowserIdleSignout", - "Rank": 2, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)" + "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp", + "CommandName": "Save-PnPSiteTemplate" }, { + "Rank": 1, "Id": 1268, - "CommandName": "Set-PnPBrowserIdleSignout", - "Rank": 3, - "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false" + "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp", + "CommandName": "Save-PnPTenantTemplate" }, { - "Id": 1269, - "CommandName": "Set-PnPBuiltInDesignPackageVisibility", "Rank": 1, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false" + "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" }, { - "Id": 1270, - "CommandName": "Set-PnPBuiltInDesignPackageVisibility", "Rank": 2, - "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true" + "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": 3, "Id": 1271, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 1, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false" + "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"", + "CommandName": "Send-PnPMail" }, { + "Rank": 4, "Id": 1272, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 2, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true" + "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": 5, "Id": 1273, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 3, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true" + "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": 6, "Id": 1274, - "CommandName": "Set-PnPBuiltInSiteTemplateSettings", - "Rank": 4, - "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false" + "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" }, { - "Id": 1275, - "CommandName": "Set-PnPContentType", "Rank": 1, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"" + "Id": 1275, + "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue", + "CommandName": "Set-PnPAdaptiveScopeProperty" }, { + "Rank": 1, "Id": 1276, - "CommandName": "Set-PnPContentType", - "Rank": 2, - "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden" + "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", + "CommandName": "Set-PnPApplicationCustomizer" }, { + "Rank": 2, "Id": 1277, - "CommandName": "Set-PnPContentType", - "Rank": 3, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"" + "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, "Id": 1278, - "CommandName": "Set-PnPContentType", - "Rank": 4, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" + "Command": "Set-PnPAppSideLoading -On", + "CommandName": "Set-PnPAppSideLoading" }, { + "Rank": 2, "Id": 1279, - "CommandName": "Set-PnPContentType", - "Rank": 5, - "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" + "Command": "Set-PnPAppSideLoading -Off", + "CommandName": "Set-PnPAppSideLoading" }, { - "Id": 1280, - "CommandName": "Set-PnPDefaultColumnValues", "Rank": 1, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"" + "Id": 1280, + "Command": "Set-PnPAuditing -EnableAll", + "CommandName": "Set-PnPAuditing" }, { - "Id": 1281, - "CommandName": "Set-PnPDefaultColumnValues", "Rank": 2, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"" + "Id": 1281, + "Command": "Set-PnPAuditing -DisableAll", + "CommandName": "Set-PnPAuditing" }, { - "Id": 1282, - "CommandName": "Set-PnPDefaultColumnValues", "Rank": 3, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"" + "Id": 1282, + "Command": "Set-PnPAuditing -RetentionTime 7", + "CommandName": "Set-PnPAuditing" }, { - "Id": 1283, - "CommandName": "Set-PnPDefaultColumnValues", "Rank": 4, - "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"" + "Id": 1283, + "Command": "Set-PnPAuditing -TrimAuditLog", + "CommandName": "Set-PnPAuditing" }, { + "Rank": 5, "Id": 1284, - "CommandName": "Set-PnPDefaultContentTypeToList", - "Rank": 1, - "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"" + "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent", + "CommandName": "Set-PnPAuditing" }, { - "Id": 1285, - "CommandName": "Set-PnPDefaultPageLayout", "Rank": 1, - "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx" + "Id": 1285, + "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts", + "CommandName": "Set-PnPAvailablePageLayouts" }, { + "Rank": 1, "Id": 1286, - "CommandName": "Set-PnPDefaultPageLayout", - "Rank": 2, - "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx" + "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read", + "CommandName": "Set-PnPAzureADAppSitePermission" }, { + "Rank": 2, "Id": 1287, - "CommandName": "Set-PnPDefaultPageLayout", - "Rank": 3, - "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite" + "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects", + "CommandName": "Set-PnPAzureADAppSitePermission" }, { - "Id": 1288, - "CommandName": "Set-PnPDisableSpacesActivation", "Rank": 1, - "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant" + "Id": 1288, + "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"", + "CommandName": "Set-PnPAzureADGroup" }, { - "Id": 1289, - "CommandName": "Set-PnPDisableSpacesActivation", "Rank": 2, - "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"" + "Id": 1289, + "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"", + "CommandName": "Set-PnPAzureADGroup" }, { - "Id": 1290, - "CommandName": "Set-PnPDisableSpacesActivation", "Rank": 3, - "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"" + "Id": 1290, + "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com", + "CommandName": "Set-PnPAzureADGroup" }, { - "Id": 1291, - "CommandName": "Set-PnPDocumentSetField", "Rank": 1, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField" + "Id": 1291, + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"", + "CommandName": "Set-PnPBrowserIdleSignout" }, { - "Id": 1292, - "CommandName": "Set-PnPDocumentSetField", "Rank": 2, - "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField" + "Id": 1292, + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)", + "CommandName": "Set-PnPBrowserIdleSignout" }, { + "Rank": 3, "Id": 1293, - "CommandName": "Set-PnPField", - "Rank": 1, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}" + "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false", + "CommandName": "Set-PnPBrowserIdleSignout" }, { + "Rank": 1, "Id": 1294, - "CommandName": "Set-PnPField", - "Rank": 2, - "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists" + "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false", + "CommandName": "Set-PnPBuiltInDesignPackageVisibility" }, { + "Rank": 2, "Id": 1295, - "CommandName": "Set-PnPField", - "Rank": 3, - "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}" + "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true", + "CommandName": "Set-PnPBuiltInDesignPackageVisibility" }, { - "Id": 1296, - "CommandName": "Set-PnPFileCheckedIn", "Rank": 1, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"" + "Id": 1296, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false", + "CommandName": "Set-PnPBuiltInSiteTemplateSettings" }, { - "Id": 1297, - "CommandName": "Set-PnPFileCheckedIn", "Rank": 2, - "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"" + "Id": 1297, + "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true", + "CommandName": "Set-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 3, "Id": 1298, - "CommandName": "Set-PnPFileCheckedOut", - "Rank": 1, - "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"" + "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true", + "CommandName": "Set-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 4, "Id": 1299, - "CommandName": "Set-PnPFolderPermission", - "Rank": 1, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'" + "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false", + "CommandName": "Set-PnPBuiltInSiteTemplateSettings" }, { + "Rank": 1, "Id": 1300, - "CommandName": "Set-PnPFolderPermission", - "Rank": 2, - "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'" + "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"", + "CommandName": "Set-PnPContentType" }, { + "Rank": 2, "Id": 1301, - "CommandName": "Set-PnPFolderPermission", - "Rank": 3, - "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" + "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden", + "CommandName": "Set-PnPContentType" }, { + "Rank": 3, "Id": 1302, - "CommandName": "Set-PnPFooter", - "Rank": 1, - "Command": "Set-PnPFooter -Enabled:$true" + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"", + "CommandName": "Set-PnPContentType" }, { + "Rank": 4, "Id": 1303, - "CommandName": "Set-PnPFooter", - "Rank": 2, - "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral" + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'", + "CommandName": "Set-PnPContentType" }, { + "Rank": 5, "Id": 1304, - "CommandName": "Set-PnPFooter", - "Rank": 3, - "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"" + "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'", + "CommandName": "Set-PnPContentType" }, { + "Rank": 1, "Id": 1305, - "CommandName": "Set-PnPFooter", - "Rank": 4, - "Command": "Set-PnPFooter -LogoUrl \"\"" + "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"", + "CommandName": "Set-PnPDefaultColumnValues" }, { + "Rank": 2, "Id": 1306, - "CommandName": "Set-PnPGraphSubscription", - "Rank": 1, - "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"" + "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"", + "CommandName": "Set-PnPDefaultColumnValues" }, { + "Rank": 3, "Id": 1307, - "CommandName": "Set-PnPGroup", - "Rank": 1, - "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members" + "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"", + "CommandName": "Set-PnPDefaultColumnValues" }, { + "Rank": 4, "Id": 1308, - "CommandName": "Set-PnPGroup", - "Rank": 2, - "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'" + "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"", + "CommandName": "Set-PnPDefaultColumnValues" }, { - "Id": 1309, - "CommandName": "Set-PnPGroupPermissions", "Rank": 1, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute" + "Id": 1309, + "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"", + "CommandName": "Set-PnPDefaultContentTypeToList" }, { + "Rank": 1, "Id": 1310, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 2, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'" + "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx", + "CommandName": "Set-PnPDefaultPageLayout" }, { + "Rank": 2, "Id": 1311, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 3, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')" + "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx", + "CommandName": "Set-PnPDefaultPageLayout" }, { + "Rank": 3, "Id": 1312, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 4, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')" + "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite", + "CommandName": "Set-PnPDefaultPageLayout" }, { + "Rank": 1, "Id": 1313, - "CommandName": "Set-PnPGroupPermissions", - "Rank": 5, - "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')" + "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant", + "CommandName": "Set-PnPDisableSpacesActivation" }, { + "Rank": 2, "Id": 1314, - "CommandName": "Set-PnPHideDefaultThemes", - "Rank": 1, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true" + "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"", + "CommandName": "Set-PnPDisableSpacesActivation" }, { + "Rank": 3, "Id": 1315, - "CommandName": "Set-PnPHideDefaultThemes", - "Rank": 2, - "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false" + "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"", + "CommandName": "Set-PnPDisableSpacesActivation" }, { - "Id": 1316, - "CommandName": "Set-PnPHomePage", "Rank": 1, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx" + "Id": 1316, + "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField", + "CommandName": "Set-PnPDocumentSetField" }, { - "Id": 1317, - "CommandName": "Set-PnPHomePage", "Rank": 2, - "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx" + "Id": 1317, + "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField", + "CommandName": "Set-PnPDocumentSetField" }, { - "Id": 1318, - "CommandName": "Set-PnPHomeSite", "Rank": 1, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"" + "Id": 1318, + "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}", + "CommandName": "Set-PnPField" }, { - "Id": 1319, - "CommandName": "Set-PnPHomeSite", "Rank": 2, - "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true" + "Id": 1319, + "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists", + "CommandName": "Set-PnPField" }, { + "Rank": 3, "Id": 1320, - "CommandName": "Set-PnPHubSite", - "Rank": 1, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"" + "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}", + "CommandName": "Set-PnPField" }, { + "Rank": 1, "Id": 1321, - "CommandName": "Set-PnPHubSite", - "Rank": 2, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"" + "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"", + "CommandName": "Set-PnPFileCheckedIn" }, { + "Rank": 2, "Id": 1322, - "CommandName": "Set-PnPHubSite", - "Rank": 3, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745" + "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"", + "CommandName": "Set-PnPFileCheckedIn" }, { + "Rank": 1, "Id": 1323, - "CommandName": "Set-PnPHubSite", - "Rank": 4, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"" + "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"", + "CommandName": "Set-PnPFileCheckedOut" }, { + "Rank": 1, "Id": 1324, - "CommandName": "Set-PnPHubSite", - "Rank": 5, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync" + "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'", + "CommandName": "Set-PnPFolderPermission" }, { + "Rank": 2, "Id": 1325, - "CommandName": "Set-PnPHubSite", - "Rank": 6, - "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false" + "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'", + "CommandName": "Set-PnPFolderPermission" }, { + "Rank": 3, "Id": 1326, - "CommandName": "Set-PnPImageListItemColumn", - "Rank": 1, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"" + "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting", + "CommandName": "Set-PnPFolderPermission" }, { + "Rank": 1, "Id": 1327, - "CommandName": "Set-PnPImageListItemColumn", - "Rank": 2, - "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png" + "Command": "Set-PnPFooter -Enabled:$true", + "CommandName": "Set-PnPFooter" }, { + "Rank": 2, "Id": 1328, - "CommandName": "Set-PnPIndexedProperties", - "Rank": 1, - "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName" + "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral", + "CommandName": "Set-PnPFooter" }, { + "Rank": 3, "Id": 1329, - "CommandName": "Set-PnPInPlaceRecordsManagement", - "Rank": 1, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true" + "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"", + "CommandName": "Set-PnPFooter" }, { + "Rank": 4, "Id": 1330, - "CommandName": "Set-PnPInPlaceRecordsManagement", - "Rank": 2, - "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false" + "Command": "Set-PnPFooter -LogoUrl \"\"", + "CommandName": "Set-PnPFooter" }, { - "Id": 1331, - "CommandName": "Set-PnPKnowledgeHubSite", "Rank": 1, - "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"" + "Id": 1331, + "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"", + "CommandName": "Set-PnPGraphSubscription" }, { - "Id": 1332, - "CommandName": "Set-PnPLabel", "Rank": 1, - "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\"" + "Id": 1332, + "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members", + "CommandName": "Set-PnPGroup" }, { - "Id": 1333, - "CommandName": "Set-PnPLabel", "Rank": 2, - "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true" + "Id": 1333, + "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'", + "CommandName": "Set-PnPGroup" }, { - "Id": 1334, - "CommandName": "Set-PnPList", "Rank": 1, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true" + "Id": 1334, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute", + "CommandName": "Set-PnPGroupPermissions" }, { - "Id": 1335, - "CommandName": "Set-PnPList", "Rank": 2, - "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true" + "Id": 1335, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'", + "CommandName": "Set-PnPGroupPermissions" }, { - "Id": 1336, - "CommandName": "Set-PnPList", "Rank": 3, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true" + "Id": 1336, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')", + "CommandName": "Set-PnPGroupPermissions" }, { - "Id": 1337, - "CommandName": "Set-PnPList", "Rank": 4, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20" + "Id": 1337, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')", + "CommandName": "Set-PnPGroupPermissions" }, { - "Id": 1338, - "CommandName": "Set-PnPList", "Rank": 5, - "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5" + "Id": 1338, + "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')", + "CommandName": "Set-PnPGroupPermissions" }, { + "Rank": 1, "Id": 1339, - "CommandName": "Set-PnPList", - "Rank": 6, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true" + "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true", + "CommandName": "Set-PnPHideDefaultThemes" }, { + "Rank": 2, "Id": 1340, - "CommandName": "Set-PnPList", - "Rank": 7, - "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"" + "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false", + "CommandName": "Set-PnPHideDefaultThemes" }, { + "Rank": 1, "Id": 1341, - "CommandName": "Set-PnPList", - "Rank": 8, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true" + "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx", + "CommandName": "Set-PnPHomePage" }, { + "Rank": 2, "Id": 1342, - "CommandName": "Set-PnPList", - "Rank": 9, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500" + "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx", + "CommandName": "Set-PnPHomePage" }, { + "Rank": 1, "Id": 1343, - "CommandName": "Set-PnPList", - "Rank": 10, - "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500" + "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"", + "CommandName": "Set-PnPHomeSite" }, { + "Rank": 2, "Id": 1344, - "CommandName": "Set-PnPList", - "Rank": 11, - "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"" + "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true", + "CommandName": "Set-PnPHomeSite" }, { - "Id": 1345, - "CommandName": "Set-PnPListInformationRightsManagement", "Rank": 1, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true" + "Id": 1345, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"", + "CommandName": "Set-PnPHubSite" }, { - "Id": 1346, - "CommandName": "Set-PnPListInformationRightsManagement", "Rank": 2, - "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14" + "Id": 1346, + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"", + "CommandName": "Set-PnPHubSite" }, { + "Rank": 3, "Id": 1347, - "CommandName": "Set-PnPListItem", - "Rank": 1, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745", + "CommandName": "Set-PnPHubSite" }, { + "Rank": 4, "Id": 1348, - "CommandName": "Set-PnPListItem", - "Rank": 2, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"", + "CommandName": "Set-PnPHubSite" }, { + "Rank": 5, "Id": 1349, - "CommandName": "Set-PnPListItem", - "Rank": 3, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync", + "CommandName": "Set-PnPHubSite" }, { + "Rank": 6, "Id": 1350, - "CommandName": "Set-PnPListItem", - "Rank": 4, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"" + "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false", + "CommandName": "Set-PnPHubSite" }, { + "Rank": 1, "Id": 1351, - "CommandName": "Set-PnPListItem", - "Rank": 5, - "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion" + "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"", + "CommandName": "Set-PnPImageListItemColumn" }, { + "Rank": 2, "Id": 1352, - "CommandName": "Set-PnPListItemAsRecord", - "Rank": 1, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4" + "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png", + "CommandName": "Set-PnPImageListItemColumn" }, { + "Rank": 1, "Id": 1353, - "CommandName": "Set-PnPListItemAsRecord", - "Rank": 2, - "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date" + "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName", + "CommandName": "Set-PnPIndexedProperties" }, { - "Id": 1354, - "CommandName": "Set-PnPListItemPermission", "Rank": 1, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'" + "Id": 1354, + "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true", + "CommandName": "Set-PnPInPlaceRecordsManagement" }, { - "Id": 1355, - "CommandName": "Set-PnPListItemPermission", "Rank": 2, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'" + "Id": 1355, + "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false", + "CommandName": "Set-PnPInPlaceRecordsManagement" }, { + "Rank": 1, "Id": 1356, - "CommandName": "Set-PnPListItemPermission", - "Rank": 3, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" + "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"", + "CommandName": "Set-PnPKnowledgeHubSite" }, { + "Rank": 1, "Id": 1357, - "CommandName": "Set-PnPListItemPermission", - "Rank": 4, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true", + "CommandName": "Set-PnPList" }, { + "Rank": 2, "Id": 1358, - "CommandName": "Set-PnPListItemPermission", - "Rank": 5, - "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"" + "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true", + "CommandName": "Set-PnPList" }, { + "Rank": 3, "Id": 1359, - "CommandName": "Set-PnPListPermission", - "Rank": 1, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true", + "CommandName": "Set-PnPList" }, { + "Rank": 4, "Id": 1360, - "CommandName": "Set-PnPListPermission", - "Rank": 2, - "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20", + "CommandName": "Set-PnPList" }, { + "Rank": 5, "Id": 1361, - "CommandName": "Set-PnPListRecordDeclaration", - "Rank": 1, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration" + "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5", + "CommandName": "Set-PnPList" }, { + "Rank": 6, "Id": 1362, - "CommandName": "Set-PnPListRecordDeclaration", - "Rank": 2, - "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true", + "CommandName": "Set-PnPList" }, { + "Rank": 7, "Id": 1363, - "CommandName": "Set-PnPMasterPage", - "Rank": 1, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" + "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"", + "CommandName": "Set-PnPList" }, { + "Rank": 8, "Id": 1364, - "CommandName": "Set-PnPMasterPage", - "Rank": 2, - "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true", + "CommandName": "Set-PnPList" }, { + "Rank": 9, "Id": 1365, - "CommandName": "Set-PnPMasterPage", - "Rank": 3, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500", + "CommandName": "Set-PnPList" }, { + "Rank": 10, "Id": 1366, - "CommandName": "Set-PnPMasterPage", - "Rank": 4, - "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" + "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500", + "CommandName": "Set-PnPList" }, { + "Rank": 11, "Id": 1367, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"" + "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"", + "CommandName": "Set-PnPList" }, { + "Rank": 1, "Id": 1368, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"" + "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true", + "CommandName": "Set-PnPListInformationRightsManagement" }, { + "Rank": 2, "Id": 1369, - "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsArchived" + "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14", + "CommandName": "Set-PnPListInformationRightsManagement" }, { - "Id": 1370, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"" + "Id": 1370, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", + "CommandName": "Set-PnPListItem" }, { - "Id": 1371, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"" + "Id": 1371, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", + "CommandName": "Set-PnPListItem" }, { - "Id": 1372, - "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsFavorite" + "Id": 1372, + "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}", + "CommandName": "Set-PnPListItem" }, { + "Rank": 4, "Id": 1373, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"" + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"", + "CommandName": "Set-PnPListItem" }, { + "Rank": 5, "Id": 1374, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"" + "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion", + "CommandName": "Set-PnPListItem" }, { + "Rank": 1, "Id": 1375, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived" + "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4", + "CommandName": "Set-PnPListItemAsRecord" }, { + "Rank": 2, "Id": 1376, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"" + "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date", + "CommandName": "Set-PnPListItemAsRecord" }, { + "Rank": 1, "Id": 1377, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"" + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'", + "CommandName": "Set-PnPListItemPermission" }, { + "Rank": 2, "Id": 1378, - "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite" + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'", + "CommandName": "Set-PnPListItemPermission" }, { + "Rank": 3, "Id": 1379, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"" + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting", + "CommandName": "Set-PnPListItemPermission" }, { + "Rank": 4, "Id": 1380, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"" + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions", + "CommandName": "Set-PnPListItemPermission" }, { + "Rank": 5, "Id": 1381, - "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsRead" + "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"", + "CommandName": "Set-PnPListItemPermission" }, { - "Id": 1382, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", "Rank": 1, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"" + "Id": 1382, + "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'", + "CommandName": "Set-PnPListPermission" }, { - "Id": 1383, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", "Rank": 2, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"" + "Id": 1383, + "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'", + "CommandName": "Set-PnPListPermission" }, { + "Rank": 1, "Id": 1384, - "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", - "Rank": 3, - "Command": "Set-PnPMessageCenterAnnouncementAsUnread" + "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration", + "CommandName": "Set-PnPListRecordDeclaration" }, { + "Rank": 2, "Id": 1385, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 1, - "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"" + "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true", + "CommandName": "Set-PnPListRecordDeclaration" }, { + "Rank": 1, "Id": 1386, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 2, - "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" + "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master", + "CommandName": "Set-PnPMasterPage" }, { + "Rank": 2, "Id": 1387, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 3, - "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"" + "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master", + "CommandName": "Set-PnPMasterPage" }, { + "Rank": 3, "Id": 1388, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 4, - "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false" + "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master", + "CommandName": "Set-PnPMasterPage" }, { + "Rank": 4, "Id": 1389, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 5, - "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com" + "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master", + "CommandName": "Set-PnPMasterPage" }, { + "Rank": 1, "Id": 1390, - "CommandName": "Set-PnPMicrosoft365Group", - "Rank": 6, - "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" + "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" }, { + "Rank": 2, "Id": 1391, - "CommandName": "Set-PnPMicrosoft365GroupSettings", - "Rank": 1, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}" + "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" }, { + "Rank": 3, "Id": 1392, - "CommandName": "Set-PnPMicrosoft365GroupSettings", - "Rank": 2, - "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId" + "Command": "Set-PnPMessageCenterAnnouncementAsArchived", + "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived" }, { - "Id": 1393, - "CommandName": "Set-PnPMinimalDownloadStrategy", "Rank": 1, - "Command": "Set-PnPMinimalDownloadStrategy -Off" + "Id": 1393, + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" }, { - "Id": 1394, - "CommandName": "Set-PnPMinimalDownloadStrategy", "Rank": 2, - "Command": "Set-PnPMinimalDownloadStrategy -On" + "Id": 1394, + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" }, { + "Rank": 3, "Id": 1395, - "CommandName": "Set-PnPPage", - "Rank": 1, - "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"" + "Command": "Set-PnPMessageCenterAnnouncementAsFavorite", + "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite" }, { + "Rank": 1, "Id": 1396, - "CommandName": "Set-PnPPage", - "Rank": 2, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled" + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" }, { + "Rank": 2, "Id": 1397, - "CommandName": "Set-PnPPage", - "Rank": 3, - "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false" + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" }, { + "Rank": 3, "Id": 1398, - "CommandName": "Set-PnPPage", - "Rank": 4, - "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default" + "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived" }, { + "Rank": 1, "Id": 1399, - "CommandName": "Set-PnPPage", - "Rank": 5, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None" + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" }, { + "Rank": 2, "Id": 1400, - "CommandName": "Set-PnPPage", - "Rank": 6, - "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0" + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" }, { + "Rank": 3, "Id": 1401, - "CommandName": "Set-PnPPage", - "Rank": 7, - "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)" + "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite", + "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite" }, { + "Rank": 1, "Id": 1402, - "CommandName": "Set-PnPPage", - "Rank": 8, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate" + "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" }, { + "Rank": 2, "Id": 1403, - "CommandName": "Set-PnPPage", - "Rank": 9, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043" + "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" }, { + "Rank": 3, "Id": 1404, - "CommandName": "Set-PnPPage", - "Rank": 10, - "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035" + "Command": "Set-PnPMessageCenterAnnouncementAsRead", + "CommandName": "Set-PnPMessageCenterAnnouncementAsRead" }, { + "Rank": 1, "Id": 1405, - "CommandName": "Set-PnPPage", - "Rank": 11, - "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish" + "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" }, { + "Rank": 2, "Id": 1406, - "CommandName": "Set-PnPPageTextPart", - "Rank": 1, - "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"" + "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"", + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" }, { + "Rank": 3, "Id": 1407, - "CommandName": "Set-PnPPageWebPart", - "Rank": 1, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"" + "Command": "Set-PnPMessageCenterAnnouncementAsUnread", + "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread" }, { + "Rank": 1, "Id": 1408, - "CommandName": "Set-PnPPageWebPart", - "Rank": 2, - "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties" + "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 2, "Id": 1409, - "CommandName": "Set-PnPPlannerBucket", - "Rank": 1, - "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"" + "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 3, "Id": 1410, - "CommandName": "Set-PnPPlannerConfiguration", - "Rank": 1, - "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true" + "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 4, "Id": 1411, - "CommandName": "Set-PnPPlannerConfiguration", - "Rank": 2, - "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false" + "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 5, "Id": 1412, - "CommandName": "Set-PnPPlannerPlan", - "Rank": 1, - "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"" + "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 6, "Id": 1413, - "CommandName": "Set-PnPPlannerTask", - "Rank": 1, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01" + "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"", + "CommandName": "Set-PnPMicrosoft365Group" }, { + "Rank": 1, "Id": 1414, - "CommandName": "Set-PnPPlannerTask", - "Rank": 2, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"" + "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}", + "CommandName": "Set-PnPMicrosoft365GroupSettings" }, { + "Rank": 2, "Id": 1415, - "CommandName": "Set-PnPPlannerTask", - "Rank": 3, - "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" + "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId", + "CommandName": "Set-PnPMicrosoft365GroupSettings" }, { - "Id": 1416, - "CommandName": "Set-PnPPlannerUserPolicy", "Rank": 1, - "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" + "Id": 1416, + "Command": "Set-PnPMinimalDownloadStrategy -Off", + "CommandName": "Set-PnPMinimalDownloadStrategy" }, { + "Rank": 2, "Id": 1417, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 1, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue" + "Command": "Set-PnPMinimalDownloadStrategy -On", + "CommandName": "Set-PnPMinimalDownloadStrategy" }, { + "Rank": 1, "Id": 1418, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 2, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /" + "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"", + "CommandName": "Set-PnPPage" }, { + "Rank": 2, "Id": 1419, - "CommandName": "Set-PnPPropertyBagValue", - "Rank": 3, - "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder" + "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled", + "CommandName": "Set-PnPPage" }, { + "Rank": 3, "Id": 1420, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 1, - "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com" + "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false", + "CommandName": "Set-PnPPage" }, { + "Rank": 4, "Id": 1421, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 2, - "Command": "Set-PnPRequestAccessEmails -Disabled" + "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default", + "CommandName": "Set-PnPPage" }, { + "Rank": 5, "Id": 1422, - "CommandName": "Set-PnPRequestAccessEmails", - "Rank": 3, - "Command": "Set-PnPRequestAccessEmails -Disabled:$false" + "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None", + "CommandName": "Set-PnPPage" }, { + "Rank": 6, "Id": 1423, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 1, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems" + "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0", + "CommandName": "Set-PnPPage" }, { + "Rank": 7, "Id": 1424, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 2, - "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems" + "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)", + "CommandName": "Set-PnPPage" }, { + "Rank": 8, "Id": 1425, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 3, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"" + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate", + "CommandName": "Set-PnPPage" }, { + "Rank": 9, "Id": 1426, - "CommandName": "Set-PnPRoleDefinition", - "Rank": 4, - "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500" + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043", + "CommandName": "Set-PnPPage" }, { + "Rank": 10, "Id": 1427, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 1, - "Command": "Set-PnPSearchConfiguration -Configuration $config" + "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035", + "CommandName": "Set-PnPPage" }, { + "Rank": 11, "Id": 1428, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 2, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site" + "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish", + "CommandName": "Set-PnPPage" }, { + "Rank": 1, "Id": 1429, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 3, - "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription" + "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"", + "CommandName": "Set-PnPPageTextPart" }, { + "Rank": 1, "Id": 1430, - "CommandName": "Set-PnPSearchConfiguration", - "Rank": 4, - "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" + "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"", + "CommandName": "Set-PnPPageWebPart" }, { + "Rank": 2, "Id": 1431, - "CommandName": "Set-PnPSearchExternalItem", - "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" + "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties", + "CommandName": "Set-PnPPageWebPart" }, { + "Rank": 1, "Id": 1432, - "CommandName": "Set-PnPSearchExternalItem", - "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\"" + "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"", + "CommandName": "Set-PnPPlannerBucket" }, { - "Id": 1433, - "CommandName": "Set-PnPSearchSettings", "Rank": 1, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site" + "Id": 1433, + "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true", + "CommandName": "Set-PnPPlannerConfiguration" }, { - "Id": 1434, - "CommandName": "Set-PnPSearchSettings", "Rank": 2, - "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web" + "Id": 1434, + "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false", + "CommandName": "Set-PnPPlannerConfiguration" }, { + "Rank": 1, "Id": 1435, - "CommandName": "Set-PnPSearchSettings", - "Rank": 3, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"" + "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"", + "CommandName": "Set-PnPPlannerPlan" }, { + "Rank": 1, "Id": 1436, - "CommandName": "Set-PnPSearchSettings", - "Rank": 4, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"" + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01", + "CommandName": "Set-PnPPlannerTask" }, { + "Rank": 2, "Id": 1437, - "CommandName": "Set-PnPSearchSettings", - "Rank": 5, - "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site" + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"", + "CommandName": "Set-PnPPlannerTask" }, { + "Rank": 3, "Id": 1438, - "CommandName": "Set-PnPSearchSettings", - "Rank": 6, - "Command": "Set-PnPSearchSettings -SearchScope Tenant" + "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"", + "CommandName": "Set-PnPPlannerTask" }, { + "Rank": 1, "Id": 1439, - "CommandName": "Set-PnPSearchSettings", - "Rank": 7, - "Command": "Set-PnPSearchSettings -SearchScope Hub" + "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"", + "CommandName": "Set-PnPPlannerUserPolicy" }, { - "Id": 1440, - "CommandName": "Set-PnPSite", "Rank": 1, - "Command": "Set-PnPSite -Classification \"HBI\"" + "Id": 1440, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue", + "CommandName": "Set-PnPPropertyBagValue" }, { - "Id": 1441, - "CommandName": "Set-PnPSite", "Rank": 2, - "Command": "Set-PnPSite -Classification $null" + "Id": 1441, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /", + "CommandName": "Set-PnPPropertyBagValue" }, { - "Id": 1442, - "CommandName": "Set-PnPSite", "Rank": 3, - "Command": "Set-PnPSite -DisableFlows" + "Id": 1442, + "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder", + "CommandName": "Set-PnPPropertyBagValue" }, { + "Rank": 1, "Id": 1443, - "CommandName": "Set-PnPSite", - "Rank": 4, - "Command": "Set-PnPSite -DisableFlows:$false" + "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com", + "CommandName": "Set-PnPRequestAccessEmails" }, { + "Rank": 2, "Id": 1444, - "CommandName": "Set-PnPSite", - "Rank": 5, - "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png" + "Command": "Set-PnPRequestAccessEmails -Disabled", + "CommandName": "Set-PnPRequestAccessEmails" }, { + "Rank": 3, "Id": 1445, - "CommandName": "Set-PnPSite", - "Rank": 6, - "Command": "Set-PnPSite -NoScriptSite $false" + "Command": "Set-PnPRequestAccessEmails -Disabled:$false", + "CommandName": "Set-PnPRequestAccessEmails" }, { + "Rank": 1, "Id": 1446, - "CommandName": "Set-PnPSite", - "Rank": 7, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true" + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\"", + "CommandName": "Set-PnPRetentionLabel" }, { + "Rank": 2, "Id": 1447, - "CommandName": "Set-PnPSite", - "Rank": 8, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 10 -ExpireVersionsAfterDays 200" + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true", + "CommandName": "Set-PnPRetentionLabel" }, { + "Rank": 3, "Id": 1448, - "CommandName": "Set-PnPSite", - "Rank": 9, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MinorVersions 20 -ExpireVersionsAfterDays 0" + "Command": "Set-PnPRetentionLabel -List \"Demo List\" -ItemIds @(1,2,3) -Label \"My demo label\"", + "CommandName": "Set-PnPRetentionLabel" }, { + "Rank": 1, "Id": 1449, - "CommandName": "Set-PnPSite", - "Rank": 10, - "Command": "Set-PnPSite -InheritTenantVPForNewDocLibs" + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems", + "CommandName": "Set-PnPRoleDefinition" }, { + "Rank": 2, "Id": 1450, - "CommandName": "Set-PnPSite", - "Rank": 11, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForNewLibs" + "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems", + "CommandName": "Set-PnPRoleDefinition" }, { + "Rank": 3, "Id": 1451, - "CommandName": "Set-PnPSite", - "Rank": 12, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyForNewLibs" + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"", + "CommandName": "Set-PnPRoleDefinition" }, { + "Rank": 4, "Id": 1452, - "CommandName": "Set-PnPSite", - "Rank": 13, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyForNewLibs" + "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500", + "CommandName": "Set-PnPRoleDefinition" }, { + "Rank": 1, "Id": 1453, - "CommandName": "Set-PnPSite", - "Rank": 14, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForExistingLibs" + "Command": "Set-PnPSearchConfiguration -Configuration $config", + "CommandName": "Set-PnPSearchConfiguration" }, { + "Rank": 2, "Id": 1454, - "CommandName": "Set-PnPSite", - "Rank": 15, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyForExistingLibs" + "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site", + "CommandName": "Set-PnPSearchConfiguration" }, { + "Rank": 3, "Id": 1455, - "CommandName": "Set-PnPSite", - "Rank": 16, - "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyForExistingLibs" + "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription", + "CommandName": "Set-PnPSearchConfiguration" }, { + "Rank": 4, "Id": 1456, - "CommandName": "Set-PnPSite", - "Rank": 17, - "Command": "Set-PnPSite -CancelVPForExistingLibs" + "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription", + "CommandName": "Set-PnPSearchConfiguration" }, { - "Id": 1457, - "CommandName": "Set-PnPSiteClassification", "Rank": 1, - "Command": "Set-PnPSiteClassification -Identity \"LBI\"" + "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": 2, "Id": 1458, - "CommandName": "Set-PnPSiteClosure", - "Rank": 1, - "Command": "Set-PnPSiteClosure -State Open" + "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": 1, "Id": 1459, - "CommandName": "Set-PnPSiteClosure", - "Rank": 2, - "Command": "Set-PnPSiteClosure -State Closed" + "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 2, "Id": 1460, - "CommandName": "Set-PnPSiteDesign", - "Rank": 1, - "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"" + "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 3, "Id": 1461, - "CommandName": "Set-PnPSiteDesign", - "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\"" + "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 4, "Id": 1462, - "CommandName": "Set-PnPSiteGroup", - "Rank": 1, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"" + "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 5, "Id": 1463, - "CommandName": "Set-PnPSiteGroup", - "Rank": 2, - "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com" + "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 6, "Id": 1464, - "CommandName": "Set-PnPSitePolicy", - "Rank": 1, - "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"" + "Command": "Set-PnPSearchSettings -SearchScope Tenant", + "CommandName": "Set-PnPSearchSettings" }, { + "Rank": 7, "Id": 1465, - "CommandName": "Set-PnPSiteScript", - "Rank": 1, - "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" + "Command": "Set-PnPSearchSettings -SearchScope Hub", + "CommandName": "Set-PnPSearchSettings" }, { - "Id": 1466, - "CommandName": "Set-PnPSiteScriptPackage", "Rank": 1, - "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" + "Id": 1466, + "Command": "Set-PnPSite -Classification \"HBI\"", + "CommandName": "Set-PnPSite" }, { + "Rank": 2, "Id": 1467, - "CommandName": "Set-PnPSiteSensitivityLabel", + "Command": "Set-PnPSite -Classification $null", + "CommandName": "Set-PnPSite" + }, + { + "Rank": 3, + "Id": 1468, + "Command": "Set-PnPSite -DisableFlows", + "CommandName": "Set-PnPSite" + }, + { + "Rank": 4, + "Id": 1469, + "Command": "Set-PnPSite -DisableFlows:$false", + "CommandName": "Set-PnPSite" + }, + { + "Rank": 5, + "Id": 1470, + "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png", + "CommandName": "Set-PnPSite" + }, + { + "Rank": 6, + "Id": 1471, + "Command": "Set-PnPSite -NoScriptSite $false", + "CommandName": "Set-PnPSite" + }, + { + "Rank": 1, + "Id": 1472, + "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Archived", + "CommandName": "Set-PnPSiteArchiveState" + }, + { + "Rank": 2, + "Id": 1473, + "Command": "Set-PnPSiteArchiveState https://contoso.sharepoint.com/sites/Marketing -ArchiveState Active", + "CommandName": "Set-PnPSiteArchiveState" + }, + { + "Rank": 1, + "Id": 1474, + "Command": "Set-PnPSiteClassification -Identity \"LBI\"", + "CommandName": "Set-PnPSiteClassification" + }, + { + "Rank": 1, + "Id": 1475, + "Command": "Set-PnPSiteClosure -State Open", + "CommandName": "Set-PnPSiteClosure" + }, + { + "Rank": 2, + "Id": 1476, + "Command": "Set-PnPSiteClosure -State Closed", + "CommandName": "Set-PnPSiteClosure" + }, + { + "Rank": 1, + "Id": 1477, + "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"", + "CommandName": "Set-PnPSiteDesign" + }, + { + "Rank": 2, + "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": 1, + "Id": 1479, + "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"", + "CommandName": "Set-PnPSiteGroup" + }, + { + "Rank": 2, + "Id": 1480, + "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com", + "CommandName": "Set-PnPSiteGroup" + }, + { + "Rank": 1, + "Id": 1481, + "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"", + "CommandName": "Set-PnPSitePolicy" + }, + { + "Rank": 1, + "Id": 1482, + "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"", + "CommandName": "Set-PnPSiteScript" + }, + { + "Rank": 1, + "Id": 1483, + "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"", + "CommandName": "Set-PnPSiteScriptPackage" + }, + { + "Rank": 1, + "Id": 1484, + "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"", + "CommandName": "Set-PnPSiteSensitivityLabel" + }, + { + "Rank": 2, + "Id": 1485, + "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7", + "CommandName": "Set-PnPSiteSensitivityLabel" + }, + { + "Rank": 1, + "Id": 1486, + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { + "Rank": 2, + "Id": 1487, + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { + "Rank": 3, + "Id": 1488, + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { + "Rank": 4, + "Id": 1489, + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { + "Rank": 5, + "Id": 1490, + "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { + "Rank": 6, + "Id": 1491, + "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}", + "CommandName": "Set-PnPSiteTemplateMetadata" + }, + { "Rank": 1, - "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"" + "Id": 1492, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true", + "CommandName": "Set-PnPSiteVersionPolicy" + }, + { + "Rank": 2, + "Id": 1493, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 10 -ExpireVersionsAfterDays 200", + "CommandName": "Set-PnPSiteVersionPolicy" + }, + { + "Rank": 3, + "Id": 1494, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MajorWithMinorVersions 20 -ExpireVersionsAfterDays 0", + "CommandName": "Set-PnPSiteVersionPolicy" + }, + { + "Rank": 4, + "Id": 1495, + "Command": "Set-PnPSiteVersionPolicy -InheritFromTenant", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1468, - "CommandName": "Set-PnPSiteSensitivityLabel", - "Rank": 2, - "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7" + "Rank": 5, + "Id": 1496, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1469, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 1, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"" + "Rank": 6, + "Id": 1497, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyToNewDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1470, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 2, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"" + "Rank": 7, + "Id": 1498, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1471, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 3, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" + "Rank": 8, + "Id": 1499, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1472, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 4, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" + "Rank": 9, + "Id": 1500, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyToExistingDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1473, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 5, - "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" + "Rank": 10, + "Id": 1501, + "Command": "Set-PnPSiteVersionPolicy -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MajorWithMinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1474, - "CommandName": "Set-PnPSiteTemplateMetadata", - "Rank": 6, - "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" + "Rank": 11, + "Id": 1502, + "Command": "Set-PnPSiteVersionPolicy -CancelForExistingDocumentLibraries", + "CommandName": "Set-PnPSiteVersionPolicy" }, { - "Id": 1475, - "CommandName": "Set-PnPStorageEntity", "Rank": 1, - "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" + "Id": 1503, + "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"", + "CommandName": "Set-PnPStorageEntity" }, { - "Id": 1476, - "CommandName": "Set-PnPStorageEntity", "Rank": 2, - "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" + "Id": 1504, + "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"", + "CommandName": "Set-PnPStorageEntity" }, { - "Id": 1477, - "CommandName": "Set-PnPStructuralNavigationCacheSiteState", "Rank": 1, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" + "Id": 1505, + "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", + "CommandName": "Set-PnPStructuralNavigationCacheSiteState" }, { - "Id": 1478, - "CommandName": "Set-PnPStructuralNavigationCacheSiteState", "Rank": 2, - "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" + "Id": 1506, + "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"", + "CommandName": "Set-PnPStructuralNavigationCacheSiteState" }, { - "Id": 1479, - "CommandName": "Set-PnPStructuralNavigationCacheWebState", "Rank": 1, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" + "Id": 1507, + "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", + "CommandName": "Set-PnPStructuralNavigationCacheWebState" }, { - "Id": 1480, - "CommandName": "Set-PnPStructuralNavigationCacheWebState", "Rank": 2, - "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" + "Id": 1508, + "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"", + "CommandName": "Set-PnPStructuralNavigationCacheWebState" }, { - "Id": 1481, - "CommandName": "Set-PnPSubscribeSharePointNewsDigest", "Rank": 1, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true" + "Id": 1509, + "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true", + "CommandName": "Set-PnPSubscribeSharePointNewsDigest" }, { - "Id": 1482, - "CommandName": "Set-PnPSubscribeSharePointNewsDigest", "Rank": 2, - "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false" + "Id": 1510, + "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false", + "CommandName": "Set-PnPSubscribeSharePointNewsDigest" }, { - "Id": 1483, - "CommandName": "Set-PnPTaxonomyFieldValue", "Rank": 1, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c" + "Id": 1511, + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c", + "CommandName": "Set-PnPTaxonomyFieldValue" }, { - "Id": 1484, - "CommandName": "Set-PnPTaxonomyFieldValue", "Rank": 2, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'" + "Id": 1512, + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'", + "CommandName": "Set-PnPTaxonomyFieldValue" }, { - "Id": 1485, - "CommandName": "Set-PnPTaxonomyFieldValue", "Rank": 3, - "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}" + "Id": 1513, + "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}", + "CommandName": "Set-PnPTaxonomyFieldValue" }, { - "Id": 1486, - "CommandName": "Set-PnPTeamifyPromptHidden", "Rank": 1, - "Command": "Set-PnPTeamifyPromptHidden" + "Id": 1514, + "Command": "Set-PnPTeamifyPromptHidden", + "CommandName": "Set-PnPTeamifyPromptHidden" }, { - "Id": 1487, - "CommandName": "Set-PnPTeamsChannel", "Rank": 1, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"" + "Id": 1515, + "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"", + "CommandName": "Set-PnPTeamsChannel" }, { - "Id": 1488, - "CommandName": "Set-PnPTeamsChannel", "Rank": 2, - "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true" + "Id": 1516, + "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true", + "CommandName": "Set-PnPTeamsChannel" }, { - "Id": 1489, - "CommandName": "Set-PnpTeamsChannelUser", "Rank": 1, - "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner" + "Id": 1517, + "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner", + "CommandName": "Set-PnpTeamsChannelUser" }, { - "Id": 1490, - "CommandName": "Set-PnpTeamsChannelUser", "Rank": 2, - "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member" + "Id": 1518, + "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member", + "CommandName": "Set-PnpTeamsChannelUser" }, { - "Id": 1491, - "CommandName": "Set-PnPTeamsTab", "Rank": 1, - "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"" + "Id": 1519, + "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"", + "CommandName": "Set-PnPTeamsTab" }, { - "Id": 1492, - "CommandName": "Set-PnPTeamsTag", "Rank": 1, - "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"" + "Id": 1520, + "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"", + "CommandName": "Set-PnPTeamsTag" }, { - "Id": 1493, - "CommandName": "Set-PnPTeamsTeam", "Rank": 1, - "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'" + "Id": 1521, + "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'", + "CommandName": "Set-PnPTeamsTeam" }, { - "Id": 1494, - "CommandName": "Set-PnPTeamsTeam", "Rank": 2, - "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public" + "Id": 1522, + "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public", + "CommandName": "Set-PnPTeamsTeam" }, { - "Id": 1495, - "CommandName": "Set-PnPTeamsTeam", "Rank": 3, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false" + "Id": 1523, + "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false", + "CommandName": "Set-PnPTeamsTeam" }, { - "Id": 1496, - "CommandName": "Set-PnPTeamsTeam", "Rank": 4, - "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate" + "Id": 1524, + "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate", + "CommandName": "Set-PnPTeamsTeam" }, { - "Id": 1497, - "CommandName": "Set-PnPTeamsTeamArchivedState", "Rank": 1, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true" + "Id": 1525, + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true", + "CommandName": "Set-PnPTeamsTeamArchivedState" }, { - "Id": 1498, - "CommandName": "Set-PnPTeamsTeamArchivedState", "Rank": 2, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false" + "Id": 1526, + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false", + "CommandName": "Set-PnPTeamsTeamArchivedState" }, { - "Id": 1499, - "CommandName": "Set-PnPTeamsTeamArchivedState", "Rank": 3, - "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true" + "Id": 1527, + "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true", + "CommandName": "Set-PnPTeamsTeamArchivedState" }, { - "Id": 1500, - "CommandName": "Set-PnPTeamsTeamPicture", "Rank": 1, - "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"" + "Id": 1528, + "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"", + "CommandName": "Set-PnPTeamsTeamPicture" }, { - "Id": 1501, - "CommandName": "Set-PnPTemporarilyDisableAppBar", "Rank": 1, - "Command": "Set-PnPTemporarilyDisableAppBar $true" + "Id": 1529, + "Command": "Set-PnPTemporarilyDisableAppBar $true", + "CommandName": "Set-PnPTemporarilyDisableAppBar" }, { - "Id": 1502, - "CommandName": "Set-PnPTemporarilyDisableAppBar", "Rank": 2, - "Command": "Set-PnPTemporarilyDisableAppBar $false" + "Id": 1530, + "Command": "Set-PnPTemporarilyDisableAppBar $false", + "CommandName": "Set-PnPTemporarilyDisableAppBar" }, { - "Id": 1503, - "CommandName": "Set-PnPTenant", "Rank": 1, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/team1\" -LockState NoAccess\r ; Set-PnPTenant -NoAccessRedirectUrl \"http://www.contoso.com\"" + "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" }, { - "Id": 1504, - "CommandName": "Set-PnPTenant", "Rank": 2, - "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false" + "Id": 1532, + "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false", + "CommandName": "Set-PnPTenant" }, { - "Id": 1505, - "CommandName": "Set-PnPTenant", "Rank": 3, - "Command": "Set-PnPTenant -ShowAllUsersClaim $false" + "Id": 1533, + "Command": "Set-PnPTenant -ShowAllUsersClaim $false", + "CommandName": "Set-PnPTenant" }, { - "Id": 1506, - "CommandName": "Set-PnPTenant", "Rank": 4, - "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true" + "Id": 1534, + "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true", + "CommandName": "Set-PnPTenant" }, { - "Id": 1507, - "CommandName": "Set-PnPTenantAppCatalogUrl", "Rank": 1, - "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"" + "Id": 1535, + "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"", + "CommandName": "Set-PnPTenantAppCatalogUrl" }, { - "Id": 1508, - "CommandName": "Set-PnPTenantCdnEnabled", "Rank": 1, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true" + "Id": 1536, + "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true", + "CommandName": "Set-PnPTenantCdnEnabled" }, { - "Id": 1509, - "CommandName": "Set-PnPTenantCdnEnabled", "Rank": 2, - "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false" + "Id": 1537, + "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false", + "CommandName": "Set-PnPTenantCdnEnabled" }, { - "Id": 1510, - "CommandName": "Set-PnPTenantCdnEnabled", "Rank": 3, - "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins" + "Id": 1538, + "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins", + "CommandName": "Set-PnPTenantCdnEnabled" }, { - "Id": 1511, - "CommandName": "Set-PnPTenantCdnPolicy", "Rank": 1, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue \"CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF\"" + "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" }, { - "Id": 1512, - "CommandName": "Set-PnPTenantCdnPolicy", "Rank": 2, - "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"" + "Id": 1540, + "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"", + "CommandName": "Set-PnPTenantCdnPolicy" }, { - "Id": 1513, - "CommandName": "Set-PnPTenantSite", "Rank": 1, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled" + "Id": 1541, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled", + "CommandName": "Set-PnPTenantSite" }, { - "Id": 1514, - "CommandName": "Set-PnPTenantSite", "Rank": 2, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000" + "Id": 1542, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000", + "CommandName": "Set-PnPTenantSite" }, { - "Id": 1515, - "CommandName": "Set-PnPTenantSite", "Rank": 3, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"" + "Id": 1543, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"", + "CommandName": "Set-PnPTenantSite" }, { - "Id": 1516, - "CommandName": "Set-PnPTenantSite", "Rank": 4, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" + "Id": 1544, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")", + "CommandName": "Set-PnPTenantSite" }, { - "Id": 1517, - "CommandName": "Set-PnPTenantSite", "Rank": 5, - "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false" + "Id": 1545, + "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false", + "CommandName": "Set-PnPTenantSite" }, { - "Id": 1518, - "CommandName": "Set-PnPTenantSyncClientRestriction", "Rank": 1, - "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false" + "Id": 1546, + "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false", + "CommandName": "Set-PnPTenantSyncClientRestriction" }, { - "Id": 1519, - "CommandName": "Set-PnPTenantSyncClientRestriction", "Rank": 2, - "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"" + "Id": 1547, + "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"", + "CommandName": "Set-PnPTenantSyncClientRestriction" }, { - "Id": 1520, - "CommandName": "Set-PnPTerm", "Rank": 1, - "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"" + "Id": 1548, + "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"", + "CommandName": "Set-PnPTerm" }, { - "Id": 1521, - "CommandName": "Set-PnPTerm", "Rank": 2, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" + "Id": 1549, + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}", + "CommandName": "Set-PnPTerm" }, { - "Id": 1522, - "CommandName": "Set-PnPTerm", "Rank": 3, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}" + "Id": 1550, + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}", + "CommandName": "Set-PnPTerm" }, { - "Id": 1523, - "CommandName": "Set-PnPTerm", "Rank": 4, - "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true" + "Id": 1551, + "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true", + "CommandName": "Set-PnPTerm" }, { - "Id": 1524, - "CommandName": "Set-PnPTermGroup", "Rank": 1, - "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"" + "Id": 1552, + "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"", + "CommandName": "Set-PnPTermGroup" }, { - "Id": 1525, - "CommandName": "Set-PnPTermSet", "Rank": 1, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"" + "Id": 1553, + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"", + "CommandName": "Set-PnPTermSet" }, { - "Id": 1526, - "CommandName": "Set-PnPTermSet", "Rank": 2, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true" + "Id": 1554, + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true", + "CommandName": "Set-PnPTermSet" }, { - "Id": 1527, - "CommandName": "Set-PnPTermSet", "Rank": 3, - "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false" + "Id": 1555, + "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false", + "CommandName": "Set-PnPTermSet" }, { - "Id": 1528, - "CommandName": "Set-PnPTheme", "Rank": 1, - "Command": "Set-PnPTheme" + "Id": 1556, + "Command": "Set-PnPTheme", + "CommandName": "Set-PnPTheme" }, { - "Id": 1529, - "CommandName": "Set-PnPTheme", "Rank": 2, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor" + "Id": 1557, + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor", + "CommandName": "Set-PnPTheme" }, { - "Id": 1530, - "CommandName": "Set-PnPTheme", "Rank": 3, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'" + "Id": 1558, + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'", + "CommandName": "Set-PnPTheme" }, { - "Id": 1531, - "CommandName": "Set-PnPTheme", "Rank": 4, - "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit" + "Id": 1559, + "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit", + "CommandName": "Set-PnPTheme" }, { - "Id": 1532, - "CommandName": "Set-PnPTraceLog", "Rank": 1, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt" + "Id": 1560, + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt", + "CommandName": "Set-PnPTraceLog" }, { - "Id": 1533, - "CommandName": "Set-PnPTraceLog", "Rank": 2, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug" + "Id": 1561, + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug", + "CommandName": "Set-PnPTraceLog" }, { - "Id": 1534, - "CommandName": "Set-PnPTraceLog", "Rank": 3, - "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"" + "Id": 1562, + "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"", + "CommandName": "Set-PnPTraceLog" }, { - "Id": 1535, - "CommandName": "Set-PnPTraceLog", "Rank": 4, - "Command": "Set-PnPTraceLog -Off" + "Id": 1563, + "Command": "Set-PnPTraceLog -Off", + "CommandName": "Set-PnPTraceLog" }, { - "Id": 1536, - "CommandName": "Set-PnPUserOneDriveQuota", "Rank": 1, - "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208" + "Id": 1564, + "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208", + "CommandName": "Set-PnPUserOneDriveQuota" }, { - "Id": 1537, - "CommandName": "Set-PnPUserProfileProperty", "Rank": 1, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'SPS-Location' -Value 'Stockholm'" + "Id": 1565, + "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'SPS-Location' -Value 'Stockholm'", + "CommandName": "Set-PnPUserProfileProperty" }, { - "Id": 1538, - "CommandName": "Set-PnPUserProfileProperty", "Rank": 2, - "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'" + "Id": 1566, + "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'", + "CommandName": "Set-PnPUserProfileProperty" }, { - "Id": 1539, - "CommandName": "Set-PnPView", "Rank": 1, - "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}" + "Id": 1567, + "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}", + "CommandName": "Set-PnPView" }, { - "Id": 1540, - "CommandName": "Set-PnPView", "Rank": 2, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"" + "Id": 1568, + "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"", + "CommandName": "Set-PnPView" }, { - "Id": 1541, - "CommandName": "Set-PnPView", "Rank": 3, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"" + "Id": 1569, + "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"", + "CommandName": "Set-PnPView" }, { - "Id": 1542, - "CommandName": "Set-PnPView", "Rank": 4, - "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}" + "Id": 1570, + "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}", + "CommandName": "Set-PnPView" }, { - "Id": 1543, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", "Rank": 1, - "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" + "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" }, { - "Id": 1544, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", "Rank": 2, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"" + "Id": 1572, + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"", + "CommandName": "Set-PnPVivaConnectionsDashboardACE" }, { - "Id": 1545, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", "Rank": 3, - "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" + "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" }, { - "Id": 1546, - "CommandName": "Set-PnPVivaConnectionsDashboardACE", "Rank": 4, - "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large" + "Id": 1574, + "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large", + "CommandName": "Set-PnPVivaConnectionsDashboardACE" }, { - "Id": 1547, - "CommandName": "Set-PnPWeb", "Rank": 1, - "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true" + "Id": 1575, + "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true", + "CommandName": "Set-PnPWeb" }, { - "Id": 1548, - "CommandName": "Set-PnPWeb", "Rank": 2, - "Command": "Set-PnPWeb -QuickLaunchEnabled:$false" + "Id": 1576, + "Command": "Set-PnPWeb -QuickLaunchEnabled:$false", + "CommandName": "Set-PnPWeb" }, { - "Id": 1549, - "CommandName": "Set-PnPWeb", "Rank": 3, - "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact" + "Id": 1577, + "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact", + "CommandName": "Set-PnPWeb" }, { - "Id": 1550, - "CommandName": "Set-PnPWeb", "Rank": 4, - "Command": "Set-PnPWeb -NoCrawl:$true" + "Id": 1578, + "Command": "Set-PnPWeb -NoCrawl:$true", + "CommandName": "Set-PnPWeb" }, { - "Id": 1551, - "CommandName": "Set-PnPWebHeader", "Rank": 1, - "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended" + "Id": 1579, + "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended", + "CommandName": "Set-PnPWebHeader" }, { - "Id": 1552, - "CommandName": "Set-PnPWebHeader", "Rank": 2, - "Command": "Set-PnPWebHeader -HeaderEmphasis Strong" + "Id": 1580, + "Command": "Set-PnPWebHeader -HeaderEmphasis Strong", + "CommandName": "Set-PnPWebHeader" }, { - "Id": 1553, - "CommandName": "Set-PnPWebHeader", "Rank": 3, - "Command": "Set-PnPWebHeader -LogoAlignment Middle" + "Id": 1581, + "Command": "Set-PnPWebHeader -LogoAlignment Middle", + "CommandName": "Set-PnPWebHeader" }, { - "Id": 1554, - "CommandName": "Set-PnPWebhookSubscription", "Rank": 1, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook" + "Id": 1582, + "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook", + "CommandName": "Set-PnPWebhookSubscription" }, { - "Id": 1555, - "CommandName": "Set-PnPWebhookSubscription", "Rank": 2, - "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" + "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" }, { - "Id": 1556, - "CommandName": "Set-PnPWebPartProperty", "Rank": 1, - "Command": "Set-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\" -Value \"New Title\"" + "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" }, { - "Id": 1557, - "CommandName": "Set-PnPWebPermission", "Rank": 1, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"" + "Id": 1585, + "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"", + "CommandName": "Set-PnPWebPermission" }, { - "Id": 1558, - "CommandName": "Set-PnPWebPermission", "Rank": 2, - "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"" + "Id": 1586, + "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"", + "CommandName": "Set-PnPWebPermission" }, { - "Id": 1559, - "CommandName": "Set-PnPWebPermission", "Rank": 3, - "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"" + "Id": 1587, + "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"", + "CommandName": "Set-PnPWebPermission" }, { - "Id": 1560, - "CommandName": "Set-PnPWebPermission", "Rank": 4, - "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"" + "Id": 1588, + "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"", + "CommandName": "Set-PnPWebPermission" }, { - "Id": 1561, - "CommandName": "Set-PnPWebTheme", "Rank": 1, - "Command": "Set-PnPWebTheme -Theme MyTheme" + "Id": 1589, + "Command": "Set-PnPWebTheme -Theme MyTheme", + "CommandName": "Set-PnPWebTheme" }, { - "Id": 1562, - "CommandName": "Set-PnPWebTheme", "Rank": 2, - "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb" + "Id": 1590, + "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb", + "CommandName": "Set-PnPWebTheme" }, { - "Id": 1563, - "CommandName": "Set-PnPWikiPageContent", "Rank": 1, - "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html" + "Id": 1591, + "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html", + "CommandName": "Set-PnPWikiPageContent" }, { - "Id": 1564, - "CommandName": "Submit-PnPSearchQuery", "Rank": 1, - "Command": "Submit-PnPSearchQuery -Query \"finance\"" + "Id": 1592, + "Command": "Submit-PnPSearchQuery -Query \"finance\"", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1565, - "CommandName": "Submit-PnPSearchQuery", "Rank": 2, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10" + "Id": 1593, + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1566, - "CommandName": "Submit-PnPSearchQuery", "Rank": 3, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All" + "Id": 1594, + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1567, - "CommandName": "Submit-PnPSearchQuery", "Rank": 4, - "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"" + "Id": 1595, + "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1568, - "CommandName": "Submit-PnPSearchQuery", "Rank": 5, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All" + "Id": 1596, + "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1569, - "CommandName": "Submit-PnPSearchQuery", "Rank": 6, - "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All" + "Id": 1597, + "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All", + "CommandName": "Submit-PnPSearchQuery" }, { - "Id": 1570, - "CommandName": "Submit-PnPTeamsChannelMessage", "Rank": 1, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"" + "Id": 1598, + "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"", + "CommandName": "Submit-PnPTeamsChannelMessage" }, { - "Id": 1571, - "CommandName": "Submit-PnPTeamsChannelMessage", "Rank": 2, - "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html" + "Id": 1599, + "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html", + "CommandName": "Submit-PnPTeamsChannelMessage" }, { - "Id": 1572, - "CommandName": "Sync-PnPAppToTeams", "Rank": 1, - "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 1600, + "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Sync-PnPAppToTeams" }, { - "Id": 1573, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", "Rank": 1, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}" + "Id": 1601, + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}", + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" }, { - "Id": 1574, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", "Rank": 2, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"" + "Id": 1602, + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"", + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" }, { - "Id": 1575, - "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", "Rank": 3, - "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose" + "Id": 1603, + "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose", + "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory" }, { - "Id": 1576, - "CommandName": "Test-PnPListItemIsRecord", "Rank": 1, - "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4" + "Id": 1604, + "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4", + "CommandName": "Test-PnPListItemIsRecord" }, { - "Id": 1577, - "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed", "Rank": 1, - "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"" + "Id": 1605, + "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"", + "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed" }, { - "Id": 1578, - "CommandName": "Test-PnPSite", "Rank": 1, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" + "Id": 1606, + "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"", + "CommandName": "Test-PnPSite" }, { - "Id": 1579, - "CommandName": "Test-PnPSite", "Rank": 2, - "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" + "Id": 1607, + "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"", + "CommandName": "Test-PnPSite" }, { - "Id": 1580, - "CommandName": "Test-PnPTenantTemplate", "Rank": 1, - "Command": "Test-PnPTenantTemplate -Template $myTemplate" + "Id": 1608, + "Command": "Test-PnPTenantTemplate -Template $myTemplate", + "CommandName": "Test-PnPTenantTemplate" }, { - "Id": 1581, - "CommandName": "Undo-PnPFileCheckedOut", "Rank": 1, - "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"" + "Id": 1609, + "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"", + "CommandName": "Undo-PnPFileCheckedOut" }, { - "Id": 1582, - "CommandName": "Uninstall-PnPApp", "Rank": 1, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 1610, + "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Uninstall-PnPApp" }, { - "Id": 1583, - "CommandName": "Uninstall-PnPApp", "Rank": 2, - "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" + "Id": 1611, + "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", + "CommandName": "Uninstall-PnPApp" }, { - "Id": 1584, - "CommandName": "Unpublish-PnPApp", "Rank": 1, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 1612, + "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Unpublish-PnPApp" }, { - "Id": 1585, - "CommandName": "Unpublish-PnPApp", "Rank": 2, - "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" + "Id": 1613, + "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", + "CommandName": "Unpublish-PnPApp" }, { - "Id": 1586, - "CommandName": "Unpublish-PnPContentType", "Rank": 1, - "Command": "Unpublish-PnPContentType -ContentType 0x0101" + "Id": 1614, + "Command": "Unpublish-PnPContentType -ContentType 0x0101", + "CommandName": "Unpublish-PnPContentType" }, { - "Id": 1587, - "CommandName": "Unpublish-PnPSyntexModel", "Rank": 1, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" + "Id": 1615, + "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"", + "CommandName": "Unpublish-PnPSyntexModel" }, { - "Id": 1588, - "CommandName": "Unpublish-PnPSyntexModel", "Rank": 2, - "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch" + "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" }, { - "Id": 1589, - "CommandName": "Unregister-PnPHubSite", "Rank": 1, - "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" + "Id": 1617, + "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"", + "CommandName": "Unregister-PnPHubSite" }, { - "Id": 1590, - "CommandName": "Update-PnPApp", "Rank": 1, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" + "Id": 1618, + "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", + "CommandName": "Update-PnPApp" }, { - "Id": 1591, - "CommandName": "Update-PnPApp", "Rank": 2, - "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" + "Id": 1619, + "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site", + "CommandName": "Update-PnPApp" }, { - "Id": 1592, - "CommandName": "Update-PnPAvailableSiteClassification", "Rank": 1, - "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" + "Id": 1620, + "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"", + "CommandName": "Update-PnPAvailableSiteClassification" }, { - "Id": 1593, - "CommandName": "Update-PnPAvailableSiteClassification", "Rank": 2, - "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"" + "Id": 1621, + "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"", + "CommandName": "Update-PnPAvailableSiteClassification" }, { - "Id": 1594, - "CommandName": "Update-PnPAvailableSiteClassification", "Rank": 3, - "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp" + "Id": 1622, + "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp", + "CommandName": "Update-PnPAvailableSiteClassification" }, { - "Id": 1595, - "CommandName": "Update-PnPSiteDesignFromWeb", "Rank": 1, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll" + "Id": 1623, + "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll", + "CommandName": "Update-PnPSiteDesignFromWeb" }, { - "Id": 1596, - "CommandName": "Update-PnPSiteDesignFromWeb", "Rank": 2, - "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" + "Id": 1624, + "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)", + "CommandName": "Update-PnPSiteDesignFromWeb" }, { - "Id": 1597, - "CommandName": "Update-PnPSiteDesignFromWeb", "Rank": 3, - "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"" + "Id": 1625, + "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"", + "CommandName": "Update-PnPSiteDesignFromWeb" }, { - "Id": 1598, - "CommandName": "Update-PnPTeamsApp", "Rank": 1, - "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip" + "Id": 1626, + "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip", + "CommandName": "Update-PnPTeamsApp" }, { - "Id": 1599, - "CommandName": "Update-PnPTeamsUser", "Rank": 1, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" + "Id": 1627, + "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner", + "CommandName": "Update-PnPTeamsUser" }, { - "Id": 1600, - "CommandName": "Update-PnPTeamsUser", "Rank": 2, - "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" + "Id": 1628, + "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member", + "CommandName": "Update-PnPTeamsUser" }, { - "Id": 1601, - "CommandName": "Update-PnPTeamsUser", "Rank": 3, - "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force" + "Id": 1629, + "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force", + "CommandName": "Update-PnPTeamsUser" }, { - "Id": 1602, - "CommandName": "Update-PnPUserType", "Rank": 1, - "Command": "Update-PnPUserType -LoginName jdoe@contoso.com" + "Id": 1630, + "Command": "Update-PnPUserType -LoginName jdoe@contoso.com", + "CommandName": "Update-PnPUserType" } ] diff --git a/src/Commands/Admin/AddHubSiteAssociation.cs b/src/Commands/Admin/AddHubSiteAssociation.cs index 5858f0b11..16f5b9786 100644 --- a/src/Commands/Admin/AddHubSiteAssociation.cs +++ b/src/Commands/Admin/AddHubSiteAssociation.cs @@ -3,6 +3,8 @@ 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 { @@ -17,8 +19,34 @@ public class AddHubSiteAssociation : PnPAdminCmdlet protected override void ExecuteCmdlet() { - Tenant.ConnectSiteToHubSite(Site.Url, HubSite.Url); - AdminContext.ExecuteQueryRetry(); + try + { + Tenant.ConnectSiteToHubSite(Site.Url, HubSite.Url); + AdminContext.ExecuteQueryRetry(); + } + catch + { + try + { + using (var primaryHub = PnPContext.Clone(HubSite.Url)) + { + var primaryHubSite = primaryHub.Site.Get(p => p.HubSiteId, p => p.IsHubSite); + + using (var associateHubSite = PnPContext.Clone(Site.Url)) + { + var associateSite = associateHubSite.Site.Get(p => p.HubSiteId, p => p.IsHubSite); + if (associateSite.HubSiteId == Guid.Empty) + { + var resultJoin = associateSite.JoinHubSite(primaryHubSite.HubSiteId); + } + } + } + } + catch + { + throw; + } + } } } } diff --git a/src/Commands/Admin/GetContainer.cs b/src/Commands/Admin/GetContainer.cs index e6a79ef01..7128bdf9e 100644 --- a/src/Commands/Admin/GetContainer.cs +++ b/src/Commands/Admin/GetContainer.cs @@ -12,10 +12,10 @@ namespace PnP.PowerShell.Commands.Admin public class GetContainer : PnPAdminCmdlet { [Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true)] - public Guid OwningApplicationId; + public ContainerPipeBind Identity { get; set; } [Parameter(Mandatory = false)] - public ContainerPipeBind Identity { get; set; } + public Guid OwningApplicationId; [Parameter(Mandatory = false)] public SwitchParameter Paged { get; set; } diff --git a/src/Commands/Admin/GetContainerTypeConfiguration.cs b/src/Commands/Admin/GetContainerTypeConfiguration.cs new file mode 100644 index 000000000..8f10df1e3 --- /dev/null +++ b/src/Commands/Admin/GetContainerTypeConfiguration.cs @@ -0,0 +1,29 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Get, "PnPContainerTypeConfiguration")] + public class GetContainerTypeConfiguration : PnPAdminCmdlet + { + [Parameter(Mandatory = true)] + public Guid Identity; + + protected override void ExecuteCmdlet() + { + if (Identity == Guid.Empty) + { + throw new ArgumentException($"Identity {Identity} value is invalid"); + } + ClientResult sPOContainerTypeConfigurationByContainerTypeId = Tenant.GetSPOContainerTypeConfigurationByContainerTypeId(Identity); + AdminContext.ExecuteQueryRetry(); + if (sPOContainerTypeConfigurationByContainerTypeId != null && sPOContainerTypeConfigurationByContainerTypeId.Value != null) + { + WriteObject(new Model.SharePoint.SPContainerTypeConfigurationPropertiesObj(sPOContainerTypeConfigurationByContainerTypeId.Value)); + } + } + } +} diff --git a/src/Commands/Admin/GetDeletedContainer.cs b/src/Commands/Admin/GetDeletedContainer.cs new file mode 100644 index 000000000..012f09d7d --- /dev/null +++ b/src/Commands/Admin/GetDeletedContainer.cs @@ -0,0 +1,22 @@ +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, "PnPDeletedContainer")] + public class PnPDeletedContainer : PnPAdminCmdlet + { + protected override void ExecuteCmdlet() + { + IList deletedContainers = Tenant.GetSPODeletedContainers(); + AdminContext.ExecuteQueryRetry(); + WriteObject(deletedContainers, true); + } + } +} diff --git a/src/Commands/Admin/NewContainerType.cs b/src/Commands/Admin/NewContainerType.cs new file mode 100644 index 000000000..c4559e543 --- /dev/null +++ b/src/Commands/Admin/NewContainerType.cs @@ -0,0 +1,65 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.New, "PnPContainerType")] + public class NewContainerType : PnPAdminCmdlet,IDynamicParameters + { + private const string ParameterSet_Standard = "Standard"; + [Parameter(Mandatory = true)] + public string ContainerTypeName; + + [Parameter(Mandatory = true)] + public Guid OwningApplicationId; + + [Parameter(Mandatory = false)] + public SwitchParameter TrialContainerType; + private StandardContainerParameters _standardContainerParameters; + public object GetDynamicParameters() + { + if(!ParameterSpecified(nameof(TrialContainerType))) + { + _standardContainerParameters = new StandardContainerParameters(); + return _standardContainerParameters; + } + return null; + } + + protected override void ExecuteCmdlet() + { + SPContainerTypeProperties sPContainerTypeProperties = new SPContainerTypeProperties(); + sPContainerTypeProperties.DisplayName = ContainerTypeName; + sPContainerTypeProperties.OwningAppId = OwningApplicationId; + + sPContainerTypeProperties.SPContainerTypeBillingClassification = TrialContainerType ? SPContainerTypeBillingClassification.Trial : SPContainerTypeBillingClassification.Standard; + if(!ParameterSpecified(nameof(TrialContainerType))) + { + sPContainerTypeProperties.AzureSubscriptionId = _standardContainerParameters.AzureSubscriptionId; + sPContainerTypeProperties.ResourceGroup = _standardContainerParameters.ResourceGroup; + sPContainerTypeProperties.Region = _standardContainerParameters.Region; + } + ClientResult sPOContainerTypeId = Tenant.NewSPOContainerType(sPContainerTypeProperties); + AdminContext.ExecuteQueryRetry(); + if (sPOContainerTypeId != null && sPOContainerTypeId.Value != null) + { + WriteObject(new Model.SharePoint.SPContainerTypeObj(sPOContainerTypeId.Value)); + } + } + + public class StandardContainerParameters + { + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_Standard)] + public Guid AzureSubscriptionId; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_Standard)] + public string ResourceGroup; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_Standard)] + public string Region; + } + } +} \ No newline at end of file diff --git a/src/Commands/Admin/RemoveContainer.cs b/src/Commands/Admin/RemoveContainer.cs new file mode 100644 index 000000000..ebd8f35ea --- /dev/null +++ b/src/Commands/Admin/RemoveContainer.cs @@ -0,0 +1,22 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using System.Management.Automation; +using PnP.PowerShell.Commands.Base.PipeBinds; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Remove, "PnPContainer")] + public class RemoveContainer : PnPAdminCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + public ContainerPipeBind Identity { get; set; } + + protected override void ExecuteCmdlet() + { + var containerProperties = Identity.GetContainer(Tenant); + Tenant.RemoveSPOContainerByContainerId(containerProperties.ContainerId); + AdminContext.ExecuteQueryRetry(); + } + } +} \ No newline at end of file diff --git a/src/Commands/Admin/RemoveContainerType.cs b/src/Commands/Admin/RemoveContainerType.cs new file mode 100644 index 000000000..a85f9f7cf --- /dev/null +++ b/src/Commands/Admin/RemoveContainerType.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 System; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Remove, "PnPContainerType")] + public class RemoveContainerType : PnPAdminCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + public Guid Identity { get; set; } + + protected override void ExecuteCmdlet() + { + SPDeletedContainerTypeProperties sPDeletedContainerTypeProperties = new SPDeletedContainerTypeProperties(); + sPDeletedContainerTypeProperties.ContainerTypeId = Identity; + Tenant.RemoveSPOContainerType(sPDeletedContainerTypeProperties); + AdminContext.ExecuteQueryRetry(); + } + } +} \ No newline at end of file diff --git a/src/Commands/Admin/RestoreDeletedContainer.cs b/src/Commands/Admin/RestoreDeletedContainer.cs new file mode 100644 index 000000000..8ad6c40a4 --- /dev/null +++ b/src/Commands/Admin/RestoreDeletedContainer.cs @@ -0,0 +1,30 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using System; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsData.Restore, "PnPDeletedContainer")] + public class RestoreDeletedContainer : PnPAdminCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string Identity { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + if (Force || ShouldContinue($"Restore container {Identity}?", Properties.Resources.Confirm)) + { + WriteVerbose($"Restoring container {Identity}"); + Tenant.RestoreSPODeletedContainerByContainerId(Identity); + AdminContext.ExecuteQueryRetry(); + WriteVerbose($"Restored container {Identity}"); + } + } + } +} diff --git a/src/Commands/Admin/SetSiteArchiveState.cs b/src/Commands/Admin/SetSiteArchiveState.cs new file mode 100644 index 000000000..ae1fa25e9 --- /dev/null +++ b/src/Commands/Admin/SetSiteArchiveState.cs @@ -0,0 +1,94 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; +using System; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Admin +{ + [Cmdlet(VerbsCommon.Set, "PnPSiteArchiveState")] + public class SetSiteArchiveState : PnPAdminCmdlet + { + [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true)] + public SPOSitePipeBind Identity; + + [Parameter(Mandatory = true, Position = 1)] + public SPOArchiveState ArchiveState; + + [Parameter(Mandatory = false)] + public SwitchParameter NoWait; + + [Parameter(Mandatory = false)] + public SwitchParameter Force; + + protected override void ExecuteCmdlet() + { + SpoOperation spoOperation = null; + switch (ArchiveState) + { + case SPOArchiveState.Archived: + { + WriteObject("The site and its contents cannot be accessed when a site is archived. The site needs to be reactivated if it needs to be accessed. Archived sites can be reactivated instantaneously, without any additional charges within 7 days of the action. After 7 days, reactivations will be charged as per Microsoft 365 Archive Billing, and will take time."); + + if (Force || ShouldProcess(Identity.Url)) + { + spoOperation = Tenant.ArchiveSiteByUrl(Identity.Url); + AdminContext.Load(spoOperation); + AdminContext.ExecuteQueryRetry(); + } + + break; + } + case SPOArchiveState.Active: + { + SiteProperties sitePropertiesByUrl = Tenant.GetSitePropertiesByUrl(Identity.Url, includeDetail: false); + AdminContext.Load(sitePropertiesByUrl); + AdminContext.ExecuteQueryRetry(); + + switch (sitePropertiesByUrl.ArchiveStatus) + { + case "FullyArchived": + { + WriteWarning("Reactivating a site from \"Archived\" state is a paid operation. It can take upto 24hrs for the site to be reactivated. Performing the operation \"Reactivate Archived site\" on target."); + if (Force || ShouldProcess(Identity.Url)) + { + spoOperation = Tenant.UnarchiveSiteByUrl(Identity.Url); + AdminContext.Load(spoOperation); + AdminContext.ExecuteQueryRetry(); + WriteObject("Reactivation in progress. It may take upto 24hrs for reactivation to complete."); + } + break; + } + case "RecentlyArchived": + { + string resourceString = "Reactivating a site from \"Recently Archived\" state is free. Site will be available as an Active site soon."; + WriteObject(resourceString); + if (Force || ShouldProcess(Identity.Url)) + { + spoOperation = Tenant.UnarchiveSiteByUrl(Identity.Url); + AdminContext.Load(spoOperation); + AdminContext.ExecuteQueryRetry(); + } + break; + } + case "NotArchived": + WriteObject("The site is already in Active state and cannot be reactivated."); + return; + case "Reactivating": + WriteObject("The site is already reactivating and cannot be reactivated."); + return; + } + break; + } + default: + throw new InvalidOperationException("OperationAborted"); + } + if (!NoWait.ToBool()) + { + PollOperation(spoOperation); + } + } + } +} diff --git a/src/Commands/Admin/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index aa909b6b9..50ba158bd 100644 --- a/src/Commands/Admin/SetTenant.cs +++ b/src/Commands/Admin/SetTenant.cs @@ -8,6 +8,7 @@ using Microsoft.SharePoint.Client.Sharing; using Microsoft.SharePoint.Client.Administration; using System.Linq; +using InformationBarriersMode = PnP.PowerShell.Commands.Enums.InformationBarriersMode; namespace PnP.PowerShell.Commands.Admin { @@ -407,6 +408,15 @@ public class SetTenant : PnPAdminCmdlet [Parameter(Mandatory = false)] public bool? EnableSensitivityLabelForPDF { get; set; } + [Parameter(Mandatory = false)] + public bool? IsDataAccessInCardDesignerEnabled { get; set; } + + [Parameter(Mandatory = false)] + public bool? AppBypassInformationBarriers { get; set;} + + [Parameter(Mandatory = false)] + public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { get; set;} + protected override void ExecuteCmdlet() { AdminContext.Load(Tenant); @@ -1353,6 +1363,24 @@ protected override void ExecuteCmdlet() modified = true; } + if (IsDataAccessInCardDesignerEnabled.HasValue) + { + Tenant.IsDataAccessInCardDesignerEnabled = IsDataAccessInCardDesignerEnabled.Value; + modified = true; + } + + if (AppBypassInformationBarriers.HasValue) + { + Tenant.AppBypassInformationBarriers = AppBypassInformationBarriers.Value; + modified = true; + } + + if (DefaultOneDriveInformationBarrierMode.HasValue) + { + Tenant.DefaultODBMode = DefaultOneDriveInformationBarrierMode.Value.ToString(); + modified = true; + } + if (BlockDownloadFileTypePolicy.HasValue) { if (!BlockDownloadFileTypePolicy.Value) diff --git a/src/Commands/Apps/GrantAzureADAppSitePermission.cs b/src/Commands/Apps/GrantAzureADAppSitePermission.cs index f9bfe350a..2372a84e7 100644 --- a/src/Commands/Apps/GrantAzureADAppSitePermission.cs +++ b/src/Commands/Apps/GrantAzureADAppSitePermission.cs @@ -54,6 +54,10 @@ protected override void ExecuteCmdlet() return; } + // Adding a fix for multi-geo issue + // https://github.com/pnp/powershell/issues/2801 + var multiGeoFix = Utilities.REST.RestHelper.GetAsync(Connection.HttpClient, $"https://{Connection.GraphEndPoint}/v1.0/sites/{siteId}", AccessToken).GetAwaiter().GetResult(); + // Construct the payload of the Graph request var payload = new { diff --git a/src/Commands/AzureAD/RegisterAzureADApp.cs b/src/Commands/AzureAD/RegisterAzureADApp.cs index 8da6b45ae..612a609e3 100644 --- a/src/Commands/AzureAD/RegisterAzureADApp.cs +++ b/src/Commands/AzureAD/RegisterAzureADApp.cs @@ -527,7 +527,14 @@ private X509Certificate2 GetCertificate(PSObject record) private bool AppExists(string appName, HttpClient httpClient, string token) { Host.UI.Write(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, $"Checking if application '{appName}' does not exist yet..."); - var azureApps = RestHelper.GetAsync>(httpClient, $@"https://{PnP.Framework.AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}/v1.0/applications?$filter=displayName eq '{appName}'&$select=Id", token).GetAwaiter().GetResult(); + + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}"; + if (AzureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + + var azureApps = RestHelper.GetAsync>(httpClient, $"{graphEndpoint}/v1.0/applications?$filter=displayName eq '{appName}'&$select=Id", token).GetAwaiter().GetResult(); if (azureApps != null && azureApps.Items.Any()) { Host.UI.WriteLine(); @@ -571,7 +578,13 @@ private AzureADApp CreateApp(string loginEndPoint, HttpClient httpClient, string requiredResourceAccess = scopesPayload }; - var azureApp = RestHelper.PostAsync(httpClient, $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}/v1.0/applications", token, payload).GetAwaiter().GetResult(); + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}"; + if (AzureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + + var azureApp = RestHelper.PostAsync(httpClient, $"{graphEndpoint}/v1.0/applications", token, payload).GetAwaiter().GetResult(); if (azureApp != null) { Host.UI.WriteLine(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, $"App {azureApp.DisplayName} with id {azureApp.AppId} created."); @@ -583,7 +596,13 @@ private void StartConsentFlow(string loginEndPoint, AzureADApp azureApp, string { //Host.UI.WriteLine(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, $"Starting consent flow."); - var resource = scopes.FirstOrDefault(s => s.resourceAppId == PermissionScopes.ResourceAppId_Graph) != null ? $"https://{AzureAuthHelper.GetGraphEndPoint(AzureEnvironment)}/.default" : "https://microsoft.sharepoint-df.com/.default"; + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}"; + if (AzureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + + var resource = scopes.FirstOrDefault(s => s.resourceAppId == PermissionScopes.ResourceAppId_Graph) != null ? $"{graphEndpoint}/.default" : "https://microsoft.sharepoint-df.com/.default"; var consentUrl = $"{loginEndPoint}/{Tenant}/v2.0/adminconsent?client_id={azureApp.AppId}&scope={resource}&redirect_uri={redirectUri}"; @@ -658,7 +677,13 @@ private void SetLogo(AzureADApp azureApp, string token) { WriteVerbose("Setting the logo for the Azure AD app"); - var endpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}/v1.0/applications/{azureApp.Id}/logo"; + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}"; + if (AzureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + + var endpoint = $"{graphEndpoint}/v1.0/applications/{azureApp.Id}/logo"; var bytes = File.ReadAllBytes(LogoFilePath); diff --git a/src/Commands/AzureAD/RegisterManagementShellAccess.cs b/src/Commands/AzureAD/RegisterManagementShellAccess.cs index 2886fe43f..92fe61ecc 100644 --- a/src/Commands/AzureAD/RegisterManagementShellAccess.cs +++ b/src/Commands/AzureAD/RegisterManagementShellAccess.cs @@ -1,6 +1,7 @@ using PnP.Framework; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Utilities; +using System; using System.Collections.Generic; using System.Management.Automation; using System.Net.Http; @@ -50,6 +51,12 @@ protected override void ProcessRecord() WriteWarning("Please specify the Tenant name for non-commercial clouds, otherwise this operation will fail."); } + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(AzureEnvironment)}"; + if (AzureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + Task.Factory.StartNew(() => { if (ParameterSetName == ParameterSet_REGISTER) @@ -64,7 +71,7 @@ protected override void ProcessRecord() { try { - authManager.GetAccessTokenAsync(new[] { $"https://{GetGraphEndPoint()}/.default" }, source.Token, Microsoft.Identity.Client.Prompt.Consent).GetAwaiter().GetResult(); + authManager.GetAccessTokenAsync(new[] { $"{graphEndpoint}/.default" }, source.Token, Microsoft.Identity.Client.Prompt.Consent).GetAwaiter().GetResult(); } catch (Microsoft.Identity.Client.MsalException) { @@ -91,7 +98,7 @@ protected override void ProcessRecord() var accessToken = string.Empty; try { - accessToken = authManager.GetAccessTokenAsync(new[] { $"https://{GetGraphEndPoint()}/.default" }, source.Token).GetAwaiter().GetResult(); + accessToken = authManager.GetAccessTokenAsync(new[] { $"{graphEndpoint}/.default" }, source.Token).GetAwaiter().GetResult(); } catch (Microsoft.Identity.Client.MsalException) { @@ -100,7 +107,7 @@ protected override void ProcessRecord() if (!string.IsNullOrEmpty(accessToken)) { var httpClient = Framework.Http.PnPHttpClient.Instance.GetHttpClient(); - using (var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"https://{GetGraphEndPoint()}/v1.0/organization")) + using (var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{graphEndpoint}/v1.0/organization")) { requestMessage.Version = new System.Version(2, 0); requestMessage.Headers.Add("Authorization", $"Bearer {accessToken}"); @@ -142,10 +149,5 @@ protected override void StopProcessing() { source.Cancel(); } - - private string GetGraphEndPoint() - { - return PnP.Framework.AuthenticationManager.GetGraphEndPoint(AzureEnvironment); - } } } diff --git a/src/Commands/Base/PipeBinds/PowerPlatformSolutionPipeBind.cs b/src/Commands/Base/PipeBinds/PowerPlatformSolutionPipeBind.cs new file mode 100644 index 000000000..385e697c2 --- /dev/null +++ b/src/Commands/Base/PipeBinds/PowerPlatformSolutionPipeBind.cs @@ -0,0 +1,26 @@ +namespace PnP.PowerShell.Commands.Base.PipeBinds +{ + public sealed class PowerPlatformSolutionPipeBind + { + private readonly string _name; + private readonly Model.PowerPlatform.Environment.Solution.PowerPlatformSolution _solution; + public PowerPlatformSolutionPipeBind(string input) + { + _name = input; + } + + public PowerPlatformSolutionPipeBind(Model.PowerPlatform.Environment.Solution.PowerPlatformSolution solution) + { + _solution = solution; + } + + public string GetName() + { + if (_solution != null) + { + return _solution.FriendlyName; + } + return _name; + } + } +} diff --git a/src/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs b/src/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs index 464691f06..e5944a526 100644 --- a/src/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs +++ b/src/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs @@ -49,21 +49,22 @@ public string GetId(PnPConnection connection, string accessToken, string groupId } } - public TeamChannel GetChannel(PnPConnection connection, string accessToken, string groupId) + public TeamChannel GetChannel(PnPConnection connection, string accessToken, string groupId, bool useBeta = false) { - var channels = TeamsUtility.GetChannelsAsync(accessToken, connection, groupId).GetAwaiter().GetResult(); - if(channels != null && channels.Any()) + if (!string.IsNullOrEmpty(_id)) { - if(!string.IsNullOrEmpty(_id)) - { - return channels.FirstOrDefault(c => c.Id.Equals(_id, StringComparison.OrdinalIgnoreCase)); - } else + var channel = TeamsUtility.GetChannelAsync(accessToken, connection, groupId, _id, useBeta).GetAwaiter().GetResult(); + return channel; + } + else + { + var channels = TeamsUtility.GetChannelsAsync(accessToken, connection, groupId, useBeta).GetAwaiter().GetResult(); + if (channels != null && channels.Any()) { return channels.FirstOrDefault(c => c.DisplayName.Equals(_displayName, StringComparison.OrdinalIgnoreCase)); } + return null; } - return null; } - } } diff --git a/src/Commands/Base/TokenHandling.cs b/src/Commands/Base/TokenHandling.cs index 4d85d5ad2..70c4f0cbc 100644 --- a/src/Commands/Base/TokenHandling.cs +++ b/src/Commands/Base/TokenHandling.cs @@ -88,6 +88,26 @@ internal static string GetAccessToken(Cmdlet cmdlet, string appOnlyDefaultScope, return null; } + internal static string GetAccessTokenforPowerPlatformSolutions(Cmdlet cmdlet, PnPConnection connection, string enviormentBaseUrl) + { + var contextSettings = connection.Context.GetContextSettings(); + var authManager = contextSettings.AuthenticationManager; + if (authManager != null) + { + if (contextSettings.Type == Framework.Utilities.Context.ClientContextType.SharePointACSAppOnly) + { + // When connected using ACS, we cannot get a token for another endpoint + throw new PSInvalidOperationException("Trying to get a token for a different endpoint while being connected through an ACS token is not possible. Please connect differently."); + } + string[] requiredScopes = new string[1] { enviormentBaseUrl + "/.default" }; + cmdlet.WriteVerbose($"Acquiring oAuth token for {(requiredScopes.Length != 1 ? requiredScopes.Length + " " : "")}permission scope{(requiredScopes.Length != 1 ? "s" : "")} {string.Join(",", requiredScopes)}"); + var accessToken = authManager.GetAccessTokenAsync(requiredScopes).GetAwaiter().GetResult(); + cmdlet.WriteVerbose($"Access token acquired for PowerPlatformSolutions: {accessToken}"); + return accessToken; + } + return null; + } + /// /// Returns an access token based on a Managed Identity. Only works within Azure components supporting managed identities such as Azure Functions and Azure Runbooks. /// diff --git a/src/Commands/Enums/SiteArchiveState.cs b/src/Commands/Enums/SiteArchiveState.cs new file mode 100644 index 000000000..5efca5455 --- /dev/null +++ b/src/Commands/Enums/SiteArchiveState.cs @@ -0,0 +1,8 @@ +namespace PnP.PowerShell.Commands.Enums +{ + public enum SPOArchiveState + { + Archived, + Active + } +} diff --git a/src/Commands/Enums/TeamChannelModerationSettingNewMessageRestriction.cs b/src/Commands/Enums/TeamChannelModerationSettingNewMessageRestriction.cs new file mode 100644 index 000000000..28c7edc39 --- /dev/null +++ b/src/Commands/Enums/TeamChannelModerationSettingNewMessageRestriction.cs @@ -0,0 +1,24 @@ +namespace PnP.PowerShell.Commands.Enums +{ + /// + /// All allowed options for Team Channel post new message restrictions within the moderation settings of a Microsoft Teams team + /// + /// Documentation: https://learn.microsoft.com/graph/api/resources/channelmoderationsettings#properties + public enum TeamChannelModerationSettingNewMessageRestriction + { + /// + /// Everyone can create new posts in the channel + /// + Everyone, + + /// + /// Everyone except guests can create new posts in the channel + /// + EveryoneExceptGuests, + + /// + /// Moderators can create new posts in the channel + /// + Moderators + } +} diff --git a/src/Commands/Enums/TeamChannelModerationSettingReplyRestriction.cs b/src/Commands/Enums/TeamChannelModerationSettingReplyRestriction.cs new file mode 100644 index 000000000..e93e043e6 --- /dev/null +++ b/src/Commands/Enums/TeamChannelModerationSettingReplyRestriction.cs @@ -0,0 +1,19 @@ +namespace PnP.PowerShell.Commands.Enums +{ + /// + /// All allowed options for Team Channel reply restrictions within the moderation settings of a Microsoft Teams team + /// + /// Documentation: https://learn.microsoft.com/graph/api/resources/channelmoderationsettings#properties + public enum TeamChannelModerationSettingReplyRestriction + { + /// + /// Everyone can reply in the channel + /// + Everyone, + + /// + /// Only authors and moderators can reply in the channel + /// + AuthorAndModerators + } +} diff --git a/src/Commands/Fields/RemoveField.cs b/src/Commands/Fields/RemoveField.cs index e95ece772..9c84a4c20 100644 --- a/src/Commands/Fields/RemoveField.cs +++ b/src/Commands/Fields/RemoveField.cs @@ -1,8 +1,11 @@ using System; +using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; - +using PnP.Core.Model.SharePoint; +using PnP.Core.QueryModel; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model; namespace PnP.PowerShell.Commands.Fields { @@ -19,7 +22,92 @@ public class RemoveField : PnPWebCmdlet [Parameter(Mandatory = false)] public SwitchParameter Force; + [Parameter(Mandatory = false)] + public PnPBatch Batch; + protected override void ExecuteCmdlet() + { + if (ParameterSpecified(nameof(Batch))) + { + RemoveFieldBatch(); + } + else + { + RemoveSingleField(); + } + } + + private void RemoveFieldBatch() + { + if (List != null) + { + var list = List.GetList(PnPContext); + list.EnsureProperties(l => l.Fields); + var fieldCollection = list.Fields.AsRequested(); + var f = Identity.Field; + IField pnpField = null; + + if (list != null) + { + if (f == null) + { + if (Identity.Id != Guid.Empty) + { + pnpField = fieldCollection.Where(fi => fi.Id == Identity.Id).FirstOrDefault(); + } + else if (!string.IsNullOrEmpty(Identity.Name)) + { + pnpField = fieldCollection.Where(fi => fi.InternalName == Identity.Name).FirstOrDefault(); + if (pnpField == null) + { + pnpField = fieldCollection.Where(fi => fi.Title == Identity.Name).FirstOrDefault(); + } + } + + if (pnpField != null) + { + if (Force || ShouldContinue(string.Format(Properties.Resources.DeleteField0, pnpField.InternalName), Properties.Resources.Confirm)) + { + pnpField.DeleteBatch(Batch.Batch); + } + } + } + } + } + else + { + var f = Identity.Field; + PnPContext.Web.EnsureProperties(w => w.Fields); + var fieldCollection = PnPContext.Web.Fields.AsRequested(); + IField pnpField = null; + if (f == null) + { + if (Identity.Id != Guid.Empty) + { + pnpField = fieldCollection.Where(fi => fi.Id == Identity.Id).FirstOrDefault(); + } + else if (!string.IsNullOrEmpty(Identity.Name)) + { + pnpField = fieldCollection.Where(fi => fi.InternalName == Identity.Name).FirstOrDefault(); + + if (pnpField == null) + { + pnpField = fieldCollection.Where(fi => fi.Title == Identity.Name).FirstOrDefault(); + } + } + + if (pnpField != null) + { + if (Force || ShouldContinue(string.Format(Properties.Resources.DeleteField0, pnpField.InternalName), Properties.Resources.Confirm)) + { + pnpField.DeleteBatch(Batch.Batch); + } + } + } + } + } + + private void RemoveSingleField() { if (List != null) { @@ -50,7 +138,7 @@ protected override void ExecuteCmdlet() } } } - } + } else { var f = Identity.Field; @@ -80,5 +168,4 @@ protected override void ExecuteCmdlet() } } } - } diff --git a/src/Commands/Files/ConvertFile.cs b/src/Commands/Files/ConvertFile.cs new file mode 100644 index 000000000..f5784db80 --- /dev/null +++ b/src/Commands/Files/ConvertFile.cs @@ -0,0 +1,152 @@ +using Microsoft.SharePoint.Client; +using PnP.Core.Model.SharePoint; +using PnP.Framework.Utilities; +using PnP.PowerShell.Commands.Base.PipeBinds; +using System.IO; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsData.Convert, "PnPFile")] + public class ConvertFile : PnPWebCmdlet + { + private const string URLTOPATH = "Save to local path"; + private const string URLASMEMORYSTREAM = "Return as memorystream"; + private const string UPLOADTOSHAREPOINT = "Upload to SharePoint"; + + [Parameter(Mandatory = true, ParameterSetName = URLTOPATH, Position = 0, ValueFromPipeline = true)] + [Parameter(Mandatory = true, ParameterSetName = URLASMEMORYSTREAM, Position = 0, ValueFromPipeline = true)] + [Parameter(Mandatory = true, ParameterSetName = UPLOADTOSHAREPOINT, Position = 0, ValueFromPipeline = true)] + [Alias("ServerRelativeUrl", "SiteRelativeUrl")] + public string Url; + + [Parameter(Mandatory = false, ParameterSetName = URLTOPATH)] + [Parameter(Mandatory = false, ParameterSetName = URLASMEMORYSTREAM)] + [Parameter(Mandatory = false, ParameterSetName = UPLOADTOSHAREPOINT)] + public ConvertToFormat ConvertToFormat = ConvertToFormat.Pdf; + + [Parameter(Mandatory = true, ParameterSetName = URLTOPATH)] + public string Path = string.Empty; + + [Parameter(Mandatory = false, ParameterSetName = URLTOPATH)] + [Parameter(Mandatory = false, ParameterSetName = UPLOADTOSHAREPOINT)] + public SwitchParameter Force; + + [Parameter(Mandatory = true, ParameterSetName = UPLOADTOSHAREPOINT)] + [ValidateNotNullOrEmpty] + public FolderPipeBind Folder; + + [Parameter(Mandatory = false, ParameterSetName = URLASMEMORYSTREAM)] + public SwitchParameter AsMemoryStream; + + protected override void ExecuteCmdlet() + { + if (string.IsNullOrEmpty(Path)) + { + Path = SessionState.Path.CurrentFileSystemLocation.Path; + } + else if (!System.IO.Path.IsPathRooted(Path)) + { + Path = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Path); + } + + // 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 webUrl = CurrentWeb.EnsureProperty(w => w.ServerRelativeUrl); + var serverRelativeUrl = string.Empty; + if (!Url.ToLower().StartsWith(webUrl.ToLower())) + { + serverRelativeUrl = UrlUtility.Combine(webUrl, Url); + } + else + { + serverRelativeUrl = Url; + } + + IFile sourceFile = PnPContext.Web.GetFileByServerRelativeUrl(serverRelativeUrl, p => p.VroomDriveID, p => p.VroomItemID); + + WriteVerbose("Converting file to the specified format"); + var convertedFile = sourceFile.ConvertTo(new ConvertToOptions { Format = ConvertToFormat }); + + var fileName = System.IO.Path.GetFileNameWithoutExtension(sourceFile.Name); + var newFileName = fileName + "." + ConvertToFormat.ToString(); + + switch (ParameterSetName) + { + case URLTOPATH: + + var fileOut = System.IO.Path.Combine(Path, newFileName); + if (System.IO.File.Exists(fileOut) && !Force) + { + WriteWarning($"File '{sourceFile.Name}' exists already. Use the -Force parameter to overwrite the file."); + } + else + { + WriteVerbose("Saving file to the disc."); + using FileStream fs = new(fileOut, FileMode.Create); + convertedFile.CopyTo(fs); + } + + break; + + case URLASMEMORYSTREAM: + + var stream = new MemoryStream(); + convertedFile.CopyTo(stream); + WriteObject(stream); + break; + + case UPLOADTOSHAREPOINT: + + WriteVerbose("Uploading file to the specified folder"); + var folder = EnsureFolder(); + var uploadedFile = folder.UploadFile(newFileName, convertedFile, Force); + + try + { + ClientContext.Load(uploadedFile, f => f.Author, f => f.Length, f => f.ModifiedBy, f => f.Name, f => f.TimeCreated, f => f.TimeLastModified, f => f.Title); + ClientContext.ExecuteQueryRetry(); + } + catch (ServerException) + { + // Assume the cause of the exception is that a principal cannot be found and try again without: + // Fallback in case the creator or person having last modified the file no longer exists in the environment such that the file can still be downloaded + ClientContext.Load(uploadedFile, f => f.Length, f => f.Name, f => f.TimeCreated, f => f.TimeLastModified, f => f.Title); + ClientContext.ExecuteQueryRetry(); + } + + WriteObject(uploadedFile); + WriteVerbose("File uploaded."); + break; + + } + } + + /// + /// Ensures the folder to which the file is to be uploaded exists. Changed from using the EnsureFolder implementation in PnP Framework as that requires at least member rights to the entire site to work. + /// + /// The folder to which the file needs to be uploaded + private Folder EnsureFolder() + { + // First try to get the folder if it exists already. This avoids an Access Denied exception if the current user doesn't have Full Control access at Web level + CurrentWeb.EnsureProperty(w => w.ServerRelativeUrl); + + Folder folder = null; + try + { + folder = Folder.GetFolder(CurrentWeb); + folder.EnsureProperties(f => f.ServerRelativeUrl); + return folder; + } + // Exception will be thrown if the folder does not exist yet on SharePoint + catch (ServerException serverEx) when (serverEx.ServerErrorCode == -2147024894) + { + // Try to create the folder + folder = CurrentWeb.EnsureFolder(CurrentWeb.RootFolder, Folder.ServerRelativeUrl); + folder.EnsureProperties(f => f.ServerRelativeUrl); + return folder; + } + } + } +} diff --git a/src/Commands/Files/GetFileAnalyticsData.cs b/src/Commands/Files/GetFileAnalyticsData.cs new file mode 100644 index 000000000..5366d04e5 --- /dev/null +++ b/src/Commands/Files/GetFileAnalyticsData.cs @@ -0,0 +1,112 @@ +using Microsoft.SharePoint.Client; +using PnP.Core.Model.SharePoint; +using PnP.Framework.Utilities; +using System; +using System.Collections.Generic; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Files +{ + [Cmdlet(VerbsCommon.Get, "PnPFileAnalyticsData", DefaultParameterSetName = ParameterSetName_ALL)] + [OutputType(typeof(List))] + public class GetFileAnalyticsData : PnPWebCmdlet + { + private const string ParameterSetName_ANALYTICS_BY_DATE_RANGE = "Analytics by date range"; + private const string ParameterSetName_ALL = "All analytics data"; + private const string ParameterSetName_LAST_SEVEN_DAYS = "Analytics by specific intervals"; + + [Parameter(Mandatory = true, ParameterSetName = ParameterSetName_ALL, Position = 0, ValueFromPipeline = true)] + [Parameter(Mandatory = true, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE, Position = 0, ValueFromPipeline = true)] + [Parameter(Mandatory = true, ParameterSetName = ParameterSetName_LAST_SEVEN_DAYS, Position = 0, ValueFromPipeline = true)] + [Alias("ServerRelativeUrl", "SiteRelativeUrl")] + public string Url; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ALL)] + public SwitchParameter All; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_LAST_SEVEN_DAYS)] + public SwitchParameter LastSevenDays; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public DateTime StartDate; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public DateTime EndDate; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public AnalyticsAggregationInterval AnalyticsAggregationInterval = AnalyticsAggregationInterval.Day; + + protected override void ExecuteCmdlet() + { + var serverRelativeUrl = string.Empty; + + // 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 webUrl = CurrentWeb.EnsureProperty(w => w.ServerRelativeUrl); + + if (!Url.ToLower().StartsWith(webUrl.ToLower())) + { + serverRelativeUrl = UrlUtility.Combine(webUrl, Url); + } + else + { + serverRelativeUrl = Url; + } + + IFile analyticsFile = PnPContext.Web.GetFileByServerRelativeUrl(serverRelativeUrl, p => p.VroomItemID, p => p.VroomDriveID); + + switch (ParameterSetName) + { + case ParameterSetName_ALL: + // Get analytics for all time + var analytics = analyticsFile.GetAnalytics(); + WriteObject(analytics, true); + break; + + case ParameterSetName_LAST_SEVEN_DAYS: + // Get analytics for last seven days + var analyticsLastSevenDays = analyticsFile.GetAnalytics(new AnalyticsOptions { Interval = AnalyticsInterval.LastSevenDays, CustomAggregationInterval = AnalyticsAggregationInterval.Week }); + WriteObject(analyticsLastSevenDays, true); + break; + + case ParameterSetName_ANALYTICS_BY_DATE_RANGE: + + if (EndDate == DateTime.MinValue) + { + EndDate = DateTime.UtcNow; + } + + if (StartDate == DateTime.MinValue) + { + StartDate = EndDate.AddDays(-90.0); + } + + if (EndDate < StartDate) + { + throw new PSArgumentException("Invalid Date Range"); + } + + if ((EndDate.Date - StartDate.Date).TotalDays > 90) + { + throw new PSArgumentException("The maximum allowed difference between start and end date is 90 days"); + } + + var analyticsCustomData = analyticsFile.GetAnalytics(new AnalyticsOptions + { + Interval = AnalyticsInterval.Custom, + CustomAggregationInterval = AnalyticsAggregationInterval, + CustomEndDate = EndDate, + CustomStartDate = StartDate, + }); + WriteObject(analyticsCustomData, true); + break; + default: + // Get analytics for all time + var allAnalytics = analyticsFile.GetAnalytics(); + WriteObject(allAnalytics, true); + break; + } + } + } +} diff --git a/src/Commands/InformationManagement/ResetLabel.cs b/src/Commands/InformationManagement/ResetLabel.cs deleted file mode 100644 index e8d180501..000000000 --- a/src/Commands/InformationManagement/ResetLabel.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Management.Automation; -using Microsoft.SharePoint.Client; - -using PnP.PowerShell.Commands.Base.PipeBinds; - -namespace PnP.PowerShell.Commands.InformationManagement -{ - [Cmdlet(VerbsCommon.Reset, "PnPLabel")] - public class ResetLabel : PnPSharePointCmdlet - { - [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] - public ListPipeBind List; - - [Parameter(Mandatory = false)] - public bool SyncToItems; - - protected override void ExecuteCmdlet() - { - var list = List.GetList(PnPContext); - if (list != null) - { - list.SetComplianceTag(string.Empty, false, false, SyncToItems); - } - else - { - WriteWarning("List or library not found."); - } - } - } -} \ No newline at end of file diff --git a/src/Commands/InformationManagement/ResetRetentionLabel.cs b/src/Commands/InformationManagement/ResetRetentionLabel.cs new file mode 100644 index 000000000..59f15f02f --- /dev/null +++ b/src/Commands/InformationManagement/ResetRetentionLabel.cs @@ -0,0 +1,87 @@ +using System.Management.Automation; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base.PipeBinds; +using System; +using System.ComponentModel.DataAnnotations; +using System.Collections.Generic; + + +namespace PnP.PowerShell.Commands.InformationManagement +{ + [Cmdlet(VerbsCommon.Reset, "PnPRetentionLabel", DefaultParameterSetName = ParamSet_List)] + [Alias("Reset-PnPLabel")] + public class ResetRetentionLabel : PnPSharePointCmdlet + { + private const int MAXBATCHSIZE = 25; + + private const string ParamSet_List = "Reset on a list"; + private const string ParamSet_BulkItems = "Reset on items in bulk"; + + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, ParameterSetName = ParameterAttribute.AllParameterSets)] + public ListPipeBind List; + + [Parameter(Mandatory = true, ParameterSetName = ParamSet_BulkItems)] + public List ItemIds; + + [Parameter(Mandatory = false, ParameterSetName = ParamSet_BulkItems)] + [Range(0, MAXBATCHSIZE)] + public int BatchSize = MAXBATCHSIZE; + + [Parameter(Mandatory = false, ParameterSetName = ParamSet_List)] + public bool SyncToItems; + + protected override void ExecuteCmdlet() + { + if (ParameterSetName == ParamSet_BulkItems) + { + if (BatchSize > MAXBATCHSIZE) + { + BatchSize = MAXBATCHSIZE; + WriteVerbose($"Overriding batch size"); + } + + if (ItemIds == null) + { + WriteWarning("No items provided"); + return; + } + } + + var list = List.GetList(PnPContext); + if (list != null) + { + if (ParameterSetName == ParamSet_BulkItems) + { + PnPContext.Web.LoadAsync(i => i.Url); + list.LoadAsync(i => i.RootFolder); + + var rootUrl = PnPContext.Web.Url.GetLeftPart(UriPartial.Authority); + + var rangeIndex = 0; + + while(ItemIds.Count > 0) + { + rangeIndex++; + var itemsToProcess = (ItemIds.Count > BatchSize) ? BatchSize : ItemIds.Count; + + var range = ItemIds.GetRange(0, itemsToProcess); + + 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(); + + ItemIds.RemoveRange(0, itemsToProcess); + } + } + else + { + list.SetComplianceTag(string.Empty, false, false, SyncToItems); + } + } + else + { + WriteWarning("List or library not found."); + } + } + } +} \ No newline at end of file diff --git a/src/Commands/InformationManagement/SetLabel.cs b/src/Commands/InformationManagement/SetLabel.cs deleted file mode 100644 index f38efa1af..000000000 --- a/src/Commands/InformationManagement/SetLabel.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System.Management.Automation; -using Microsoft.SharePoint.Client; -using PnP.PowerShell.Commands.Base.PipeBinds; -using System.Linq; -using System; - -namespace PnP.PowerShell.Commands.InformationManagement -{ - [Cmdlet(VerbsCommon.Set, "PnPLabel")] - public class SetLabel : PnPSharePointCmdlet - { - [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] - public ListPipeBind List; - - [Parameter(Mandatory = true)] - public string Label; - - [Parameter(Mandatory = false)] - public bool SyncToItems; - - [Obsolete("Overriding Purview retention label settings has been deprecated in SharePoint Online. This parameter will be removed in the next major release.")] - [Parameter(Mandatory = false)] - public bool BlockDeletion; - - [Obsolete("Overriding Purview retention label settings has been deprecated in SharePoint Online. This parameter will be removed in the next major release.")] - [Parameter(Mandatory = false)] - public bool BlockEdit; - - protected override void ExecuteCmdlet() - { - var list = List.GetList(PnPContext); - var availableTags = PnPContext.Site.GetAvailableComplianceTags(); - - if (list != null) - { - var availableTag = availableTags.FirstOrDefault(tag => tag.TagName.ToString() == Label); - if (availableTag != null) - { - list.SetComplianceTag(Label, availableTag.BlockDelete, availableTag.BlockEdit, SyncToItems); - } - else - { - WriteWarning("The provided label is not available in the site."); - } - } - else - { - WriteWarning("List or library not found."); - } - } - } -} \ No newline at end of file diff --git a/src/Commands/InformationManagement/SetRetentionLabel.cs b/src/Commands/InformationManagement/SetRetentionLabel.cs new file mode 100644 index 000000000..27584b4b1 --- /dev/null +++ b/src/Commands/InformationManagement/SetRetentionLabel.cs @@ -0,0 +1,110 @@ +using System.Management.Automation; +using Microsoft.SharePoint.Client; +using PnP.PowerShell.Commands.Base.PipeBinds; +using System.Linq; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; + + +namespace PnP.PowerShell.Commands.InformationManagement +{ + [Cmdlet(VerbsCommon.Set, "PnPRetentionLabel", DefaultParameterSetName = ParamSet_List)] + [Alias("Set-PnPLabel")] + public class SetRetentionLabel : PnPSharePointCmdlet + { + private const string ParamSet_List = "Set on a list"; + private const string ParamSet_BulkItems = "Set on items in bulk"; + + private const int MAXBATCHSIZE = 25; + + [Parameter(Mandatory = false, ParameterSetName = ParamSet_BulkItems)] + [Range(0, MAXBATCHSIZE)] + public int BatchSize = MAXBATCHSIZE; + + [Parameter(Mandatory = true, ParameterSetName = ParamSet_BulkItems)] + public List ItemIds; + + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, ParameterSetName = ParameterAttribute.AllParameterSets)] + public ListPipeBind List; + + [Parameter(Mandatory = true, ParameterSetName = ParameterAttribute.AllParameterSets)] + public string Label; + + [Parameter(Mandatory = false, ParameterSetName = ParamSet_List)] + public bool SyncToItems; + + [Obsolete("Overriding Purview retention label settings has been deprecated in SharePoint Online. This parameter will be removed in the next major release.")] + [Parameter(Mandatory = false, ParameterSetName = ParamSet_List)] + public bool BlockDeletion; + + [Obsolete("Overriding Purview retention label settings has been deprecated in SharePoint Online. This parameter will be removed in the next major release.")] + [Parameter(Mandatory = false, ParameterSetName = ParamSet_List)] + public bool BlockEdit; + + protected override void ExecuteCmdlet() + { + if (ParameterSetName == ParamSet_BulkItems) + { + if (BatchSize > MAXBATCHSIZE) + { + BatchSize = MAXBATCHSIZE; + WriteVerbose($"Overriding batch size"); + } + + if (ItemIds == null) + { + WriteWarning("No items provided"); + return; + } + } + + + var list = List.GetList(PnPContext); + var availableTags = PnPContext.Site.GetAvailableComplianceTags(); + + if (list != null) + { + var availableTag = availableTags.FirstOrDefault(tag => tag.TagName.ToString() == Label); + if (availableTag != null) + { + if (ParameterSetName == ParamSet_BulkItems) + { + PnPContext.Web.LoadAsync(i => i.Url); + list.LoadAsync(i => i.RootFolder); + + + var rootUrl = PnPContext.Web.Url.GetLeftPart(UriPartial.Authority); + + var rangeIndex = 0; + + while(ItemIds.Count > 0) + { + rangeIndex++; + var itemsToProcess = (ItemIds.Count > BatchSize) ? BatchSize : ItemIds.Count; + + var range = ItemIds.GetRange(0, itemsToProcess); + + WriteVerbose($"Setting retention label to batch {rangeIndex} of items"); + Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyStoreProxy.SetComplianceTagOnBulkItems(ClientContext, range, rootUrl + list.RootFolder.ServerRelativeUrl, Label); + ClientContext.ExecuteQuery(); + ItemIds.RemoveRange(0, itemsToProcess); + } + } + else + { + list.SetComplianceTag(Label, availableTag.BlockDelete, availableTag.BlockEdit, SyncToItems); + } + } + else + { + WriteWarning("The provided label is not available in the site."); + } + } + else + { + WriteWarning("List or library not found."); + } + } + } +} \ No newline at end of file diff --git a/src/Commands/ManagementApi/GetUnifiedAuditLog.cs b/src/Commands/ManagementApi/GetUnifiedAuditLog.cs index 20c07fa10..20ae5ee66 100644 --- a/src/Commands/ManagementApi/GetUnifiedAuditLog.cs +++ b/src/Commands/ManagementApi/GetUnifiedAuditLog.cs @@ -11,7 +11,7 @@ namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPUnifiedAuditLog")] - [RequiredMinimalApiPermissions("https://manage.office.com/ActivityFeed.Read")] + [RequiredMinimalApiPermissions("https://manage.office.com/ActivityFeed.Read","https://manage.office.com/ActivityFeed.ReadDlp","https://manage.office.com/ServiceHealth.Read","https://manage.office.com/ActivityReports.Read","https://manage.office.com/ThreatIntelligence.Read")] [OutputType(typeof(ManagementApiUnifiedLogRecord))] public class GetUnifiedAuditLog : PnPOfficeManagementApiCmdlet { diff --git a/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs b/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs index e056ca91a..fa328a13c 100644 --- a/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs +++ b/src/Commands/Microsoft365Groups/NewMicrosoft365Group.cs @@ -122,7 +122,7 @@ protected override void ExecuteCmdlet() throw new PSArgumentException("File specified for logo does not exist."); } } - var newGroup = new Microsoft365Group() + var newGroup = new Microsoft365Group { DisplayName = DisplayName, Description = Description, diff --git a/src/Commands/Model/PageLikedByInformation.cs b/src/Commands/Model/PageLikedByInformation.cs new file mode 100644 index 000000000..b9e522b30 --- /dev/null +++ b/src/Commands/Model/PageLikedByInformation.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 +{ + public class PageLikedByInformation + { + public string Name { get; set; } + public string Mail { get; set; } + public int Id { get; set; } + public string LoginName { get; set; } + public DateTime CreationDate { get; set; } + } +} diff --git a/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolution.cs b/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolution.cs new file mode 100644 index 000000000..a9082d81e --- /dev/null +++ b/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolution.cs @@ -0,0 +1,204 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Text.Json.Serialization; + +namespace PnP.PowerShell.Commands.Model.PowerPlatform.Environment.Solution +{ + public class PowerPlatformSolution + { + /// + /// Etag for the solution + /// + [JsonPropertyName("@odata.etag")] + public string ODataEtag { get; set; } + + /// + /// Date and time when the solution was installed + /// + [JsonPropertyName("installedon")] + public string InstalledOn { get; set; } + + /// + /// Version of the solution package + /// + [JsonPropertyName("solutionpackageversion")] + public string SolutionPackageVersion { get; set; } + + /// + /// Configuration page ID (null in this case) + /// + [JsonPropertyName("_configurationpageid_value")] + public string ConfigurationPageId { get; set; } + + /// + /// ID of the solution + /// + [JsonPropertyName("solutionid")] + public string SolutionId { get; set; } + + /// + /// Date and time when the solution was last modified + /// + [JsonPropertyName("modifiedon")] + public string ModifiedOn { get; set; } + + /// + /// Unique name of the solution + /// + [JsonPropertyName("uniquename")] + public string UniqueName { get; set; } + + /// + /// Indicates if the solution is managed by API + /// + [JsonPropertyName("isapimanaged")] + public bool IsApiManaged { get; set; } + + /// + /// Publisher ID (null in this case) + /// + [JsonPropertyName("_publisherid_value")] + public string PublisherIdValue { get; set; } + + /// + /// Indicates if the solution is managed + /// + [JsonPropertyName("ismanaged")] + public bool IsManaged { get; set; } + + /// + /// Indicates if the solution is visible + /// + [JsonPropertyName("isvisible")] + public bool IsVisible { get; set; } + + /// + /// Thumbprint (null in this case) + /// + [JsonPropertyName("thumbprint")] + public string Thumbprint { get; set; } + + /// + /// Pinpoint publisher ID (null in this case) + /// + [JsonPropertyName("pinpointpublisherid")] + public string PinpointPublisherId { get; set; } + + /// + /// Version of the solution + /// + [JsonPropertyName("version")] + public string Version { get; set; } + + /// + /// Modified on behalf by value (null in this case) + /// + [JsonPropertyName("_modifiedonbehalfby_value")] + public string ModifiedOnBehalfByValue { get; set; } + + /// + /// Parent solution ID value (null in this case) + /// + [JsonPropertyName("_parentsolutionid_value")] + public string ParentSolutionIdValue { get; set; } + + /// + /// Pinpoint asset ID (null in this case) + /// + [JsonPropertyName("pinpointassetid")] + public string PinpointAssetId { get; set; } + + /// + /// Pinpoint solution ID (null in this case) + /// + [JsonPropertyName("pinpointsolutionid")] + public string PinpointSolutionId { get; set; } + + /// + /// Friendly name of the solution + /// + [JsonPropertyName("friendlyname")] + public string FriendlyName { get; set; } + + /// + /// Organization ID value + /// + [JsonPropertyName("_organizationid_value")] + public string OrganizationIdValue { get; set; } + + /// + /// Version number + /// + [JsonPropertyName("versionnumber")] + public int? VersionNumber { get; set; } + + /// + /// Template suffix (null in this case) + /// + [JsonPropertyName("templatesuffix")] + public string TemplateSuffix { get; set; } + + /// + /// Upgrade information (null in this case) + /// + [JsonPropertyName("upgradeinfo")] + public string UpgradeInfo { get; set; } + + /// + /// Created on behalf by value (null in this case) + /// + [JsonPropertyName("_createdonbehalfby_value")] + public string CreatedOnBehalfByValue { get; set; } + + /// + /// Modified by value + /// + [JsonPropertyName("_modifiedby_value")] + public string ModifiedByValue { get; set; } + + /// + /// Date and time when the solution was created + /// + [JsonPropertyName("createdon")] + public string CreatedOn { get; set; } + + /// + /// Date and time when the solution was last updated (null in this case) + /// + [JsonPropertyName("updatedon")] + public string UpdatedOn { get; set; } + + /// + /// Description of the solution (null in this case) + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Solution type (null in this case) + /// + [JsonPropertyName("solutiontype")] + public int? SolutionType { get; set; } + + /// + /// Pinpoint solution default locale (null in this case) + /// + [JsonPropertyName("pinpointsolutiondefaultlocale")] + public string PinpointSolutionDefaultLocale { get; set; } + + /// + /// Created by value + /// + [JsonPropertyName("_createdby_value")] + public string CreatedByValue { get; set; } + + /// + /// Publisher information + /// + [JsonPropertyName("publisherid")] + public PowerPlatformSolutionPublisher PublisherId { get; set; } + } +} diff --git a/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolutionPublisher.cs b/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolutionPublisher.cs new file mode 100644 index 000000000..85e247057 --- /dev/null +++ b/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolutionPublisher.cs @@ -0,0 +1,403 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Text.Json.Serialization; + +namespace PnP.PowerShell.Commands.Model.PowerPlatform.Environment.Solution +{ + public class PowerPlatformSolutionPublisher + { + /// + /// Etag for the publisher + /// + [JsonPropertyName("@odata.etag")] + public string ODataEtag { get; set; } + + /// + /// Address line 1 (null in this case) + /// + [JsonPropertyName("address2_line1")] + public string Address2Line1 { get; set; } + + /// + /// Pinpoint? publisher default locale (null in this case) + /// + [JsonPropertyName("pinpoint?publisherdefaultlocale")] + public string PinpointPublisherDefaultLocale { get; set; } + + /// + /// County (null in this case) + /// + [JsonPropertyName("address1_county")] + public string Address1County { get; set; } + + /// + /// Address 2 UTC offset (null in this case) + /// + [JsonPropertyName("address2_utcoffset")] + public string Address2UtcOffset { get; set; } + + /// + /// Fax number (null in this case) + /// + [JsonPropertyName("address2_fax")] + public string Address2Fax { get; set; } + + /// + /// Date and time when modified + /// + [JsonPropertyName("modifiedon")] + public string ModifiedOn { get; set; } + + /// + /// Entity image URL (null in this case) + /// + [JsonPropertyName("entityimage_url")] + public string EntityImageUrl { get; set; } + + /// + /// Name (null in this case) + /// + [JsonPropertyName("address1_name")] + public string Address1Name { get; set; } + + /// + /// Address line 1 (null in this case) + /// + [JsonPropertyName("address1_line1")] + public string Address1Line1 { get; set; } + + /// + /// Unique name + /// + [JsonPropertyName("uniquename")] + public string UniqueName { get; set; } + + /// + /// Postal code (null in this case) + /// + [JsonPropertyName("address1_postalcode")] + public string Address1PostalCode { get; set; } + + /// + /// Address 2 line 3 (null in this case) + /// + [JsonPropertyName("address2_line3")] + public string Address2Line3 { get; set; } + + /// + /// Address 1 address ID + /// + [JsonPropertyName("address1_addressid")] + public string Address1AddressId { get; set; } + + /// + /// Publisher ID + /// + [JsonPropertyName("publisherid")] + public string PublisherId { get; set; } + + /// + /// Address 1 line 3 (null in this case) + /// + [JsonPropertyName("address1_line3")] + public string Address1Line3 { get; set; } + + /// + /// Address 2 name (null in this case) + /// + [JsonPropertyName("address2_name")] + public string Address2Name { get; set; } + + /// + /// Address 2 city (null in this case) + /// + [JsonPropertyName("address2_city")] + public string Address2City { get; set; } + + /// + /// Address 1 UTC offset (null in this case) + /// + [JsonPropertyName("address1_utcoffset")] + public string Address1UtcOffset { get; set; } + + /// + /// Pinpoint? publisher ID (null in this case) + /// + [JsonPropertyName("pinpoint?publisherid")] + public string PinpointPublisherId { get; set; } + + /// + /// Address 2 county (null in this case) + /// + [JsonPropertyName("address2_county")] + public string Address2County { get; set; } + + /// + /// Email address + /// + [JsonPropertyName("emailaddress")] + public string EmailAddress { get; set; } + + /// + /// Address 2 post office box (null in this case) + /// + [JsonPropertyName("address2_postofficebox")] + public string Address2PostOfficeBox { get; set; } + + /// + /// State or province (null in this case) + /// + [JsonPropertyName("address1_stateorprovince")] + public string Address1StateOrProvince { get; set; } + + /// + /// Address 2 telephone 3 (null in this case) + /// + [JsonPropertyName("address2_telephone3")] + public string Address2Telephone3 { get; set; } + + /// + /// Address 2 telephone 2 (null in this case) + /// + [JsonPropertyName("address2_telephone2")] + public string Address2Telephone2 { get; set; } + + /// + /// Address 2 telephone 1 (null in this case) + /// + [JsonPropertyName("address2_telephone1")] + public string Address2Telephone1 { get; set; } + + /// + /// Address 2 shipping method code + /// + [JsonPropertyName("address2_shippingmethodcode")] + public int? Address2ShippingMethodCode { get; set; } + + /// + /// Modified on behalf by value (null in this case) + /// + [JsonPropertyName("_modifiedonbehalfby_value")] + public string ModifiedOnBehalfByValue { get; set; } + + /// + /// Indicates if it is read-only + /// + [JsonPropertyName("isreadonly")] + public bool IsReadOnly { get; set; } + + /// + /// Address 2 state or province (null in this case) + /// + [JsonPropertyName("address2_stateorprovince")] + public string Address2StateOrProvince { get; set; } + + /// + /// Entity image timestamp (null in this case) + /// + [JsonPropertyName("entityimage_timestamp")] + public string EntityImageTimestamp { get; set; } + + /// + /// Address 1 latitude (null in this case) + /// + [JsonPropertyName("address1_latitude")] + public string Address1Latitude { get; set; } + + /// + /// Customization option value prefix + /// + [JsonPropertyName("customizationoptionvalueprefix")] + public int? CustomizationOptionValuePrefix { get; set; } + + /// + /// Address 2 latitude (null in this case) + /// + [JsonPropertyName("address2_latitude")] + public string Address2Latitude { get; set; } + + /// + /// Address 1 longitude (null in this case) + /// + [JsonPropertyName("address1_longitude")] + public string Address1Longitude { get; set; } + + /// + /// Address 1 line 2 (null in this case) + /// + [JsonPropertyName("address1_line2")] + public string Address1Line2 { get; set; } + + /// + /// Friendly name + /// + [JsonPropertyName("friendlyname")] + public string FriendlyName { get; set; } + + /// + /// Supporting website URL + /// + [JsonPropertyName("supportingwebsiteurl")] + public string SupportingWebsiteUrl { get; set; } + + /// + /// Address 2 line 2 (null in this case) + /// + [JsonPropertyName("address2_line2")] + public string Address2Line2 { get; set; } + + /// + /// Address 2 postal code (null in this case) + /// + [JsonPropertyName("address2_postalcode")] + public string Address2PostalCode { get; set; } + + /// + /// Organization ID value + /// + [JsonPropertyName("_organizationid_value")] + public string OrganizationIdValue { get; set; } + + /// + /// Version number + /// + [JsonPropertyName("versionnumber")] + public int? VersionNumber { get; set; } + + /// + /// Address 2 UPS zone (null in this case) + /// + [JsonPropertyName("address2_upszone")] + public string Address2UpsZone { get; set; } + + /// + /// Address 2 longitude (null in this case) + /// + [JsonPropertyName("address2_longitude")] + public string Address2Longitude { get; set; } + + /// + /// Address 1 fax (null in this case) + /// + [JsonPropertyName("address1_fax")] + public string Address1Fax { get; set; } + + /// + /// Customization prefix + /// + [JsonPropertyName("customizationprefix")] + public string CustomizationPrefix { get; set; } + + /// + /// Created on behalf by value (null in this case) + /// + [JsonPropertyName("_createdonbehalfby_value")] + public string CreatedOnBehalfByValue { get; set; } + + /// + /// Modified by value + /// + [JsonPropertyName("_modifiedby_value")] + public string ModifiedByValue { get; set; } + + /// + /// Date and time when created + /// + [JsonPropertyName("createdon")] + public string CreatedOn { get; set; } + + /// + /// Address 2 country (null in this case) + /// + [JsonPropertyName("address2_country")] + public string Address2Country { get; set; } + + /// + /// Description (null in this case) + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Address 2 address ID + /// + [JsonPropertyName("address2_addressid")] + public string Address2AddressId { get; set; } + + /// + /// Address 1 shipping method code + /// + [JsonPropertyName("address1_shippingmethodcode")] + public int? Address1ShippingMethodCode { get; set; } + + /// + /// Address 1 post office box (null in this case) + /// + [JsonPropertyName("address1_postofficebox")] + public string Address1PostOfficeBox { get; set; } + + /// + /// Address 1 UPS zone (null in this case) + /// + [JsonPropertyName("address1_upszone")] + public string Address1UpsZone { get; set; } + + /// + /// Address 1 address type code + /// + [JsonPropertyName("address1_addresstypecode")] + public int? Address1AddressTypeCode { get; set; } + + /// + /// Address 1 country (null in this case) + /// + [JsonPropertyName("address1_country")] + public string Address1Country { get; set; } + + /// + /// Entity image ID (null in this case) + /// + [JsonPropertyName("entityimageid")] + public string EntityImageId { get; set; } + + /// + /// Entity image (null in this case) + /// + [JsonPropertyName("entityimage")] + public string EntityImage { get; set; } + + /// + /// Created by value + /// + [JsonPropertyName("_createdby_value")] + public string CreatedByValue { get; set; } + + /// + /// Address 1 telephone 3 (null in this case) + /// + [JsonPropertyName("address1_telephone3")] + public string Address1Telephone3 { get; set; } + + /// + /// Address 1 city (null in this case) + /// + [JsonPropertyName("address1_city")] + public string Address1City { get; set; } + + /// + /// Address 1 telephone 2 (null in this case) + /// + [JsonPropertyName("address1_telephone2")] + public string Address1Telephone2 { get; set; } + + /// + /// Address 1 telephone 1 (null in this case) + /// + [JsonPropertyName("address1_telephone1")] + public string Address1Telephone1 { get; set; } + } +} + diff --git a/src/Commands/Model/SPOTenant.cs b/src/Commands/Model/SPOTenant.cs index 10a506bd7..55d417274 100644 --- a/src/Commands/Model/SPOTenant.cs +++ b/src/Commands/Model/SPOTenant.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; +using InformationBarriersMode = PnP.PowerShell.Commands.Enums.InformationBarriersMode; namespace PnP.PowerShell.Commands.Model { @@ -183,6 +184,17 @@ public class SPOTenant public bool? EnableSensitivityLabelForPDF { private set; get; } + public bool? IsDataAccessInCardDesignerEnabled { private set; get; } + + 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; } + #endregion public SPOTenant(Tenant tenant, ClientContext clientContext) @@ -219,6 +231,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) IsLoopEnabled = tenant.IsLoopEnabled; EnableAzureADB2BIntegration = tenant.EnableAzureADB2BIntegration; SiteOwnerManageLegacyServicePrincipalEnabled = tenant.SiteOwnerManageLegacyServicePrincipalEnabled; + IsDataAccessInCardDesignerEnabled = tenant.IsDataAccessInCardDesignerEnabled; try { @@ -653,6 +666,49 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) { EnableSensitivityLabelForPDF = false; } + + try + { + ShowPeoplePickerGroupSuggestionsForIB = tenant.ShowPeoplePickerGroupSuggestionsForIB; + } + catch + { + } + + try + { + InformationBarriersSuspension = tenant.InformationBarriersSuspension; + } + catch + { + } + + try + { + IBImplicitGroupBased = tenant.IBImplicitGroupBased; + } + catch + { + } + + try + { + AppBypassInformationBarriers = tenant.AppBypassInformationBarriers; + } + catch + { + } + + try + { + if (tenant.DefaultODBMode != null) + { + DefaultOneDriveInformationBarrierMode = Enum.Parse(tenant.DefaultODBMode); + } + } + catch + { + } } } } diff --git a/src/Commands/Model/SharePoint/NavigationNode.cs b/src/Commands/Model/SharePoint/NavigationNode.cs index 622bdc29a..14f6de5d2 100644 --- a/src/Commands/Model/SharePoint/NavigationNode.cs +++ b/src/Commands/Model/SharePoint/NavigationNode.cs @@ -16,7 +16,7 @@ public sealed class NavigationNode public bool IsHidden { get; set; } public bool IsTitleForExistingLanguage { get; set; } public string Key { get; set; } - public List Nodes { get; set; } + public List Nodes { get; set; } public int NodeType { get; set; } public bool? OpenInNewWindow { get; set; } public string SimpleUrl { get; set; } diff --git a/src/Commands/Model/SharePoint/SPContainerTypeConfigurationPropertiesObj.cs b/src/Commands/Model/SharePoint/SPContainerTypeConfigurationPropertiesObj.cs new file mode 100644 index 000000000..9c1a9b35b --- /dev/null +++ b/src/Commands/Model/SharePoint/SPContainerTypeConfigurationPropertiesObj.cs @@ -0,0 +1,58 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +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 SPContainerTypeConfigurationPropertiesObj + { + public Guid ContainerTypeId { get; private set; } + + public Guid OwningApplicationId { get; private set; } + + public string ContainerTypeName { get; private set; } + + public SPContainerTypeBillingClassification Classification { get; private set; } + + public bool? DiscoverabilityDisabled { get; private set; } + + public bool? SharingRestricted { get; private set; } + + internal SPContainerTypeConfigurationPropertiesObj(SPContainerTypeConfigurationProperties containerTypeConfigurationProperties) + { + ContainerTypeId = containerTypeConfigurationProperties.ContainerTypeId; + OwningApplicationId = containerTypeConfigurationProperties.OwningAppId; + ContainerTypeName = containerTypeConfigurationProperties.ContainerTypeName; + Classification = containerTypeConfigurationProperties.Classification; + + switch (containerTypeConfigurationProperties.IsDiscoverablilityDisabled) + { + case NullableBoolean.TRUE: + DiscoverabilityDisabled = true; + break; + case NullableBoolean.FALSE: + DiscoverabilityDisabled = false; + break; + default: + DiscoverabilityDisabled = null; + break; + } + switch (containerTypeConfigurationProperties.IsSharingRestricted) + { + case NullableBoolean.TRUE: + SharingRestricted = true; + break; + case NullableBoolean.FALSE: + SharingRestricted = false; + break; + default: + SharingRestricted = null; + break; + } + } + } +} diff --git a/src/Commands/Model/SharePoint/SPContainerTypeObj.cs b/src/Commands/Model/SharePoint/SPContainerTypeObj.cs new file mode 100644 index 000000000..f38066f92 --- /dev/null +++ b/src/Commands/Model/SharePoint/SPContainerTypeObj.cs @@ -0,0 +1,33 @@ +using Microsoft.Online.SharePoint.TenantAdministration; +using System; + +namespace PnP.PowerShell.Commands.Model.SharePoint +{ + public class SPContainerTypeObj + { + public Guid ContainerTypeId { get; private set; } + + public Guid OwningApplicationId { get; private set; } + + public string ContainerTypeName { get; private set; } + + public SPContainerTypeBillingClassification Classification { get; private set; } + + public string Region { get; private set; } + + public Guid AzureSubscriptionId { get; private set; } + + public string ResourceGroup { get; private set; } + + internal SPContainerTypeObj(SPContainerTypeProperties containerTypeConfigurationProperties) + { + ContainerTypeId = containerTypeConfigurationProperties.ContainerTypeId; + OwningApplicationId = containerTypeConfigurationProperties.OwningAppId; + ContainerTypeName = containerTypeConfigurationProperties.DisplayName; + Region = containerTypeConfigurationProperties.Region; + AzureSubscriptionId = containerTypeConfigurationProperties.AzureSubscriptionId; + ResourceGroup = containerTypeConfigurationProperties.ResourceGroup; + Classification = containerTypeConfigurationProperties.SPContainerTypeBillingClassification; + } + } +} diff --git a/src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs b/src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs new file mode 100644 index 000000000..d5108b016 --- /dev/null +++ b/src/Commands/Model/SharePoint/SetVersionPolicyProgressClient.cs @@ -0,0 +1,75 @@ +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 SetVersionPolicyProgressClient + { + /// + /// 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 Libraries processed count + /// + public string LibrariesProcessedInTotal { get; set; } + + /// + /// The Libraries failed to process count + /// + public string LibrariesFailedInTotal { get; set; } + + /// + /// Set version policy as AutoExpiration or not + /// + public string EnableAutomaticMode { 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/Teams/ChannelModerationSettings.cs b/src/Commands/Model/Teams/ChannelModerationSettings.cs new file mode 100644 index 000000000..dcfff720f --- /dev/null +++ b/src/Commands/Model/Teams/ChannelModerationSettings.cs @@ -0,0 +1,39 @@ +using System.Text.Json.Serialization; + +namespace PnP.PowerShell.Commands.Model.Teams +{ + /// + /// Moderation settings on a Teams Channel + /// + /// Documentation at https://learn.microsoft.com/graph/api/resources/channelmoderationsettings + public partial class ChannelModerationSettings + { + #region Public Members + + /// + /// Indicates whether bots are allowed to post messages + /// + [JsonPropertyName("allowNewMessageFromBots")] + public bool? AllowNewMessageFromBots { get; set; } + + /// + /// Indicates whether connectors are allowed to post messages + /// + [JsonPropertyName("allowNewMessageFromConnectors")] + public bool? AllowNewMessageFromConnectors { get; set; } + + /// + /// Indicates who is allowed to reply to the teams channel + /// + [JsonPropertyName("replyRestriction")] + public Enums.TeamChannelModerationSettingReplyRestriction? ReplyRestriction { get; set; } + + /// + /// Indicates who is allowed to post messages to teams channel + /// + [JsonPropertyName("userNewMessageRestriction")] + public Enums.TeamChannelModerationSettingNewMessageRestriction? UserNewMessageRestriction { get; set; } + + #endregion + } +} diff --git a/src/Commands/Model/Teams/Team.cs b/src/Commands/Model/Teams/Team.cs index 22808a23c..c70278681 100644 --- a/src/Commands/Model/Teams/Team.cs +++ b/src/Commands/Model/Teams/Team.cs @@ -1,5 +1,4 @@ using PnP.PowerShell.Commands.Model.Graph; -using PnP.PowerShell.Commands.Utilities.JSON; using System; using System.Collections.Generic; using System.Text.Json.Serialization; @@ -12,6 +11,7 @@ namespace PnP.PowerShell.Commands.Model.Teams public class Team { #region Public Members + public string DisplayName { get; set; } public string Classification { get; set; } diff --git a/src/Commands/Model/Teams/TeamChannel.cs b/src/Commands/Model/Teams/TeamChannel.cs index 6fe57dd1f..bb22f8187 100644 --- a/src/Commands/Model/Teams/TeamChannel.cs +++ b/src/Commands/Model/Teams/TeamChannel.cs @@ -59,8 +59,16 @@ public partial class TeamChannel /// public string Id { get; set; } + /// + /// Members of a channel + /// public List Members { get; set; } + /// + /// Settings for moderating posts in a Teams Channel + /// + public ChannelModerationSettings ModerationSettings { get; set; } = new(); + #endregion } } diff --git a/src/Commands/Model/Teams/TeamGuestSettings.cs b/src/Commands/Model/Teams/TeamGuestSettings.cs index 73b15b59c..b48396f09 100644 --- a/src/Commands/Model/Teams/TeamGuestSettings.cs +++ b/src/Commands/Model/Teams/TeamGuestSettings.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace PnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamGuestSettings { diff --git a/src/Commands/Navigation/AddNavigationNode.cs b/src/Commands/Navigation/AddNavigationNode.cs index fcaf58438..2f76db37d 100644 --- a/src/Commands/Navigation/AddNavigationNode.cs +++ b/src/Commands/Navigation/AddNavigationNode.cs @@ -124,7 +124,8 @@ protected override void ExecuteCmdlet() CurrentWeb.EnsureProperties(w => w.Url); var menuState = Utilities.REST.RestHelper.GetAsync(Connection.HttpClient, $"{CurrentWeb.Url}/_api/navigation/MenuState", ClientContext.GetAccessToken(), false).GetAwaiter().GetResult(); - var currentItem = menuState?.Nodes?.Where(t => t.Key == addedNode.Id.ToString()).FirstOrDefault(); + var currentItem = menuState?.Nodes?.Select(node => SearchNodeById(node, addedNode.Id)) + .FirstOrDefault(result => result != null); if (currentItem != null) { currentItem.OpenInNewWindow = OpenInNewTab.ToBool(); @@ -150,5 +151,16 @@ protected override void ExecuteCmdlet() throw new Exception("Unable to define Navigation Node collection to add the node to"); } } + + private static Model.SharePoint.NavigationNode SearchNodeById(Model.SharePoint.NavigationNode root, int id) + { + if (root.Key == id.ToString()) + { + return root; + } + + return root.Nodes.Select(child => SearchNodeById(child, id)).FirstOrDefault(result => result != null); + } + } } diff --git a/src/Commands/Pages/GetPageLikedByInformation.cs b/src/Commands/Pages/GetPageLikedByInformation.cs new file mode 100644 index 000000000..c966f5bb6 --- /dev/null +++ b/src/Commands/Pages/GetPageLikedByInformation.cs @@ -0,0 +1,52 @@ + +using PnP.Core.QueryModel; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model; +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Text; + +namespace PnP.PowerShell.Commands.Pages +{ + [Cmdlet(VerbsCommon.Get, "PnPPageLikedByInformation")] + [OutputType(typeof(PageLikedByInformation))] + public class GetPageLikedByInformation : PnPWebCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] + public PagePipeBind Identity; + + protected override void ExecuteCmdlet() + { + var clientSidePage = Identity.GetPage(Connection); + + if (clientSidePage == null) + throw new Exception($"Page '{Identity?.Name}' does not exist"); + + var pageLikeInformation = clientSidePage.GetLikedByInformationAsync().GetAwaiter().GetResult(); + + var likes = pageLikeInformation.LikedBy.AsRequested(); + + var likesList = new List(); + + if(likes != null) + { + foreach( var liked in likes) + { + var likedInfo = new PageLikedByInformation + { + Name = liked.Name, + Mail = liked.Mail, + LoginName = liked.LoginName, + Id = liked.Id, + CreationDate = liked.CreationDate + }; + + likesList.Add(likedInfo); + } + } + + WriteObject(likesList, true); + } + } +} \ No newline at end of file diff --git a/src/Commands/Pages/SetPage.cs b/src/Commands/Pages/SetPage.cs index 7e752f881..4aa368965 100644 --- a/src/Commands/Pages/SetPage.cs +++ b/src/Commands/Pages/SetPage.cs @@ -64,6 +64,10 @@ public class SetPage : PnPWebCmdlet, IDynamicParameters [Parameter(Mandatory = false)] public bool ShowPublishDate; + [Parameter(Mandatory = false)] + public SwitchParameter Like = false; + + private CustomHeaderDynamicParameters customHeaderParameters; public object GetDynamicParameters() @@ -92,7 +96,7 @@ protected override void ExecuteCmdlet() throw new Exception("Insufficient arguments to update a client side page"); // Don't allow changing a topic page into a regular page as that could lead to data loss - if (clientSidePage.LayoutType != PageLayoutType.Topic) + if (ParameterSpecified(nameof(LayoutType)) && clientSidePage.LayoutType != PageLayoutType.Topic) { clientSidePage.LayoutType = LayoutType; } @@ -174,6 +178,18 @@ protected override void ExecuteCmdlet() } } + if (ParameterSpecified(nameof(Like))) + { + if (Like) + { + clientSidePage.Like(); + } + else + { + clientSidePage.Unlike(); + } + } + if (ContentType != null) { string ctId = ContentType.GetIdOrWarn(this, CurrentWeb); diff --git a/src/Commands/PnP.PowerShell.csproj b/src/Commands/PnP.PowerShell.csproj index 2ccc12072..c4b9325fa 100644 --- a/src/Commands/PnP.PowerShell.csproj +++ b/src/Commands/PnP.PowerShell.csproj @@ -14,7 +14,7 @@ true true PnP.PowerShell - PnP 2023 + PnP 2024 Debug;Release @@ -58,28 +58,28 @@ - - - + + + - - + + - - + + - - + + - + - + diff --git a/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs b/src/Commands/PowerPlatform/Environment/GetPowerPlatformCustomConnector.cs similarity index 61% rename from src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs rename to src/Commands/PowerPlatform/Environment/GetPowerPlatformCustomConnector.cs index 870b9ae25..0f079ea80 100644 --- a/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformCustomConnector.cs @@ -4,13 +4,16 @@ using System.Management.Automation; using System.Linq; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Attributes; namespace PnP.PowerShell.Commands.PowerPlatform.Environment { - [Cmdlet(VerbsCommon.Get, "PnPPowerPlatformConnector")] - public class GetPowerPlatformConnector : PnPAzureManagementApiCmdlet + [Cmdlet(VerbsCommon.Get, "PnPPowerPlatformCustomConnector")] + [WriteAliasWarning("Get-PnPPowerPlatformConnector will be renamed to Get-PnPPowerPlatformCustomConnector in a future version, please update your scripts now already to use this cmdlet name instead")] + [Alias("Get-PnPPowerPlatformConnector")] + public class GetPowerPlatformCustomConnector : PnPAzureManagementApiCmdlet { - [Parameter(Mandatory = false, ValueFromPipeline = true)] public PowerPlatformEnvironmentPipeBind Environment; @@ -18,11 +21,13 @@ public class GetPowerPlatformConnector : PnPAzureManagementApiCmdlet public SwitchParameter AsAdmin; [Parameter(Mandatory = false)] - public PowerPlatformConnectorPipeBind Identity; + public PowerPlatformConnectorPipeBind Identity; protected override void ExecuteCmdlet() { string environmentName = null; + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + string powerAppsUrl = PowerPlatformUtility.GetPowerAppsEndpoint(Connection.AzureEnvironment); if (ParameterSpecified(nameof(Environment))) { environmentName = Environment.GetName(); @@ -30,7 +35,7 @@ protected override void ExecuteCmdlet() } else { - var environments = GraphHelper.GetResultCollectionAsync(Connection, "https://management.azure.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var environments = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + "/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); environmentName = environments.FirstOrDefault(e => e.Properties.IsDefault.HasValue && e.Properties.IsDefault == true)?.Name; if (string.IsNullOrEmpty(environmentName)) @@ -47,14 +52,14 @@ protected override void ExecuteCmdlet() WriteVerbose($"Retrieving specific Custom Connector with the provided name '{appName}' within the environment '{environmentName}'"); - var result = GraphHelper.GetAsync(Connection, $"https://api.powerapps.com/providers/Microsoft.PowerApps{(AsAdmin ? "/scopes/admin/environments/" + environmentName : "")}/apis/{appName}?api-version=2016-11-01&$filter=environment eq '{environmentName}' and isCustomApi eq 'True'", AccessToken).GetAwaiter().GetResult(); + var result = GraphHelper.GetAsync(Connection, $"{powerAppsUrl}/providers/Microsoft.PowerApps{(AsAdmin ? "/scopes/admin/environments/" + environmentName : "")}/apis/{appName}?api-version=2016-11-01&$filter=environment eq '{environmentName}' and isCustomApi eq 'True'", AccessToken).GetAwaiter().GetResult(); WriteObject(result, false); } else { WriteVerbose($"Retrieving all Connectors within environment '{environmentName}'"); - var connectors = GraphHelper.GetResultCollectionAsync(Connection, $"https://api.powerapps.com/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment eq '{environmentName}' and isCustomApi eq 'True'", AccessToken).GetAwaiter().GetResult(); + var connectors = GraphHelper.GetResultCollectionAsync(Connection, $"{powerAppsUrl}/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment eq '{environmentName}' and isCustomApi eq 'True'", AccessToken).GetAwaiter().GetResult(); WriteObject(connectors, true); } } diff --git a/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs b/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs index 3d42e54f4..0bdb71a88 100644 --- a/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs @@ -4,6 +4,7 @@ using System.Management.Automation; using System.Linq; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; namespace PnP.PowerShell.Commands.PowerPlatform.Environment { @@ -21,7 +22,8 @@ public class GetPowerPlatformEnvironment : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { - var environments = GraphHelper.GetResultCollectionAsync(Connection, "https://management.azure.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + var environments = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + "/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); if(ParameterSpecified(nameof(IsDefault)) && IsDefault.ToBool()) { diff --git a/src/Commands/PowerPlatform/Environment/GetPowerPlatformSolution.cs b/src/Commands/PowerPlatform/Environment/GetPowerPlatformSolution.cs new file mode 100644 index 000000000..4bf9e7a98 --- /dev/null +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformSolution.cs @@ -0,0 +1,66 @@ +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Utilities.REST; +using System; +using System.Management.Automation; +using System.Linq; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; + +namespace PnP.PowerShell.Commands.PowerPlatform.Environment +{ + [Cmdlet(VerbsCommon.Get, "PnPPowerPlatformSolution")] + public class GetPowerPlatformSolution: PnPAzureManagementApiCmdlet + { + + [Parameter(Mandatory = false, ValueFromPipeline = true)] + public PowerPlatformEnvironmentPipeBind Environment; + + [Parameter(Mandatory = false)] + public PowerPlatformSolutionPipeBind Name; + + protected override void ExecuteCmdlet() + { + string environmentName = null; + string dynamicsScopeUrl = null; + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + var environments = GraphHelper.GetResultCollectionAsync(Connection, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + if (ParameterSpecified(nameof(Environment))) + { + environmentName = Environment.GetName().ToLower(); + WriteVerbose($"Using environment as provided '{environmentName}'"); + dynamicsScopeUrl = environments.FirstOrDefault(e => e.Properties.DisplayName.ToLower() == environmentName || e.Name.ToLower() == environmentName)?.Properties.LinkedEnvironmentMetadata.InstanceApiUrl; + } + else + { + environmentName = environments.FirstOrDefault(e => e.Properties.IsDefault.HasValue && e.Properties.IsDefault == true)?.Name; + dynamicsScopeUrl = environments.FirstOrDefault(e => e.Properties.IsDefault.HasValue && e.Properties.IsDefault == true)?.Properties.LinkedEnvironmentMetadata.InstanceApiUrl; + if (string.IsNullOrEmpty(environmentName)) + { + throw new Exception($"No default environment found, please pass in a specific environment name using the {nameof(Environment)} parameter"); + } + + WriteVerbose($"Using default environment as retrieved '{environmentName}'"); + } + + string accessTokenForGettingSolutions = TokenHandler.GetAccessTokenforPowerPlatformSolutions(this, Connection, dynamicsScopeUrl); + + if (ParameterSpecified(nameof(Name))) + { + var solutionName = Name.GetName(); + + WriteVerbose($"Retrieving specific solution with the provided name '{solutionName}' within the environment '{environmentName}'"); + + var requestUrl = dynamicsScopeUrl + "/api/data/v9.0/solutions?$filter=isvisible eq true and friendlyname eq '" + solutionName + "'&$expand=publisherid&api-version=9.1"; + var solution = GraphHelper.GetResultCollectionAsync(Connection, requestUrl, accessTokenForGettingSolutions).GetAwaiter().GetResult(); + WriteObject(solution, false); + } + else + { + WriteVerbose($"Retrieving all Solutions within environment '{environmentName}'"); + var requestUrl = dynamicsScopeUrl + "/api/data/v9.0/solutions?$filter=isvisible eq true&$expand=publisherid($select=friendlyname)&api-version=9.1"; + var solutions = GraphHelper.GetResultCollectionAsync(Connection, requestUrl, accessTokenForGettingSolutions).GetAwaiter().GetResult(); + WriteObject(solutions, true); + } + } + } +} \ No newline at end of file diff --git a/src/Commands/PowerPlatform/PowerApps/ExportPowerApp.cs b/src/Commands/PowerPlatform/PowerApps/ExportPowerApp.cs index 1f47dd593..54e5e0746 100644 --- a/src/Commands/PowerPlatform/PowerApps/ExportPowerApp.cs +++ b/src/Commands/PowerPlatform/PowerApps/ExportPowerApp.cs @@ -69,7 +69,7 @@ protected override void ExecuteCmdlet() var environmentName = Environment.GetName(); var appName = Identity.GetName(); - var wrapper = PowerAppsUtility.GetWrapper(Connection.HttpClient, environmentName, AccessToken, appName).GetAwaiter().GetResult(); + var wrapper = PowerAppsUtility.GetWrapper(Connection.HttpClient, environmentName, AccessToken, appName, Connection.AzureEnvironment).GetAwaiter().GetResult(); if (wrapper.Status == Model.PowerPlatform.PowerApp.Enums.PowerAppExportStatus.Succeeded) { diff --git a/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs b/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs index 68c569df6..5ea7b5f2f 100644 --- a/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs +++ b/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Linq; @@ -23,7 +24,8 @@ public class GetPowerApp : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { string environmentName = null; - if(ParameterSpecified(nameof(Environment))) + string powerAppsUrl = PowerPlatformUtility.GetPowerAppsEndpoint(Connection.AzureEnvironment); + if (ParameterSpecified(nameof(Environment))) { environmentName = Environment.GetName(); @@ -31,7 +33,8 @@ protected override void ExecuteCmdlet() } else { - var environments = GraphHelper.GetResultCollectionAsync(Connection, "https://management.azure.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + var environments = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + "/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); environmentName = environments.FirstOrDefault(e => e.Properties.IsDefault.HasValue && e.Properties.IsDefault == true)?.Name; if(string.IsNullOrEmpty(environmentName)) @@ -48,7 +51,7 @@ protected override void ExecuteCmdlet() WriteVerbose($"Retrieving specific PowerApp with the provided name '{appName}' within the environment '{environmentName}'"); - var result = GraphHelper.GetAsync(Connection, $"https://api.powerapps.com/providers/Microsoft.PowerApps{(AsAdmin ? "/scopes/admin/environments/" + environmentName : "")}/apps/{appName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var result = GraphHelper.GetAsync(Connection, $"{powerAppsUrl}/providers/Microsoft.PowerApps{(AsAdmin ? "/scopes/admin/environments/" + environmentName : "")}/apps/{appName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(result, false); } @@ -56,7 +59,7 @@ protected override void ExecuteCmdlet() { WriteVerbose($"Retrieving all PowerApps within environment '{environmentName}'"); - var apps = GraphHelper.GetResultCollectionAsync(Connection, $"https://api.powerapps.com/providers/Microsoft.PowerApps/apps?api-version=2016-11-01&$filter=environment eq '{environmentName}'", AccessToken).GetAwaiter().GetResult(); + var apps = GraphHelper.GetResultCollectionAsync(Connection, $"{powerAppsUrl}/providers/Microsoft.PowerApps/apps?api-version=2016-11-01&$filter=environment eq '{environmentName}'", AccessToken).GetAwaiter().GetResult(); WriteObject(apps, true); } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs b/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs index 12f7a62eb..000fc2b9d 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; @@ -81,7 +82,8 @@ protected override void ExecuteCmdlet() }; WriteVerbose($"Assigning user {Role} permissions to flow {flowName} in environment {environmentName}"); - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/modifyPermissions?api-version=2016-11-01", AccessToken, payload).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/modifyPermissions?api-version=2016-11-01", AccessToken, payload).GetAwaiter().GetResult(); } } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs index 24c5d28cb..45b1ea769 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; @@ -21,7 +22,8 @@ protected override void ExecuteCmdlet() { var environmentName = Environment.GetName(); var flowName = Identity.GetName(); - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/stop?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/stop?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); } } } \ No newline at end of file diff --git a/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs index 19247c99e..02ede1d49 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; @@ -21,7 +22,8 @@ protected override void ExecuteCmdlet() { var environmentName = Environment.GetName(); var flowName = Identity.GetName(); - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/start?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/start?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); } } } \ No newline at end of file diff --git a/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs index 1672d3e81..bf8085f3c 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; @@ -76,7 +77,8 @@ protected override void ExecuteCmdlet() $"/providers/Microsoft.Flow/flows/{flowName}" } }; - var wrapper = RestHelper.PostAsync(Connection.HttpClient, $"https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/listPackageResources?api-version=2016-11-01", AccessToken, payload: postData).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetBapEndpoint(Connection.AzureEnvironment); + var wrapper = RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/listPackageResources?api-version=2016-11-01", AccessToken, payload: postData).GetAwaiter().GetResult(); if (wrapper.Status == Model.PowerPlatform.PowerAutomate.Enums.FlowExportStatus.Succeeded) { @@ -109,7 +111,7 @@ protected override void ExecuteCmdlet() resources = wrapper.Resources }; - var resultElement = RestHelper.PostAsync(Connection.HttpClient, $"https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/exportPackage?api-version=2016-11-01", AccessToken, payload: exportPostData).GetAwaiter().GetResult(); + var resultElement = RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/exportPackage?api-version=2016-11-01", AccessToken, payload: exportPostData).GetAwaiter().GetResult(); if (resultElement.TryGetProperty("status", out JsonElement statusElement)) { if (statusElement.GetString() == "Succeeded") @@ -161,7 +163,8 @@ protected override void ExecuteCmdlet() } else { - var json = RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/exportToARMTemplate?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + var json = RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/exportToARMTemplate?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(json); } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs index 82a8b2d9e..78b109d67 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlow.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Management.Automation; using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Utilities; namespace PnP.PowerShell.Commands.PowerPlatform.PowerAutomate { @@ -31,7 +32,8 @@ public class GetFlow : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { string environmentName = null; - if(ParameterSpecified(nameof(Environment))) + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + if (ParameterSpecified(nameof(Environment))) { environmentName = Environment.GetName(); @@ -39,7 +41,7 @@ protected override void ExecuteCmdlet() } else { - var environments = GraphHelper.GetResultCollectionAsync(Connection, "https://management.azure.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var environments = GraphHelper.GetResultCollectionAsync(Connection, baseUrl + "/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); environmentName = environments.FirstOrDefault(e => e.Properties.IsDefault.HasValue && e.Properties.IsDefault == true)?.Name; if(string.IsNullOrEmpty(environmentName)) @@ -56,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, $"https://management.azure.com/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 @@ -79,10 +81,10 @@ protected override void ExecuteCmdlet() WriteVerbose($"Retrieving all Power Automate Flows within environment '{environmentName}'{(filter != null ? $" with filter '{filter}'" : "")}"); - var flows = GraphHelper.GetResultCollectionAsync(Connection, $"https://management.azure.com/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); } } } -} \ No newline at end of file +} diff --git a/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs b/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs index 82f76842d..49052bb67 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs @@ -1,6 +1,7 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Model.PowerPlatform.PowerAutomate; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; @@ -32,7 +33,8 @@ protected override void ExecuteCmdlet() throw new PSArgumentException("Flow not found.", nameof(Identity)); } - var flowOwners = GraphHelper.GetResultCollectionAsync(Connection, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/permissions?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + var flowOwners = GraphHelper.GetResultCollectionAsync(Connection, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/permissions?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(flowOwners, true); } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs b/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs index 5f103bcf6..d499a9682 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs @@ -1,6 +1,7 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Model.PowerPlatform.PowerAutomate; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; @@ -20,6 +21,7 @@ public class GetFlowRun : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); var environmentName = Environment.GetName(); if (string.IsNullOrEmpty(environmentName)) { @@ -35,12 +37,12 @@ protected override void ExecuteCmdlet() if (ParameterSpecified(nameof(Identity))) { var flowRunName = Identity.GetName(); - var flowRun = GraphHelper.GetAsync(Connection, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs/{flowRunName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var flowRun = GraphHelper.GetAsync(Connection, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs/{flowRunName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(flowRun, false); } else { - var flowRuns = GraphHelper.GetResultCollectionAsync(Connection, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var flowRuns = GraphHelper.GetResultCollectionAsync(Connection, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteObject(flowRuns, true); } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs index 2165089a2..f54bb3530 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; @@ -26,6 +27,7 @@ public class RemoveFlow : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); var environmentName = Environment.GetName(); var flowName = Identity.GetName(); @@ -38,10 +40,10 @@ protected override void ExecuteCmdlet() { // Had to add this because DELETE doesn't throw error if invalid Flow Id or Name is provided WriteVerbose($"Retrieving Flow with name {flowName} in environment ${environmentName}"); - var result = GraphHelper.GetAsync(Connection, $"https://management.azure.com/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(); if (result != null) { - RestHelper.DeleteAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + RestHelper.DeleteAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteVerbose($"Flow with name {flowName} deleted"); } } @@ -52,7 +54,7 @@ protected override void ExecuteCmdlet() } else { - RestHelper.DeleteAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + RestHelper.DeleteAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); WriteVerbose($"Flow with name {flowName} deleted"); } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs index 751526b0d..19f445573 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs @@ -1,5 +1,6 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; @@ -74,8 +75,9 @@ protected override void ExecuteCmdlet() if(Force || ShouldContinue($"Remove flow owner with id '{user.Id.Value}' from flow '{flowName}'?", "Remove flow owner")) { + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); WriteVerbose($"Removing user {user.Id.Value} permissions from flow {flowName} in environment {environmentName}"); - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/modifyPermissions?api-version=2016-11-01", AccessToken, payload).GetAwaiter().GetResult(); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple{(AsAdmin ? "/scopes/admin" : "")}/environments/{environmentName}/flows/{flowName}/modifyPermissions?api-version=2016-11-01", AccessToken, payload).GetAwaiter().GetResult(); } } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs b/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs index 990820517..7bd2ce1b9 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs @@ -2,6 +2,7 @@ using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Model.PowerPlatform.PowerAutomate; using PnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Linq; using System.Management.Automation; @@ -25,6 +26,7 @@ public class RestartFlowRun : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); var environmentName = Environment.GetName(); if (string.IsNullOrEmpty(environmentName)) { @@ -46,8 +48,8 @@ protected override void ExecuteCmdlet() if (!Force && !ShouldContinue($"Restart flow run with name '{flowRunName}'?", Resources.Confirm)) return; - var triggers = GraphHelper.GetResultCollectionAsync(Connection, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/triggers?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/triggers/{triggers.First().Name}/histories/{flowRunName}/resubmit?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + var triggers = GraphHelper.GetResultCollectionAsync(Connection, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/triggers?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/triggers/{triggers.First().Name}/histories/{flowRunName}/resubmit?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); } } } diff --git a/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs b/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs index 61019b1b1..d1a457650 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs @@ -3,6 +3,7 @@ using System.Management.Automation; using PnP.PowerShell.Commands.Utilities.REST; using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Utilities; namespace PnP.PowerShell.Commands.PowerPlatform.PowerAutomate { @@ -43,7 +44,8 @@ protected override void ExecuteCmdlet() if (Force || ShouldContinue($"Stop flow run with name '{flowRunName}'?", Resources.Confirm)) { - RestHelper.PostAsync(Connection.HttpClient, $"https://management.azure.com/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs/{flowRunName}/cancel?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetPowerAutomateEndpoint(Connection.AzureEnvironment); + RestHelper.PostAsync(Connection.HttpClient, $"{baseUrl}/providers/Microsoft.ProcessSimple/environments/{environmentName}/flows/{flowName}/runs/{flowRunName}/cancel?api-version=2016-11-01", AccessToken).GetAwaiter().GetResult(); } } } diff --git a/src/Commands/Principals/AddGroupMember.cs b/src/Commands/Principals/AddGroupMember.cs index 8cf05ccba..6e00ecd1d 100644 --- a/src/Commands/Principals/AddGroupMember.cs +++ b/src/Commands/Principals/AddGroupMember.cs @@ -1,6 +1,7 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model; namespace PnP.PowerShell.Commands.Principals { @@ -10,12 +11,15 @@ public class AddGroupMember : PnPWebCmdlet { private const string ParameterSet_INTERNAL = "Internal"; private const string ParameterSet_EXTERNAL = "External"; + private const string ParameterSet_BATCHED = "Batched"; [Parameter(Mandatory = true, ParameterSetName = ParameterSet_INTERNAL)] + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_BATCHED)] public string LoginName; [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet_INTERNAL)] [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet_EXTERNAL)] + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet_BATCHED)] [Alias("Identity")] public GroupPipeBind Group; @@ -28,6 +32,9 @@ public class AddGroupMember : PnPWebCmdlet [Parameter(Mandatory = false, ParameterSetName = ParameterSet_EXTERNAL)] public string EmailBody = "Site shared with you."; + [Parameter(Mandatory = true, ParameterSetName = ParameterSet_BATCHED)] + public PnPBatch Batch; + protected override void ExecuteCmdlet() { if (ParameterSetName == ParameterSet_EXTERNAL) @@ -39,7 +46,15 @@ protected override void ExecuteCmdlet() { var group = Group.GetGroup(PnPContext); var user = PnPContext.Web.EnsureUser(LoginName); - group.AddUser(user.LoginName); + + if (ParameterSetName == ParameterSet_BATCHED) + { + group.AddUserBatch(Batch.Batch, user.LoginName); + } + else + { + group.AddUser(user.LoginName); + } } } } diff --git a/src/Commands/Principals/NewGroup.cs b/src/Commands/Principals/NewGroup.cs index 39a2b6230..0c33b48ae 100644 --- a/src/Commands/Principals/NewGroup.cs +++ b/src/Commands/Principals/NewGroup.cs @@ -73,6 +73,30 @@ protected override void ExecuteCmdlet() dirty = true; } + if (!string.IsNullOrEmpty(Description)) + { + var groupItem = CurrentWeb.SiteUserInfoList.GetItemById(group.Id); + CurrentWeb.Context.Load(groupItem, g => g["Notes"]); + CurrentWeb.Context.ExecuteQueryRetry(); + + var groupDescription = groupItem["Notes"]?.ToString(); + + if (groupDescription != Description) + { + groupItem["Notes"] = Description; + groupItem.Update(); + dirty = true; + } + + var plainTextDescription = Framework.Utilities.PnPHttpUtility.ConvertSimpleHtmlToText(Description, int.MaxValue); + if (group.Description != plainTextDescription) + { + //If the description is more than 512 characters long a server exception will be thrown. + group.Description = plainTextDescription; + dirty = true; + } + } + if (dirty) { group.Update(); diff --git a/src/Commands/Provisioning/Site/GetSiteTemplate.cs b/src/Commands/Provisioning/Site/GetSiteTemplate.cs index d3b6b1763..b099a8e57 100644 --- a/src/Commands/Provisioning/Site/GetSiteTemplate.cs +++ b/src/Commands/Provisioning/Site/GetSiteTemplate.cs @@ -213,14 +213,26 @@ private void ExtractTemplate(XMLPnPSchemaVersion schema, string path, string pac creationInformation.PersistBrandingFiles = PersistBrandingFiles; } #pragma warning restore 618 - creationInformation.PersistPublishingFiles = PersistPublishingFiles; - creationInformation.IncludeNativePublishingFiles = IncludeNativePublishingFiles; + if (ParameterSpecified(nameof(PersistPublishingFiles))) + { + creationInformation.PersistPublishingFiles = PersistPublishingFiles; + } + if (ParameterSpecified(nameof(IncludeNativePublishingFiles))) + { + creationInformation.IncludeNativePublishingFiles = IncludeNativePublishingFiles; + } if (ParameterSpecified(nameof(IncludeSiteGroups))) { creationInformation.IncludeSiteGroups = IncludeSiteGroups; } - creationInformation.IncludeTermGroupsSecurity = IncludeTermGroupsSecurity; - creationInformation.IncludeSearchConfiguration = IncludeSearchConfiguration; + if (ParameterSpecified(nameof(IncludeTermGroupsSecurity))) + { + creationInformation.IncludeTermGroupsSecurity = IncludeTermGroupsSecurity; + } + if (ParameterSpecified(nameof(IncludeSearchConfiguration))) + { + creationInformation.IncludeSearchConfiguration = IncludeSearchConfiguration; + } if (ParameterSpecified(nameof(IncludeHiddenLists))) { creationInformation.IncludeHiddenLists = IncludeHiddenLists; @@ -229,12 +241,18 @@ private void ExtractTemplate(XMLPnPSchemaVersion schema, string path, string pac { creationInformation.IncludeAllClientSidePages = IncludeAllPages; } - creationInformation.SkipVersionCheck = SkipVersionCheck; + if (ParameterSpecified(nameof(SkipVersionCheck))) + { + creationInformation.SkipVersionCheck = SkipVersionCheck; + } if (ParameterSpecified(nameof(ContentTypeGroups)) && ContentTypeGroups != null) { creationInformation.ContentTypeGroupsToInclude = ContentTypeGroups.ToList(); } - creationInformation.PersistMultiLanguageResources = PersistMultiLanguageResources; + if (ParameterSpecified(nameof(PersistMultiLanguageResources)) && ContentTypeGroups != null) + { + creationInformation.PersistMultiLanguageResources = PersistMultiLanguageResources; + } if (extension == ".pnp") { // if file is of pnp format, persist all files @@ -436,4 +454,4 @@ public static void SetTemplateMetadata(ProvisioningTemplate template, string tem } } } -} +} \ No newline at end of file diff --git a/src/Commands/Purview/GetRetentionLabel.cs b/src/Commands/Purview/GetTenantRetentionLabel.cs similarity index 74% rename from src/Commands/Purview/GetRetentionLabel.cs rename to src/Commands/Purview/GetTenantRetentionLabel.cs index b712d56c9..1efc898af 100644 --- a/src/Commands/Purview/GetRetentionLabel.cs +++ b/src/Commands/Purview/GetTenantRetentionLabel.cs @@ -7,19 +7,20 @@ namespace PnP.PowerShell.Commands.Purview { - [Cmdlet(VerbsCommon.Get, "PnPRetentionLabel")] + [Cmdlet(VerbsCommon.Get, "PnPTenantRetentionLabel")] [OutputType(typeof(IEnumerable))] [OutputType(typeof(Model.Graph.Purview.RetentionLabel))] [RequiredMinimalApiPermissions("RecordsManagement.Read.All")] - public class GetAvailableRetentionLabel : PnPGraphCmdlet + [WriteAliasWarning("Get-PnPRetentionLabel will be renamed to Get-PnPTenantRetentionLabel in a future version, please update your scripts now already to use this cmdlet name instead")] + [Alias("Get-PnPRetentionLabel")] + public class GetTenantRetentionLabel : PnPGraphCmdlet { [Parameter(Mandatory = false)] public Guid Identity; protected override void ExecuteCmdlet() { - string url; - url = "/beta/security/labels/retentionLabels"; + string url = "/beta/security/labels/retentionLabels"; if (ParameterSpecified(nameof(Identity))) { diff --git a/src/Commands/Resources/O365ManagementPermissions.json b/src/Commands/Resources/O365ManagementPermissions.json index 55d72901e..aaccccfda 100644 --- a/src/Commands/Resources/O365ManagementPermissions.json +++ b/src/Commands/Resources/O365ManagementPermissions.json @@ -29,6 +29,26 @@ "consentDescription": "Allows the application to read service health information for your organization.", "consentDisplayName": "Read service health information for your organization", "value": "ServiceHealth.Read" + }, + { + "adminConsentDescription": "Allows the application to read service health information for your organization.", + "adminConsentDisplayName": "Read activity reports for your organization", + "id": "b3b78c39-cb1d-4d17-820a-25d9196a800e", + "isEnabled": true, + "isAdmin": true, + "consentDescription": "Allows the application to read service health information for your organization.", + "consentDisplayName": "Read service health information for your organization", + "value": "ActivityReports.Read" + }, + { + "adminConsentDescription": "Allows the application to read threat intelligence data for your organization", + "adminConsentDisplayName": "Read threat intelligence data for your organization", + "id": "17f1c501-83cd-414c-9064-cd10f7aef836", + "isEnabled": true, + "isAdmin": true, + "consentDescription": "Allows the application to read threat intelligence data for your organization", + "consentDisplayName": "Read threat intelligence data for your organization", + "value": "ThreatIntelligence.Read" } ], "applicationScopesList": [ @@ -61,6 +81,26 @@ "consentDescription": "Allows the application to read service health information for your organization.", "consentDisplayName": "Read service health information for your organization", "value": "ServiceHealth.Read" + }, + { + "adminConsentDescription": "Allows the application to read service health information for your organization.", + "adminConsentDisplayName": "Read activity reports for your organization", + "id": "b3b78c39-cb1d-4d17-820a-25d9196a800e", + "isEnabled": true, + "isAdmin": true, + "consentDescription": "Allows the application to read service health information for your organization.", + "consentDisplayName": "Read service health information for your organization", + "value": "ActivityReports.Read" + }, + { + "adminConsentDescription": "Allows the application to read threat intelligence data for your organization", + "adminConsentDisplayName": "Read threat intelligence data for your organization", + "id": "17f1c501-83cd-414c-9064-cd10f7aef836", + "isEnabled": true, + "isAdmin": true, + "consentDescription": "Allows the application to read threat intelligence data for your organization", + "consentDisplayName": "Read threat intelligence data for your organization", + "value": "ThreatIntelligence.Read" } ] } \ No newline at end of file diff --git a/src/Commands/Site/GetSetVersionPolicyProgress.cs b/src/Commands/Site/GetSetVersionPolicyProgress.cs index 036e6e1d0..c8eb1477c 100644 --- a/src/Commands/Site/GetSetVersionPolicyProgress.cs +++ b/src/Commands/Site/GetSetVersionPolicyProgress.cs @@ -8,8 +8,8 @@ namespace PnP.PowerShell.Commands.Site { - [Cmdlet(VerbsCommon.Get, "PnPSiteSetVersionPolicyProgress")] - [OutputType(typeof(PnP.PowerShell.Commands.Model.SharePoint.SetVersionPolicyProgress))] + [Cmdlet(VerbsCommon.Get, "PnPSiteVersionPolicyProgress")] + [OutputType(typeof(PnP.PowerShell.Commands.Model.SharePoint.SetVersionPolicyProgressClient))] public class GetSetVersionPolicyProgress : PnPSharePointCmdlet { protected override void ExecuteCmdlet() @@ -32,7 +32,24 @@ protected override void ExecuteCmdlet() progress.CompleteTimeInUTC = string.Empty; } - WriteObject(progress); + // 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/GetSiteAnalytics.cs b/src/Commands/Site/GetSiteAnalytics.cs new file mode 100644 index 000000000..2290c5441 --- /dev/null +++ b/src/Commands/Site/GetSiteAnalytics.cs @@ -0,0 +1,99 @@ +using Microsoft.SharePoint.Client; +using PnP.Core.Model.SharePoint; +using System; +using System.Management.Automation; + +namespace PnP.PowerShell.Commands.Site +{ + [Cmdlet(VerbsCommon.Get, "PnPSiteAnalyticsData")] + [OutputType(typeof(System.Collections.Generic.List))] + public class GetSiteAnalytics : PnPSharePointCmdlet + { + private const string ParameterSetName_ANALYTICS_BY_DATE_RANGE = "Analytics by date range"; + private const string ParameterSetName_ALL = "All analytics data"; + private const string ParameterSetName_LAST_SEVEN_DAYS = "Analytics by specific intervals"; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ALL, ValueFromPipeline = true)] + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE, ValueFromPipeline = true)] + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_LAST_SEVEN_DAYS, ValueFromPipeline = true)] + [Alias("Url")] + public string Identity; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ALL)] + public SwitchParameter All; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_LAST_SEVEN_DAYS)] + public SwitchParameter LastSevenDays; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public DateTime StartDate; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public DateTime EndDate; + + [Parameter(Mandatory = false, ParameterSetName = ParameterSetName_ANALYTICS_BY_DATE_RANGE)] + public AnalyticsAggregationInterval AnalyticsAggregationInterval = AnalyticsAggregationInterval.Day; + + protected override void ExecuteCmdlet() + { + var analyticsSite = PnPContext.Site; + if (!string.IsNullOrEmpty(Identity)) + { + var pnpClonedContext = PnPContext.Clone(new Uri(Identity)); + analyticsSite = pnpClonedContext.Site; + } + + switch (ParameterSetName) + { + case ParameterSetName_ALL: + // Get analytics for all time + var analytics = analyticsSite.GetAnalytics(); + WriteObject(analytics, true); + break; + + case ParameterSetName_LAST_SEVEN_DAYS: + // Get analytics for last seven days + var analyticsLastSevenDays = analyticsSite.GetAnalytics(new AnalyticsOptions { Interval = AnalyticsInterval.LastSevenDays, CustomAggregationInterval = AnalyticsAggregationInterval.Week }); + WriteObject(analyticsLastSevenDays, true); + break; + + case ParameterSetName_ANALYTICS_BY_DATE_RANGE: + + if (EndDate == DateTime.MinValue) + { + EndDate = DateTime.UtcNow; + } + + if (StartDate == DateTime.MinValue) + { + StartDate = EndDate.AddDays(-90.0); + } + + if (EndDate < StartDate) + { + throw new PSArgumentException("Invalid Date Range"); + } + + if ((EndDate.Date - StartDate.Date).TotalDays > 90) + { + throw new PSArgumentException("The maximum allowed difference between start and end date is 90 days"); + } + + var analyticsCustomData = analyticsSite.GetAnalytics(new AnalyticsOptions + { + Interval = AnalyticsInterval.Custom, + CustomAggregationInterval = AnalyticsAggregationInterval, + CustomEndDate = EndDate, + CustomStartDate = StartDate, + }); + WriteObject(analyticsCustomData, true); + break; + default: + // Get analytics for all time + var allAnalytics = analyticsSite.GetAnalytics(); + WriteObject(allAnalytics, true); + break; + } + } + } +} diff --git a/src/Commands/Site/GetSiteVersionPolicy.cs b/src/Commands/Site/GetSiteVersionPolicy.cs index a1f676293..a7d91d6e2 100644 --- a/src/Commands/Site/GetSiteVersionPolicy.cs +++ b/src/Commands/Site/GetSiteVersionPolicy.cs @@ -13,16 +13,16 @@ public class GetSiteVersionPolicy : PnPSharePointCmdlet { protected override void ExecuteCmdlet() { - ClientContext.Load(ClientContext.Site, s => s.Url, s => s.VersionPolicyForNewLibrariesTemplate, s => s.VersionPolicyForNewLibrariesTemplate.VersionPolicies); + ClientContext.Load(ClientContext.Site, s => s.Url, s => s.VersionPolicyForNewLibrariesTemplate, s => s.VersionPolicyForNewLibrariesTemplate.MajorVersionLimit); ClientContext.ExecuteQueryRetry(); var site = ClientContext.Site; var vp = new SiteVersionPolicy(); vp.Url = site.Url; - if (site.VersionPolicyForNewLibrariesTemplate.VersionPolicies.ServerObjectIsNull == true) + if (site.VersionPolicyForNewLibrariesTemplate.MajorVersionLimit == -1) { - vp.Description = "No Site Level Policy Set"; + vp.Description = "No Site Level Policy Set for new document libraries"; } else { @@ -32,18 +32,18 @@ protected override void ExecuteCmdlet() if (site.VersionPolicyForNewLibrariesTemplate.VersionPolicies.DefaultTrimMode == VersionPolicyTrimMode.AutoExpiration) { - vp.Description = "Site has Automatic Policy Set"; + vp.Description = "Site has Automatic Policy Set for new document libraries"; } else { if (site.VersionPolicyForNewLibrariesTemplate.VersionPolicies.DefaultTrimMode == VersionPolicyTrimMode.ExpireAfter) { vp.DefaultExpireAfterDays = site.VersionPolicyForNewLibrariesTemplate.VersionPolicies.DefaultExpireAfterDays.ToString(); - vp.Description = "Site has Manual settings with specific count and time limits"; + vp.Description = "Site has Manual settings with specific count and time limits for new document libraries"; } else if (site.VersionPolicyForNewLibrariesTemplate.VersionPolicies.DefaultTrimMode == VersionPolicyTrimMode.NoExpiration) { - vp.Description = "Site has Manual settings with specific version count limit and no time limits"; + vp.Description = "Site has Manual settings with specific version count limit and no time limits for new document libraries"; } vp.MajorVersionLimit = site.VersionPolicyForNewLibrariesTemplate.MajorVersionLimit.ToString(); } diff --git a/src/Commands/Site/SetSite.cs b/src/Commands/Site/SetSite.cs index 498ee3dd0..9e6043da0 100644 --- a/src/Commands/Site/SetSite.cs +++ b/src/Commands/Site/SetSite.cs @@ -127,30 +127,6 @@ public class SetSite : PnPSharePointCmdlet [Parameter(Mandatory = false, ParameterSetName = ParameterSet_LOCKSTATE)] public SwitchParameter Wait; - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public bool EnableAutoExpirationVersionTrim; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public int ExpireVersionsAfterDays; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public int MajorVersions; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public int MinorVersions; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public SwitchParameter InheritTenantVPForNewDocLibs; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public SwitchParameter ApplyForNewLibs; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public SwitchParameter ApplyForExistingLibs; - - [Parameter(Mandatory = false, ParameterSetName = ParameterSet_PROPERTIES)] - public SwitchParameter CancelVPForExistingLibs; - protected override void ExecuteCmdlet() { var context = ClientContext; @@ -259,150 +235,6 @@ protected override void ExecuteCmdlet() } } - if (ParameterSpecified(nameof(InheritTenantVPForNewDocLibs))) - { - if (ParameterSpecified(nameof(EnableAutoExpirationVersionTrim)) || - ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - ParameterSpecified(nameof(MajorVersions)) || - ParameterSpecified(nameof(MinorVersions)) || - ParameterSpecified(nameof(ApplyForNewLibs)) || - ParameterSpecified(nameof(ApplyForExistingLibs)) || - ParameterSpecified(nameof(CancelVPForExistingLibs))) - { - throw new PSArgumentException($"Don't specify version policy related parameters (EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions, MinorVersions, ApplyForNewLibs, ApplyForExistingLibs, CancelVPForExistingLibs) when InheritTenantVPForNewDocLibs is specified."); - } - - site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); - site.VersionPolicyForNewLibrariesTemplate.InheritTenantSettings(); - context.ExecuteQueryRetry(); - } - else - { - if (ParameterSpecified(nameof(CancelVPForExistingLibs))) - { - if (ParameterSpecified(nameof(ApplyForNewLibs)) || - ParameterSpecified(nameof(ApplyForExistingLibs)) || - ParameterSpecified(nameof(EnableAutoExpirationVersionTrim)) || - ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - ParameterSpecified(nameof(MajorVersions)) || - ParameterSpecified(nameof(MinorVersions))) - { - throw new PSArgumentException($"Don't specify the version policy related parameters (ApplyForNewLibs, ApplyForExistingLibs, EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions) when CancelVPForExistingLibs is specified."); - } - - site.CancelSetVersionPolicyForDocLibs(); - context.ExecuteQueryRetry(); - } - else - { - // There are 4 scenarios for parameters ApplyForNewLibs and ApplyForExistingLibs - // Scenario 1: ApplyForNewLibs only - // Scenario 2: ApplyForExistingLibs only - // Scenario 3: Both ApplyForNewLibs and ApplyForExistingLibs - // Scenario 4: Neither ApplyForNewLibs or ApplyForExistingLibs - // For Scenario 3 & 4, they should be the same, set both new doc libs and existing doc libs - // Only scenario 1 does not require MinorVersions when EnableAutoExpirationVersionTrim is false because minor version is disabled on new doc libs - - if (ParameterSpecified(nameof(EnableAutoExpirationVersionTrim))) - { - // Validate parameters when EnableAutoExpirationVersionTrim is specified - if (EnableAutoExpirationVersionTrim) - { - if (ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - ParameterSpecified(nameof(MajorVersions)) || - ParameterSpecified(nameof(MinorVersions))) - { - throw new PSArgumentException($"Don't specify ExpireVersionsAfterDays, MajorVersions and MinorVersions when EnableAutoExpirationVersionTrim is true."); - } - } - else - { - if (ParameterSpecified(nameof(ApplyForNewLibs)) && - !ParameterSpecified(nameof(ApplyForExistingLibs))) - { - // If Scenario 1: ApplyForNewLibs only - // MinorVerions is not needed - if (!ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - !ParameterSpecified(nameof(MajorVersions)) || - ParameterSpecified(nameof(MinorVersions))) - { - throw new PSArgumentException($"You must specify ExpireVersionsAfterDays, MajorVersions and don't specify MinorVersions when EnableAutoExpirationVersionTrim is false for new document libraries only."); - } - } - else - { - if (!ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - !ParameterSpecified(nameof(MajorVersions)) || - !ParameterSpecified(nameof(MinorVersions))) - { - throw new PSArgumentException($"You must specify ExpireVersionsAfterDays, MajorVersions and MinorVersions when EnableAutoExpirationVersionTrim is false for document libraries that including existing ones."); - } - } - } - - // Do setting when EnableAutoExpirationVersionTrim is specified - if (!(!ParameterSpecified(nameof(ApplyForNewLibs)) && - ParameterSpecified(nameof(ApplyForExistingLibs)))) - { - // If NOT "Scenario 2: ApplyForExistingLibs only" - // Do setting for new doc libs - if (EnableAutoExpirationVersionTrim) - { - site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); - site.VersionPolicyForNewLibrariesTemplate.SetAutoExpiration(); - context.ExecuteQueryRetry(); - } - else - { - site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); - if (ExpireVersionsAfterDays == 0) - { - site.VersionPolicyForNewLibrariesTemplate.SetNoExpiration(MajorVersions); - context.ExecuteQueryRetry(); - } - else - { - site.VersionPolicyForNewLibrariesTemplate.SetExpireAfter(MajorVersions, ExpireVersionsAfterDays); - context.ExecuteQueryRetry(); - } - } - } - - if (!(ParameterSpecified(nameof(ApplyForNewLibs)) && - !ParameterSpecified(nameof(ApplyForExistingLibs)))) - { - // If NOT "Scenario 1: ApplyForNewLibs only" - // Create setting request for existing doc libs - if (EnableAutoExpirationVersionTrim) - { - site.StartSetVersionPolicyForDocLibs(true, -1, -1, -1); - context.ExecuteQueryRetry(); - } - else - { - site.StartSetVersionPolicyForDocLibs(false, MajorVersions, MinorVersions, ExpireVersionsAfterDays); - context.ExecuteQueryRetry(); - } - } - } - else - { - if (ParameterSpecified(nameof(ApplyForNewLibs)) || - ParameterSpecified(nameof(ApplyForExistingLibs)) ) - { - throw new PSArgumentException($"You must specify EnableAutoExpirationVersionTrim and other version policy related parameters (ExpireVersionsAfterDays, MajorVersions, MinorVersions) when ApplyForNewLibs or ApplyForExistingLibs is specified."); - } - - if (ParameterSpecified(nameof(ExpireVersionsAfterDays)) || - ParameterSpecified(nameof(MajorVersions)) || - ParameterSpecified(nameof(MinorVersions))) - { - throw new PSArgumentException($"You must specify EnableAutoExpirationVersionTrim when ExpireVersionsAfterDays, MajorVersions or MinorVersions is specified."); - } - } - } - } - if (IsTenantProperty()) { var tenantAdminUrl = UrlUtilities.GetTenantAdministrationUrl(context.Url); diff --git a/src/Commands/Site/SetSiteVersionPolicy.cs b/src/Commands/Site/SetSiteVersionPolicy.cs new file mode 100644 index 000000000..4cc1dc39b --- /dev/null +++ b/src/Commands/Site/SetSiteVersionPolicy.cs @@ -0,0 +1,194 @@ +using Microsoft.SharePoint.Client; + +using System; +using System.Linq.Expressions; +using System.Management.Automation; +using PnP.PowerShell.Commands.Model.SharePoint; + +namespace PnP.PowerShell.Commands.Site +{ + [Cmdlet(VerbsCommon.Set, "PnPSiteVersionPolicy")] + [OutputType(typeof(void))] + public class SetSiteVersionPolicy : PnPSharePointCmdlet + { + [Parameter(Mandatory = false)] + public bool EnableAutoExpirationVersionTrim; + + [Parameter(Mandatory = false)] + public int ExpireVersionsAfterDays; + + [Parameter(Mandatory = false)] + public int MajorVersions; + + [Parameter(Mandatory = false)] + public int MajorWithMinorVersions; + + [Parameter(Mandatory = false)] + public SwitchParameter InheritFromTenant; + + [Parameter(Mandatory = false)] + public SwitchParameter ApplyToNewDocumentLibraries; + + [Parameter(Mandatory = false)] + public SwitchParameter ApplyToExistingDocumentLibraries; + + [Parameter(Mandatory = false)] + public SwitchParameter CancelForExistingDocumentLibraries; + + protected override void ExecuteCmdlet() + { + var context = ClientContext; + var site = ClientContext.Site; + + if (ParameterSpecified(nameof(InheritFromTenant))) + { + if (ParameterSpecified(nameof(EnableAutoExpirationVersionTrim)) || + ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + ParameterSpecified(nameof(MajorVersions)) || + ParameterSpecified(nameof(MajorWithMinorVersions)) || + ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) || + ParameterSpecified(nameof(ApplyToExistingDocumentLibraries)) || + ParameterSpecified(nameof(CancelForExistingDocumentLibraries))) + { + throw new PSArgumentException($"Don't specify version policy related parameters (EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions, MajorWithMinorVersions, ApplyToNewDocumentLibraries, ApplyToExistingDocumentLibraries, CancelForExistingDocumentLibraries) when InheritFromTenant is specified."); + } + + site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); + site.VersionPolicyForNewLibrariesTemplate.InheritTenantSettings(); + context.ExecuteQueryRetry(); + WriteWarning("The setting for new document libraries takes effect immediately. Please run Get-PnPSiteVersionPolicy to display the newly set values."); + } + else + { + if (ParameterSpecified(nameof(CancelForExistingDocumentLibraries))) + { + if (ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) || + ParameterSpecified(nameof(ApplyToExistingDocumentLibraries)) || + ParameterSpecified(nameof(EnableAutoExpirationVersionTrim)) || + ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + ParameterSpecified(nameof(MajorVersions)) || + ParameterSpecified(nameof(MajorWithMinorVersions))) + { + throw new PSArgumentException($"Don't specify the version policy related parameters (ApplyToNewDocumentLibraries, ApplyToExistingDocumentLibraries, EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersions) when CancelForExistingDocumentLibraries is specified."); + } + + site.CancelSetVersionPolicyForDocLibs(); + context.ExecuteQueryRetry(); + } + else + { + // There are 4 scenarios for parameters ApplyToNewDocumentLibraries and ApplyToExistingDocumentLibraries + // Scenario 1: ApplyToNewDocumentLibraries only + // Scenario 2: ApplyToExistingDocumentLibraries only + // Scenario 3: Both ApplyToNewDocumentLibraries and ApplyToExistingDocumentLibraries + // Scenario 4: Neither ApplyToNewDocumentLibraries or ApplyToExistingDocumentLibraries + // For Scenario 3 & 4, they should be the same, set both new document libraries and existing document libraries + // Only scenario 1 does not require MajorWithMinorVersions when EnableAutoExpirationVersionTrim is false because minor version is disabled on new document libraries + + if (ParameterSpecified(nameof(EnableAutoExpirationVersionTrim))) + { + // Validate parameters when EnableAutoExpirationVersionTrim is specified + if (EnableAutoExpirationVersionTrim) + { + if (ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + ParameterSpecified(nameof(MajorVersions)) || + ParameterSpecified(nameof(MajorWithMinorVersions))) + { + throw new PSArgumentException($"Don't specify ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions when EnableAutoExpirationVersionTrim is true."); + } + } + else + { + if (ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) && + !ParameterSpecified(nameof(ApplyToExistingDocumentLibraries))) + { + // If Scenario 1: ApplyToNewDocumentLibraries only + // MinorVerions is not needed + if (!ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + !ParameterSpecified(nameof(MajorVersions)) || + ParameterSpecified(nameof(MajorWithMinorVersions))) + { + throw new PSArgumentException($"You must specify ExpireVersionsAfterDays, MajorVersions and don't specify MajorWithMinorVersions when EnableAutoExpirationVersionTrim is false for new document libraries only."); + } + } + else + { + if (!ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + !ParameterSpecified(nameof(MajorVersions)) || + !ParameterSpecified(nameof(MajorWithMinorVersions))) + { + throw new PSArgumentException($"You must specify ExpireVersionsAfterDays, MajorVersions and MajorWithMinorVersions when EnableAutoExpirationVersionTrim is false for document libraries that including existing ones."); + } + } + } + + // Do setting when EnableAutoExpirationVersionTrim is specified + if (!(!ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) && + ParameterSpecified(nameof(ApplyToExistingDocumentLibraries)))) + { + // If NOT "Scenario 2: ApplyToExistingDocumentLibraries only" + // Do setting for new document libraries + if (EnableAutoExpirationVersionTrim) + { + site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); + site.VersionPolicyForNewLibrariesTemplate.SetAutoExpiration(); + context.ExecuteQueryRetry(); + } + else + { + site.EnsureProperty(s => s.VersionPolicyForNewLibrariesTemplate); + if (ExpireVersionsAfterDays == 0) + { + site.VersionPolicyForNewLibrariesTemplate.SetNoExpiration(MajorVersions); + context.ExecuteQueryRetry(); + } + else + { + site.VersionPolicyForNewLibrariesTemplate.SetExpireAfter(MajorVersions, ExpireVersionsAfterDays); + context.ExecuteQueryRetry(); + } + } + + WriteWarning("The setting for new libraries takes effect immediately. Please run Get-PnPSiteVersionPolicy to display the newly set values."); + } + + if (!(ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) && + !ParameterSpecified(nameof(ApplyToExistingDocumentLibraries)))) + { + // If NOT "Scenario 1: ApplyToNewDocumentLibraries only" + // Create setting request for existing document libraries + if (EnableAutoExpirationVersionTrim) + { + site.StartSetVersionPolicyForDocLibs(true, -1, -1, -1); + context.ExecuteQueryRetry(); + } + else + { + site.StartSetVersionPolicyForDocLibs(false, MajorVersions, MajorWithMinorVersions, ExpireVersionsAfterDays); + 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 does not trim existing versions."); + } + } + else + { + if (ParameterSpecified(nameof(ApplyToNewDocumentLibraries)) || + ParameterSpecified(nameof(ApplyToExistingDocumentLibraries)) ) + { + throw new PSArgumentException($"You must specify EnableAutoExpirationVersionTrim and other version policy related parameters (ExpireVersionsAfterDays, MajorVersions, MajorWithMinorVersions) when ApplyToNewDocumentLibraries or ApplyToExistingDocumentLibraries is specified."); + } + + if (ParameterSpecified(nameof(ExpireVersionsAfterDays)) || + ParameterSpecified(nameof(MajorVersions)) || + ParameterSpecified(nameof(MajorWithMinorVersions))) + { + throw new PSArgumentException($"You must specify EnableAutoExpirationVersionTrim when ExpireVersionsAfterDays, MajorVersions or MajorWithMinorVersions is specified."); + } + } + } + } + } + } +} diff --git a/src/Commands/Taxonomy/MergeTerm.cs b/src/Commands/Taxonomy/MergeTerm.cs new file mode 100644 index 000000000..76175f2a6 --- /dev/null +++ b/src/Commands/Taxonomy/MergeTerm.cs @@ -0,0 +1,54 @@ +using Microsoft.SharePoint.Client; +using Microsoft.SharePoint.Client.Taxonomy; +using PnP.PowerShell.Commands.Base.PipeBinds; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Taxonomy +{ + [Cmdlet(VerbsData.Merge, "PnPTerm")] + public class MergeTerm : PnPSharePointCmdlet + { + private const string ParameterSet_TERMID = "By Term Id"; + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet_TERMID)] + [Alias("Term")] + public TaxonomyTermPipeBind Identity; + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet_TERMID)] + public TaxonomyTermPipeBind TargetTerm; + + [Parameter(Mandatory = false, ParameterSetName = ParameterAttribute.AllParameterSets)] + [Alias("TermStoreName")] + public TaxonomyTermStorePipeBind TermStore; + + protected override void ExecuteCmdlet() + { + var taxonomySession = TaxonomySession.GetTaxonomySession(ClientContext); + // Get Term Store + TermStore termStore = null; + if (TermStore == null) + { + termStore = taxonomySession.GetDefaultSiteCollectionTermStore(); + } + else + { + termStore = TermStore.GetTermStore(taxonomySession); + } + + + Term sourceterm = Identity.GetTerm(ClientContext, termStore, null, false, null); + Term destinationterm = TargetTerm.GetTerm(ClientContext, termStore, null, false, null); + + sourceterm.Merge(destinationterm); + ClientContext.ExecuteQueryRetry(); + + + } + } +} + diff --git a/src/Commands/Teams/AddTeamsChannel.cs b/src/Commands/Teams/AddTeamsChannel.cs index 2ef379906..707e30586 100644 --- a/src/Commands/Teams/AddTeamsChannel.cs +++ b/src/Commands/Teams/AddTeamsChannel.cs @@ -40,6 +40,7 @@ public class AddTeamsChannel : PnPGraphCmdlet [Parameter(Mandatory = true, ParameterSetName = ParameterSET_PRIVATE)] public string OwnerUPN; + [Obsolete("It is not supported by Microsoft Graph API now. It will be removed in the next major release.")] [Parameter(Mandatory = false, ParameterSetName = ParameterSET_SPECIFIC)] [Parameter(Mandatory = false, ParameterSetName = ParameterSET_STANDARD)] public bool IsFavoriteByDefault; @@ -59,7 +60,9 @@ protected override void ExecuteCmdlet() try { +#pragma warning disable CS0618 // Type or member is obsolete var channel = TeamsUtility.AddChannelAsync(AccessToken, Connection, groupId, DisplayName, Description, ChannelType, OwnerUPN, IsFavoriteByDefault).GetAwaiter().GetResult(); +#pragma warning restore CS0618 // Type or member is obsolete WriteObject(channel); } catch (GraphException ex) diff --git a/src/Commands/Teams/GetTeamsChannel.cs b/src/Commands/Teams/GetTeamsChannel.cs index d828c7d4c..c9f6de2b6 100644 --- a/src/Commands/Teams/GetTeamsChannel.cs +++ b/src/Commands/Teams/GetTeamsChannel.cs @@ -17,22 +17,20 @@ public class GetTeamsChannel : PnPGraphCmdlet [Parameter(Mandatory = false)] public TeamsChannelPipeBind Identity; + [Parameter(Mandatory = false)] + public SwitchParameter IncludeModerationSettings; + protected override void ExecuteCmdlet() { - var groupId = Team.GetGroupId(Connection, AccessToken); - if (groupId != null) + var groupId = Team.GetGroupId(Connection, AccessToken) ?? throw new PSArgumentException("Team not found", nameof(Team)); + + if (ParameterSpecified(nameof(Identity))) { - if (ParameterSpecified(nameof(Identity))) - { - WriteObject(Identity.GetChannel(Connection, AccessToken, groupId)); - } - else - { - WriteObject(TeamsUtility.GetChannelsAsync(AccessToken, Connection, groupId).GetAwaiter().GetResult(), true); - } - } else + WriteObject(Identity.GetChannel(Connection, AccessToken, groupId, useBeta: IncludeModerationSettings.ToBool())); + } + else { - throw new PSArgumentException("Team not found", nameof(Team)); + WriteObject(TeamsUtility.GetChannelsAsync(AccessToken, Connection, groupId, useBeta: IncludeModerationSettings.ToBool()).GetAwaiter().GetResult(), true); } } } diff --git a/src/Commands/Teams/SetTeamsChannel.cs b/src/Commands/Teams/SetTeamsChannel.cs index df41be7b2..6a834e6cf 100644 --- a/src/Commands/Teams/SetTeamsChannel.cs +++ b/src/Commands/Teams/SetTeamsChannel.cs @@ -26,65 +26,96 @@ public class SetTeamsChannel : PnPGraphCmdlet [Parameter(Mandatory = false)] public bool IsFavoriteByDefault; + [Parameter(Mandatory = false)] + public bool AllowNewMessageFromBots; + + [Parameter(Mandatory = false)] + public bool AllowNewMessageFromConnectors; + + [Parameter(Mandatory = false)] + [ArgumentCompleter(typeof(EnumAsStringArgumentCompleter))] + public Enums.TeamChannelModerationSettingReplyRestriction ReplyRestriction; + + [Parameter(Mandatory = false)] + [ArgumentCompleter(typeof(EnumAsStringArgumentCompleter))] + public Enums.TeamChannelModerationSettingNewMessageRestriction UserNewMessageRestriction; + protected override void ExecuteCmdlet() { - var groupId = Team.GetGroupId(Connection, AccessToken); - if (groupId != null) + var groupId = Team.GetGroupId(Connection, AccessToken) ?? throw new PSArgumentException("Group not found"); + var teamChannel = Identity.GetChannel(Connection, AccessToken, groupId) ?? throw new PSArgumentException("Channel not found"); + + // Flag to indicate if we have to use the beta endpoint to perform the update + var betaRequired = false; + + if (ParameterSpecified(nameof(DisplayName)) && teamChannel.DisplayName != DisplayName) + { + teamChannel.DisplayName = DisplayName; + } + else + { + teamChannel.DisplayName = null; + } + + if (ParameterSpecified(nameof(Description)) && teamChannel.Description != Description) + { + teamChannel.Description = Description; + } + else + { + teamChannel.Description = null; + } + + if (teamChannel.MembershipType.ToLower() == "standard" && ParameterSpecified(nameof(IsFavoriteByDefault)) && teamChannel.IsFavoriteByDefault != IsFavoriteByDefault) + { + teamChannel.IsFavoriteByDefault = IsFavoriteByDefault; + } + else + { + teamChannel.IsFavoriteByDefault = null; + } + + if (ParameterSpecified(nameof(AllowNewMessageFromBots))) + { + teamChannel.ModerationSettings.AllowNewMessageFromBots = AllowNewMessageFromBots; + betaRequired = true; + } + + if (ParameterSpecified(nameof(AllowNewMessageFromConnectors))) + { + teamChannel.ModerationSettings.AllowNewMessageFromConnectors = AllowNewMessageFromConnectors; + betaRequired = true; + } + + if (ParameterSpecified(nameof(ReplyRestriction))) { - var teamChannel = Identity.GetChannel(Connection, AccessToken, groupId); - if (teamChannel != null) + teamChannel.ModerationSettings.ReplyRestriction = ReplyRestriction; + betaRequired = true; + } + + if (ParameterSpecified(nameof(UserNewMessageRestriction))) + { + teamChannel.ModerationSettings.UserNewMessageRestriction = UserNewMessageRestriction; + betaRequired = true; + } + + teamChannel.MembershipType = null; + try + { + var updated = TeamsUtility.UpdateChannelAsync(Connection, AccessToken, groupId, teamChannel.Id, teamChannel, useBeta: betaRequired).GetAwaiter().GetResult(); + WriteObject(updated); + } + catch (GraphException ex) + { + if (ex.Error != null) { - if (ParameterSpecified(nameof(DisplayName)) && teamChannel.DisplayName != DisplayName) - { - teamChannel.DisplayName = DisplayName; - } else - { - teamChannel.DisplayName = null; - } - if (ParameterSpecified(nameof(Description)) && teamChannel.Description != Description) - { - teamChannel.Description = Description; - } else - { - teamChannel.Description = null; - } - - if (teamChannel.MembershipType.ToLower() == "standard" && ParameterSpecified(nameof(IsFavoriteByDefault)) && teamChannel.IsFavoriteByDefault != IsFavoriteByDefault) - { - teamChannel.IsFavoriteByDefault = IsFavoriteByDefault; - } - else - { - teamChannel.IsFavoriteByDefault = null; - } - teamChannel.MembershipType = null; - try - { - var updated = TeamsUtility.UpdateChannelAsync(Connection, AccessToken, groupId, teamChannel.Id, teamChannel).GetAwaiter().GetResult(); - WriteObject(updated); - } - catch (GraphException ex) - { - if (ex.Error != null) - { - throw new PSInvalidOperationException(ex.Error.Message); - } - else - { - throw; - } - } + throw new PSInvalidOperationException(ex.Error.Message); } else { - throw new PSArgumentException("Channel not found"); + throw; } } - else - { - throw new PSArgumentException("Group not found"); - } - } } } \ No newline at end of file diff --git a/src/Commands/Utilities/AzureAuthHelper.cs b/src/Commands/Utilities/AzureAuthHelper.cs index 5e125f311..14ddc9218 100644 --- a/src/Commands/Utilities/AzureAuthHelper.cs +++ b/src/Commands/Utilities/AzureAuthHelper.cs @@ -19,7 +19,12 @@ internal static async Task AuthenticateAsync(string tenantId, string use using (var authManager = PnP.Framework.AuthenticationManager.CreateWithCredentials(username, password, azureEnvironment)) { - return await authManager.GetAccessTokenAsync(new[] { $"https://{GetGraphEndPoint(azureEnvironment)}/.default" }); + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(azureEnvironment)}"; + if (azureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + return await authManager.GetAccessTokenAsync(new[] { $"{graphEndpoint}/.default" }); } } @@ -46,7 +51,12 @@ internal static string AuthenticateDeviceLogin(CancellationTokenSource cancellat authManager.ClearTokenCache(); try { - return authManager.GetAccessTokenAsync(new string[] { $"https://{GetGraphEndPoint(azureEnvironment)}/.default" }, cancellationTokenSource.Token).GetAwaiter().GetResult(); + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(azureEnvironment)}"; + if (azureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + return authManager.GetAccessTokenAsync(new string[] { $"{graphEndpoint}/.default" }, cancellationTokenSource.Token).GetAwaiter().GetResult(); } catch (Microsoft.Identity.Client.MsalException) { @@ -78,7 +88,12 @@ internal static string AuthenticateInteractive(CancellationTokenSource cancellat authManager.ClearTokenCache(); try { - return authManager.GetAccessTokenAsync(new string[] { $"https://{GetGraphEndPoint(azureEnvironment)}/.default" }, cancellationTokenSource.Token).GetAwaiter().GetResult(); + var graphEndpoint = $"https://{AuthenticationManager.GetGraphEndPoint(azureEnvironment)}"; + if (azureEnvironment == AzureEnvironment.Custom) + { + graphEndpoint = Environment.GetEnvironmentVariable("MicrosoftGraphEndPoint", EnvironmentVariableTarget.Process); + } + return authManager.GetAccessTokenAsync(new string[] { $"{graphEndpoint}/.default" }, cancellationTokenSource.Token).GetAwaiter().GetResult(); } catch (Microsoft.Identity.Client.MsalException) { @@ -91,11 +106,6 @@ internal static string AuthenticateInteractive(CancellationTokenSource cancellat cancellationTokenSource.Cancel(); } return null; - } - - internal static string GetGraphEndPoint(AzureEnvironment azureEnvironment) - { - return PnP.Framework.AuthenticationManager.GetGraphEndPoint(azureEnvironment); - } + } } } \ No newline at end of file diff --git a/src/Commands/Utilities/PagesUtility.cs b/src/Commands/Utilities/PagesUtility.cs index 5730abfd0..7637299ba 100644 --- a/src/Commands/Utilities/PagesUtility.cs +++ b/src/Commands/Utilities/PagesUtility.cs @@ -10,12 +10,13 @@ namespace PnP.PowerShell.Commands.Utilities internal static class PagesUtility { private static readonly Expression>[] getPagesLibraryExpression = new Expression>[] {p => p.Title, p => p.TemplateType, p => p.Id, - p => p.RootFolder.QueryProperties(p => p.Properties, p => p.ServerRelativeUrl), p => p.Fields }; + p => p.RootFolder.QueryProperties(p => p.Properties, p => p.ServerRelativeUrl), p => p.Fields, p => p.ListItemEntityTypeFullName }; internal static IList GetModernPagesLibrary(IWeb web) { IList pagesLibrary = null; var libraries = web.Lists.QueryProperties(getPagesLibraryExpression) .Where(p => p.TemplateType == ListTemplateType.WebPageLibrary) + .Where(p => p.ListItemEntityTypeFullName == "SP.Data.SitePagesItem") .ToListAsync() .GetAwaiter().GetResult(); @@ -27,7 +28,7 @@ internal static IList GetModernPagesLibrary(IWeb web) { foreach (var list in libraries) { - if (list.IsPropertyAvailable(p => p.Fields) && list.Fields.AsRequested().FirstOrDefault(p => p.InternalName == "CanvasContent1") != null) + if (list.ListItemEntityTypeFullName == "SP.Data.SitePagesItem" && list.IsPropertyAvailable(p => p.Fields) && list.Fields.AsRequested().FirstOrDefault(p => p.InternalName == "CanvasContent1") != null) { pagesLibrary = list; break; diff --git a/src/Commands/Utilities/PowerAppsUtility.cs b/src/Commands/Utilities/PowerAppsUtility.cs index 773a97a48..18779bee4 100644 --- a/src/Commands/Utilities/PowerAppsUtility.cs +++ b/src/Commands/Utilities/PowerAppsUtility.cs @@ -7,6 +7,7 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; +using PnP.Framework; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Utilities.REST; @@ -14,7 +15,7 @@ namespace PnP.PowerShell.Commands.Utilities { internal static class PowerAppsUtility { - internal static async Task GetWrapper(HttpClient connection, string environmentName, string accessToken, string appName) + internal static async Task GetWrapper(HttpClient connection, string environmentName, string accessToken, string appName, AzureEnvironment azureEnvironment = AzureEnvironment.Production) { var postData = new { @@ -22,14 +23,14 @@ internal static class PowerAppsUtility $"/providers/Microsoft.PowerApps/apps/{appName}" } }; + string baseUrl = PowerPlatformUtility.GetBapEndpoint(azureEnvironment); + var wrapper = await RestHelper.PostAsync(connection, $"{baseUrl}/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/listPackageResources?api-version=2016-11-01", accessToken, payload: postData); - var wrapper = await RestHelper.PostAsync(connection, $"https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/listPackageResources?api-version=2016-11-01", accessToken, payload: postData); - return wrapper; } - internal static HttpResponseHeaders GetResponseHeader(HttpClient connection, string environmentName, string accessToken, string appName,Model.PowerPlatform.PowerApp.PowerAppPackageWrapper wrapper, object details) + internal static HttpResponseHeaders GetResponseHeader(HttpClient connection, string environmentName, string accessToken, string appName, Model.PowerPlatform.PowerApp.PowerAppPackageWrapper wrapper, object details, AzureEnvironment azureEnvironment = AzureEnvironment.Production) { var exportPostData = new { @@ -41,13 +42,14 @@ internal static HttpResponseHeaders GetResponseHeader(HttpClient connection, str resources = wrapper.Resources }; - var responseHeader = RestHelper.PostAsyncGetResponseHeader(connection, $"https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/exportPackage?api-version=2016-11-01", accessToken, payload: exportPostData).GetAwaiter().GetResult(); + string baseUrl = PowerPlatformUtility.GetBapEndpoint(azureEnvironment); + var responseHeader = RestHelper.PostAsyncGetResponseHeader(connection, $"{baseUrl}/providers/Microsoft.BusinessAppPlatform/environments/{environmentName}/exportPackage?api-version=2016-11-01", accessToken, payload: exportPostData).GetAwaiter().GetResult(); return responseHeader; } - internal static string GetPackageLink(HttpClient connection,string location,string accessToken) + internal static string GetPackageLink(HttpClient connection, string location, string accessToken) { var status = Model.PowerPlatform.PowerApp.Enums.PowerAppExportStatus.Running; var packageLink = ""; @@ -94,7 +96,7 @@ internal static byte[] GetFileByteArray(HttpClient connection, string packageLin var byteArray = fileresponse.Content.ReadAsByteArrayAsync().GetAwaiter().GetResult(); return byteArray; } - + } } } diff --git a/src/Commands/Utilities/PowerPlatformUtility.cs b/src/Commands/Utilities/PowerPlatformUtility.cs new file mode 100644 index 000000000..0930ad943 --- /dev/null +++ b/src/Commands/Utilities/PowerPlatformUtility.cs @@ -0,0 +1,57 @@ +using PnP.Framework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Utilities +{ + internal static class PowerPlatformUtility + { + public static string GetPowerAutomateEndpoint(AzureEnvironment environment) + { + return (environment) switch + { + AzureEnvironment.Production => "https://api.flow.microsoft.com", + AzureEnvironment.Germany => "https://api.flow.microsoft.com", + AzureEnvironment.China => "https://api.powerautomate.cn", + AzureEnvironment.USGovernment => "https://gov.api.flow.microsoft.us", + AzureEnvironment.USGovernmentHigh => "https://high.api.flow.microsoft.us", + AzureEnvironment.USGovernmentDoD => "https://api.flow.appsplatform.us", + AzureEnvironment.PPE => "https://api.flow.microsoft.com", + _ => "https://api.flow.microsoft.com" + }; + } + + public static string GetPowerAppsEndpoint(AzureEnvironment environment) + { + return (environment) switch + { + AzureEnvironment.Production => "https://api.powerapps.com", + AzureEnvironment.Germany => "https://api.powerapps.com", + AzureEnvironment.China => "https://api.powerautomate.cn", + AzureEnvironment.USGovernment => "https://gov.api.powerapps.us", + AzureEnvironment.USGovernmentHigh => "https://high.api.powerapps.us", + AzureEnvironment.USGovernmentDoD => "https://api.apps.appsplatform.us", + AzureEnvironment.PPE => "https://api.powerapps.com", + _ => "https://api.powerapps.com" + }; + } + + public static string GetBapEndpoint(AzureEnvironment environment) + { + return (environment) switch + { + AzureEnvironment.Production => "https://api.bap.microsoft.com", + AzureEnvironment.Germany => "https://api.bap.microsoft.com", + AzureEnvironment.China => "https://api.bap.partner.microsoftonline.cn", + AzureEnvironment.USGovernment => "https://gov.api.bap.microsoft.us", + AzureEnvironment.USGovernmentHigh => "https://high.api.bap.microsoft.us", + AzureEnvironment.USGovernmentDoD => "https://api.bap.appsplatform.us", + AzureEnvironment.PPE => "https://api.bap.microsoft.com", + _ => "https://api.bap.microsoft.com" + }; + } + } +} diff --git a/src/Commands/Utilities/REST/RestHelper.cs b/src/Commands/Utilities/REST/RestHelper.cs index b159e78df..c340be8ee 100644 --- a/src/Commands/Utilities/REST/RestHelper.cs +++ b/src/Commands/Utilities/REST/RestHelper.cs @@ -153,6 +153,12 @@ public static async Task GetAsync(HttpClient httpClient, string url, str return await SendMessageAsync(httpClient, message); } + public static async Task GetByteArrayAsync(HttpClient httpClient, string url, string accessToken, string accept = "application/json") + { + var message = GetMessage(url, HttpMethod.Get, accessToken, accept); + return await SendMessageByteArrayAsync(httpClient, message); + } + public static async Task GetAsync(HttpClient httpClient, string url, ClientContext clientContext, string accept = "application/json") { var message = GetMessage(url, HttpMethod.Get, clientContext, accept); @@ -649,6 +655,27 @@ private static async Task SendMessageAsync(HttpClient httpClient, HttpRe } } + private static async Task SendMessageByteArrayAsync(HttpClient httpClient, HttpRequestMessage message) + { + var response = await httpClient.SendAsync(message); + while (response.StatusCode == (HttpStatusCode)429) + { + // throttled + var retryAfter = response.Headers.RetryAfter; + await Task.Delay(retryAfter.Delta.Value.Seconds * 1000); + response = await httpClient.SendAsync(CloneMessage(message)); + } + if (response.IsSuccessStatusCode) + { + return await response.Content.ReadAsByteArrayAsync(); + } + else + { + var errorContent = await response.Content.ReadAsStringAsync(); + throw new HttpRequestException($"HTTP Error {response.StatusCode}: {errorContent}"); + } + } + private static async Task SendMessageAsyncGetResponseHeader(HttpClient httpClient, HttpRequestMessage message) { var response = await httpClient.SendAsync(message); diff --git a/src/Commands/Utilities/TeamsUtility.cs b/src/Commands/Utilities/TeamsUtility.cs index 92cc349e1..a5cd0d376 100644 --- a/src/Commands/Utilities/TeamsUtility.cs +++ b/src/Commands/Utilities/TeamsUtility.cs @@ -627,19 +627,28 @@ public static async Task UpdateTeamUserRole(PnPConnection connection, #endregion #region Channel - public static async Task> GetChannelsAsync(string accessToken, PnPConnection connection, string groupId) + + public static async Task GetChannelAsync(string accessToken, PnPConnection connection, string groupId, string channelId, bool useBeta = false) + { + var channel = await GraphHelper.GetAsync(connection, $"{(useBeta ? "beta" : "v1.0")}/teams/{groupId}/channels/{channelId}", accessToken); + return channel; + } + + public static async Task> GetChannelsAsync(string accessToken, PnPConnection connection, string groupId, bool useBeta = false) { - var collection = await GraphHelper.GetResultCollectionAsync(connection, $"v1.0/teams/{groupId}/channels", accessToken); + var collection = await GraphHelper.GetResultCollectionAsync(connection, $"{(useBeta ? "beta" : "v1.0")}/teams/{groupId}/channels", accessToken); return collection; } - public static async Task GetPrimaryChannelAsync(string accessToken, PnPConnection connection, string groupId) + + public static async Task GetPrimaryChannelAsync(string accessToken, PnPConnection connection, string groupId, bool useBeta = false) { - var collection = await GraphHelper.GetAsync(connection, $"v1.0/teams/{groupId}/primaryChannel", accessToken); + var collection = await GraphHelper.GetAsync(connection, $"{(useBeta ? "beta" : "v1.0")}/teams/{groupId}/primaryChannel", accessToken); return collection; } - public static async Task DeleteChannelAsync(string accessToken, PnPConnection connection, string groupId, string channelId) + + public static async Task DeleteChannelAsync(string accessToken, PnPConnection connection, string groupId, string channelId, bool useBeta = false) { - return await GraphHelper.DeleteAsync(connection, $"v1.0/teams/{groupId}/channels/{channelId}", accessToken); + return await GraphHelper.DeleteAsync(connection, $"{(useBeta ? "beta" : "v1.0")}/teams/{groupId}/channels/{channelId}", accessToken); } public static async Task AddChannelAsync(string accessToken, PnPConnection connection, string groupId, string displayName, string description, TeamsChannelType channelType, string ownerUPN, bool isFavoriteByDefault) @@ -667,7 +676,7 @@ public static async Task AddChannelAsync(string accessToken, PnPCon } else { - channel.IsFavoriteByDefault = isFavoriteByDefault; + channel.IsFavoriteByDefault = null; return await GraphHelper.PostAsync(connection, $"v1.0/teams/{groupId}/channels", channel, accessToken); } } @@ -705,7 +714,7 @@ public static async Task> GetMessageRepliesAsync(P { var replies = await GraphHelper.GetResultCollectionAsync(connection, $"v1.0/teams/{groupId}/channels/{channelId}/messages/{messageId}/replies", accessToken); - return includeDeleted ? replies.ToList() : replies.Where(r => r.DeletedDateTime.HasValue).ToList(); + return includeDeleted ? replies.ToList() : replies.Where(r => !r.DeletedDateTime.HasValue).ToList(); } /// @@ -716,9 +725,12 @@ public static async Task GetMessageReplyAsync(PnPConnec return await GraphHelper.GetAsync(connection, $"v1.0/teams/{groupId}/channels/{channelId}/messages/{messageId}/replies/{replyId}", accessToken); } - public static async Task UpdateChannelAsync(PnPConnection connection, string accessToken, string groupId, string channelId, TeamChannel channel) + /// + /// Updates a Teams Channel + /// + public static async Task UpdateChannelAsync(PnPConnection connection, string accessToken, string groupId, string channelId, TeamChannel channel, bool useBeta = false) { - return await GraphHelper.PatchAsync(connection, accessToken, $"v1.0/teams/{groupId}/channels/{channelId}", channel); + return await GraphHelper.PatchAsync(connection, accessToken, $"{(useBeta ? "beta" : "v1.0")}/teams/{groupId}/channels/{channelId}", channel); } #endregion diff --git a/src/Commands/Web/GetWebPermission.cs b/src/Commands/Web/GetWebPermission.cs new file mode 100644 index 000000000..55c6dda65 --- /dev/null +++ b/src/Commands/Web/GetWebPermission.cs @@ -0,0 +1,46 @@ +using System.Linq; +using System.Management.Automation; +using Microsoft.SharePoint.Client; + +using PnP.Core.Model.Security; +using PnP.PowerShell.Commands.Base.PipeBinds; + +namespace PnP.PowerShell.Commands.Principals +{ + [Cmdlet(VerbsCommon.Get, "PnPWebPermission")] + [OutputType(typeof(IRoleDefinition))] + public class GetWebPermission : PnPWebCmdlet + { + [Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true, ParameterSetName = "ByName")] + public WebPipeBind Identity; + + [Parameter(Mandatory = true)] + public int PrincipalId; + + protected override void ExecuteCmdlet() + { + + Web web = CurrentWeb; + if (ParameterSpecified(nameof(Identity))) + { + web = Identity.GetWeb(ClientContext); + } + + var roleAssignments = web.RoleAssignments; + web.Context.Load(roleAssignments); + web.Context.ExecuteQueryRetry(); + + RoleAssignment roleAssignment = roleAssignments.FirstOrDefault((RoleAssignment ra) => ra.PrincipalId.Equals(PrincipalId)); + if (roleAssignment != null) + { + web.Context.Load(roleAssignment.RoleDefinitionBindings); + web.Context.ExecuteQueryRetry(); + + if (roleAssignment.RoleDefinitionBindings.Count > 0) + { + WriteObject(roleAssignment.RoleDefinitionBindings, true); + } + } + } + } +} diff --git a/src/Commands/Web/SetWeb.cs b/src/Commands/Web/SetWeb.cs index a8af56398..00344fc46 100644 --- a/src/Commands/Web/SetWeb.cs +++ b/src/Commands/Web/SetWeb.cs @@ -56,6 +56,8 @@ public class SetWeb : PnPWebCmdlet [Parameter(Mandatory = false)] public SwitchParameter HideTitleInHeader; + [Parameter(Mandatory = false)] + public SwitchParameter HorizontalQuickLaunch; protected override void ExecuteCmdlet() { var dirty = false; @@ -160,6 +162,12 @@ protected override void ExecuteCmdlet() dirty = true; break; } + case nameof(HorizontalQuickLaunch): + { + CurrentWeb.HorizontalQuickLaunch = HorizontalQuickLaunch.ToBool(); + dirty = true; + break; + } } } diff --git a/src/Commands/Web/SetWebHeader.cs b/src/Commands/Web/SetWebHeader.cs index 27d40aa0c..1875e796c 100644 --- a/src/Commands/Web/SetWebHeader.cs +++ b/src/Commands/Web/SetWebHeader.cs @@ -14,6 +14,9 @@ public class SetWebHeader : PnPWebCmdlet [Parameter(Mandatory = false)] public string SiteLogoUrl; + [Parameter(Mandatory = false)] + public string SiteThumbnailUrl; + [Parameter(Mandatory = false)] public HeaderLayoutType HeaderLayout = HeaderLayoutType.Standard; @@ -38,18 +41,17 @@ public class SetWebHeader : PnPWebCmdlet protected override void ExecuteCmdlet() { var requiresWebUpdate = false; - + if(ParameterSpecified(nameof(SiteLogoUrl))) - { - WriteVerbose($"Setting site logo image to '{SiteLogoUrl}'"); - - var stringContent = new StringContent("{\"relativeLogoUrl\":\"" + SiteLogoUrl + "\",\"type\":0,\"aspect\":1}"); - stringContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); - CurrentWeb.EnsureProperties(p => p.Url); - var result = GraphHelper.PostAsync(Connection, $"{CurrentWeb.Url.TrimEnd('/')}/_api/siteiconmanager/setsitelogo", AccessToken, stringContent).GetAwaiter().GetResult(); - WriteVerbose($"Response from setsitelogo request: {result.StatusCode}"); - } + { + SetSiteImage(SiteLogoUrl, "site logo", 1); + } + if(ParameterSpecified(nameof(SiteThumbnailUrl))) + { + SetSiteImage(SiteThumbnailUrl, "thumbnailurl", 0); + } + if(ParameterSpecified(nameof(LogoAlignment))) { WriteVerbose($"Setting site logo alignment to '{LogoAlignment}'"); @@ -120,5 +122,15 @@ protected override void ExecuteCmdlet() ClientContext.ExecuteQueryRetry(); } } + private void SetSiteImage(string imageUrl, string imageType, int aspect) + { + WriteVerbose($"Setting site {imageType} image to '{imageUrl}'"); + + var stringContent = new StringContent($"{{\"relativeLogoUrl\":\"{imageUrl}\",\"type\":0,\"aspect\":{aspect}}}"); + stringContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); + CurrentWeb.EnsureProperties(p => p.Url); + var result = GraphHelper.PostAsync(Connection, $"{CurrentWeb.Url.TrimEnd('/')}/_api/siteiconmanager/setsitelogo", AccessToken, stringContent).GetAwaiter().GetResult(); + WriteVerbose($"Response from {imageType} request: {result.StatusCode}"); + } } } diff --git a/src/PnP.PowerShell.sln b/src/PnP.PowerShell.sln index 403278f28..dcbdf9907 100644 --- a/src/PnP.PowerShell.sln +++ b/src/PnP.PowerShell.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33213.308 @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell", "Commands\ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell.ALC", "ALC\PnP.PowerShell.ALC.csproj", "{546A8F8C-AD8A-488D-98DB-5AB25CF9558B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell.Tests", "Tests\PnP.PowerShell.Tests.csproj", "{5B479E2D-67D3-4B12-9562-03D4D30B8BF9}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -28,12 +26,6 @@ Global {546A8F8C-AD8A-488D-98DB-5AB25CF9558B}.DebugLocal|Any CPU.Build.0 = DebugLocal|Any CPU {546A8F8C-AD8A-488D-98DB-5AB25CF9558B}.Release|Any CPU.ActiveCfg = Release|Any CPU {546A8F8C-AD8A-488D-98DB-5AB25CF9558B}.Release|Any CPU.Build.0 = Release|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.DebugLocal|Any CPU.ActiveCfg = DebugLocal|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.DebugLocal|Any CPU.Build.0 = DebugLocal|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5B479E2D-67D3-4B12-9562-03D4D30B8BF9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Tests/InformationManagement/ResetPnPLabelTests.cs b/src/Tests/InformationManagement/ResetPnPRetentionLabelTests.cs similarity index 68% rename from src/Tests/InformationManagement/ResetPnPLabelTests.cs rename to src/Tests/InformationManagement/ResetPnPRetentionLabelTests.cs index f007a6f37..452dd8f82 100644 --- a/src/Tests/InformationManagement/ResetPnPLabelTests.cs +++ b/src/Tests/InformationManagement/ResetPnPRetentionLabelTests.cs @@ -1,11 +1,12 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; +using System.Collections.Generic; namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] - public class ResetLabelTests + public class ResetRetentionLabelTest { #region Test Setup/CleanUp [ClassInitialize] @@ -56,7 +57,7 @@ public void Cleanup() #region Scaffolded Cmdlet Tests //TODO: This is a scaffold of the cmdlet - complete the unit test //[TestMethod] - public void ResetPnPLabelTest() + public void ResetPnPRetentionLabel_ListTest() { using (var scope = new PSTestScope(true)) { @@ -68,13 +69,36 @@ public void ResetPnPLabelTest() // From Cmdlet Help: Reset label on existing items in the library var syncToItems = ""; - var results = scope.ExecuteCommand("Reset-PnPLabel", + var results = scope.ExecuteCommand("Reset-PnPRetentionLabel", new CommandParameter("List", list), new CommandParameter("SyncToItems", syncToItems)); Assert.IsNotNull(results); } } + + //TODO: This is a scaffold of the cmdlet - complete the unit test + //[TestMethod] + public void ResetPnPRetentionLabel_BulkItemsTest() + { + using (var scope = new PSTestScope(true)) + { + // Complete writing cmd parameters + + // This is a mandatory parameter + // From Cmdlet Help: The ID, Title or Url of the list. + var list = ""; + // This is a mandatory parameter + // From Cmdlet Help: List of iist item IDs. + var itemIds = new List(); + + var results = scope.ExecuteCommand("Reset-PnPRetentionLabel", + new CommandParameter("List", list), + new CommandParameter("ItemIds", itemIds)); + + Assert.IsNotNull(results); + } + } #endregion } } diff --git a/src/Tests/InformationManagement/SetPnPLabelTests.cs b/src/Tests/InformationManagement/SetPnPRetentionLabelTests.cs similarity index 68% rename from src/Tests/InformationManagement/SetPnPLabelTests.cs rename to src/Tests/InformationManagement/SetPnPRetentionLabelTests.cs index 58cb48a91..758116b54 100644 --- a/src/Tests/InformationManagement/SetPnPLabelTests.cs +++ b/src/Tests/InformationManagement/SetPnPRetentionLabelTests.cs @@ -1,11 +1,12 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; +using System.Collections.Generic; namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] - public class SetLabelTests + public class SetRetentionLabelTests { #region Test Setup/CleanUp [ClassInitialize] @@ -56,7 +57,7 @@ public void Cleanup() #region Scaffolded Cmdlet Tests //TODO: This is a scaffold of the cmdlet - complete the unit test //[TestMethod] - public void SetPnPLabelTest() + public void SetPnPRetentionLabel_ListTest() { using (var scope = new PSTestScope(true)) { @@ -75,7 +76,7 @@ public void SetPnPLabelTest() // From Cmdlet Help: Block editing of items in the library var blockEdit = ""; - var results = scope.ExecuteCommand("Set-PnPLabel", + var results = scope.ExecuteCommand("Set-PnPRetentionLabel", new CommandParameter("List", list), new CommandParameter("Label", label), new CommandParameter("SyncToItems", syncToItems), @@ -85,6 +86,33 @@ public void SetPnPLabelTest() Assert.IsNotNull(results); } } + + //TODO: This is a scaffold of the cmdlet - complete the unit test + //[TestMethod] + public void SetPnPRetentionLabel_BulkItemsTest() + { + using (var scope = new PSTestScope(true)) + { + // Complete writing cmd parameters + + // This is a mandatory parameter + // From Cmdlet Help: The ID, Title or Url of the list. + var list = ""; + // This is a mandatory parameter + // From Cmdlet Help: List of iist item IDs. + var itemIds = new List(); + // This is a mandatory parameter + // From Cmdlet Help: Name of retention label to be set. + var label = ""; + + var results = scope.ExecuteCommand("Reset-PnPRetentionLabel", + new CommandParameter("List", list), + new CommandParameter("ItemIds", itemIds), + new CommandParameter("Label", label)); + + Assert.IsNotNull(results); + } + } #endregion } } diff --git a/src/Tests/PnP.PowerShell.Tests.csproj b/src/Tests/PnP.PowerShell.Tests.csproj index 6b4ba1813..a35882600 100644 --- a/src/Tests/PnP.PowerShell.Tests.csproj +++ b/src/Tests/PnP.PowerShell.Tests.csproj @@ -24,7 +24,7 @@ - + diff --git a/version.txt b/version.txt index 3371bc2af..78df071bf 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.2.156 \ No newline at end of file +2.3.72 \ No newline at end of file