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 944cf6540..0f9782b2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - 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 'Get-PnPWebPermission' cmdlet which retrieves permission given by user for specific web. (#3685)[https://github.com/pnp/powershell/pull/3685] ### Fixed @@ -23,9 +32,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - 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) ### Contributors +- Daniel Cecil [danielcecil] +- Rohit Devmore [rohit404404] +- Konrad K. [wilecoyotegenius] +- Kunj Balkrishna Sangani [kunj-sangani] - Koen Zomers [koenzomers] - Reshmee Auckloo [reshme011] - Nishkalank Bezawada [NishkalankBezawada] 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/Get-PnPDeletedContainer.md b/documentation/Get-PnPDeletedContainer.md index 1a62e0b5e..55043bafb 100644 --- a/documentation/Get-PnPDeletedContainer.md +++ b/documentation/Get-PnPDeletedContainer.md @@ -15,7 +15,7 @@ title: Get-PnPDeletedContainer * SharePoint: Access to the SharePoint Tenant Administration site -The Get-SPODeletedContainer 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. +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 @@ -54,4 +54,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-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-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-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/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 index 9d474d874..c85df9e37 100644 --- a/documentation/Remove-PnPContainer.md +++ b/documentation/Remove-PnPContainer.md @@ -70,7 +70,7 @@ Specify container site url or container id. Type: ContainerPipeBind Parameter Sets: (All) -Required: Falsegit +Required: true Position: 0 Default value: None Accept pipeline input: True (ByValue) 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/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 ' -Fields 'Title','Choice' -IncludeSecurity" }, { - "Id": 33, "Rank": 1, "CommandName": "Add-PnPDocumentSet", + "Id": 33, "Command": "Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\"" }, { - "Id": 34, "Rank": 1, "CommandName": "Add-PnPEventReceiver", + "Id": 34, "Command": "Add-PnPEventReceiver -List \"ProjectList\" -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous" }, { - "Id": 35, "Rank": 2, "CommandName": "Add-PnPEventReceiver", + "Id": 35, "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType WebAdding -Synchronization Synchronous" }, { - "Id": 36, "Rank": 3, "CommandName": "Add-PnPEventReceiver", + "Id": 36, "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListAdding -Synchronization Synchronous -Scope Site" }, { - "Id": 37, "Rank": 4, "CommandName": "Add-PnPEventReceiver", + "Id": 37, "Command": "Add-PnPEventReceiver -Name \"TestEventReceiver\" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ListDeleted -Synchronization Asynchronous -Scope Web" }, { - "Id": 38, "Rank": 1, "CommandName": "Add-PnPField", + "Id": 38, "Command": "Add-PnPField -Type Calculated -InternalName \"C1\" -DisplayName \"C1\" -Formula \"=[Title]\"" }, { - "Id": 39, "Rank": 2, "CommandName": "Add-PnPField", + "Id": 39, "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Location\" -InternalName \"SPSLocation\" -Type Choice -Group \"Demo Group\" -AddToDefaultView -Choices \"Stockholm\",\"Helsinki\",\"Oslo\"" }, { - "Id": 40, "Rank": 3, "CommandName": "Add-PnPField", + "Id": 40, "Command": "Add-PnPField -List \"Demo list\" -DisplayName \"Speakers\" -InternalName \"SPSSpeakers\" -Type MultiChoice -Group \"Demo Group\" -AddToDefaultView -Choices \"Obiwan Kenobi\",\"Darth Vader\", \"Anakin Skywalker\"" }, { - "Id": 41, "Rank": 4, "CommandName": "Add-PnPField", + "Id": 41, "Command": "Add-PnPField -List \"Demo List\" -Field \"MyTestCol\"" }, { - "Id": 42, "Rank": 5, "CommandName": "Add-PnPField", + "Id": 42, "Command": "Add-PnPField -Type Choice -Choices \"PnP\",\"Parker\",\"Sharing Is Caring\" -DisplayName \"My Test Column\" -InternalName \"MyTestCol\"" }, { - "Id": 43, "Rank": 6, "CommandName": "Add-PnPField", + "Id": 43, "Command": "Add-PnPField -Type Calculated -ResultType Number -DisplayName \"My Calculated Column\" -InternalName \"MyCalcCol\" -Formula \"=Today()\"" }, { - "Id": 44, "Rank": 1, "CommandName": "Add-PnPFieldToContentType", + "Id": 44, "Command": "Add-PnPFieldToContentType -Field \"Project_Name\" -ContentType \"Project Document\"" }, { - "Id": 45, "Rank": 1, "CommandName": "Add-PnPFile", + "Id": 45, "Command": "Add-PnPFile -Path c:\\temp\\company.master -Folder \"_catalogs/masterpage\"" }, { - "Id": 46, "Rank": 2, "CommandName": "Add-PnPFile", + "Id": 46, "Command": "Add-PnPFile -Path .\\displaytemplate.html -Folder \"_catalogs/masterpage/display templates/test\"" }, { - "Id": 47, "Rank": 3, "CommandName": "Add-PnPFile", + "Id": 47, "Command": "Add-PnPFile -Path .\\sample.doc -Folder \"Shared Documents\" -Values @{Modified=\"12/28/2023\"}" }, { - "Id": 48, "Rank": 4, "CommandName": "Add-PnPFile", + "Id": 48, "Command": "Add-PnPFile -FileName sample.doc -Folder \"Shared Documents\" -Stream $fileStream -Values @{Modified=\"12/28/2023\"}" }, { - "Id": 49, "Rank": 5, "CommandName": "Add-PnPFile", + "Id": 49, "Command": "Add-PnPFile -Path sample.doc -Folder \"Shared Documents\" -ContentType \"Document\" -Values @{Modified=\"12/28/2023\"}" }, { - "Id": 50, "Rank": 6, "CommandName": "Add-PnPFile", + "Id": 50, "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -Values @{Modified=\"12/28/2016\"; Created=\"12/28/2023\"; Editor=23}" }, { - "Id": 51, "Rank": 7, "CommandName": "Add-PnPFile", + "Id": 51, "Command": "Add-PnPFile -Path sample.docx -Folder \"Documents\" -NewFileName \"differentname.docx\"" }, { - "Id": 52, "Rank": 8, "CommandName": "Add-PnPFile", + "Id": 52, "Command": "Add-PnPFile -FileName sample.txt -Folder \"Shared Documents\" -Content '{ \"Test\": \"Value\" }'" }, { - "Id": 53, "Rank": 1, "CommandName": "Add-PnPFileAnonymousSharingLink", + "Id": 53, "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Id": 54, "Rank": 2, "CommandName": "Add-PnPFileAnonymousSharingLink", + "Id": 54, "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Password \"PnPRocks!\"" }, { - "Id": 55, "Rank": 3, "CommandName": "Add-PnPFileAnonymousSharingLink", + "Id": 55, "Command": "Add-PnPFileAnonymousSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type View -ExpirationDateTime (Get-Date).AddDays(15)" }, { - "Id": 56, "Rank": 1, "CommandName": "Add-PnPFileOrganizationalSharingLink", + "Id": 56, "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Id": 57, "Rank": 2, "CommandName": "Add-PnPFileOrganizationalSharingLink", + "Id": 57, "Command": "Add-PnPFileOrganizationalSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit" }, { - "Id": 58, "Rank": 1, "CommandName": "Add-PnPFileSharingInvite", + "Id": 58, "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" }, { - "Id": 59, "Rank": 2, "CommandName": "Add-PnPFileSharingInvite", + "Id": 59, "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" }, { - "Id": 60, "Rank": 3, "CommandName": "Add-PnPFileSharingInvite", + "Id": 60, "Command": "Add-PnPFileSharingInvite -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)" }, { - "Id": 61, "Rank": 1, "CommandName": "Add-PnPFileToSiteTemplate", + "Id": 61, "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"Instructions.docx\" -Folder \"Shared Documents\"" }, { - "Id": 62, "Rank": 2, "CommandName": "Add-PnPFileToSiteTemplate", + "Id": 62, "Command": "Add-PnPFileToSiteTemplate -Path c:\\temp\\template.pnp -Source \"c:\\temp\\Sample.pptx\" -Folder \"Shared Documents\\Samples\"" }, { - "Id": 63, "Rank": 3, "CommandName": "Add-PnPFileToSiteTemplate", + "Id": 63, "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source \"./myfile.png\" -Folder \"folderinsite\" -FileLevel Published -FileOverwrite:$false" }, { - "Id": 64, "Rank": 4, "CommandName": "Add-PnPFileToSiteTemplate", + "Id": 64, "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -Source $sourceFilePath -Folder $targetFolder -Container $container" }, { - "Id": 65, "Rank": 5, "CommandName": "Add-PnPFileToSiteTemplate", + "Id": 65, "Command": "Add-PnPFileToSiteTemplate -Path template.pnp -SourceUrl \"Shared%20Documents/ProjectStatus.docx\"" }, { - "Id": 66, "Rank": 1, "CommandName": "Add-PnPFileUserSharingLink", + "Id": 66, "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 67, "Rank": 2, "CommandName": "Add-PnPFileUserSharingLink", + "Id": 67, "Command": "Add-PnPFileUserSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 68, "Rank": 1, "CommandName": "Add-PnPFlowOwner", + "Id": 68, "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -Role CanEdit" }, { - "Id": 69, "Rank": 2, "CommandName": "Add-PnPFlowOwner", + "Id": 69, "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanView" }, { - "Id": 70, "Rank": 3, "CommandName": "Add-PnPFlowOwner", + "Id": 70, "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -Role CanViewWithShare" }, { - "Id": 71, "Rank": 4, "CommandName": "Add-PnPFlowOwner", + "Id": 71, "Command": "Add-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Role CanEdit" }, { - "Id": 72, "Rank": 1, "CommandName": "Add-PnPFolder", + "Id": 72, "Command": "Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" }, { - "Id": 73, "Rank": 2, "CommandName": "Add-PnPFolder", + "Id": 73, "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents\"" }, { - "Id": 74, "Rank": 3, "CommandName": "Add-PnPFolder", + "Id": 74, "Command": "Add-PnPFolder -Name NewFolder -Folder \"Shared Documents/Folder\"" }, { - "Id": 75, "Rank": 1, "CommandName": "Add-PnPFolderAnonymousSharingLink", + "Id": 75, "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Id": 76, "Rank": 2, "CommandName": "Add-PnPFolderAnonymousSharingLink", + "Id": 76, "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\"" }, { - "Id": 77, "Rank": 3, "CommandName": "Add-PnPFolderAnonymousSharingLink", + "Id": 77, "Command": "Add-PnPFolderAnonymousSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Password \"PnPRocks!\" -ExpirationDateTime (Get-Date).AddDays(15)" }, { - "Id": 78, "Rank": 1, "CommandName": "Add-PnPFolderOrganizationalSharingLink", + "Id": 78, "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Id": 79, "Rank": 2, "CommandName": "Add-PnPFolderOrganizationalSharingLink", + "Id": 79, "Command": "Add-PnPFolderOrganizationalSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit" }, { - "Id": 80, "Rank": 1, "CommandName": "Add-PnPFolderSharingInvite", + "Id": 80, "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn" }, { - "Id": 81, "Rank": 2, "CommandName": "Add-PnPFolderSharingInvite", + "Id": 81, "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -SendInvitation -Role Owner" }, { - "Id": 82, "Rank": 3, "CommandName": "Add-PnPFolderSharingInvite", + "Id": 82, "Command": "Add-PnPFolderSharingInvite -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\" -RequireSignIn -ExpirationDate (Get-Date).AddDays(15)" }, { - "Id": 83, "Rank": 1, "CommandName": "Add-PnPFolderUserSharingLink", + "Id": 83, "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 84, "Rank": 2, "CommandName": "Add-PnPFolderUserSharingLink", + "Id": 84, "Command": "Add-PnPFolderUserSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Type Edit -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 85, "Rank": 1, "CommandName": "Add-PnPGroupMember", + "Id": 85, "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" }, { - "Id": 86, "Rank": 2, "CommandName": "Add-PnPGroupMember", + "Id": 86, "Command": "Add-PnPGroupMember -LoginName user@company.com -Group 5" }, { - "Id": 87, "Rank": 1, "CommandName": "Add-PnPHtmlPublishingPageLayout", + "Id": 87, "Command": "Add-PnPHtmlPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" }, { - "Id": 88, "Rank": 1, "CommandName": "Add-PnPHubSiteAssociation", + "Id": 88, "Command": "Add-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\" -HubSite \"https://tenant.sharepoint.com/sites/hubsite\"" }, { - "Id": 89, "Rank": 1, "CommandName": "Add-PnPHubToHubAssociation", + "Id": 89, "Command": "Add-PnPHubToHubAssociation -Source 6638bd4c-d88d-447c-9eb2-c84f28ba8b15 -Target 0b70f9de-2b98-46e9-862f-ba5700aa2443" }, { - "Id": 90, "Rank": 2, "CommandName": "Add-PnPHubToHubAssociation", + "Id": 90, "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/targethub\"" }, { - "Id": 91, "Rank": 3, "CommandName": "Add-PnPHubToHubAssociation", + "Id": 91, "Command": "Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/toplevelhub\"\r ; Add-PnPHubToHubAssociation -SourceUrl \"https://yourtenant.sharepoint.com/sites/thirdlevelhub\" -TargetUrl \"https://yourtenant.sharepoint.com/sites/secondlevelhub\"" }, { - "Id": 92, "Rank": 1, "CommandName": "Add-PnPJavaScriptBlock", + "Id": 92, "Command": "Add-PnPJavaScriptBlock -Name myAction -script '' -Sequence 9999 -Scope Site" }, { - "Id": 93, "Rank": 2, "CommandName": "Add-PnPJavaScriptBlock", + "Id": 93, "Command": "Add-PnPJavaScriptBlock -Name myAction -script ''" }, { - "Id": 94, "Rank": 1, "CommandName": "Add-PnPJavaScriptLink", + "Id": 94, "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site" }, { - "Id": 95, "Rank": 2, "CommandName": "Add-PnPJavaScriptLink", + "Id": 95, "Command": "Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js" }, { - "Id": 96, "Rank": 1, "CommandName": "Add-PnPListDesign", + "Id": 96, "Command": "Add-PnPListDesign -Title \"My Custom List\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\"" }, { - "Id": 97, "Rank": 2, "CommandName": "Add-PnPListDesign", + "Id": 97, "Command": "Add-PnPListDesign -Title \"My Company Design\" -SiteScriptIds \"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -ListColor Orange -ListIcon BullseyeTarget -ThumbnailUrl \"https://contoso.sharepoint.com/SiteAssets/site-thumbnail.png\"" }, { - "Id": 98, "Rank": 1, "CommandName": "Add-PnPListFoldersToSiteTemplate", + "Id": 98, "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList'" }, { - "Id": 99, "Rank": 2, "CommandName": "Add-PnPListFoldersToSiteTemplate", + "Id": 99, "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive" }, { - "Id": 100, "Rank": 3, "CommandName": "Add-PnPListFoldersToSiteTemplate", + "Id": 100, "Command": "Add-PnPListFoldersToSiteTemplate -Path template.pnp -List 'PnPTestList' -Recursive -IncludeSecurity" }, { - "Id": 101, "Rank": 1, "CommandName": "Add-PnPListItem", + "Id": 101, "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 102, "Rank": 2, "CommandName": "Add-PnPListItem", + "Id": 102, "Command": "Add-PnPListItem -List \"Demo List\" -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 103, "Rank": 3, "CommandName": "Add-PnPListItem", + "Id": 103, "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"MultiUserField\"=\"user1@domain.com\",\"user2@domain.com\"}" }, { - "Id": 104, "Rank": 4, "CommandName": "Add-PnPListItem", + "Id": 104, "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Folder \"projects/europe\"" }, { - "Id": 105, "Rank": 5, "CommandName": "Add-PnPListItem", + "Id": 105, "Command": "Add-PnPListItem -List \"Demo List\" -Values @{\"Title\"=\"Sales Report\"} -Label \"Public\"" }, { - "Id": 106, "Rank": 1, "CommandName": "Add-PnPListItemAttachment", + "Id": 106, "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path c:\\temp\\test.mp4" }, { - "Id": 107, "Rank": 2, "CommandName": "Add-PnPListItemAttachment", + "Id": 107, "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.txt\" -Content '{ \"Test\": \"Value\" }'" }, { - "Id": 108, "Rank": 3, "CommandName": "Add-PnPListItemAttachment", + "Id": 108, "Command": "Add-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName \"test.mp4\" -Stream $fileStream" }, { - "Id": 109, "Rank": 1, "CommandName": "Add-PnPListItemComment", + "Id": 109, "Command": "Add-PnPListItemComment -List \"Demo List\" -Identity \"1\" -Text \"Hello world\"" }, { - "Id": 110, "Rank": 1, "CommandName": "Add-PnPMasterPage", + "Id": 110, "Command": "Add-PnPMasterPage -SourceFilePath \"page.master\" -Title \"MasterPage\" -Description \"MasterPage for Web\" -DestinationFolderHierarchy \"SubFolder\"" }, { - "Id": 111, "Rank": 1, "CommandName": "Add-PnPMicrosoft365GroupMember", + "Id": 111, "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 112, "Rank": 2, "CommandName": "Add-PnPMicrosoft365GroupMember", + "Id": 112, "Command": "Add-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Id": 113, "Rank": 1, "CommandName": "Add-PnPMicrosoft365GroupOwner", + "Id": 113, "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 114, "Rank": 2, "CommandName": "Add-PnPMicrosoft365GroupOwner", + "Id": 114, "Command": "Add-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\" -RemoveExisting" }, { - "Id": 115, "Rank": 1, "CommandName": "Add-PnPMicrosoft365GroupToSite", + "Id": 115, "Command": "Add-PnPMicrosoft365GroupToSite -Url \"https://contoso.sharepoint.com/sites/FinanceTeamsite\" -Alias \"FinanceTeamsite\" -DisplayName \"My finance team site group\"" }, { - "Id": 116, "Rank": 2, "CommandName": "Add-PnPMicrosoft365GroupToSite", + "Id": 116, "Command": "Add-PnPMicrosoft365GroupToSite -Alias \"HRTeamsite\" -DisplayName \"My HR team site group\"" }, { - "Id": 117, "Rank": 3, "CommandName": "Add-PnPMicrosoft365GroupToSite", + "Id": 117, "Command": "Add-PnPMicrosoft365GroupToSite -Url $SiteURL -Alias $GroupAlias -DisplayName $GroupName -IsPublic -KeepOldHomePage" }, { - "Id": 118, "Rank": 1, "CommandName": "Add-PnPNavigationNode", + "Id": 118, "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\"" }, { - "Id": 119, "Rank": 2, "CommandName": "Add-PnPNavigationNode", + "Id": 119, "Command": "Add-PnPNavigationNode -Title \"Contoso USA\" -Url \"http://contoso.sharepoint.com/sites/contoso/usa/\" -Location \"QuickLaunch\" -Parent 2012" }, { - "Id": 120, "Rank": 3, "CommandName": "Add-PnPNavigationNode", + "Id": 120, "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -First" }, { - "Id": 121, "Rank": 4, "CommandName": "Add-PnPNavigationNode", + "Id": 121, "Command": "Add-PnPNavigationNode -Title \"Contoso Pharmaceuticals\" -Url \"http://contoso.sharepoint.com/sites/contosopharma/\" -Location \"QuickLaunch\" -External" }, { - "Id": 122, "Rank": 5, "CommandName": "Add-PnPNavigationNode", + "Id": 122, "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\"" }, { - "Id": 123, "Rank": 6, "CommandName": "Add-PnPNavigationNode", + "Id": 123, "Command": "Add-PnPNavigationNode -Title \"Label\" -Location \"TopNavigationBar\" -Url \"http://linkless.header/\"" }, { - "Id": 124, "Rank": 7, "CommandName": "Add-PnPNavigationNode", + "Id": 124, "Command": "Add-PnPNavigationNode -Title \"Wiki\" -Location \"QuickLaunch\" -Url \"wiki/\" -PreviousNode 2012" }, { - "Id": 125, "Rank": 8, "CommandName": "Add-PnPNavigationNode", + "Id": 125, "Command": "Add-PnPNavigationNode -Title \"Contoso\" -Url \"http://contoso.sharepoint.com/sites/contoso/\" -Location \"QuickLaunch\" -OpenInNewTab" }, { - "Id": 126, "Rank": 1, "CommandName": "Add-PnPOrgAssetsLibrary", + "Id": 126, "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\"" }, { - "Id": 127, "Rank": 2, "CommandName": "Add-PnPOrgAssetsLibrary", + "Id": 127, "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -ThumbnailUrl \"https://yourtenant.sharepoint.com/sites/branding/logos/thumbnail.jpg\"" }, { - "Id": 128, "Rank": 3, "CommandName": "Add-PnPOrgAssetsLibrary", + "Id": 128, "Command": "Add-PnPOrgAssetsLibrary -LibraryUrl \"https://yourtenant.sharepoint.com/sites/branding/logos\" -CdnType Private" }, { - "Id": 129, "Rank": 1, "CommandName": "Add-PnPOrgNewsSite", + "Id": 129, "Command": "Add-PnPOrgNewsSite -OrgNewsSiteUrl \"https://yourtenant.sharepoint.com/sites/news\"" }, { - "Id": 130, "Rank": 1, "CommandName": "Add-PnPPage", + "Id": 130, "Command": "Add-PnPPage -Name \"NewPage\"" }, { - "Id": 131, "Rank": 2, "CommandName": "Add-PnPPage", + "Id": 131, "Command": "Add-PnPPage -Name \"NewPage\" -Title \"Welcome to my page\"" }, { - "Id": 132, "Rank": 3, "CommandName": "Add-PnPPage", + "Id": 132, "Command": "Add-PnPPage -Name \"NewPage\" -ContentType \"MyPageContentType\"" }, { - "Id": 133, "Rank": 4, "CommandName": "Add-PnPPage", + "Id": 133, "Command": "Add-PnPPage -Name \"NewPageTemplate\" -PromoteAs Template" }, { - "Id": 134, "Rank": 5, "CommandName": "Add-PnPPage", + "Id": 134, "Command": "Add-PnPPage -Name \"Folder/NewPage\"" }, { - "Id": 135, "Rank": 6, "CommandName": "Add-PnPPage", + "Id": 135, "Command": "Add-PnPPage -Name \"NewPage\" -HeaderLayoutType ColorBlock" }, { - "Id": 136, "Rank": 7, "CommandName": "Add-PnPPage", + "Id": 136, "Command": "Add-PnPPage -Name \"NewPage\" Article -ScheduledPublishDate (Get-Date).AddHours(1)" }, { - "Id": 137, "Rank": 8, "CommandName": "Add-PnPPage", + "Id": 137, "Command": "Add-PnPPage -Name \"NewPage\" -Translate" }, { - "Id": 138, "Rank": 9, "CommandName": "Add-PnPPage", + "Id": 138, "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043" }, { - "Id": 139, "Rank": 10, "CommandName": "Add-PnPPage", + "Id": 139, "Command": "Add-PnPPage -Name \"NewPage\" -Translate -TranslationLanguageCodes 1043,1035" }, { - "Id": 140, "Rank": 1, "CommandName": "Add-PnPPageImageWebPart", + "Id": 140, "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/siteassets/test.png\"" }, { - "Id": 141, "Rank": 2, "CommandName": "Add-PnPPageImageWebPart", + "Id": 141, "Command": "Add-PnPPageImageWebPart -Page \"MyPage\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -ImageWidth 400 -ImageHeight 200 -Caption \"Caption text\" -AlternativeText \"Alt text\" -Link \"https://pnp.github.io\"" }, { - "Id": 142, "Rank": 1, "CommandName": "Add-PnPPageSection", + "Id": 142, "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate OneColumn" }, { - "Id": 143, "Rank": 2, "CommandName": "Add-PnPPageSection", + "Id": 143, "Command": "Add-PnPPageSection -Page \"MyPage\" -SectionTemplate ThreeColumn -Order 10" }, { - "Id": 144, "Rank": 1, "CommandName": "Add-PnPPageTextPart", + "Id": 144, "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\"" }, { - "Id": 145, "Rank": 2, "CommandName": "Add-PnPPageTextPart", + "Id": 145, "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\"" }, { - "Id": 146, "Rank": 3, "CommandName": "Add-PnPPageTextPart", + "Id": 146, "Command": "Add-PnPPageTextPart -Page \"MyPage\" -Text \"Hello World!\" -ImageUrl \"/sites/contoso/SiteAssets/test.png\" -TextBeforeImage \"Text before\" -TextAfterImage \"Text after\"" }, { - "Id": 147, "Rank": 1, "CommandName": "Add-PnPPageWebPart", + "Id": 147, "Command": "Add-PnPPageWebPart -Page \"MyPage\" -DefaultWebPartType BingMap" }, { - "Id": 148, "Rank": 2, "CommandName": "Add-PnPPageWebPart", + "Id": 148, "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\"" }, { - "Id": 149, "Rank": 3, "CommandName": "Add-PnPPageWebPart", + "Id": 149, "Command": "Add-PnPPageWebPart -Page \"MyPage\" -Component \"HelloWorld\" -Section 1 -Column 2" }, { - "Id": 150, "Rank": 1, "CommandName": "Add-PnPPlannerBucket", + "Id": 150, "Command": "Add-PnPPlannerBucket -Group \"My Group\" -Plan \"My Plan\" -Name \"Project Todos\"" }, { - "Id": 151, "Rank": 2, "CommandName": "Add-PnPPlannerBucket", + "Id": 151, "Command": "Add-PnPPlannerBucket -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Name \"Project Todos\"" }, { - "Id": 152, "Rank": 1, "CommandName": "Add-PnPPlannerRoster", + "Id": 152, "Command": "Add-PnPPlannerRoster" }, { - "Id": 153, "Rank": 1, "CommandName": "Add-PnPPlannerRosterMember", + "Id": 153, "Command": "Add-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Id": 154, "Rank": 1, "CommandName": "Add-PnPPlannerTask", + "Id": 154, "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\"" }, { - "Id": 155, "Rank": 2, "CommandName": "Add-PnPPlannerTask", + "Id": 155, "Command": "Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\"" }, { - "Id": 156, "Rank": 3, "CommandName": "Add-PnPPlannerTask", + "Id": 156, "Command": "Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" }, { - "Id": 157, "Rank": 1, "CommandName": "Add-PnPPublishingImageRendition", + "Id": 157, "Command": "Add-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" }, { - "Id": 158, "Rank": 1, "CommandName": "Add-PnPPublishingPage", + "Id": 158, "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft'" }, { - "Id": 159, "Rank": 2, "CommandName": "Add-PnPPublishingPage", + "Id": 159, "Command": "Add-PnPPublishingPage -PageName 'OurNewPage' -Title 'Our new page' -PageTemplateName 'ArticleLeft' -Folder '/Pages/folder'" }, { - "Id": 160, "Rank": 1, "CommandName": "Add-PnPPublishingPageLayout", + "Id": 160, "Command": "Add-PnPPublishingPageLayout -Title 'Our custom page layout' -SourceFilePath 'customlayout.aspx' -Description 'A custom page layout' -AssociatedContentTypeID 0x01010901" }, { - "Id": 161, "Rank": 1, "CommandName": "Add-PnPRoleDefinition", + "Id": 161, "Command": "Add-PnPRoleDefinition -RoleName \"CustomPerm\"" }, { - "Id": 162, "Rank": 2, "CommandName": "Add-PnPRoleDefinition", + "Id": 162, "Command": "Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems" }, { - "Id": 163, "Rank": 3, "CommandName": "Add-PnPRoleDefinition", + "Id": 163, "Command": "Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems" }, { - "Id": 164, "Rank": 1, "CommandName": "Add-PnPSiteCollectionAdmin", + "Id": 164, "Command": "Add-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" }, { - "Id": 165, "Rank": 2, "CommandName": "Add-PnPSiteCollectionAdmin", + "Id": 165, "Command": "Add-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { - "Id": 166, "Rank": 3, "CommandName": "Add-PnPSiteCollectionAdmin", + "Id": 166, "Command": "Add-PnPSiteCollectionAdmin -PrimarySiteCollectionAdmin \"user@contoso.onmicrosoft.com\"" }, { - "Id": 167, "Rank": 1, "CommandName": "Add-PnPSiteCollectionAppCatalog", + "Id": 167, "Command": "Add-PnPSiteCollectionAppCatalog" }, { - "Id": 168, "Rank": 2, "CommandName": "Add-PnPSiteCollectionAppCatalog", + "Id": 168, "Command": "Add-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" }, { - "Id": 169, "Rank": 1, "CommandName": "Add-PnPSiteDesign", + "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" }, { - "Id": 170, "Rank": 2, "CommandName": "Add-PnPSiteDesign", + "Id": 170, "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl https://contoso.sharepoint.com/sites/templates/siteassets/logo.png" }, { - "Id": 171, "Rank": 3, "CommandName": "Add-PnPSiteDesign", + "Id": 171, "Command": "Add-PnPSiteDesign -Title \"My Company Design\" -SiteScriptIds \"e84dcb46-3ab9-4456-a136-66fc6ae3d3c5\",\"6def687f-0e08-4f1e-999c-791f3af9a600\" -Description \"My description\" -WebTemplate TeamSite -ThumbnailUrl \"https://contoso.sharepoint.com/sites/templates/my images/logo.png\"" }, { - "Id": 172, "Rank": 1, "CommandName": "Add-PnPSiteDesignFromWeb", + "Id": 172, "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll" }, { - "Id": 173, "Rank": 2, "CommandName": "Add-PnPSiteDesignFromWeb", + "Id": 173, "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" }, { - "Id": 174, "Rank": 3, "CommandName": "Add-PnPSiteDesignFromWeb", + "Id": 174, "Command": "Add-PnPSiteDesignFromWeb -Title \"My Company Design\" -Description \"My description\" -WebTemplate TeamSite -Lists \"/lists/Issue list\" -ThumbnailUrl https://contoso.sharepoint.com/SiteAssets/logo.png" }, { - "Id": 175, "Rank": 1, "CommandName": "Add-PnPSiteDesignTask", + "Id": 175, "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82" }, { - "Id": 176, "Rank": 2, "CommandName": "Add-PnPSiteDesignTask", + "Id": 176, "Command": "Add-PnPSiteDesignTask -SiteDesignId 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl \"https://contoso.sharepoint.com/sites/project\"" }, { - "Id": 177, "Rank": 1, "CommandName": "Add-PnPSiteScript", + "Id": 177, "Command": "Add-PnPSiteScript -Title \"My Site Script\" -Description \"A more detailed description\" -Content $script" }, { - "Id": 178, "Rank": 1, "CommandName": "Add-PnPSiteScriptPackage", + "Id": 178, "Command": "Add-PnPSiteScriptPackage -Title \"My Site Script Package\" -Description \"A more detailed description\" -ContentPath \"c:\\package.zip\"" }, { - "Id": 179, "Rank": 1, "CommandName": "Add-PnPSiteTemplate", + "Id": 179, "Command": "Add-PnPSiteTemplate -TenantTemplate $tenanttemplate -SiteTemplate $sitetemplate" }, { - "Id": 180, "Rank": 1, "CommandName": "Add-PnPStoredCredential", + "Id": 180, "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com" }, { - "Id": 181, "Rank": 2, "CommandName": "Add-PnPStoredCredential", + "Id": 181, "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" }, { - "Id": 182, "Rank": 3, "CommandName": "Add-PnPStoredCredential", + "Id": 182, "Command": "Add-PnPStoredCredential -Name \"https://tenant.sharepoint.com\" -Username yourname@tenant.onmicrosoft.com -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)\r ; Connect-PnPOnline -Url \"https://tenant.sharepoint.com/sites/mydemosite\"" }, { - "Id": 183, "Rank": 1, "CommandName": "Add-PnPTaxonomyField", + "Id": 183, "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TermSetPath \"TestTermGroup|TestTermSet\"" }, { - "Id": 184, "Rank": 2, "CommandName": "Add-PnPTaxonomyField", + "Id": 184, "Command": "Add-PnPTaxonomyField -DisplayName \"Test\" -InternalName \"Test\" -TaxonomyItemId \"0e5fe3c6-3e6a-4d25-9f48-82a655f15992\"" }, { - "Id": 185, "Rank": 1, "CommandName": "Add-PnPTeamsChannel", + "Id": 185, "Command": "Add-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName \"My Channel\" -IsFavoriteByDefault $true" }, { - "Id": 186, "Rank": 2, "CommandName": "Add-PnPTeamsChannel", + "Id": 186, "Command": "Add-PnPTeamsChannel -Team \"My Team\" -DisplayName \"My standard channel\"" }, { - "Id": 187, "Rank": 3, "CommandName": "Add-PnPTeamsChannel", + "Id": 187, "Command": "Add-PnPTeamsChannel -Team \"HR\" -DisplayName \"My private channel\" -ChannelType Private -OwnerUPN user1@domain.com" }, { - "Id": 188, "Rank": 4, "CommandName": "Add-PnPTeamsChannel", + "Id": 188, "Command": "Add-PnPTeamsChannel -Team \"Logistical Department\" -DisplayName \"My shared channel\" -ChannelType Shared -OwnerUPN user1@domain.com" }, { - "Id": 189, "Rank": 1, "CommandName": "Add-PnpTeamsChannelUser", + "Id": 189, "Command": "Add-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -User john@doe.com -Role Owner" }, { - "Id": 190, "Rank": 2, "CommandName": "Add-PnpTeamsChannelUser", + "Id": 190, "Command": "Add-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -User john@doe.com -Role Member" }, { - "Id": 191, "Rank": 1, "CommandName": "Add-PnPTeamsTab", + "Id": 191, "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type WebSite -ContentUrl \"https://aka.ms/m365pnp\"" }, { - "Id": 192, "Rank": 2, "CommandName": "Add-PnPTeamsTab", + "Id": 192, "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type PDF -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/General/MyFile.pdf\" -EntityId \"null\"" }, { - "Id": 193, "Rank": 3, "CommandName": "Add-PnPTeamsTab", + "Id": 193, "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Tab Name\" -Type SharePointPageAndList -WebSiteUrl \"https://contoso.sharepoint.com/sites/Marketing/SitePages/Home.aspx\"" }, { - "Id": 194, "Rank": 4, "CommandName": "Add-PnPTeamsTab", + "Id": 194, "Command": "Add-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -DisplayName \"My Excel Tab\" -Type Excel -ContentUrl \"https://contoso.sharepoint.com/sites/Marketing/Shared Documents/My Excel File.csv\" -EntityId 6" }, { - "Id": 195, "Rank": 1, "CommandName": "Add-PnPTeamsTeam", + "Id": 195, "Command": "Add-PnPTeamsTeam" }, { - "Id": 196, "Rank": 1, "CommandName": "Add-PnPTeamsUser", + "Id": 196, "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { - "Id": 197, "Rank": 2, "CommandName": "Add-PnPTeamsUser", + "Id": 197, "Command": "Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" }, { - "Id": 198, "Rank": 3, "CommandName": "Add-PnPTeamsUser", + "Id": 198, "Command": "Add-PnPTeamsUser -Team MyTeam -Users \"john@doe.com\",\"jane@doe.com\" -Role Member" }, { - "Id": 199, "Rank": 4, "CommandName": "Add-PnPTeamsUser", + "Id": 199, "Command": "Add-PnPTeamsUser -Team MyTeam -User \"jane@doe.com\" -Role Member -Channel Private" }, { - "Id": 200, "Rank": 1, "CommandName": "Add-PnPTenantCdnOrigin", + "Id": 200, "Command": "Add-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" }, { - "Id": 201, "Rank": 1, "CommandName": "Add-PnPTenantSequence", + "Id": 201, "Command": "Add-PnPTenantSequence -Template $mytemplate -Sequence $mysequence" }, { - "Id": 202, "Rank": 1, "CommandName": "Add-PnPTenantSequenceSite", + "Id": 202, "Command": "Add-PnPTenantSequenceSite -Site $myteamsite -Sequence $mysequence" }, { - "Id": 203, "Rank": 1, "CommandName": "Add-PnPTenantSequenceSubSite", + "Id": 203, "Command": "Add-PnPTenantSequenceSubSite -Site $mysite -SubSite $mysubsite" }, { - "Id": 204, "Rank": 1, "CommandName": "Add-PnPTermToTerm", + "Id": 204, "Command": "Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{\"Department\"=\"Marketing\"}" }, { - "Id": 205, "Rank": 1, "CommandName": "Add-PnPView", + "Id": 205, "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\"" }, { - "Id": 206, "Rank": 2, "CommandName": "Add-PnPView", + "Id": 206, "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Paged -RowLimit 100" }, { - "Id": 207, "Rank": 3, "CommandName": "Add-PnPView", + "Id": 207, "Command": "Add-PnPView -List \"Demo List\" -Title \"Demo View\" -Fields \"Title\",\"Address\" -Aggregations \"\"" }, { - "Id": 208, "Rank": 1, "CommandName": "Add-PnPVivaConnectionsDashboardACE", + "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\"" }, { - "Id": 209, "Rank": 2, "CommandName": "Add-PnPVivaConnectionsDashboardACE", + "Id": 209, "Command": "Add-PnPVivaConnectionsDashboardACE -Identity ThirdPartyApp -Order 1 -Title \"Hello there\" -PropertiesJSON $myProperties -CardSize Medium -Description \"ACE with description\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"" }, { - "Id": 210, "Rank": 3, "CommandName": "Add-PnPVivaConnectionsDashboardACE", + "Id": 210, "Command": "Add-PnPVivaConnectionsDashboardACE -Identity AssignedTasks -Order 2 -Title \"Tasks\" -PropertiesJSON $myProperties -CardSize Medium -Description \"My Assigned tasks\" -Iconproperty \"https://cdn.hubblecontent.osi.office.net/m365content/publish/002f8bf9-b8ee-4689-ae97-e411b756099d/691108002.jpg\"" }, { - "Id": 211, "Rank": 1, "CommandName": "Add-PnPWebhookSubscription", + "Id": 211, "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook" }, { - "Id": 212, "Rank": 2, "CommandName": "Add-PnPWebhookSubscription", + "Id": 212, "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" }, { - "Id": 213, "Rank": 3, "CommandName": "Add-PnPWebhookSubscription", + "Id": 213, "Command": "Add-PnPWebhookSubscription -List MyList -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\" -ClientState \"Hello State!\"" }, { - "Id": 214, "Rank": 1, "CommandName": "Add-PnPWebPartToWebPartPage", + "Id": 214, "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -ZoneId \"Header\" -ZoneIndex 1" }, { - "Id": 215, "Rank": 2, "CommandName": "Add-PnPWebPartToWebPartPage", + "Id": 215, "Command": "Add-PnPWebPartToWebPartPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -ZoneId \"Header\" -ZoneIndex 1" }, { - "Id": 216, "Rank": 1, "CommandName": "Add-PnPWebPartToWikiPage", + "Id": 216, "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Path \"c:\\myfiles\\listview.webpart\" -Row 1 -Column 1" }, { - "Id": 217, "Rank": 2, "CommandName": "Add-PnPWebPartToWikiPage", + "Id": 217, "Command": "Add-PnPWebPartToWikiPage -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -XML $webpart -Row 1 -Column 1" }, { - "Id": 218, "Rank": 1, "CommandName": "Add-PnPWikiPage", + "Id": 218, "Command": "Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'" }, { - "Id": 219, "Rank": 1, "CommandName": "Clear-PnPAzureADGroupMember", + "Id": 219, "Command": "Clear-PnPAzureADGroupMember -Identity \"Project Team\"" }, { - "Id": 220, "Rank": 1, "CommandName": "Clear-PnPAzureADGroupOwner", + "Id": 220, "Command": "Clear-PnPAzureADGroupOwner -Identity \"Project Team\"" }, { - "Id": 221, "Rank": 1, "CommandName": "Clear-PnPDefaultColumnValues", + "Id": 221, "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField" }, { - "Id": 222, "Rank": 2, "CommandName": "Clear-PnPDefaultColumnValues", + "Id": 222, "Command": "Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A" }, { - "Id": 223, "Rank": 1, "CommandName": "Clear-PnPListItemAsRecord", + "Id": 223, "Command": "Clear-PnPListItemAsRecord -List \"Documents\" -Identity 4" }, { - "Id": 224, "Rank": 1, "CommandName": "Clear-PnPMicrosoft365GroupMember", + "Id": 224, "Command": "Clear-PnPMicrosoft365GroupMember -Identity \"Project Team\"" }, { - "Id": 225, "Rank": 1, "CommandName": "Clear-PnPMicrosoft365GroupOwner", + "Id": 225, "Command": "Clear-PnPMicrosoft365GroupOwner -Identity \"Project Team\"" }, { - "Id": 226, "Rank": 1, "CommandName": "Clear-PnpRecycleBinItem", + "Id": 226, "Command": "Clear-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" }, { - "Id": 227, "Rank": 2, "CommandName": "Clear-PnpRecycleBinItem", + "Id": 227, "Command": "Clear-PnPRecycleBinItem -Identity $item -Force" }, { - "Id": 228, "Rank": 3, "CommandName": "Clear-PnpRecycleBinItem", + "Id": 228, "Command": "Clear-PnPRecycleBinItem -All -RowLimit 10000" }, { - "Id": 229, "Rank": 1, "CommandName": "Clear-PnPTenantAppCatalogUrl", + "Id": 229, "Command": "Clear-PnPTenantAppCatalogUrl" }, { - "Id": 230, "Rank": 1, "CommandName": "Clear-PnPTenantRecycleBinItem", + "Id": 230, "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 231, "Rank": 2, "CommandName": "Clear-PnPTenantRecycleBinItem", + "Id": 231, "Command": "Clear-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" }, { - "Id": 232, "Rank": 1, "CommandName": "Connect-PnPOnline", + "Id": 232, "Command": "Connect-PnPOnline -Url contoso.sharepoint.com -AzureEnvironment Custom -MicrosoftGraphEndPoint \"custom.graph.microsoft.com\" -AzureADLoginEndPoint \"https://custom.login.microsoftonline.com\"" }, { - "Id": 233, "Rank": 1, "CommandName": "Convert-PnPFile", + "Id": 233, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -AsMemoryStream" }, { - "Id": 234, "Rank": 2, "CommandName": "Convert-PnPFile", + "Id": 234, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\"" }, { - "Id": 235, "Rank": 3, "CommandName": "Convert-PnPFile", + "Id": 235, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\"" }, { - "Id": 236, "Rank": 4, "CommandName": "Convert-PnPFile", + "Id": 236, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Document.docx\" -Path \"C:\\Temp\" -Force" }, { - "Id": 237, "Rank": 5, "CommandName": "Convert-PnPFile", + "Id": 237, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.xlsx\" -Folder \"/sites/demo/Shared Documents/Archive\"" }, { - "Id": 238, "Rank": 6, "CommandName": "Convert-PnPFile", + "Id": 238, "Command": "Convert-PnPFile -Url \"/sites/demo/Shared Documents/Test/Book.png\" -ConvertToFormat Jpg -Folder \"/sites/demo/Shared Documents/Archive\"" }, { - "Id": 239, "Rank": 1, "CommandName": "Convert-PnPFolderToSiteTemplate", + "Id": 239, "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp" }, { - "Id": 240, "Rank": 2, "CommandName": "Convert-PnPFolderToSiteTemplate", + "Id": 240, "Command": "Convert-PnPFolderToSiteTemplate -Out template.pnp -Folder c:\\temp" }, { - "Id": 241, "Rank": 1, "CommandName": "Convert-PnPSiteTemplate", + "Id": 241, "Command": "Convert-PnPSiteTemplate -Path template.xml" }, { - "Id": 242, "Rank": 2, "CommandName": "Convert-PnPSiteTemplate", + "Id": 242, "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml" }, { - "Id": 243, "Rank": 3, "CommandName": "Convert-PnPSiteTemplate", + "Id": 243, "Command": "Convert-PnPSiteTemplate -Path template.xml -Out newtemplate.xml -ToSchema V201512" }, { - "Id": 244, "Rank": 1, "CommandName": "Convert-PnPSiteTemplateToMarkdown", + "Id": 244, "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml" }, { - "Id": 245, "Rank": 2, "CommandName": "Convert-PnPSiteTemplateToMarkdown", + "Id": 245, "Command": "Convert-PnPSiteTemplateToMarkdown -TemplatePath ./mytemplate.xml -Out ./myreport.md" }, { - "Id": 246, "Rank": 1, "CommandName": "ConvertTo-PnPPage", + "Id": 246, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite" }, { - "Id": 247, "Rank": 2, "CommandName": "ConvertTo-PnPPage", + "Id": 247, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -WebPartMappingFile c:\\contoso\\webpartmapping.xml" }, { - "Id": 248, "Rank": 3, "CommandName": "ConvertTo-PnPPage", + "Id": 248, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -AddPageAcceptBanner" }, { - "Id": 249, "Rank": 4, "CommandName": "ConvertTo-PnPPage", + "Id": 249, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -CopyPageMetadata" }, { - "Id": 250, "Rank": 5, "CommandName": "ConvertTo-PnPPage", + "Id": 250, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Id": 251, "Rank": 6, "CommandName": "ConvertTo-PnPPage", + "Id": 251, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target" }, { - "Id": 252, "Rank": 7, "CommandName": "ConvertTo-PnPPage", + "Id": 252, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Library \"SiteAssets\" -Folder \"Folder1\" -Overwrite" }, { - "Id": 253, "Rank": 8, "CommandName": "ConvertTo-PnPPage", + "Id": 253, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Folder \"\" -Overwrite" }, { - "Id": 254, "Rank": 9, "CommandName": "ConvertTo-PnPPage", + "Id": 254, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Id": 255, "Rank": 10, "CommandName": "ConvertTo-PnPPage", + "Id": 255, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType File -LogFolder c:\\temp -LogVerbose -Overwrite" }, { - "Id": 256, "Rank": 11, "CommandName": "ConvertTo-PnPPage", + "Id": 256, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -LogType SharePoint -LogSkipFlush" }, { - "Id": 257, "Rank": 12, "CommandName": "ConvertTo-PnPPage", + "Id": 257, "Command": "ConvertTo-PnPPage -Identity \"My post title\" -BlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Id": 258, "Rank": 13, "CommandName": "ConvertTo-PnPPage", + "Id": 258, "Command": "ConvertTo-PnPPage -Identity \"My post title\" -DelveBlogPage -LogType Console -Overwrite -TargetWebUrl \"https://contoso.sharepoint.com/sites/targetmodernsite\"" }, { - "Id": 259, "Rank": 14, "CommandName": "ConvertTo-PnPPage", + "Id": 259, "Command": "ConvertTo-PnPPage -Identity \"somepage.aspx\" -PublishingPage -Overwrite -TargetConnection $target -UserMappingFile c:\\\\temp\\user_mapping_file.csv" }, { - "Id": 260, "Rank": 1, "CommandName": "Copy-PnPFile", + "Id": 260, "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 261, "Rank": 2, "CommandName": "Copy-PnPFile", + "Id": 261, "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" }, { - "Id": 262, "Rank": 3, "CommandName": "Copy-PnPFile", + "Id": 262, "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" }, { - "Id": 263, "Rank": 4, "CommandName": "Copy-PnPFile", + "Id": 263, "Command": "Copy-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 264, "Rank": 5, "CommandName": "Copy-PnPFile", + "Id": 264, "Command": "Copy-PnPFile -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" }, { - "Id": 265, "Rank": 6, "CommandName": "Copy-PnPFile", + "Id": 265, "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" }, { - "Id": 266, "Rank": 7, "CommandName": "Copy-PnPFile", + "Id": 266, "Command": "Copy-PnPFile -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" }, { - "Id": 267, "Rank": 8, "CommandName": "Copy-PnPFile", + "Id": 267, "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 268, "Rank": 9, "CommandName": "Copy-PnPFile", + "Id": 268, "Command": "Copy-PnPFile -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" }, { - "Id": 269, "Rank": 10, "CommandName": "Copy-PnPFile", + "Id": 269, "Command": "Copy-PnPFile -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" }, { - "Id": 270, "Rank": 1, "CommandName": "Copy-PnPFolder", + "Id": 270, "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 271, "Rank": 2, "CommandName": "Copy-PnPFolder", + "Id": 271, "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\"" }, { - "Id": 272, "Rank": 3, "CommandName": "Copy-PnPFolder", + "Id": 272, "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory" }, { - "Id": 273, "Rank": 4, "CommandName": "Copy-PnPFolder", + "Id": 273, "Command": "Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 274, "Rank": 5, "CommandName": "Copy-PnPFolder", + "Id": 274, "Command": "Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\"" }, { - "Id": 275, "Rank": 6, "CommandName": "Copy-PnPFolder", + "Id": 275, "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\"" }, { - "Id": 276, "Rank": 7, "CommandName": "Copy-PnPFolder", + "Id": 276, "Command": "Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\"" }, { - "Id": 277, "Rank": 8, "CommandName": "Copy-PnPFolder", + "Id": 277, "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite" }, { - "Id": 278, "Rank": 9, "CommandName": "Copy-PnPFolder", + "Id": 278, "Command": "Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite" }, { - "Id": 279, "Rank": 10, "CommandName": "Copy-PnPFolder", + "Id": 279, "Command": "Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\"" }, { - "Id": 280, "Rank": 1, "CommandName": "Copy-PnPItemProxy", + "Id": 280, "Command": "Copy-PnPItemProxy \"C:\\Users\\Admin\\seattle.master\" -Destination \"C:\\Presentation\"" }, { - "Id": 281, "Rank": 1, "CommandName": "Copy-PnPList", + "Id": 281, "Command": "Copy-PnPList -Identity \"My List\" -Title \"Copy of My List\"" }, { - "Id": 282, "Rank": 2, "CommandName": "Copy-PnPList", + "Id": 282, "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment" }, { - "Id": 283, "Rank": 3, "CommandName": "Copy-PnPList", + "Id": 283, "Command": "Copy-PnPList -Identity \"My List\" -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment -Title \"My copied list\"" }, { - "Id": 284, "Rank": 4, "CommandName": "Copy-PnPList", + "Id": 284, "Command": "Copy-PnPList -SourceListUrl https://contoso.sharepoint.com/sites/templates/lists/mylist -Verbose -DestinationWebUrl https://contoso.sharepoint.com/sites/hrdepartment\\" }, { - "Id": 285, "Rank": 1, "CommandName": "Copy-PnPTeamsTeam", + "Id": 285, "Command": "Copy-PnPTeamsTeam -Identity ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members" }, { - "Id": 286, "Rank": 2, "CommandName": "Copy-PnPTeamsTeam", + "Id": 286, "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\"" }, { - "Id": 287, "Rank": 3, "CommandName": "Copy-PnPTeamsTeam", + "Id": 287, "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone apps,tabs,settings,channels,members -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" }, { - "Id": 288, "Rank": 4, "CommandName": "Copy-PnPTeamsTeam", + "Id": 288, "Command": "Copy-PnPTeamsTeam -Identity \"Team 12\" -DisplayName \"Library Assist\" -PartsToClone settings,channels -Description \"Self help community for library\" -Classification \"Library\" -Visibility public" }, { - "Id": 289, "Rank": 1, "CommandName": "Disable-PnPFeature", + "Id": 289, "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 290, "Rank": 2, "CommandName": "Disable-PnPFeature", + "Id": 290, "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" }, { - "Id": 291, "Rank": 3, "CommandName": "Disable-PnPFeature", + "Id": 291, "Command": "Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" }, { - "Id": 292, "Rank": 1, "CommandName": "Disable-PnPPageScheduling", + "Id": 292, "Command": "Disable-PnPPageScheduling" }, { - "Id": 293, "Rank": 1, "CommandName": "Disable-PnPPowerShellTelemetry", + "Id": 293, "Command": "Disable-PnPPowerShellTelemetry" }, { - "Id": 294, "Rank": 2, "CommandName": "Disable-PnPPowerShellTelemetry", + "Id": 294, "Command": "Disable-PnPPowerShellTelemetry -Force" }, { - "Id": 295, "Rank": 1, "CommandName": "Disable-PnPSharingForNonOwnersOfSite", + "Id": 295, "Command": "Disable-PnPSharingForNonOwnersOfSite" }, { - "Id": 296, "Rank": 1, "CommandName": "Disable-PnPSiteClassification", + "Id": 296, "Command": "Disable-PnPSiteClassification" }, { - "Id": 297, "Rank": 1, "CommandName": "Disconnect-PnPOnline", + "Id": 297, "Command": "Disconnect-PnPOnline" }, { - "Id": 298, "Rank": 1, "CommandName": "Enable-PnPCommSite", + "Id": 298, "Command": "Enable-PnPCommSite" }, { - "Id": 299, "Rank": 2, "CommandName": "Enable-PnPCommSite", + "Id": 299, "Command": "Enable-PnPCommSite -DesignPackageId 6142d2a0-63a5-4ba0-aede-d9fefca2c767" }, { - "Id": 300, "Rank": 1, "CommandName": "Enable-PnPFeature", + "Id": 300, "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 301, "Rank": 2, "CommandName": "Enable-PnPFeature", + "Id": 301, "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force" }, { - "Id": 302, "Rank": 3, "CommandName": "Enable-PnPFeature", + "Id": 302, "Command": "Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web" }, { - "Id": 303, "Rank": 1, "CommandName": "Enable-PnPPageScheduling", + "Id": 303, "Command": "Enable-PnPPageScheduling" }, { - "Id": 304, "Rank": 1, "CommandName": "Enable-PnPPowerShellTelemetry", + "Id": 304, "Command": "Enable-PnPPowerShellTelemetry" }, { - "Id": 305, "Rank": 2, "CommandName": "Enable-PnPPowerShellTelemetry", + "Id": 305, "Command": "Enable-PnPPowerShellTelemetry -Force" }, { - "Id": 306, "Rank": 1, "CommandName": "Enable-PnPSiteClassification", + "Id": 306, "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -DefaultClassification \"LBI\"" }, { - "Id": 307, "Rank": 2, "CommandName": "Enable-PnPSiteClassification", + "Id": 307, "Command": "Enable-PnPSiteClassification -Classifications \"HBI\",\"LBI\",\"Top Secret\" -UsageGuidelinesUrl https://aka.ms/m365pnp" }, { - "Id": 308, "Rank": 1, "CommandName": "Export-PnPListToSiteTemplate", + "Id": 308, "Command": "Export-PnPListToSiteTemplate -Out template.xml -List \"Documents\"" }, { - "Id": 309, "Rank": 2, "CommandName": "Export-PnPListToSiteTemplate", + "Id": 309, "Command": "Export-PnPListToSiteTemplate -Out template.pnp -List \"Documents\",\"Events\"" }, { - "Id": 310, "Rank": 1, "CommandName": "Export-PnPPage", + "Id": 310, "Command": "Export-PnPPage -Identity Home.aspx" }, { - "Id": 311, "Rank": 1, "CommandName": "Export-PnPPageMapping", + "Id": 311, "Command": "Export-PnPPageMapping -BuiltInPageLayoutMapping -CustomPageLayoutMapping -Folder c:\\\\temp -Overwrite" }, { - "Id": 312, "Rank": 2, "CommandName": "Export-PnPPageMapping", + "Id": 312, "Command": "Export-PnPPageMapping -CustomPageLayoutMapping -PublishingPage mypage.aspx -Folder c:\\\\temp -Overwrite" }, { - "Id": 313, "Rank": 3, "CommandName": "Export-PnPPageMapping", + "Id": 313, "Command": "Export-PnPPageMapping -BuiltInWebPartMapping -Folder c:\\\\temp -Overwrite" }, { - "Id": 314, "Rank": 1, "CommandName": "Export-PnPTaxonomy", + "Id": 314, "Command": "Export-PnPTaxonomy" }, { - "Id": 315, "Rank": 2, "CommandName": "Export-PnPTaxonomy", + "Id": 315, "Command": "Export-PnPTaxonomy -Path c:\\output.txt" }, { - "Id": 316, "Rank": 3, "CommandName": "Export-PnPTaxonomy", + "Id": 316, "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254" }, { - "Id": 317, "Rank": 4, "CommandName": "Export-PnPTaxonomy", + "Id": 317, "Command": "Export-PnPTaxonomy -Path c:\\output.txt -TermSetId f6f43025-7242-4f7a-b739-41fa32847254 -Lcid 1044" }, { - "Id": 318, "Rank": 1, "CommandName": "Export-PnPTermGroupToXml", + "Id": 318, "Command": "Export-PnPTermGroupToXml" }, { - "Id": 319, "Rank": 2, "CommandName": "Export-PnPTermGroupToXml", + "Id": 319, "Command": "Export-PnPTermGroupToXml -Out output.xml" }, { - "Id": 320, "Rank": 3, "CommandName": "Export-PnPTermGroupToXml", + "Id": 320, "Command": "Export-PnPTermGroupToXml -Out c:\\output.xml -Identity \"Test Group\"" }, { - "Id": 321, "Rank": 1, "CommandName": "Export-PnPUserInfo", + "Id": 321, "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" }, { - "Id": 322, "Rank": 2, "CommandName": "Export-PnPUserInfo", + "Id": 322, "Command": "Export-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\" | ConvertTo-Csv | Out-File MyFile.csv" }, { - "Id": 323, "Rank": 1, "CommandName": "Export-PnPUserProfile", + "Id": 323, "Command": "Export-PnPUserProfile -LoginName user@domain.com" }, { - "Id": 324, "Rank": 2, "CommandName": "Export-PnPUserProfile", + "Id": 324, "Command": "Export-PnPUserProfile -LoginName user@domain.com | ConvertTo-Csv | Out-File MyFile.csv" }, { - "Id": 325, "Rank": 1, "CommandName": "Find-PnPFile", + "Id": 325, "Command": "Find-PnPFile -Match *.master" }, { - "Id": 326, "Rank": 2, "CommandName": "Find-PnPFile", + "Id": 326, "Command": "Find-PnPFile -List \"Documents\" -Match *.pdf" }, { - "Id": 327, "Rank": 3, "CommandName": "Find-PnPFile", + "Id": 327, "Command": "Find-PnPFile -Folder \"Shared Documents/Sub Folder\" -Match *.docx" }, { - "Id": 328, "Rank": 1, "CommandName": "Get-PnPAccessToken", + "Id": 328, "Command": "Get-PnPAccessToken" }, { - "Id": 329, "Rank": 2, "CommandName": "Get-PnPAccessToken", + "Id": 329, "Command": "Get-PnPAccessToken -Decoded" }, { - "Id": 330, "Rank": 3, "CommandName": "Get-PnPAccessToken", + "Id": 330, "Command": "Get-PnPAccessToken -ResourceTypeName SharePoint" }, { - "Id": 331, "Rank": 4, "CommandName": "Get-PnPAccessToken", + "Id": 331, "Command": "Get-PnPAccessToken -ResourceTypeName ARM" }, { - "Id": 332, "Rank": 5, "CommandName": "Get-PnPAccessToken", + "Id": 332, "Command": "Get-PnPAccessToken -ResourceUrl \"https://management.azure.com/.default\"" }, { - "Id": 333, "Rank": 1, "CommandName": "Get-PnPAlert", + "Id": 333, "Command": "Get-PnPAlert" }, { - "Id": 334, "Rank": 2, "CommandName": "Get-PnPAlert", + "Id": 334, "Command": "Get-PnPAlert -List \"Demo List\"" }, { - "Id": 335, "Rank": 3, "CommandName": "Get-PnPAlert", + "Id": 335, "Command": "Get-PnPAlert -List \"Demo List\" -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" }, { - "Id": 336, "Rank": 4, "CommandName": "Get-PnPAlert", + "Id": 336, "Command": "Get-PnPAlert -Title \"Demo Alert\"" }, { - "Id": 337, "Rank": 5, "CommandName": "Get-PnPAlert", + "Id": 337, "Command": "Get-PnPAlert -AllUsers" }, { - "Id": 338, "Rank": 6, "CommandName": "Get-PnPAlert", + "Id": 338, "Command": "Get-PnPAlert -List \"Demo List\" -AllUsers" }, { - "Id": 339, "Rank": 1, "CommandName": "Get-PnPApp", + "Id": 339, "Command": "Get-PnPApp" }, { - "Id": 340, "Rank": 2, "CommandName": "Get-PnPApp", + "Id": 340, "Command": "Get-PnPApp -Scope Site" }, { - "Id": 341, "Rank": 3, "CommandName": "Get-PnPApp", + "Id": 341, "Command": "Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Id": 342, "Rank": 1, "CommandName": "Get-PnPAppErrors", + "Id": 342, "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b" }, { - "Id": 343, "Rank": 2, "CommandName": "Get-PnPAppErrors", + "Id": 343, "Command": "Get-PnPAppErrors -ProductId a2681b0c-84fe-41bf-9a8e-d480ab81ba7b -StartTimeInUtc (Get-Date).AddHours(-1).ToUniversalTime()" }, { - "Id": 344, "Rank": 1, "CommandName": "Get-PnPAppInfo", + "Id": 344, "Command": "Get-PnPAppInfo -Name \"Excel Service\"" }, { - "Id": 345, "Rank": 2, "CommandName": "Get-PnPAppInfo", + "Id": 345, "Command": "Get-PnPAppInfo -ProductId 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Id": 346, "Rank": 3, "CommandName": "Get-PnPAppInfo", + "Id": 346, "Command": "Get-PnPAppInfo -Name \" \" | Sort -Property Name" }, { - "Id": 347, "Rank": 1, "CommandName": "Get-PnPApplicationCustomizer", + "Id": 347, "Command": "Get-PnPApplicationCustomizer" }, { - "Id": 348, "Rank": 2, "CommandName": "Get-PnPApplicationCustomizer", + "Id": 348, "Command": "Get-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Id": 349, "Rank": 3, "CommandName": "Get-PnPApplicationCustomizer", + "Id": 349, "Command": "Get-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope Web" }, { - "Id": 350, "Rank": 1, "CommandName": "Get-PnPAuditing", + "Id": 350, "Command": "Get-PnPAuditing" }, { - "Id": 351, "Rank": 1, "CommandName": "Get-PnPAuthenticationRealm", + "Id": 351, "Command": "Get-PnPAuthenticationRealm" }, { - "Id": 352, "Rank": 2, "CommandName": "Get-PnPAuthenticationRealm", + "Id": 352, "Command": "Get-PnPAuthenticationRealm -Url \"https://contoso.sharepoint.com\"" }, { - "Id": 353, "Rank": 1, "CommandName": "Get-PnPAvailableLanguage", + "Id": 353, "Command": "Get-PnPAvailableLanguage" }, { - "Id": 354, "Rank": 1, "CommandName": "Get-PnPAvailableSensitivityLabel", + "Id": 354, "Command": "Get-PnPAvailableSensitivityLabel" }, { - "Id": 355, "Rank": 2, "CommandName": "Get-PnPAvailableSensitivityLabel", + "Id": 355, "Command": "Get-PnPAvailableSensitivityLabel -User johndoe@tenant.onmicrosoft.com" }, { - "Id": 356, "Rank": 3, "CommandName": "Get-PnPAvailableSensitivityLabel", + "Id": 356, "Command": "Get-PnPAvailableSensitivityLabel -Identity 47e66706-8627-4979-89f1-fa7afeba2884" }, { - "Id": 357, "Rank": 1, "CommandName": "Get-PnPAvailableSiteClassification", + "Id": 357, "Command": "Get-PnPAvailableSiteClassification" }, { - "Id": 358, "Rank": 1, "CommandName": "Get-PnPAzureACSPrincipal", + "Id": 358, "Command": "Get-PnPAzureACSPrincipal" }, { - "Id": 359, "Rank": 2, "CommandName": "Get-PnPAzureACSPrincipal", + "Id": 359, "Command": "Get-PnPAzureACSPrincipal -IncludeSubsites" }, { - "Id": 360, "Rank": 3, "CommandName": "Get-PnPAzureACSPrincipal", + "Id": 360, "Command": "Get-PnPAzureACSPrincipal -Scope Tenant" }, { - "Id": 361, "Rank": 4, "CommandName": "Get-PnPAzureACSPrincipal", + "Id": 361, "Command": "Get-PnPAzureACSPrincipal -Scope All -IncludeSubsites" }, { - "Id": 362, "Rank": 1, "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", + "Id": 362, "Command": "Get-PnPAzureADActivityReportDirectoryAudit" }, { - "Id": 363, "Rank": 2, "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", + "Id": 363, "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Identity \"Directory_c3b82411-5445-4620-aace-6a684a252673_02R72_362975819\"" }, { - "Id": 364, "Rank": 3, "CommandName": "Get-PnPAzureADActivityReportDirectoryAudit", + "Id": 364, "Command": "Get-PnPAzureADActivityReportDirectoryAudit -Filter \"activityDateTime le 2018-01-24\"" }, { - "Id": 365, "Rank": 1, "CommandName": "Get-PnPAzureADActivityReportSignIn", + "Id": 365, "Command": "Get-PnPAzureADActivityReportSignIn" }, { - "Id": 366, "Rank": 2, "CommandName": "Get-PnPAzureADActivityReportSignIn", + "Id": 366, "Command": "Get-PnPAzureADActivityReportSignIn -Identity \"da364266-533d-3186-a8b2-44ee1c21af11\"" }, { - "Id": 367, "Rank": 3, "CommandName": "Get-PnPAzureADActivityReportSignIn", + "Id": 367, "Command": "Get-PnPAzureADActivityReportSignIn -Filter \"startsWith(appDisplayName,'Graph')\"" }, { - "Id": 368, "Rank": 1, "CommandName": "Get-PnPAzureADApp", + "Id": 368, "Command": "Get-PnPAzureADApp" }, { - "Id": 369, "Rank": 2, "CommandName": "Get-PnPAzureADApp", + "Id": 369, "Command": "Get-PnPAzureADApp -Identity MyApp" }, { - "Id": 370, "Rank": 3, "CommandName": "Get-PnPAzureADApp", + "Id": 370, "Command": "Get-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Id": 371, "Rank": 4, "CommandName": "Get-PnPAzureADApp", + "Id": 371, "Command": "Get-PnPAzureADApp -Filter \"startswith(description, 'contoso')\"" }, { - "Id": 372, "Rank": 1, "CommandName": "Get-PnPAzureADAppPermission", + "Id": 372, "Command": "Get-PnPAzureADAppPermission" }, { - "Id": 373, "Rank": 2, "CommandName": "Get-PnPAzureADAppPermission", + "Id": 373, "Command": "Get-PnPAzureADAppPermission -Identity MyApp" }, { - "Id": 374, "Rank": 3, "CommandName": "Get-PnPAzureADAppPermission", + "Id": 374, "Command": "Get-PnPAzureADAppPermission -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Id": 375, "Rank": 1, "CommandName": "Get-PnPAzureADAppSitePermission", + "Id": 375, "Command": "Get-PnPAzureADAppSitePermission" }, { - "Id": 376, "Rank": 2, "CommandName": "Get-PnPAzureADAppSitePermission", + "Id": 376, "Command": "Get-PnPAzureADAppSitePermission -Site https://contoso.sharepoint.com/sites/projects" }, { - "Id": 377, "Rank": 3, "CommandName": "Get-PnPAzureADAppSitePermission", + "Id": 377, "Command": "Get-PnPAzureADAppSitePermission -PermissionId TowaS50fG1zLnNwLmV4dHwxYxNmI0OTI1" }, { - "Id": 378, "Rank": 4, "CommandName": "Get-PnPAzureADAppSitePermission", + "Id": 378, "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"Test App\"" }, { - "Id": 379, "Rank": 5, "CommandName": "Get-PnPAzureADAppSitePermission", + "Id": 379, "Command": "Get-PnPAzureADAppSitePermission -AppIdentity \"14effc36-dc8b-4f68-8919-f6beb7d847b3\"" }, { - "Id": 380, "Rank": 1, "CommandName": "Get-PnPAzureADGroup", + "Id": 380, "Command": "Get-PnPAzureADGroup" }, { - "Id": 381, "Rank": 2, "CommandName": "Get-PnPAzureADGroup", + "Id": 381, "Command": "Get-PnPAzureADGroup -Identity $groupId" }, { - "Id": 382, "Rank": 3, "CommandName": "Get-PnPAzureADGroup", + "Id": 382, "Command": "Get-PnPAzureADGroup -Identity $groupDisplayName" }, { - "Id": 383, "Rank": 4, "CommandName": "Get-PnPAzureADGroup", + "Id": 383, "Command": "Get-PnPAzureADGroup -Identity $groupSiteMailNickName" }, { - "Id": 384, "Rank": 5, "CommandName": "Get-PnPAzureADGroup", + "Id": 384, "Command": "Get-PnPAzureADGroup -Identity $group" }, { - "Id": 385, "Rank": 1, "CommandName": "Get-PnPAzureADGroupMember", + "Id": 385, "Command": "Get-PnPAzureADGroupMember -Identity $groupId" }, { - "Id": 386, "Rank": 2, "CommandName": "Get-PnPAzureADGroupMember", + "Id": 386, "Command": "Get-PnPAzureADGroupMember -Identity $group" }, { - "Id": 387, "Rank": 1, "CommandName": "Get-PnPAzureADGroupOwner", + "Id": 387, "Command": "Get-PnPAzureADGroupOwner -Identity $groupId" }, { - "Id": 388, "Rank": 2, "CommandName": "Get-PnPAzureADGroupOwner", + "Id": 388, "Command": "Get-PnPAzureADGroupOwner -Identity $group" }, { - "Id": 389, "Rank": 1, "CommandName": "Get-PnPAzureADServicePrincipal", + "Id": 389, "Command": "Get-PnPAzureADServicePrincipal" }, { - "Id": 390, "Rank": 2, "CommandName": "Get-PnPAzureADServicePrincipal", + "Id": 390, "Command": "Get-PnPAzureADServicePrincipal -AppId b8c2a8aa-33a0-43f4-a9d3-fe2851c5293e" }, { - "Id": 391, "Rank": 3, "CommandName": "Get-PnPAzureADServicePrincipal", + "Id": 391, "Command": "Get-PnPAzureADServicePrincipal -ObjectId 06ca9985-367a-41ba-9c44-b2ed88c19aec" }, { - "Id": 392, "Rank": 4, "CommandName": "Get-PnPAzureADServicePrincipal", + "Id": 392, "Command": "Get-PnPAzureADServicePrincipal -AppName \"My application\"" }, { - "Id": 393, "Rank": 5, "CommandName": "Get-PnPAzureADServicePrincipal", + "Id": 393, "Command": "Get-PnPAzureADServicePrincipal -Filter \"startswith(description, 'contoso')\"" }, { - "Id": 394, "Rank": 1, "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 394, "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Id": 395, "Rank": 2, "CommandName": "Get-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 395, "Command": "Get-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" }, { - "Id": 396, "Rank": 1, "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", + "Id": 396, "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Id": 397, "Rank": 2, "CommandName": "Get-PnPAzureADServicePrincipalAvailableAppRole", + "Id": 397, "Command": "Get-PnPAzureADServicePrincipalAvailableAppRole -Principal \"My application\"" }, { - "Id": 398, "Rank": 1, "CommandName": "Get-PnPAzureADUser", + "Id": 398, "Command": "Get-PnPAzureADUser" }, { - "Id": 399, "Rank": 2, "CommandName": "Get-PnPAzureADUser", + "Id": 399, "Command": "Get-PnPAzureADUser -EndIndex 50" }, { - "Id": 400, "Rank": 3, "CommandName": "Get-PnPAzureADUser", + "Id": 400, "Command": "Get-PnPAzureADUser -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" }, { - "Id": 401, "Rank": 4, "CommandName": "Get-PnPAzureADUser", + "Id": 401, "Command": "Get-PnPAzureADUser -Identity john@contoso.com" }, { - "Id": 402, "Rank": 5, "CommandName": "Get-PnPAzureADUser", + "Id": 402, "Command": "Get-PnPAzureADUser -Identity john@contoso.com -Select \"DisplayName\",\"extension_3721d05137db455ad81aa442e3c2d4f9_extensionAttribute1\"" }, { - "Id": 403, "Rank": 6, "CommandName": "Get-PnPAzureADUser", + "Id": 403, "Command": "Get-PnPAzureADUser -Filter \"accountEnabled eq false\"" }, { - "Id": 404, "Rank": 7, "CommandName": "Get-PnPAzureADUser", + "Id": 404, "Command": "Get-PnPAzureADUser -Filter \"startswith(DisplayName, 'John')\" -OrderBy \"DisplayName\"" }, { - "Id": 405, "Rank": 8, "CommandName": "Get-PnPAzureADUser", + "Id": 405, "Command": "Get-PnPAzureADUser -Delta" }, { - "Id": 406, "Rank": 9, "CommandName": "Get-PnPAzureADUser", + "Id": 406, "Command": "Get-PnPAzureADUser -Delta -DeltaToken abcdef" }, { - "Id": 407, "Rank": 10, "CommandName": "Get-PnPAzureADUser", + "Id": 407, "Command": "Get-PnPAzureADUser -StartIndex 10 -EndIndex 20" }, { - "Id": 408, "Rank": 1, "CommandName": "Get-PnPAzureCertificate", + "Id": 408, "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\"" }, { - "Id": 409, "Rank": 2, "CommandName": "Get-PnPAzureCertificate", + "Id": 409, "Command": "Get-PnPAzureCertificate -Path \"mycert.pfx\" -Password (ConvertTo-SecureString -String \"YourPassword\" -AsPlainText -Force)" }, { - "Id": 410, "Rank": 3, "CommandName": "Get-PnPAzureCertificate", + "Id": 410, "Command": "Get-PnPAzureCertificate -Path \"mycert.cer\" | clip" }, { - "Id": 411, "Rank": 1, "CommandName": "Get-PnPBrowserIdleSignout", + "Id": 411, "Command": "Get-PnPBrowserIdleSignout" }, { - "Id": 412, "Rank": 1, "CommandName": "Get-PnPBuiltInDesignPackageVisibility", + "Id": 412, "Command": "Get-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase" }, { - "Id": 413, "Rank": 2, "CommandName": "Get-PnPBuiltInDesignPackageVisibility", + "Id": 413, "Command": "Get-PnPBuiltInDesignPackageVisibility" }, { - "Id": 414, "Rank": 1, "CommandName": "Get-PnPBuiltInSiteTemplateSettings", + "Id": 414, "Command": "Get-PnPBuiltInSiteTemplateSettings" }, { - "Id": 415, "Rank": 2, "CommandName": "Get-PnPBuiltInSiteTemplateSettings", + "Id": 415, "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344" }, { - "Id": 416, "Rank": 3, "CommandName": "Get-PnPBuiltInSiteTemplateSettings", + "Id": 416, "Command": "Get-PnPBuiltInSiteTemplateSettings -Template CrisisManagement" }, { - "Id": 417, "Rank": 4, "CommandName": "Get-PnPBuiltInSiteTemplateSettings", + "Id": 417, "Command": "Get-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000" }, { - "Id": 418, "Rank": 5, "CommandName": "Get-PnPBuiltInSiteTemplateSettings", + "Id": 418, "Command": "Get-PnPBuiltInSiteTemplateSettings -Template All" }, { - "Id": 419, "Rank": 1, "CommandName": "Get-PnPChangeLog", + "Id": 419, "Command": "Get-PnPChangeLog" }, { - "Id": 420, "Rank": 2, "CommandName": "Get-PnPChangeLog", + "Id": 420, "Command": "Get-PnPChangeLog -Nightly" }, { - "Id": 421, "Rank": 1, "CommandName": "Get-PnPCompatibleHubContentTypes", + "Id": 421, "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1'" }, { - "Id": 422, "Rank": 2, "CommandName": "Get-PnPCompatibleHubContentTypes", + "Id": 422, "Command": "Get-PnPCompatibleHubContentTypes -WebUrl 'https://contoso.sharepoint.com/web1' -ListUrl 'https://contoso.sharepoint.com/web1/Shared Documents'" }, { - "Id": 423, "Rank": 1, "CommandName": "Get-PnPContainer", + "Id": 423, "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996" }, { - "Id": 424, "Rank": 2, "CommandName": "Get-PnPContainer", + "Id": 424, "Command": "Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" }, { - "Id": 425, "Rank": 3, "CommandName": "Get-PnPContainer", + "Id": 425, "Command": "Get-PnPContainer -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\" -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" }, { - "Id": 426, "Rank": 1, "CommandName": "Get-PnPContainerTypeConfiguration", + "Id": 426, "Command": "Get-PnPContainerTypeConfiguration -Identity a187e399-0c36-4b98-8f04-1edc167a0996" }, { - "Id": 427, "Rank": 1, "CommandName": "Get-PnPContentType", + "Id": 427, "Command": "Get-PnPContentType" }, { - "Id": 428, "Rank": 2, "CommandName": "Get-PnPContentType", + "Id": 428, "Command": "Get-PnPContentType -InSiteHierarchy" }, { - "Id": 429, "Rank": 3, "CommandName": "Get-PnPContentType", + "Id": 429, "Command": "Get-PnPContentType -Identity \"Project Document\"" }, { - "Id": 430, "Rank": 4, "CommandName": "Get-PnPContentType", + "Id": 430, "Command": "Get-PnPContentType -List \"Documents\"" }, { - "Id": 431, "Rank": 5, "CommandName": "Get-PnPContentType", + "Id": 431, "Command": "Get-PnPContentType -Includes \"SchemaXml\"" }, { - "Id": 432, "Rank": 1, "CommandName": "Get-PnPContentTypePublishingStatus", + "Id": 432, "Command": "Get-PnPContentTypePublishingStatus -ContentType 0x0101" }, { - "Id": 433, "Rank": 1, "CommandName": "Get-PnPCustomAction", + "Id": 433, "Command": "Get-PnPCustomAction" }, { - "Id": 434, "Rank": 2, "CommandName": "Get-PnPCustomAction", + "Id": 434, "Command": "Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Id": 435, "Rank": 3, "CommandName": "Get-PnPCustomAction", + "Id": 435, "Command": "Get-PnPCustomAction -Scope web" }, { - "Id": 436, "Rank": 1, "CommandName": "Get-PnPDeletedContainer", + "Id": 436, "Command": "Get-PnPDeletedContainer" }, { - "Id": 437, "Rank": 1, "CommandName": "Get-PnPDeletedMicrosoft365Group", + "Id": 437, "Command": "Get-PnPDeletedMicrosoft365Group" }, { - "Id": 438, "Rank": 2, "CommandName": "Get-PnPDeletedMicrosoft365Group", + "Id": 438, "Command": "Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Id": 439, "Rank": 1, "CommandName": "Get-PnPDeletedTeam", + "Id": 439, "Command": "Get-PnPDeletedTeam" }, { - "Id": 440, "Rank": 1, "CommandName": "Get-PnPDiagnostics", + "Id": 440, "Command": "Get-PnPDiagnostics" }, { - "Id": 441, "Rank": 1, "CommandName": "Get-PnPDisableSpacesActivation", + "Id": 441, "Command": "Get-PnPDisableSpacesActivation" }, { - "Id": 442, "Rank": 1, "CommandName": "Get-PnPDocumentSetTemplate", + "Id": 442, "Command": "Get-PnPDocumentSetTemplate -Identity \"Test Document Set\"" }, { - "Id": 443, "Rank": 2, "CommandName": "Get-PnPDocumentSetTemplate", + "Id": 443, "Command": "Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\"" }, { - "Id": 444, "Rank": 1, "CommandName": "Get-PnPEventReceiver", + "Id": 444, "Command": "Get-PnPEventReceiver" }, { - "Id": 445, "Rank": 2, "CommandName": "Get-PnPEventReceiver", + "Id": 445, "Command": "Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Id": 446, "Rank": 3, "CommandName": "Get-PnPEventReceiver", + "Id": 446, "Command": "Get-PnPEventReceiver -Identity MyReceiver" }, { - "Id": 447, "Rank": 4, "CommandName": "Get-PnPEventReceiver", + "Id": 447, "Command": "Get-PnPEventReceiver -List \"ProjectList\"" }, { - "Id": 448, "Rank": 5, "CommandName": "Get-PnPEventReceiver", + "Id": 448, "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Id": 449, "Rank": 6, "CommandName": "Get-PnPEventReceiver", + "Id": 449, "Command": "Get-PnPEventReceiver -List \"ProjectList\" -Identity MyReceiver" }, { - "Id": 450, "Rank": 7, "CommandName": "Get-PnPEventReceiver", + "Id": 450, "Command": "Get-PnPEventReceiver -Scope Site" }, { - "Id": 451, "Rank": 8, "CommandName": "Get-PnPEventReceiver", + "Id": 451, "Command": "Get-PnPEventReceiver -Scope Web" }, { - "Id": 452, "Rank": 9, "CommandName": "Get-PnPEventReceiver", + "Id": 452, "Command": "Get-PnPEventReceiver -Scope All" }, { - "Id": 453, "Rank": 1, "CommandName": "Get-PnPException", + "Id": 453, "Command": "Get-PnPException" }, { - "Id": 454, "Rank": 2, "CommandName": "Get-PnPException", + "Id": 454, "Command": "Get-PnPException -All" }, { - "Id": 455, "Rank": 1, "CommandName": "Get-PnPExternalUser", + "Id": 455, "Command": "Get-PnPExternalUser -Position 0 -PageSize 2" }, { - "Id": 456, "Rank": 2, "CommandName": "Get-PnPExternalUser", + "Id": 456, "Command": "Get-PnPExternalUser -Position 2 -PageSize 2" }, { - "Id": 457, "Rank": 1, "CommandName": "Get-PnPFeature", + "Id": 457, "Command": "Get-PnPFeature" }, { - "Id": 458, "Rank": 2, "CommandName": "Get-PnPFeature", + "Id": 458, "Command": "Get-PnPFeature -Scope Site" }, { - "Id": 459, "Rank": 3, "CommandName": "Get-PnPFeature", + "Id": 459, "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Id": 460, "Rank": 4, "CommandName": "Get-PnPFeature", + "Id": 460, "Command": "Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site" }, { - "Id": 461, "Rank": 1, "CommandName": "Get-PnPField", + "Id": 461, "Command": "Get-PnPField" }, { - "Id": 462, "Rank": 2, "CommandName": "Get-PnPField", + "Id": 462, "Command": "Get-PnPField -List \"Demo list\" -Identity \"Speakers\"" }, { - "Id": 463, "Rank": 3, "CommandName": "Get-PnPField", + "Id": 463, "Command": "Get-PnPField -Group \"Custom Columns\"" }, { - "Id": 464, "Rank": 1, "CommandName": "Get-PnPFile", + "Id": 464, "Command": "Get-PnPFile -Url \"/sites/project/Shared Documents/Document.docx\"" }, { - "Id": 465, "Rank": 2, "CommandName": "Get-PnPFile", + "Id": 465, "Command": "Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\\temp -FileName image.jpg -AsFile" }, { - "Id": 466, "Rank": 3, "CommandName": "Get-PnPFile", + "Id": 466, "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsString" }, { - "Id": 467, "Rank": 4, "CommandName": "Get-PnPFile", + "Id": 467, "Command": "Get-PnPFile -Url /sites/project/Shared Documents/Folder/Presentation.pptx -AsFileObject" }, { - "Id": 468, "Rank": 5, "CommandName": "Get-PnPFile", + "Id": 468, "Command": "Get-PnPFile -Url /sites/project/_catalogs/themes/15/company.spcolor -AsListItem" }, { - "Id": 469, "Rank": 6, "CommandName": "Get-PnPFile", + "Id": 469, "Command": "Get-PnPFile -Url /personal/john_tenant_onmicrosoft_com/Documents/Sample.xlsx -Path c:\\temp -FileName Project.xlsx -AsFile" }, { - "Id": 470, "Rank": 7, "CommandName": "Get-PnPFile", + "Id": 470, "Command": "Get-PnPFile -Url \"/sites/templates/Shared Documents/HR Site.pnp\" -AsMemoryStream" }, { + "Rank": 1, + "CommandName": "Get-PnPFileAnalyticsData", "Id": 471, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\"" + }, + { + "Rank": 2, + "CommandName": "Get-PnPFileAnalyticsData", + "Id": 472, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -LastSevenDays" + }, + { + "Rank": 3, + "CommandName": "Get-PnPFileAnalyticsData", + "Id": 473, + "Command": "Get-PnPFileAnalyticsData -Url \"/sites/project/Shared Documents/Document.docx\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" + }, + { "Rank": 1, "CommandName": "Get-PnPFileInFolder", + "Id": 474, "Command": "Get-PnPFileInFolder" }, { - "Id": 472, "Rank": 2, "CommandName": "Get-PnPFileInFolder", + "Id": 475, "Command": "Get-PnPFileInFolder -Recurse" }, { - "Id": 473, "Rank": 3, "CommandName": "Get-PnPFileInFolder", + "Id": 476, "Command": "Get-PnPFileInFolder -Identity \"Shared Documents\"" }, { - "Id": 474, "Rank": 4, "CommandName": "Get-PnPFileInFolder", + "Id": 477, "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" }, { - "Id": 475, "Rank": 5, "CommandName": "Get-PnPFileInFolder", + "Id": 478, "Command": "Get-PnPFileInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" }, { - "Id": 476, "Rank": 1, "CommandName": "Get-PnPFileSharingLink", + "Id": 479, "Command": "Get-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Id": 477, "Rank": 1, "CommandName": "Get-PnPFileVersion", + "Id": 480, "Command": "Get-PnPFileVersion -Url Documents/MyDocument.docx" }, { - "Id": 478, "Rank": 2, "CommandName": "Get-PnPFileVersion", + "Id": 481, "Command": "Get-PnPFileVersion -Url \"/sites/blah/Shared Documents/MyDocument.docx\"" }, { - "Id": 479, "Rank": 1, "CommandName": "Get-PnPFlow", + "Id": 482, "Command": "Get-PnPFlow -AsAdmin" }, { - "Id": 480, "Rank": 2, "CommandName": "Get-PnPFlow", + "Id": 483, "Command": "Get-PnPFlow -SharingStatus SharedWithMe" }, { - "Id": 481, "Rank": 3, "CommandName": "Get-PnPFlow", + "Id": 484, "Command": "Get-PnPFlow -Identity fba63225-baf9-4d76-86a1-1b42c917a182" }, { - "Id": 482, "Rank": 1, "CommandName": "Get-PnPFlowOwner", + "Id": 485, "Command": "Get-PnPFlowOwner -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity 33f78dac-7e93-45de-ab85-67cad0f6ee30" }, { - "Id": 483, "Rank": 1, "CommandName": "Get-PnPFolder", + "Id": 486, "Command": "Get-PnPFolder" }, { - "Id": 484, "Rank": 2, "CommandName": "Get-PnPFolder", + "Id": 487, "Command": "Get-PnPFolder -CurrentWebRootFolder" }, { - "Id": 485, "Rank": 3, "CommandName": "Get-PnPFolder", + "Id": 488, "Command": "Get-PnPFolder -Url \"Shared Documents\"" }, { - "Id": 486, "Rank": 4, "CommandName": "Get-PnPFolder", + "Id": 489, "Command": "Get-PnPFolder -Url \"/sites/demo/Shared Documents\"" }, { - "Id": 487, "Rank": 5, "CommandName": "Get-PnPFolder", + "Id": 490, "Command": "Get-PnPFolder -ListRootFolder \"Shared Documents\"" }, { - "Id": 488, "Rank": 6, "CommandName": "Get-PnPFolder", + "Id": 491, "Command": "Get-PnPFolder -List \"Shared Documents\"" }, { - "Id": 489, "Rank": 1, "CommandName": "Get-PnPFolderInFolder", + "Id": 492, "Command": "Get-PnPFolderInFolder" }, { - "Id": 490, "Rank": 2, "CommandName": "Get-PnPFolderInFolder", + "Id": 493, "Command": "Get-PnPFolderInFolder -Recurse" }, { - "Id": 491, "Rank": 3, "CommandName": "Get-PnPFolderInFolder", + "Id": 494, "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\"" }, { - "Id": 492, "Rank": 4, "CommandName": "Get-PnPFolderInFolder", + "Id": 495, "Command": "Get-PnPFolderInFolder -Identity \"Shared Documents\" -ExcludeSystemFolders" }, { - "Id": 493, "Rank": 5, "CommandName": "Get-PnPFolderInFolder", + "Id": 496, "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"Shared Documents\" -ItemName \"Templates\"" }, { - "Id": 494, "Rank": 6, "CommandName": "Get-PnPFolderInFolder", + "Id": 497, "Command": "Get-PnPFolderInFolder -FolderSiteRelativeUrl \"SitePages\" -Recurse" }, { - "Id": 495, "Rank": 1, "CommandName": "Get-PnPFolderItem", + "Id": 498, "Command": "Get-PnPFolderItem" }, { - "Id": 496, "Rank": 2, "CommandName": "Get-PnPFolderItem", + "Id": 499, "Command": "Get-PnPFolderItem -Recurse" }, { - "Id": 497, "Rank": 3, "CommandName": "Get-PnPFolderItem", + "Id": 500, "Command": "Get-PnPFolderItem -Identity \"Shared Documents\"" }, { - "Id": 498, "Rank": 4, "CommandName": "Get-PnPFolderItem", + "Id": 501, "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemName \"Default.aspx\"" }, { - "Id": 499, "Rank": 5, "CommandName": "Get-PnPFolderItem", + "Id": 502, "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -ItemType Folder" }, { - "Id": 500, "Rank": 6, "CommandName": "Get-PnPFolderItem", + "Id": 503, "Command": "Get-PnPFolderItem -FolderSiteRelativeUrl \"SitePages\" -Recursive" }, { - "Id": 501, "Rank": 1, "CommandName": "Get-PnPFolderSharingLink", + "Id": 504, "Command": "Get-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Id": 502, "Rank": 1, "CommandName": "Get-PnPFolderStorageMetric", + "Id": 505, "Command": "Get-PnPFolderStorageMetric" }, { - "Id": 503, "Rank": 2, "CommandName": "Get-PnPFolderStorageMetric", + "Id": 506, "Command": "Get-PnPFolderStorageMetric -List \"Documents\"" }, { - "Id": 504, "Rank": 3, "CommandName": "Get-PnPFolderStorageMetric", + "Id": 507, "Command": "Get-PnPFolderStorageMetric -FolderSiteRelativeUrl \"Shared Documents\"" }, { - "Id": 505, "Rank": 1, "CommandName": "Get-PnPFooter", + "Id": 508, "Command": "Get-PnPFooter" }, { - "Id": 506, "Rank": 1, "CommandName": "Get-PnPGraphAccessToken", + "Id": 509, "Command": "Get-PnPGraphAccessToken" }, { - "Id": 507, "Rank": 2, "CommandName": "Get-PnPGraphAccessToken", + "Id": 510, "Command": "Get-PnPGraphAccessToken -Decoded" }, { - "Id": 508, "Rank": 1, "CommandName": "Get-PnPGraphSubscription", + "Id": 511, "Command": "Get-PnPGraphSubscription" }, { - "Id": 509, "Rank": 2, "CommandName": "Get-PnPGraphSubscription", + "Id": 512, "Command": "Get-PnPGraphSubscription -Identity 328c7693-5524-44ac-a946-73e02d6b0f98" }, { - "Id": 510, "Rank": 1, "CommandName": "Get-PnPGroup", + "Id": 513, "Command": "Get-PnPGroup" }, { - "Id": 511, "Rank": 2, "CommandName": "Get-PnPGroup", + "Id": 514, "Command": "Get-PnPGroup -Identity 'My Site Users'" }, { - "Id": 512, "Rank": 3, "CommandName": "Get-PnPGroup", + "Id": 515, "Command": "Get-PnPGroup -AssociatedMemberGroup" }, { - "Id": 513, "Rank": 1, "CommandName": "Get-PnPGroupMember", + "Id": 516, "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\"" }, { - "Id": 514, "Rank": 2, "CommandName": "Get-PnPGroupMember", + "Id": 517, "Command": "Get-PnPGroupMember -Group \"Marketing Site Members\" -User \"manager@domain.com\"" }, { - "Id": 515, "Rank": 1, "CommandName": "Get-PnPGroupPermissions", + "Id": 518, "Command": "Get-PnPGroupPermissions -Identity 'My Site Members'" }, { - "Id": 516, "Rank": 1, "CommandName": "Get-PnPHideDefaultThemes", + "Id": 519, "Command": "Get-PnPHideDefaultThemes" }, { - "Id": 517, "Rank": 1, "CommandName": "Get-PnPHomePage", + "Id": 520, "Command": "Get-PnPHomePage" }, { - "Id": 518, "Rank": 1, "CommandName": "Get-PnPHomeSite", + "Id": 521, "Command": "Get-PnPHomeSite" }, { - "Id": 519, "Rank": 2, "CommandName": "Get-PnPHomeSite", + "Id": 522, "Command": "Get-PnPHomeSite -IsVivaConnectionsDefaultStartForCompanyPortalSiteEnabled" }, { - "Id": 520, "Rank": 3, "CommandName": "Get-PnPHomeSite", + "Id": 523, "Command": "Get-PnPHomeSite -Detailed" }, { - "Id": 521, "Rank": 1, "CommandName": "Get-PnPHubSite", + "Id": 524, "Command": "Get-PnPHubSite" }, { - "Id": 522, "Rank": 2, "CommandName": "Get-PnPHubSite", + "Id": 525, "Command": "Get-PnPHubSite -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" }, { - "Id": 523, "Rank": 3, "CommandName": "Get-PnPHubSite", + "Id": 526, "Command": "Get-PnPHubSite -Identity \"bc07d4b8-1c2f-4184-8cc2-a52dfd6fe0c4\"" }, { - "Id": 524, "Rank": 1, "CommandName": "Get-PnPHubSiteChild", + "Id": 527, "Command": "Get-PnPHubSiteChild" }, { - "Id": 525, "Rank": 2, "CommandName": "Get-PnPHubSiteChild", + "Id": 528, "Command": "Get-PnPHubSiteChild -Identity \"https://contoso.sharepoint.com/sites/myhubsite\"" }, { - "Id": 526, "Rank": 1, "CommandName": "Get-PnPInPlaceRecordsManagement", + "Id": 529, "Command": "Get-PnPInPlaceRecordsManagement" }, { - "Id": 527, "Rank": 1, "CommandName": "Get-PnPIsSiteAliasAvailable", + "Id": 530, "Command": "Get-PnPIsSiteAliasAvailable -Identity \"HR\"" }, { - "Id": 528, "Rank": 1, "CommandName": "Get-PnPJavaScriptLink", + "Id": 531, "Command": "Get-PnPJavaScriptLink" }, { - "Id": 529, "Rank": 2, "CommandName": "Get-PnPJavaScriptLink", + "Id": 532, "Command": "Get-PnPJavaScriptLink -Scope All" }, { - "Id": 530, "Rank": 3, "CommandName": "Get-PnPJavaScriptLink", + "Id": 533, "Command": "Get-PnPJavaScriptLink -Scope Web" }, { - "Id": 531, "Rank": 4, "CommandName": "Get-PnPJavaScriptLink", + "Id": 534, "Command": "Get-PnPJavaScriptLink -Scope Site" }, { - "Id": 532, "Rank": 5, "CommandName": "Get-PnPJavaScriptLink", + "Id": 535, "Command": "Get-PnPJavaScriptLink -Name Test" }, { - "Id": 533, "Rank": 1, "CommandName": "Get-PnPKnowledgeHubSite", + "Id": 536, "Command": "Get-PnPKnowledgeHubSite" }, { - "Id": 534, "Rank": 1, "CommandName": "Get-PnPLabel", + "Id": 537, "Command": "Get-PnPLabel" }, { - "Id": 535, "Rank": 2, "CommandName": "Get-PnPLabel", + "Id": 538, "Command": "Get-PnPLabel -List \"Demo List\" -ValuesOnly" }, { - "Id": 536, "Rank": 1, "CommandName": "Get-PnPLargeListOperationStatus", + "Id": 539, "Command": "Get-PnPLargeListOperationStatus -Identity 9ea5d197-2227-4156-9ae1-725d74dc029d -OperationId 924e6a34-5c90-4d0d-8083-2efc6d1cf481" }, { - "Id": 537, "Rank": 1, "CommandName": "Get-PnPList", + "Id": 540, "Command": "Get-PnPList" }, { - "Id": 538, "Rank": 2, "CommandName": "Get-PnPList", + "Id": 541, "Command": "Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 539, "Rank": 3, "CommandName": "Get-PnPList", + "Id": 542, "Command": "Get-PnPList -Identity Lists/Announcements" }, { - "Id": 540, "Rank": 4, "CommandName": "Get-PnPList", + "Id": 543, "Command": "Get-PnPList | Where-Object {$_.RootFolder.ServerRelativeUrl -like \"/lists/*\"}" }, { - "Id": 541, "Rank": 5, "CommandName": "Get-PnPList", + "Id": 544, "Command": "Get-PnPList -Includes HasUniqueRoleAssignments" }, { - "Id": 542, "Rank": 1, "CommandName": "Get-PnPListDesign", + "Id": 545, "Command": "Get-PnPListDesign" }, { - "Id": 543, "Rank": 2, "CommandName": "Get-PnPListDesign", + "Id": 546, "Command": "Get-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 544, "Rank": 3, "CommandName": "Get-PnPListDesign", + "Id": 547, "Command": "Get-PnPListDesign -Identity ListEvent" }, { - "Id": 545, "Rank": 1, "CommandName": "Get-PnPListInformationRightsManagement", + "Id": 548, "Command": "Get-PnPListInformationRightsManagement -List \"Documents\"" }, { - "Id": 546, "Rank": 1, "CommandName": "Get-PnPListItem", + "Id": 549, "Command": "Get-PnPListItem -List Tasks" }, { - "Id": 547, "Rank": 2, "CommandName": "Get-PnPListItem", + "Id": 550, "Command": "Get-PnPListItem -List Tasks -Id 1" }, { - "Id": 548, "Rank": 3, "CommandName": "Get-PnPListItem", + "Id": 551, "Command": "Get-PnPListItem -List Tasks -UniqueId bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3" }, { - "Id": 549, "Rank": 4, "CommandName": "Get-PnPListItem", + "Id": 552, "Command": "Get-PnPListItem -List Tasks -Query \"bd6c5b3b-d960-4ee7-a02c-85dc6cd78cc3\"" }, { - "Id": 550, "Rank": 5, "CommandName": "Get-PnPListItem", + "Id": 553, "Command": "Get-PnPListItem -List Tasks -Query \"\"" }, { - "Id": 551, "Rank": 6, "CommandName": "Get-PnPListItem", + "Id": 554, "Command": "Get-PnPListItem -List Tasks -PageSize 1000" }, { - "Id": 552, "Rank": 7, "CommandName": "Get-PnPListItem", + "Id": 555, "Command": "Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }" }, { - "Id": 553, "Rank": 8, "CommandName": "Get-PnPListItem", + "Id": 556, "Command": "Get-PnPListItem -List Samples -FolderServerRelativeUrl \"/sites/contosomarketing/Lists/Samples/Demo\"" }, { - "Id": 554, "Rank": 9, "CommandName": "Get-PnPListItem", + "Id": 557, "Command": "Get-PnPListItem -List Tasks -Id 1 -IncludeContentType" }, { - "Id": 555, "Rank": 1, "CommandName": "Get-PnPListItemAttachment", + "Id": 558, "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\"" }, { - "Id": 556, "Rank": 2, "CommandName": "Get-PnPListItemAttachment", + "Id": 559, "Command": "Get-PnPListItemAttachment -List \"Demo List\" -Identity 1 -Path \"C:\\temp\" -Force" }, { - "Id": 557, "Rank": 1, "CommandName": "Get-PnPListItemComment", + "Id": 560, "Command": "Get-PnPListItemComment -List Tasks -Identity 1" }, { - "Id": 558, "Rank": 1, "CommandName": "Get-PnPListItemPermission", + "Id": 561, "Command": "Get-PnPListItemPermission -List 'Documents' -Identity 1" }, { - "Id": 559, "Rank": 1, "CommandName": "Get-PnPListItemVersion", + "Id": 562, "Command": "Get-PnPListItemVersion -List \"Demo List\" -Identity 1" }, { - "Id": 560, "Rank": 1, "CommandName": "Get-PnPListPermissions", + "Id": 563, "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId 60" }, { - "Id": 561, "Rank": 2, "CommandName": "Get-PnPListPermissions", + "Id": 564, "Command": "Get-PnPListPermissions -Identity DemoList -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" }, { - "Id": 562, "Rank": 1, "CommandName": "Get-PnPListRecordDeclaration", + "Id": 565, "Command": "Get-PnPListRecordDeclaration -List \"Documents\"" }, { - "Id": 563, "Rank": 1, "CommandName": "Get-PnPMasterPage", + "Id": 566, "Command": "Get-PnPMasterPage" }, { - "Id": 564, "Rank": 1, "CommandName": "Get-PnPMessageCenterAnnouncement", + "Id": 567, "Command": "Get-PnPMessageCenterAnnouncement" }, { - "Id": 565, "Rank": 2, "CommandName": "Get-PnPMessageCenterAnnouncement", + "Id": 568, "Command": "Get-PnPMessageCenterAnnouncement -Identity \"MC123456\"" }, { - "Id": 566, "Rank": 1, "CommandName": "Get-PnPMicrosoft365ExpiringGroup", + "Id": 569, "Command": "Get-PnPMicrosoft365ExpiringGroup" }, { - "Id": 567, "Rank": 2, "CommandName": "Get-PnPMicrosoft365ExpiringGroup", + "Id": 570, "Command": "Get-PnPMicrosoft365ExpiringGroup -Limit 93" }, { - "Id": 568, "Rank": 1, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 571, "Command": "Get-PnPMicrosoft365Group" }, { - "Id": 569, "Rank": 2, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 572, "Command": "Get-PnPMicrosoft365Group -Identity $groupId" }, { - "Id": 570, "Rank": 3, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 573, "Command": "Get-PnPMicrosoft365Group -Identity $groupDisplayName" }, { - "Id": 571, "Rank": 4, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 574, "Command": "Get-PnPMicrosoft365Group -Identity $groupSiteMailNickName" }, { - "Id": 572, "Rank": 5, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 575, "Command": "Get-PnPMicrosoft365Group -Identity $group" }, { - "Id": 573, "Rank": 6, "CommandName": "Get-PnPMicrosoft365Group", + "Id": 576, "Command": "Get-PnPMicrosoft365Group -IncludeSiteUrl" }, { - "Id": 574, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupEndpoint", + "Id": 577, "Command": "Get-PnPMicrosoft365GroupEndpoint" }, { - "Id": 575, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupEndpoint", + "Id": 578, "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity \"IT Team\"" }, { - "Id": 576, "Rank": 3, "CommandName": "Get-PnPMicrosoft365GroupEndpoint", + "Id": 579, "Command": "Get-PnPMicrosoft365GroupEndpoint -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Id": 577, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupMember", + "Id": 580, "Command": "Get-PnPMicrosoft365GroupMember -Identity $groupId" }, { - "Id": 578, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupMember", + "Id": 581, "Command": "Get-PnPMicrosoft365GroupMember -Identity $group" }, { - "Id": 579, "Rank": 3, "CommandName": "Get-PnPMicrosoft365GroupMember", + "Id": 582, "Command": "Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest" }, { - "Id": 580, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupOwner", + "Id": 583, "Command": "Get-PnPMicrosoft365GroupOwner -Identity $groupId" }, { - "Id": 581, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupOwner", + "Id": 584, "Command": "Get-PnPMicrosoft365GroupOwner -Identity $group" }, { - "Id": 582, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupSettings", + "Id": 585, "Command": "Get-PnPMicrosoft365GroupSettings" }, { - "Id": 583, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupSettings", + "Id": 586, "Command": "Get-PnPMicrosoft365GroupSettings -Identity $groupId" }, { - "Id": 584, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", + "Id": 587, "Command": "Get-PnPMicrosoft365GroupSettingTemplates" }, { - "Id": 585, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupSettingTemplates", + "Id": 588, "Command": "Get-PnPMicrosoft365GroupSettingTemplates -Identity \"08d542b9-071f-4e16-94b0-74abb372e3d9\"" }, { - "Id": 586, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupTeam", + "Id": 589, "Command": "Get-PnPMicrosoft365GroupTeam" }, { - "Id": 587, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupTeam", + "Id": 590, "Command": "Get-PnPMicrosoft365GroupTeam -Identity \"IT Team\"" }, { - "Id": 588, "Rank": 3, "CommandName": "Get-PnPMicrosoft365GroupTeam", + "Id": 591, "Command": "Get-PnPMicrosoft365GroupTeam -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Id": 589, "Rank": 1, "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", + "Id": 592, "Command": "Get-PnPMicrosoft365GroupYammerCommunity" }, { - "Id": 590, "Rank": 2, "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", + "Id": 593, "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity \"IT Community\"" }, { - "Id": 591, "Rank": 3, "CommandName": "Get-PnPMicrosoft365GroupYammerCommunity", + "Id": 594, "Command": "Get-PnPMicrosoft365GroupYammerCommunity -Identity e6212531-7f09-4c3b-bc2e-12cae26fb409" }, { - "Id": 592, "Rank": 1, "CommandName": "Get-PnPNavigationNode", + "Id": 595, "Command": "Get-PnPNavigationNode" }, { - "Id": 593, "Rank": 2, "CommandName": "Get-PnPNavigationNode", + "Id": 596, "Command": "Get-PnPNavigationNode -Location QuickLaunch" }, { - "Id": 594, "Rank": 3, "CommandName": "Get-PnPNavigationNode", + "Id": 597, "Command": "Get-PnPNavigationNode -Location TopNavigationBar" }, { - "Id": 595, "Rank": 1, "CommandName": "Get-PnPOrgAssetsLibrary", + "Id": 598, "Command": "Get-PnPOrgAssetsLibrary" }, { - "Id": 596, "Rank": 1, "CommandName": "Get-PnPOrgNewsSite", + "Id": 599, "Command": "Get-PnPOrgNewsSite" }, { - "Id": 597, "Rank": 1, "CommandName": "Get-PnPPage", + "Id": 600, "Command": "Get-PnPPage -Identity \"MyPage.aspx\"" }, { - "Id": 598, "Rank": 2, "CommandName": "Get-PnPPage", + "Id": 601, "Command": "Get-PnPPage \"MyPage\"" }, { - "Id": 599, "Rank": 3, "CommandName": "Get-PnPPage", + "Id": 602, "Command": "Get-PnPPage \"Templates/MyPageTemplate\"" }, { - "Id": 600, "Rank": 4, "CommandName": "Get-PnPPage", + "Id": 603, "Command": "Get-PnPPage -Identity \"MyPage.aspx\" -Web (Get-PnPWeb -Identity \"Subsite1\")" }, { - "Id": 601, "Rank": 1, "CommandName": "Get-PnPPageComponent", + "Id": 604, "Command": "Get-PnPPageComponent -Page Home" }, { - "Id": 602, "Rank": 2, "CommandName": "Get-PnPPageComponent", + "Id": 605, "Command": "Get-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Id": 603, "Rank": 3, "CommandName": "Get-PnPPageComponent", + "Id": 606, "Command": "Get-PnPPageComponent -Page Home -ListAvailable" }, { - "Id": 604, "Rank": 1, "CommandName": "Get-PnPPlannerBucket", + "Id": 607, "Command": "Get-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference Plan\"" }, { - "Id": 605, "Rank": 1, "CommandName": "Get-PnPPlannerConfiguration", + "Id": 608, "Command": "Get-PnPPlannerConfiguration" }, { - "Id": 606, "Rank": 1, "CommandName": "Get-PnPPlannerPlan", + "Id": 609, "Command": "Get-PnPPlannerPlan -Group \"Marketing\"" }, { - "Id": 607, "Rank": 2, "CommandName": "Get-PnPPlannerPlan", + "Id": 610, "Command": "Get-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Plan\"" }, { - "Id": 608, "Rank": 3, "CommandName": "Get-PnPPlannerPlan", + "Id": 611, "Command": "Get-PnPPlannerPlan -Id \"gndWOTSK60GfPQfiDDj43JgACDCb\" -ResolveIdentities" }, { - "Id": 609, "Rank": 1, "CommandName": "Get-PnPPlannerRosterMember", + "Id": 612, "Command": "Get-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\"" }, { - "Id": 610, "Rank": 1, "CommandName": "Get-PnPPlannerRosterPlan", + "Id": 613, "Command": "Get-PnPPlannerRosterPlan -Identity \"abcdefgh\"" }, { - "Id": 611, "Rank": 2, "CommandName": "Get-PnPPlannerRosterPlan", + "Id": 614, "Command": "Get-PnPPlannerRosterPlan -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Id": 612, "Rank": 1, "CommandName": "Get-PnPPlannerTask", + "Id": 615, "Command": "Get-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\"" }, { - "Id": 613, "Rank": 2, "CommandName": "Get-PnPPlannerTask", + "Id": 616, "Command": "Get-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" }, { - "Id": 614, "Rank": 3, "CommandName": "Get-PnPPlannerTask", + "Id": 617, "Command": "Get-PnPPlannerTask -TaskId \"QvfkTd1mc02gwxHjHC_43JYABhAy\"" }, { - "Id": 615, "Rank": 1, "CommandName": "Get-PnPPlannerUserPolicy", + "Id": 618, "Command": "Get-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" }, { - "Id": 616, "Rank": 1, "CommandName": "Get-PnPPowerPlatformConnector", + "Id": 619, "Command": "Get-PnPPowerPlatformConnector -Environment (Get-PnPPowerPlatformEnvironment)" }, { - "Id": 617, "Rank": 1, "CommandName": "Get-PnPPowerPlatformEnvironment", + "Id": 620, "Command": "Get-PnPPowerPlatformEnvironment" }, { - "Id": 618, "Rank": 2, "CommandName": "Get-PnPPowerPlatformEnvironment", + "Id": 621, "Command": "Get-PnPPowerPlatformEnvironment -IsDefault $true" }, { - "Id": 619, "Rank": 3, "CommandName": "Get-PnPPowerPlatformEnvironment", + "Id": 622, "Command": "Get-PnPPowerPlatformEnvironment -Identity \"MyOrganization (default)\"" }, { - "Id": 620, + "Rank": 1, + "CommandName": "Get-PnPPowerPlatformSolution", + "Id": 623, + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment)" + }, + { + "Rank": 2, + "CommandName": "Get-PnPPowerPlatformSolution", + "Id": 624, + "Command": "Get-PnPPowerPlatformSolution -Environment (Get-PnPPowerPlatformEnvironment -IsDefault) -Name 'My Solution Name'" + }, + { "Rank": 1, "CommandName": "Get-PnPPowerShellTelemetryEnabled", + "Id": 625, "Command": "Get-PnPPowerShellTelemetryEnabled" }, { - "Id": 621, "Rank": 1, "CommandName": "Get-PnPPropertyBag", + "Id": 626, "Command": "Get-PnPPropertyBag" }, { - "Id": 622, "Rank": 2, "CommandName": "Get-PnPPropertyBag", + "Id": 627, "Command": "Get-PnPPropertyBag -Key MyKey" }, { - "Id": 623, "Rank": 3, "CommandName": "Get-PnPPropertyBag", + "Id": 628, "Command": "Get-PnPPropertyBag -Folder /MyFolder" }, { - "Id": 624, "Rank": 4, "CommandName": "Get-PnPPropertyBag", + "Id": 629, "Command": "Get-PnPPropertyBag -Folder /MyFolder -Key vti_mykey" }, { - "Id": 625, "Rank": 5, "CommandName": "Get-PnPPropertyBag", + "Id": 630, "Command": "Get-PnPPropertyBag -Folder / -Key vti_mykey" }, { - "Id": 626, "Rank": 1, "CommandName": "Get-PnPPublishingImageRendition", + "Id": 631, "Command": "Get-PnPPublishingImageRendition" }, { - "Id": 627, "Rank": 2, "CommandName": "Get-PnPPublishingImageRendition", + "Id": 632, "Command": "Get-PnPPublishingImageRendition -Identity \"Test\"" }, { - "Id": 628, "Rank": 3, "CommandName": "Get-PnPPublishingImageRendition", + "Id": 633, "Command": "Get-PnPPublishingImageRendition -Identity 2" }, { - "Id": 629, "Rank": 1, "CommandName": "Get-PnPRecycleBinItem", + "Id": 634, "Command": "Get-PnPRecycleBinItem" }, { - "Id": 630, "Rank": 2, "CommandName": "Get-PnPRecycleBinItem", + "Id": 635, "Command": "Get-PnPRecycleBinItem -Identity f3ef6195-9400-4121-9d1c-c997fb5b86c2" }, { - "Id": 631, "Rank": 3, "CommandName": "Get-PnPRecycleBinItem", + "Id": 636, "Command": "Get-PnPRecycleBinItem -FirstStage" }, { - "Id": 632, "Rank": 4, "CommandName": "Get-PnPRecycleBinItem", + "Id": 637, "Command": "Get-PnPRecycleBinItem -SecondStage" }, { - "Id": 633, "Rank": 5, "CommandName": "Get-PnPRecycleBinItem", + "Id": 638, "Command": "Get-PnPRecycleBinItem -RowLimit 10000" }, { - "Id": 634, "Rank": 1, "CommandName": "Get-PnPRequestAccessEmails", + "Id": 639, "Command": "Get-PnPRequestAccessEmails" }, { - "Id": 635, "Rank": 1, "CommandName": "Get-PnPRetentionLabel", + "Id": 640, "Command": "Get-PnPRetentionLabel" }, { - "Id": 636, "Rank": 2, "CommandName": "Get-PnPRetentionLabel", + "Id": 641, "Command": "Get-PnPRetentionLabel -Identity 58f77809-9738-5080-90f1-gh7afeba2995" }, { - "Id": 637, "Rank": 1, "CommandName": "Get-PnPRoleDefinition", + "Id": 642, "Command": "Get-PnPRoleDefinition" }, { - "Id": 638, "Rank": 2, "CommandName": "Get-PnPRoleDefinition", + "Id": 643, "Command": "Get-PnPRoleDefinition -Identity Read" }, { - "Id": 639, "Rank": 3, "CommandName": "Get-PnPRoleDefinition", + "Id": 644, "Command": "Get-PnPRoleDefinition | Where-Object { $_.RoleTypeKind -eq \"Administrator\" }" }, { - "Id": 640, "Rank": 1, "CommandName": "Get-PnPSearchConfiguration", + "Id": 645, "Command": "Get-PnPSearchConfiguration" }, { - "Id": 641, "Rank": 2, "CommandName": "Get-PnPSearchConfiguration", + "Id": 646, "Command": "Get-PnPSearchConfiguration -Scope Site" }, { - "Id": 642, "Rank": 3, "CommandName": "Get-PnPSearchConfiguration", + "Id": 647, "Command": "Get-PnPSearchConfiguration -Scope Subscription" }, { - "Id": 643, "Rank": 4, "CommandName": "Get-PnPSearchConfiguration", + "Id": 648, "Command": "Get-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" }, { - "Id": 644, "Rank": 5, "CommandName": "Get-PnPSearchConfiguration", + "Id": 649, "Command": "Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings" }, { - "Id": 645, "Rank": 6, "CommandName": "Get-PnPSearchConfiguration", + "Id": 650, "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv" }, { - "Id": 646, "Rank": 7, "CommandName": "Get-PnPSearchConfiguration", + "Id": 651, "Command": "Get-PnPSearchConfiguration -Scope Site -PromotedResultsToBookmarkCSV -Path bookmarks.csv -BookmarkStatus Published" }, { - "Id": 647, "Rank": 8, "CommandName": "Get-PnPSearchConfiguration", + "Id": 652, "Command": "Get-PnPSearchConfiguration -Scope Subscription -PromotedResultsToBookmarkCSV -ExcludeVisualPromotedResults $false" }, { - "Id": 648, "Rank": 1, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 653, "Command": "Get-PnPSearchCrawlLog" }, { - "Id": 649, "Rank": 2, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 654, "Command": "Get-PnPSearchCrawlLog -Filter \"https://contoso-my.sharepoint.com/personal\"" }, { - "Id": 650, "Rank": 3, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 655, "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles" }, { - "Id": 651, "Rank": 4, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 656, "Command": "Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter \"mikael\"" }, { - "Id": 652, "Rank": 5, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 657, "Command": "Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10" }, { - "Id": 653, "Rank": 6, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 658, "Command": "Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)" }, { - "Id": 654, "Rank": 7, "CommandName": "Get-PnPSearchCrawlLog", + "Id": 659, "Command": "Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat" }, { - "Id": 655, "Rank": 1, "CommandName": "Get-PnPSearchSettings", + "Id": 660, "Command": "Get-PnPSearchSettings" }, { - "Id": 656, "Rank": 1, "CommandName": "Get-PnPServiceCurrentHealth", + "Id": 661, "Command": "Get-PnPServiceCurrentHealth" }, { - "Id": 657, "Rank": 2, "CommandName": "Get-PnPServiceCurrentHealth", + "Id": 662, "Command": "Get-PnPServiceCurrentHealth -Identity \"SharePoint Online\"" }, { - "Id": 658, "Rank": 1, "CommandName": "Get-PnPServiceHealthIssue", + "Id": 663, "Command": "Get-PnPServiceHealthIssue" }, { - "Id": 659, "Rank": 2, "CommandName": "Get-PnPServiceHealthIssue", + "Id": 664, "Command": "Get-PnPServiceHealthIssue -Identity \"EX123456\"" }, { - "Id": 660, "Rank": 1, "CommandName": "Get-PnPSharePointAddIn", + "Id": 665, "Command": "Get-PnPSharePointAddIn" }, { - "Id": 661, "Rank": 2, "CommandName": "Get-PnPSharePointAddIn", + "Id": 666, "Command": "Get-PnPSharePointAddIn -IncludeSubsites" }, { - "Id": 662, "Rank": 1, "CommandName": "Get-PnPSharingForNonOwnersOfSite", + "Id": 667, "Command": "Get-PnPSharingForNonOwnersOfSite" }, { - "Id": 663, "Rank": 1, "CommandName": "Get-PnPSite", + "Id": 668, "Command": "Get-PnPSite" }, { - "Id": 664, "Rank": 2, "CommandName": "Get-PnPSite", + "Id": 669, "Command": "Get-PnPSite -Includes RootWeb,ServerRelativeUrl" }, { - "Id": 665, + "Rank": 1, + "CommandName": "Get-PnPSiteAnalyticsData", + "Id": 670, + "Command": "Get-PnPSiteAnalyticsData -All" + }, + { + "Rank": 2, + "CommandName": "Get-PnPSiteAnalyticsData", + "Id": 671, + "Command": "Get-PnPSiteAnalyticsData -LastSevenDays" + }, + { + "Rank": 3, + "CommandName": "Get-PnPSiteAnalyticsData", + "Id": 672, + "Command": "Get-PnPSiteAnalyticsData -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" + }, + { + "Rank": 4, + "CommandName": "Get-PnPSiteAnalyticsData", + "Id": 673, + "Command": "Get-PnPSiteAnalyticsData -Identity \"https://tenant.sharepoint.com/sites/mysite\" -StartDate (Get-date).AddDays(-15) -EndDate (Get-date) -AnalyticsAggregationInterval Day" + }, + { "Rank": 1, "CommandName": "Get-PnPSiteClosure", + "Id": 674, "Command": "Get-PnPSiteClosure" }, { - "Id": 666, "Rank": 1, "CommandName": "Get-PnPSiteCollectionAdmin", + "Id": 675, "Command": "Get-PnPSiteCollectionAdmin" }, { - "Id": 667, "Rank": 1, "CommandName": "Get-PnPSiteCollectionAppCatalog", + "Id": 676, "Command": "Get-PnPSiteCollectionAppCatalog" }, { - "Id": 668, "Rank": 2, "CommandName": "Get-PnPSiteCollectionAppCatalog", + "Id": 677, "Command": "Get-PnPSiteCollectionAppCatalog -CurrentSite" }, { - "Id": 669, "Rank": 3, "CommandName": "Get-PnPSiteCollectionAppCatalog", + "Id": 678, "Command": "Get-PnPSiteCollectionAppCatalog -ExcludeDeletedSites" }, { - "Id": 670, "Rank": 1, "CommandName": "Get-PnPSiteCollectionTermStore", + "Id": 679, "Command": "Get-PnPSiteCollectionTermStore" }, { - "Id": 671, "Rank": 1, "CommandName": "Get-PnPSiteDesign", + "Id": 680, "Command": "Get-PnPSiteDesign" }, { - "Id": 672, "Rank": 2, "CommandName": "Get-PnPSiteDesign", + "Id": 681, "Command": "Get-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 673, "Rank": 1, "CommandName": "Get-PnPSiteDesignRights", + "Id": 682, "Command": "Get-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 674, "Rank": 1, "CommandName": "Get-PnPSiteDesignRun", + "Id": 683, "Command": "Get-PnPSiteDesignRun" }, { - "Id": 675, "Rank": 2, "CommandName": "Get-PnPSiteDesignRun", + "Id": 684, "Command": "Get-PnPSiteDesignRun -WebUrl \"https://mytenant.sharepoint.com/sites/project\"" }, { - "Id": 676, "Rank": 1, "CommandName": "Get-PnPSiteDesignTask", + "Id": 685, "Command": "Get-PnPSiteDesignTask -Identity 501z8c32-4147-44d4-8607-26c2f67cae82" }, { - "Id": 677, "Rank": 2, "CommandName": "Get-PnPSiteDesignTask", + "Id": 686, "Command": "Get-PnPSiteDesignTask" }, { - "Id": 678, "Rank": 3, "CommandName": "Get-PnPSiteDesignTask", + "Id": 687, "Command": "Get-PnPSiteDesignTask -WebUrl \"https://contoso.sharepoint.com/sites/project\"" }, { - "Id": 679, "Rank": 1, "CommandName": "Get-PnPSiteGroup", + "Id": 688, "Command": "Get-PnPSiteGroup" }, { - "Id": 680, "Rank": 2, "CommandName": "Get-PnPSiteGroup", + "Id": 689, "Command": "Get-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\"" }, { - "Id": 681, "Rank": 3, "CommandName": "Get-PnPSiteGroup", + "Id": 690, "Command": "Get-PnPSiteGroup -Group \"SiteA Members\"" }, { - "Id": 682, "Rank": 4, "CommandName": "Get-PnPSiteGroup", + "Id": 691, "Command": "Get-PnPSiteGroup -Group \"SiteA Members\" -Site \"https://contoso.sharepoint.com/sites/siteA\"" }, { - "Id": 683, "Rank": 1, "CommandName": "Get-PnPSitePolicy", + "Id": 692, "Command": "Get-PnPSitePolicy" }, { - "Id": 684, "Rank": 2, "CommandName": "Get-PnPSitePolicy", + "Id": 693, "Command": "Get-PnPSitePolicy -AllAvailable" }, { - "Id": 685, "Rank": 3, "CommandName": "Get-PnPSitePolicy", + "Id": 694, "Command": "Get-PnPSitePolicy -Name \"Contoso HBI\"" }, { - "Id": 686, "Rank": 1, "CommandName": "Get-PnPSiteScript", + "Id": 695, "Command": "Get-PnPSiteScript" }, { - "Id": 687, "Rank": 2, "CommandName": "Get-PnPSiteScript", + "Id": 696, "Command": "Get-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 688, "Rank": 1, "CommandName": "Get-PnPSiteScriptFromList", + "Id": 697, "Command": "Get-PnPSiteScriptFromList -List \"MyList\"" }, { - "Id": 689, "Rank": 2, "CommandName": "Get-PnPSiteScriptFromList", + "Id": 698, "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/lists/MyList\"" }, { - "Id": 690, "Rank": 3, "CommandName": "Get-PnPSiteScriptFromList", + "Id": 699, "Command": "Get-PnPSiteScriptFromList -Url \"https://contoso.sharepoint.com/sites/teamsite/Shared Documents\"" }, { - "Id": 691, "Rank": 1, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 700, "Command": "Get-PnPSiteScriptFromWeb -IncludeAll" }, { - "Id": 692, "Rank": 2, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 701, "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll" }, { - "Id": 693, "Rank": 3, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 702, "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeAll -Lists \"Shared Documents\",\"Lists\\MyList\"" }, { - "Id": 694, "Rank": 4, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 703, "Command": "Get-PnPSiteScriptFromWeb -Url \"https://contoso.sharepoint.com/sites/teamsite\" -IncludeBranding -IncludeLinksToExportedItems" }, { - "Id": 695, "Rank": 5, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 704, "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists" }, { - "Id": 696, "Rank": 6, "CommandName": "Get-PnPSiteScriptFromWeb", + "Id": 705, "Command": "Get-PnPSiteScriptFromWeb -IncludeAllLists | Add-PnPSiteScript -Title \"My Site Script\" | Add-PnPSiteDesign -Title \"My Site Design\" -WebTemplate TeamSite" }, { - "Id": 697, "Rank": 1, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 706, "Command": "Get-PnPSiteSearchQueryResults" }, { - "Id": 698, "Rank": 2, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 707, "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:STS\"" }, { - "Id": 699, "Rank": 3, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 708, "Command": "Get-PnPSiteSearchQueryResults -Query \"WebTemplate:SPSPERS\"" }, { - "Id": 700, "Rank": 4, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 709, "Command": "Get-PnPSiteSearchQueryResults -Query \"Title:Intranet*\"" }, { - "Id": 701, "Rank": 5, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 710, "Command": "Get-PnPSiteSearchQueryResults -MaxResults 10" }, { - "Id": 702, "Rank": 6, "CommandName": "Get-PnPSiteSearchQueryResults", + "Id": 711, "Command": "Get-PnPSiteSearchQueryResults -All" }, { - "Id": 703, "Rank": 1, "CommandName": "Get-PnPSiteSensitivityLabel", + "Id": 712, "Command": "Get-PnPSiteSensitivityLabel" }, { - "Id": 704, "Rank": 1, "CommandName": "Get-PnPSiteSetVersionPolicyProgress", + "Id": 713, "Command": "Get-PnPSiteSetVersionPolicyProgress" }, { - "Id": 705, "Rank": 1, "CommandName": "Get-PnPSiteTemplate", + "Id": 714, "Command": "Get-PnPSiteTemplate -Out template.pnp" }, { - "Id": 706, "Rank": 2, "CommandName": "Get-PnPSiteTemplate", + "Id": 715, "Command": "Get-PnPSiteTemplate -Out template.xml" }, { - "Id": 707, "Rank": 3, "CommandName": "Get-PnPSiteTemplate", + "Id": 716, "Command": "Get-PnPSiteTemplate -Out template.md" }, { - "Id": 708, "Rank": 4, "CommandName": "Get-PnPSiteTemplate", + "Id": 717, "Command": "Get-PnPSiteTemplate -Out template.pnp -Schema V201503" }, { - "Id": 709, "Rank": 5, "CommandName": "Get-PnPSiteTemplate", + "Id": 718, "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeAllTermGroups" }, { - "Id": 710, "Rank": 6, "CommandName": "Get-PnPSiteTemplate", + "Id": 719, "Command": "Get-PnPSiteTemplate -Out template.pnp -IncludeSiteCollectionTermGroup" }, { - "Id": 711, "Rank": 7, "CommandName": "Get-PnPSiteTemplate", + "Id": 720, "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistBrandingFiles" }, { - "Id": 712, "Rank": 8, "CommandName": "Get-PnPSiteTemplate", + "Id": 721, "Command": "Get-PnPSiteTemplate -Out template.pnp -Handlers Lists, SiteSecurity" }, { - "Id": 713, "Rank": 9, "CommandName": "Get-PnPSiteTemplate", + "Id": 722, "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources" }, { - "Id": 714, "Rank": 10, "CommandName": "Get-PnPSiteTemplate", + "Id": 723, "Command": "Get-PnPSiteTemplate -Out template.pnp -PersistMultiLanguageResources -ResourceFilePrefix MyResources" }, { - "Id": 715, "Rank": 11, "CommandName": "Get-PnPSiteTemplate", + "Id": 724, "Command": "Get-PnPSiteTemplate -Out template.pnp -ContentTypeGroups \"Group A\",\"Group B\"" }, { - "Id": 716, "Rank": 12, "CommandName": "Get-PnPSiteTemplate", + "Id": 725, "Command": "Get-PnPSiteTemplate -Out template.pnp -ExcludeContentTypesFromSyndication" }, { - "Id": 717, "Rank": 13, "CommandName": "Get-PnPSiteTemplate", + "Id": 726, "Command": "Get-PnPSiteTemplate -Out template.pnp -ListsToExtract \"Title of List One\",\"95c4efd6-08f4-4c67-94ae-49d696ba1298\",\"Title of List Three\"" }, { - "Id": 718, "Rank": 14, "CommandName": "Get-PnPSiteTemplate", + "Id": 727, "Command": "Get-PnPSiteTemplate -Out template.xml -Handlers Fields, ContentTypes, SupportedUILanguages -PersistMultiLanguageResources" }, { - "Id": 719, "Rank": 1, "CommandName": "Get-PnPSiteUserInvitations", + "Id": 728, "Command": "Get-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" }, { - "Id": 720, "Rank": 1, "CommandName": "Get-PnPSiteVersionPolicy", + "Id": 729, "Command": "Get-PnPSiteVersionPolicy" }, { - "Id": 721, "Rank": 1, "CommandName": "Get-PnPStorageEntity", + "Id": 730, "Command": "Get-PnPStorageEntity" }, { - "Id": 722, "Rank": 2, "CommandName": "Get-PnPStorageEntity", + "Id": 731, "Command": "Get-PnPStorageEntity -Key MyKey" }, { - "Id": 723, "Rank": 3, "CommandName": "Get-PnPStorageEntity", + "Id": 732, "Command": "Get-PnPStorageEntity -Scope Site" }, { - "Id": 724, "Rank": 4, "CommandName": "Get-PnPStorageEntity", + "Id": 733, "Command": "Get-PnPStorageEntity -Key MyKey -Scope Site" }, { - "Id": 725, "Rank": 1, "CommandName": "Get-PnPStoredCredential", + "Id": 734, "Command": "Get-PnPStoredCredential -Name O365" }, { - "Id": 726, "Rank": 1, "CommandName": "Get-PnPStructuralNavigationCacheSiteState", + "Id": 735, "Command": "Get-PnPStructuralNavigationCacheSiteState -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { - "Id": 727, "Rank": 1, "CommandName": "Get-PnPStructuralNavigationCacheWebState", + "Id": 736, "Command": "Get-PnPStructuralNavigationCacheWebState -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { - "Id": 728, "Rank": 1, "CommandName": "Get-PnPSubscribeSharePointNewsDigest", + "Id": 737, "Command": "Get-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com'" }, { - "Id": 729, "Rank": 1, "CommandName": "Get-PnPSubWeb", + "Id": 738, "Command": "Get-PnPSubWeb" }, { - "Id": 730, "Rank": 2, "CommandName": "Get-PnPSubWeb", + "Id": 739, "Command": "Get-PnPSubWeb -Recurse" }, { - "Id": 731, "Rank": 3, "CommandName": "Get-PnPSubWeb", + "Id": 740, "Command": "Get-PnPSubWeb -Recurse -Includes \"WebTemplate\",\"Description\" | Select ServerRelativeUrl, WebTemplate, Description" }, { - "Id": 732, "Rank": 4, "CommandName": "Get-PnPSubWeb", + "Id": 741, "Command": "Get-PnPSubWeb -Identity Team1 -Recurse" }, { - "Id": 733, "Rank": 5, "CommandName": "Get-PnPSubWeb", + "Id": 742, "Command": "Get-PnPSubWeb -Identity Team1 -Recurse -IncludeRootWeb" }, { - "Id": 734, "Rank": 1, "CommandName": "Get-PnPSyntexModel", + "Id": 743, "Command": "Get-PnPSyntexModel" }, { - "Id": 735, "Rank": 2, "CommandName": "Get-PnPSyntexModel", + "Id": 744, "Command": "Get-PnPSyntexModel -Identity 1" }, { - "Id": 736, "Rank": 3, "CommandName": "Get-PnPSyntexModel", + "Id": 745, "Command": "Get-PnPSyntexModel -Identity \"Invoice model\"" }, { - "Id": 737, "Rank": 1, "CommandName": "Get-PnPSyntexModelPublication", + "Id": 746, "Command": "Get-PnPSyntexModelPublication -Identity \"Invoice model\"" }, { - "Id": 738, "Rank": 1, "CommandName": "Get-PnPTaxonomyItem", + "Id": 747, "Command": "Get-PnPTaxonomyItem -TermPath \"My Term Group|My Term Set|Contoso\"" }, { - "Id": 739, "Rank": 1, "CommandName": "Get-PnPTeamsApp", + "Id": 748, "Command": "Get-PnPTeamsApp" }, { - "Id": 740, "Rank": 2, "CommandName": "Get-PnPTeamsApp", + "Id": 749, "Command": "Get-PnPTeamsApp -Identity a54224d7-608b-4839-bf74-1b68148e65d4" }, { - "Id": 741, "Rank": 3, "CommandName": "Get-PnPTeamsApp", + "Id": 750, "Command": "Get-PnPTeamsApp -Identity \"MyTeamsApp\"" }, { - "Id": 742, "Rank": 1, "CommandName": "Get-PnPTeamsChannel", + "Id": 751, "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8" }, { - "Id": 743, "Rank": 2, "CommandName": "Get-PnPTeamsChannel", + "Id": 752, "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"Test Channel\"" }, { - "Id": 744, "Rank": 3, "CommandName": "Get-PnPTeamsChannel", + "Id": 753, "Command": "Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" }, { - "Id": 745, "Rank": 1, "CommandName": "Get-PnPTeamsChannelFilesFolder", + "Id": 754, "Command": "Get-PnPTeamsChannelFilesFolder -Team \"Sales Team\" -Channel \"Test Channel\"" }, { - "Id": 746, "Rank": 2, "CommandName": "Get-PnPTeamsChannelFilesFolder", + "Id": 755, "Command": "Get-PnPTeamsChannelFilesFolder -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\"" }, { - "Id": 747, "Rank": 1, "CommandName": "Get-PnPTeamsChannelMessage", + "Id": 756, "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\"" }, { - "Id": 748, "Rank": 2, "CommandName": "Get-PnPTeamsChannelMessage", + "Id": 757, "Command": "Get-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Identity 1653089769293" }, { - "Id": 749, "Rank": 1, "CommandName": "Get-PnPTeamsChannelMessageReply", + "Id": 758, "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -IncludeDeleted" }, { - "Id": 750, "Rank": 2, "CommandName": "Get-PnPTeamsChannelMessageReply", + "Id": 759, "Command": "Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel \"My Channel\" -Message 1653089769293 -Identity 1653086004630" }, { - "Id": 751, "Rank": 1, "CommandName": "Get-PnPTeamsChannelUser", + "Id": 760, "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\"" }, { - "Id": 752, "Rank": 2, "CommandName": "Get-PnPTeamsChannelUser", + "Id": 761, "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Role Member" }, { - "Id": 753, "Rank": 3, "CommandName": "Get-PnPTeamsChannelUser", + "Id": 762, "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com" }, { - "Id": 754, "Rank": 4, "CommandName": "Get-PnPTeamsChannelUser", + "Id": 763, "Command": "Get-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" }, { - "Id": 755, "Rank": 1, "CommandName": "Get-PnPTeamsPrimaryChannel", + "Id": 764, "Command": "Get-PnPTeamsPrimaryChannel -Team ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e" }, { - "Id": 756, "Rank": 2, "CommandName": "Get-PnPTeamsPrimaryChannel", + "Id": 765, "Command": "Get-PnPTeamsPrimaryChannel -Team Sales" }, { - "Id": 757, "Rank": 1, "CommandName": "Get-PnPTeamsTab", + "Id": 766, "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype" }, { - "Id": 758, "Rank": 2, "CommandName": "Get-PnPTeamsTab", + "Id": 767, "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity \"Wiki\"" }, { - "Id": 759, "Rank": 3, "CommandName": "Get-PnPTeamsTab", + "Id": 768, "Command": "Get-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity d8740a7a-e44e-46c5-8f13-e699f964fc25" }, { - "Id": 760, "Rank": 4, "CommandName": "Get-PnPTeamsTab", + "Id": 769, "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\"" }, { - "Id": 761, "Rank": 5, "CommandName": "Get-PnPTeamsTab", + "Id": 770, "Command": "Get-PnPTeamsTab -Team \"My Team\" -Channel \"My Channel\" -Identity \"Wiki\"" }, { - "Id": 762, "Rank": 1, "CommandName": "Get-PnPTeamsTag", + "Id": 771, "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5" }, { - "Id": 763, "Rank": 2, "CommandName": "Get-PnPTeamsTag", + "Id": 772, "Command": "Get-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" }, { - "Id": 764, "Rank": 1, "CommandName": "Get-PnPTeamsTeam", + "Id": 773, "Command": "Get-PnPTeamsTeam" }, { - "Id": 765, "Rank": 2, "CommandName": "Get-PnPTeamsTeam", + "Id": 774, "Command": "Get-PnPTeamsTeam -Identity \"PnP PowerShell\"" }, { - "Id": 766, "Rank": 3, "CommandName": "Get-PnPTeamsTeam", + "Id": 775, "Command": "Get-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\"" }, { - "Id": 767, "Rank": 4, "CommandName": "Get-PnPTeamsTeam", + "Id": 776, "Command": "Get-PnPTeamsTeam -Filter \"startswith(mailNickName, 'contoso')\"" }, { - "Id": 768, "Rank": 5, "CommandName": "Get-PnPTeamsTeam", + "Id": 777, "Command": "Get-PnPTeamsTeam -Filter \"startswith(description, 'contoso')\"" }, { - "Id": 769, "Rank": 1, "CommandName": "Get-PnPTeamsUser", + "Id": 778, "Command": "Get-PnPTeamsUser -Team MyTeam" }, { - "Id": 770, "Rank": 2, "CommandName": "Get-PnPTeamsUser", + "Id": 779, "Command": "Get-PnPTeamsUser -Team MyTeam -Role Owner" }, { - "Id": 771, "Rank": 3, "CommandName": "Get-PnPTeamsUser", + "Id": 780, "Command": "Get-PnPTeamsUser -Team MyTeam -Role Member" }, { - "Id": 772, "Rank": 4, "CommandName": "Get-PnPTeamsUser", + "Id": 781, "Command": "Get-PnPTeamsUser -Team MyTeam -Role Guest" }, { - "Id": 773, "Rank": 1, "CommandName": "Get-PnPTemporarilyDisableAppBar", + "Id": 782, "Command": "Get-PnPTemporarilyDisableAppBar" }, { - "Id": 774, "Rank": 1, "CommandName": "Get-PnPTenant", + "Id": 783, "Command": "Get-PnPTenant" }, { - "Id": 775, "Rank": 1, "CommandName": "Get-PnPTenantAppCatalogUrl", + "Id": 784, "Command": "Get-PnPTenantAppCatalogUrl" }, { - "Id": 776, "Rank": 1, "CommandName": "Get-PnPTenantCdnEnabled", + "Id": 785, "Command": "Get-PnPTenantCdnEnabled -CdnType Public" }, { - "Id": 777, "Rank": 1, "CommandName": "Get-PnPTenantCdnOrigin", + "Id": 786, "Command": "Get-PnPTenantCdnOrigin -CdnType Public" }, { - "Id": 778, "Rank": 1, "CommandName": "Get-PnPTenantCdnPolicies", + "Id": 787, "Command": "Get-PnPTenantCdnPolicies -CdnType Public" }, { - "Id": 779, "Rank": 1, "CommandName": "Get-PnPTenantDeletedSite", + "Id": 788, "Command": "Get-PnPTenantDeletedSite" }, { - "Id": 780, "Rank": 2, "CommandName": "Get-PnPTenantDeletedSite", + "Id": 789, "Command": "Get-PnPTenantDeletedSite -Detailed" }, { - "Id": 781, "Rank": 3, "CommandName": "Get-PnPTenantDeletedSite", + "Id": 790, "Command": "Get-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 782, "Rank": 4, "CommandName": "Get-PnPTenantDeletedSite", + "Id": 791, "Command": "Get-PnPTenantDeletedSite -IncludePersonalSite" }, { - "Id": 783, "Rank": 5, "CommandName": "Get-PnPTenantDeletedSite", + "Id": 792, "Command": "Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite" }, { - "Id": 784, "Rank": 1, "CommandName": "Get-PnPTenantId", + "Id": 793, "Command": "Get-PnPTenantId" }, { - "Id": 785, "Rank": 2, "CommandName": "Get-PnPTenantId", + "Id": 794, "Command": "Get-PnPTenantId contoso" }, { - "Id": 786, "Rank": 3, "CommandName": "Get-PnPTenantId", + "Id": 795, "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.com" }, { - "Id": 787, "Rank": 4, "CommandName": "Get-PnPTenantId", + "Id": 796, "Command": "Get-PnPTenantId -TenantUrl contoso.sharepoint.us -AzureEnvironment USGovernment" }, { - "Id": 788, "Rank": 1, "CommandName": "Get-PnPTenantInfo", + "Id": 797, "Command": "Get-PnPTenantInfo -TenantId \"e65b162c-6f87-4eb1-a24e-1b37d3504663\"" }, { - "Id": 789, "Rank": 2, "CommandName": "Get-PnPTenantInfo", + "Id": 798, "Command": "Get-PnPTenantInfo -DomainName \"contoso.com\"" }, { - "Id": 790, "Rank": 3, "CommandName": "Get-PnPTenantInfo", + "Id": 799, "Command": "Get-PnPTenantInfo" }, { - "Id": 791, "Rank": 4, "CommandName": "Get-PnPTenantInfo", + "Id": 800, "Command": "Get-PnPTenantInfo -CurrentTenant" }, { - "Id": 792, "Rank": 1, "CommandName": "Get-PnPTenantInstance", + "Id": 801, "Command": "Get-PnPTenantInstance" }, { - "Id": 793, "Rank": 1, "CommandName": "Get-PnPTenantRecycleBinItem", + "Id": 802, "Command": "Get-PnPTenantRecycleBinItem" }, { - "Id": 794, "Rank": 1, "CommandName": "Get-PnPTenantSequence", + "Id": 803, "Command": "Get-PnPTenantSequence -Template $myTemplateObject" }, { - "Id": 795, "Rank": 2, "CommandName": "Get-PnPTenantSequence", + "Id": 804, "Command": "Get-PnPTenantSequence -Template $myTemplateObject -Identity \"mysequence\"" }, { - "Id": 796, "Rank": 1, "CommandName": "Get-PnPTenantSequenceSite", + "Id": 805, "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence" }, { - "Id": 797, "Rank": 2, "CommandName": "Get-PnPTenantSequenceSite", + "Id": 806, "Command": "Get-PnPTenantSequenceSite -Sequence $mysequence -Identity 8058ea99-af7b-4bb7-b12a-78f93398041e" }, { - "Id": 798, "Rank": 1, "CommandName": "Get-PnPTenantSite", + "Id": 807, "Command": "Get-PnPTenantSite" }, { - "Id": 799, "Rank": 2, "CommandName": "Get-PnPTenantSite", + "Id": 808, "Command": "Get-PnPTenantSite -Detailed" }, { - "Id": 800, "Rank": 3, "CommandName": "Get-PnPTenantSite", + "Id": 809, "Command": "Get-PnPTenantSite -IncludeOneDriveSites" }, { - "Id": 801, "Rank": 4, "CommandName": "Get-PnPTenantSite", + "Id": 810, "Command": "Get-PnPTenantSite -IncludeOneDriveSites -Filter \"Url -like '-my.sharepoint.com/personal/'\"" }, { - "Id": 802, "Rank": 5, "CommandName": "Get-PnPTenantSite", + "Id": 811, "Command": "Get-PnPTenantSite -Identity \"http://tenant.sharepoint.com/sites/projects\"" }, { - "Id": 803, "Rank": 6, "CommandName": "Get-PnPTenantSite", + "Id": 812, "Command": "Get-PnPTenantSite -Identity 7e8a6f56-92fe-4b22-9364-41799e579e8a" }, { - "Id": 804, "Rank": 7, "CommandName": "Get-PnPTenantSite", + "Id": 813, "Command": "Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0" }, { - "Id": 805, "Rank": 8, "CommandName": "Get-PnPTenantSite", + "Id": 814, "Command": "Get-PnPTenantSite -Filter \"Url -like 'sales'\"" }, { - "Id": 806, "Rank": 9, "CommandName": "Get-PnPTenantSite", + "Id": 815, "Command": "Get-PnPTenantSite -GroupIdDefined $true" }, { - "Id": 807, "Rank": 1, "CommandName": "Get-PnPTenantSyncClientRestriction", + "Id": 816, "Command": "Get-PnPTenantSyncClientRestriction" }, { - "Id": 808, "Rank": 1, "CommandName": "Get-PnPTenantTemplate", + "Id": 817, "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml" }, { - "Id": 809, "Rank": 2, "CommandName": "Get-PnPTenantTemplate", + "Id": 818, "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite" }, { - "Id": 810, "Rank": 3, "CommandName": "Get-PnPTenantTemplate", + "Id": 819, "Command": "Get-PnPTenantTemplate -Out tenanttemplate.xml -SiteUrl https://m365x123456.sharepoint.com/sites/HomeSite -Force" }, { - "Id": 811, "Rank": 1, "CommandName": "Get-PnPTenantTheme", + "Id": 820, "Command": "Get-PnPTenantTheme" }, { - "Id": 812, "Rank": 2, "CommandName": "Get-PnPTenantTheme", + "Id": 821, "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\"" }, { - "Id": 813, "Rank": 3, "CommandName": "Get-PnPTenantTheme", + "Id": 822, "Command": "Get-PnPTenantTheme -Name \"MyCompanyTheme\" -AsJson" }, { - "Id": 814, "Rank": 1, "CommandName": "Get-PnPTerm", + "Id": 823, "Command": "Get-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 815, "Rank": 2, "CommandName": "Get-PnPTerm", + "Id": 824, "Command": "Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 816, "Rank": 3, "CommandName": "Get-PnPTerm", + "Id": 825, "Command": "Get-PnPTerm -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 817, "Rank": 4, "CommandName": "Get-PnPTerm", + "Id": 826, "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive" }, { - "Id": 818, "Rank": 5, "CommandName": "Get-PnPTerm", + "Id": 827, "Command": "Get-PnPTerm -Identity \"Small Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Recursive -IncludeDeprecated" }, { - "Id": 819, "Rank": 1, "CommandName": "Get-PnPTermGroup", + "Id": 828, "Command": "Get-PnPTermGroup" }, { - "Id": 820, "Rank": 2, "CommandName": "Get-PnPTermGroup", + "Id": 829, "Command": "Get-PnPTermGroup -Identity \"Departments\"" }, { - "Id": 821, "Rank": 3, "CommandName": "Get-PnPTermGroup", + "Id": 830, "Command": "Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d" }, { - "Id": 822, "Rank": 1, "CommandName": "Get-PnPTermLabel", + "Id": 831, "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83" }, { - "Id": 823, "Rank": 2, "CommandName": "Get-PnPTermLabel", + "Id": 832, "Command": "Get-PnPTermLabel -Term af8601d6-d925-46dd-af7b-4a58515ffd83 -Lcid 1033" }, { - "Id": 824, "Rank": 3, "CommandName": "Get-PnPTermLabel", + "Id": 833, "Command": "Get-PnPTermLabel -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 825, "Rank": 1, "CommandName": "Get-PnPTermSet", + "Id": 834, "Command": "Get-PnPTermSet -TermGroup \"Corporate\"" }, { - "Id": 826, "Rank": 2, "CommandName": "Get-PnPTermSet", + "Id": 835, "Command": "Get-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 827, "Rank": 3, "CommandName": "Get-PnPTermSet", + "Id": 836, "Command": "Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup \"Corporate" }, { - "Id": 828, "Rank": 1, "CommandName": "Get-PnPTheme", + "Id": 837, "Command": "Get-PnPTheme" }, { - "Id": 829, "Rank": 2, "CommandName": "Get-PnPTheme", + "Id": 838, "Command": "Get-PnPTheme -DetectCurrentComposedLook" }, { - "Id": 830, "Rank": 1, "CommandName": "Get-PnPTimeZoneId", + "Id": 839, "Command": "Get-PnPTimeZoneId" }, { - "Id": 831, "Rank": 2, "CommandName": "Get-PnPTimeZoneId", + "Id": 840, "Command": "Get-PnPTimeZoneId -Match Stockholm" }, { - "Id": 832, "Rank": 1, "CommandName": "Get-PnPUnfurlLink", + "Id": 841, "Command": "Get-PnPUnfurlLink -Url \"https://contoso.sharepoint.com/:u:/s/testsitecol/ERs6pDuyD95LpUSUsJxi1EIBr9FMEYVBvMcs_B7cPdNPgQ?e=ZL3DPe\"" }, { - "Id": 833, "Rank": 1, "CommandName": "Get-PnPUnifiedAuditLog", + "Id": 842, "Command": "Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1)" }, { - "Id": 834, "Rank": 1, "CommandName": "Get-PnPUPABulkImportStatus", + "Id": 843, "Command": "Get-PnPUPABulkImportStatus" }, { - "Id": 835, "Rank": 2, "CommandName": "Get-PnPUPABulkImportStatus", + "Id": 844, "Command": "Get-PnPUPABulkImportStatus -IncludeErrorDetails" }, { - "Id": 836, "Rank": 3, "CommandName": "Get-PnPUPABulkImportStatus", + "Id": 845, "Command": "Get-PnPUPABulkImportStatus -JobId " }, { - "Id": 837, "Rank": 4, "CommandName": "Get-PnPUPABulkImportStatus", + "Id": 846, "Command": "Get-PnPUPABulkImportStatus -JobId -IncludeErrorDetails" }, { - "Id": 838, "Rank": 1, "CommandName": "Get-PnPUser", + "Id": 847, "Command": "Get-PnPUser" }, { - "Id": 839, "Rank": 2, "CommandName": "Get-PnPUser", + "Id": 848, "Command": "Get-PnPUser -Identity 23" }, { - "Id": 840, "Rank": 3, "CommandName": "Get-PnPUser", + "Id": 849, "Command": "Get-PnPUser -Identity \"i:0#.f|membership|user@tenant.onmicrosoft.com\"" }, { - "Id": 841, "Rank": 4, "CommandName": "Get-PnPUser", + "Id": 850, "Command": "Get-PnPUser | ? Email -eq \"user@tenant.onmicrosoft.com\"" }, { - "Id": 842, "Rank": 5, "CommandName": "Get-PnPUser", + "Id": 851, "Command": "Get-PnPUser -WithRightsAssigned" }, { - "Id": 843, "Rank": 6, "CommandName": "Get-PnPUser", + "Id": 852, "Command": "Get-PnPUser -WithRightsAssigned -Web subsite1" }, { - "Id": 844, "Rank": 7, "CommandName": "Get-PnPUser", + "Id": 853, "Command": "Get-PnPUser -WithRightsAssignedDetailed" }, { - "Id": 845, "Rank": 1, "CommandName": "Get-PnPUserOneDriveQuota", + "Id": 854, "Command": "Get-PnPUserOneDriveQuota -Account 'user@domain.com'" }, { - "Id": 846, "Rank": 1, "CommandName": "Get-PnPUserProfileProperty", + "Id": 855, "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com'" }, { - "Id": 847, "Rank": 2, "CommandName": "Get-PnPUserProfileProperty", + "Id": 856, "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com','user2@domain.com'" }, { - "Id": 848, "Rank": 3, "CommandName": "Get-PnPUserProfileProperty", + "Id": 857, "Command": "Get-PnPUserProfileProperty -Account 'user@domain.com' -Properties 'FirstName','LastName'" }, { - "Id": 849, "Rank": 1, "CommandName": "Get-PnPView", + "Id": 858, "Command": "Get-PnPView -List \"Demo List\"" }, { - "Id": 850, "Rank": 2, "CommandName": "Get-PnPView", + "Id": 859, "Command": "Get-PnPView -List \"Demo List\" -Identity \"Demo View\"" }, { - "Id": 851, "Rank": 3, "CommandName": "Get-PnPView", + "Id": 860, "Command": "Get-PnPView -List \"Demo List\" -Identity \"5275148a-6c6c-43d8-999a-d2186989a661\"" }, { - "Id": 852, "Rank": 1, "CommandName": "Get-PnPVivaConnectionsDashboardACE", + "Id": 861, "Command": "Get-PnPVivaConnectionsDashboardACE" }, { - "Id": 853, "Rank": 2, "CommandName": "Get-PnPVivaConnectionsDashboardACE", + "Id": 862, "Command": "Get-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" }, { - "Id": 854, "Rank": 1, "CommandName": "Get-PnPWeb", + "Id": 863, "Command": "Get-PnPWeb" }, { - "Id": 855, "Rank": 1, "CommandName": "Get-PnPWebHeader", + "Id": 864, "Command": "Get-PnPWebHeader" }, { - "Id": 856, "Rank": 1, "CommandName": "Get-PnPWebhookSubscription", + "Id": 865, "Command": "Get-PnPWebhookSubscription -List MyList" }, { - "Id": 857, "Rank": 1, "CommandName": "Get-PnPWebPart", + "Id": 866, "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\"" }, { - "Id": 858, "Rank": 2, "CommandName": "Get-PnPWebPart", + "Id": 867, "Command": "Get-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Id": 859, "Rank": 1, "CommandName": "Get-PnPWebPartProperty", + "Id": 868, "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914" }, { - "Id": 860, "Rank": 2, "CommandName": "Get-PnPWebPartProperty", + "Id": 869, "Command": "Get-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\"" }, { - "Id": 861, "Rank": 1, "CommandName": "Get-PnPWebPartXml", + "Id": 870, "Command": "Get-PnPWebPartXml -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Id": 862, + "Rank": 1, + "CommandName": "Get-PnPWebPermission", + "Id": 871, + "Command": "Get-PnPWebPermission -Identity (Get-PnPWeb) -PrincipalId 60" + }, + { + "Rank": 2, + "CommandName": "Get-PnPWebPermission", + "Id": 872, + "Command": "Get-PnPWebPermission -Identity \"subsite\" -PrincipalId (Get-PnPGroup -Identity DemoGroup).Id" + }, + { "Rank": 1, "CommandName": "Get-PnPWebTemplates", + "Id": 873, "Command": "Get-PnPWebTemplates" }, { - "Id": 863, "Rank": 2, "CommandName": "Get-PnPWebTemplates", + "Id": 874, "Command": "Get-PnPWebTemplates -LCID 1033" }, { - "Id": 864, "Rank": 3, "CommandName": "Get-PnPWebTemplates", + "Id": 875, "Command": "Get-PnPWebTemplates -CompatibilityLevel 15" }, { - "Id": 865, "Rank": 1, "CommandName": "Get-PnPWikiPageContent", + "Id": 876, "Command": "Get-PnPWikiPageContent -PageUrl '/sites/demo1/pages/wikipage.aspx'" }, { - "Id": 866, "Rank": 1, "CommandName": "Grant-PnPAzureADAppSitePermission", + "Id": 877, "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read" }, { - "Id": 867, "Rank": 2, "CommandName": "Grant-PnPAzureADAppSitePermission", + "Id": 878, "Command": "Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects" }, { - "Id": 868, "Rank": 1, "CommandName": "Grant-PnPHubSiteRights", + "Id": 879, "Command": "Grant-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Id": 869, "Rank": 1, "CommandName": "Grant-PnPSiteDesignRights", + "Id": 880, "Command": "Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Id": 870, "Rank": 1, "CommandName": "Grant-PnPTenantServicePrincipalPermission", + "Id": 881, "Command": "Grant-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" }, { - "Id": 871, "Rank": 1, "CommandName": "Import-PnPTaxonomy", + "Id": 882, "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm'" }, { - "Id": 872, "Rank": 2, "CommandName": "Import-PnPTaxonomy", + "Id": 883, "Command": "Import-PnPTaxonomy -Terms 'Company|Locations|Stockholm|Central','Company|Locations|Stockholm|North'" }, { - "Id": 873, "Rank": 3, "CommandName": "Import-PnPTaxonomy", + "Id": 884, "Command": "Import-PnPTaxonomy -Path ./mytaxonomyterms.txt" }, { - "Id": 874, "Rank": 1, "CommandName": "Import-PnPTermGroupFromXml", + "Id": 885, "Command": "Import-PnPTermGroupFromXml -Xml $xml" }, { - "Id": 875, "Rank": 2, "CommandName": "Import-PnPTermGroupFromXml", + "Id": 886, "Command": "Import-PnPTermGroupFromXml -Path input.xml" }, { - "Id": 876, "Rank": 1, "CommandName": "Import-PnPTermSet", + "Id": 887, "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -SynchronizeDeletions" }, { - "Id": 877, "Rank": 2, "CommandName": "Import-PnPTermSet", + "Id": 888, "Command": "Import-PnPTermSet -TermStoreName 'My Term Store' -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -TermSetId '{15A98DB6-D8E2-43E6-8771-066C1EC2B8D8}'" }, { - "Id": 878, "Rank": 3, "CommandName": "Import-PnPTermSet", + "Id": 889, "Command": "Import-PnPTermSet -GroupName 'Standard Terms' -Path 'C:\\\\Temp\\\\ImportTermSet.csv' -IsOpen $true -Contact 'user@example.org' -Owner 'user@example.org'" }, { - "Id": 879, "Rank": 1, "CommandName": "Install-PnPApp", + "Id": 890, "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 880, "Rank": 2, "CommandName": "Install-PnPApp", + "Id": 891, "Command": "Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Id": 881, "Rank": 1, "CommandName": "Invoke-PnPGraphMethod", + "Id": 892, "Command": "Invoke-PnPGraphMethod -Url \"groups?`$filter=startsWith(displayName,'ZZ')&`$select=displayName\"\r ; Invoke-PnPGraphMethod -Url 'groups/{id}?`$select=hideFromOutlookClients'" }, { - "Id": 882, "Rank": 2, "CommandName": "Invoke-PnPGraphMethod", + "Id": 893, "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Delete" }, { - "Id": 883, "Rank": 3, "CommandName": "Invoke-PnPGraphMethod", + "Id": 894, "Command": "Invoke-PnPGraphMethod -Url \"groups/{id}\" -Method Patch -Content @{ displayName = \"NewName\" }" }, { - "Id": 884, "Rank": 4, "CommandName": "Invoke-PnPGraphMethod", + "Id": 895, "Command": "Invoke-PnPGraphMethod -Url \"v1.0/users?$filter=accountEnabled ne true&$count=true\" -Method Get -ConsistencyLevelEventual" }, { - "Id": 885, "Rank": 5, "CommandName": "Invoke-PnPGraphMethod", + "Id": 896, "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users\"" }, { - "Id": 886, "Rank": 6, "CommandName": "Invoke-PnPGraphMethod", + "Id": 897, "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutFile c:\\temp\\photo.jpg" }, { - "Id": 887, "Rank": 7, "CommandName": "Invoke-PnPGraphMethod", + "Id": 898, "Command": "Invoke-PnPGraphMethod \"https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value\" -OutStream | Add-PnPFile -FileName user.jpg -Folder \"Shared Documents\"" }, { - "Id": 888, "Rank": 1, "CommandName": "Invoke-PnPListDesign", + "Id": 899, "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 889, "Rank": 2, "CommandName": "Invoke-PnPListDesign", + "Id": 900, "Command": "Invoke-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" }, { - "Id": 890, "Rank": 1, "CommandName": "Invoke-PnPQuery", + "Id": 901, "Command": "Invoke-PnPQuery -RetryCount 5" }, { - "Id": 891, "Rank": 1, "CommandName": "Invoke-PnPSiteDesign", + "Id": 902, "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 892, "Rank": 2, "CommandName": "Invoke-PnPSiteDesign", + "Id": 903, "Command": "Invoke-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -WebUrl \"https://contoso.sharepoint.com/sites/mydemosite\"" }, { - "Id": 893, "Rank": 1, "CommandName": "Invoke-PnPSiteScript", + "Id": 904, "Command": "Invoke-PnPSiteScript -Identity \"My awesome script\" -WebUrl https://contoso.sharepoint.com/sites/mydemosite" }, { - "Id": 894, "Rank": 1, "CommandName": "Invoke-PnPSiteSwap", + "Id": 905, "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive" }, { - "Id": 895, "Rank": 2, "CommandName": "Invoke-PnPSiteSwap", + "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" }, { - "Id": 896, "Rank": 3, "CommandName": "Invoke-PnPSiteSwap", + "Id": 907, "Command": "Invoke-PnPSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive -DisableRedirection" }, { - "Id": 897, "Rank": 1, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 908, "Command": "Invoke-PnPSiteTemplate -Path template.xml" }, { - "Id": 898, "Rank": 2, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 909, "Command": "Invoke-PnPSiteTemplate -Path template.xml -ResourceFolder c:\\provisioning\\resources" }, { - "Id": 899, "Rank": 3, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 910, "Command": "Invoke-PnPSiteTemplate -Path template.xml -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" }, { - "Id": 900, "Rank": 4, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 911, "Command": "Invoke-PnPSiteTemplate -Path template.xml -Handlers Lists, SiteSecurity" }, { - "Id": 901, "Rank": 5, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 912, "Command": "Invoke-PnPSiteTemplate -Path template.pnp" }, { - "Id": 902, "Rank": 6, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 913, "Command": "Invoke-PnPSiteTemplate -Path \"https://tenant.sharepoint.com/sites/templatestorage/Documents/template.pnp\"" }, { - "Id": 903, "Rank": 7, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 914, "Command": "Invoke-PnPSiteTemplate -Path .\\ -InputInstance $template" }, { - "Id": 904, "Rank": 8, "CommandName": "Invoke-PnPSiteTemplate", + "Id": 915, "Command": "Invoke-PnPSiteTemplate -Path .\\template.xml -TemplateId \"MyTemplate\"" }, { - "Id": 905, "Rank": 1, "CommandName": "Invoke-PnPSPRestMethod", + "Id": 916, "Command": "Invoke-PnPSPRestMethod -Url /_api/web" }, { - "Id": 906, "Rank": 1, "CommandName": "Invoke-PnPTenantTemplate", + "Id": 917, "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp" }, { - "Id": 907, "Rank": 2, "CommandName": "Invoke-PnPTenantTemplate", + "Id": 918, "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -SequenceId \"mysequence\"" }, { - "Id": 908, "Rank": 3, "CommandName": "Invoke-PnPTenantTemplate", + "Id": 919, "Command": "Invoke-PnPTenantTemplate -Path myfile.pnp -Parameters @{\"ListTitle\"=\"Projects\";\"parameter2\"=\"a second value\"}" }, { - "Id": 909, "Rank": 1, "CommandName": "Invoke-PnPWebAction", + "Id": 920, "Command": "Invoke-PnPWebAction -ListAction ${function:ListAction}" }, { - "Id": 910, "Rank": 2, "CommandName": "Invoke-PnPWebAction", + "Id": 921, "Command": "Invoke-PnPWebAction -ShouldProcessListAction ${function:ShouldProcessList} -ListAction ${function:ListAction}" }, { - "Id": 911, "Rank": 1, "CommandName": "Measure-PnPList", + "Id": 922, "Command": "Measure-PnPList \"Documents\"" }, { - "Id": 912, "Rank": 2, "CommandName": "Measure-PnPList", + "Id": 923, "Command": "Measure-PnPList \"Documents\" -BrokenPermissions -ItemLevel" }, { - "Id": 913, "Rank": 1, "CommandName": "Measure-PnPWeb", + "Id": 924, "Command": "Measure-PnPWeb" }, { - "Id": 914, "Rank": 2, "CommandName": "Measure-PnPWeb", + "Id": 925, "Command": "Measure-PnPWeb $web -Recursive" }, { - "Id": 915, "Rank": 1, "CommandName": "Merge-PnPTerm", + "Id": 926, "Command": "Merge-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 95e13729-3ccf-4ec8-998c-78e9ef1daa0b" }, { - "Id": 916, "Rank": 1, "CommandName": "Move-PnPFile", + "Id": 927, "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive/Document2.docx\"" }, { - "Id": 917, "Rank": 2, "CommandName": "Move-PnPFile", + "Id": 928, "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"Archive\" -Overwrite" }, { - "Id": 918, "Rank": 3, "CommandName": "Move-PnPFile", + "Id": 929, "Command": "Move-PnPFile -SourceUrl \"Shared Documents/Document.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" }, { - "Id": 919, "Rank": 4, "CommandName": "Move-PnPFile", + "Id": 930, "Command": "Move-PnPFile -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/archive/Project\" -AllowSchemaMismatch -AllowSmallerVersionLimitOnDestination" }, { - "Id": 920, "Rank": 1, "CommandName": "Move-PnPFolder", + "Id": 931, "Command": "Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'" }, { - "Id": 921, "Rank": 2, "CommandName": "Move-PnPFolder", + "Id": 932, "Command": "Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'" }, { - "Id": 922, "Rank": 1, "CommandName": "Move-PnPListItemToRecycleBin", + "Id": 933, "Command": "Move-PnPListItemToRecycleBin -List \"Demo List\" -Identity \"1\" -Force" }, { - "Id": 923, "Rank": 1, "CommandName": "Move-PnPPageComponent", + "Id": 934, "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1" }, { - "Id": 924, "Rank": 2, "CommandName": "Move-PnPPageComponent", + "Id": 935, "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Column 2" }, { - "Id": 925, "Rank": 3, "CommandName": "Move-PnPPageComponent", + "Id": 936, "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2" }, { - "Id": 926, "Rank": 4, "CommandName": "Move-PnPPageComponent", + "Id": 937, "Command": "Move-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Section 1 -Column 2 -Position 2" }, { - "Id": 927, "Rank": 1, "CommandName": "Move-PnpRecycleBinItem", + "Id": 938, "Command": "Move-PnPRecycleBinItem" }, { - "Id": 928, "Rank": 2, "CommandName": "Move-PnpRecycleBinItem", + "Id": 939, "Command": "Move-PnPRecycleBinItem -Identity 26ffff29-b526-4451-9b6f-7f0e56ba7125" }, { - "Id": 929, "Rank": 3, "CommandName": "Move-PnpRecycleBinItem", + "Id": 940, "Command": "Move-PnPRecycleBinItem -Force" }, { - "Id": 930, "Rank": 1, "CommandName": "Move-PnPTerm", + "Id": 941, "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTermSet 95e13729-3ccf-4ec8-998c-78e9ef1daa0b -TargetTermGroup b2645144-5757-4cd7-b7f9-e5d24757addf" }, { - "Id": 931, "Rank": 2, "CommandName": "Move-PnPTerm", + "Id": 942, "Command": "Move-PnPTerm -Identity \"Test\" -TargetTermSet \"TestTermSet1\" -TermSet \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TestingGroup\"" }, { - "Id": 932, "Rank": 3, "CommandName": "Move-PnPTerm", + "Id": 943, "Command": "Move-PnPTerm -Identity d67966b0-3b60-4331-8dc4-0b5a2ca730fc -TargetTerm 2ad90b20-b5c0-4544-ac64-25e32d51fa3b -MoveToTerm" }, { - "Id": 933, "Rank": 1, "CommandName": "Move-PnPTermSet", + "Id": 944, "Command": "Move-PnPTermSet -Identity 81e0a4b8-701d-459c-ad61-a1c7a81810ff -TermGroup 17e16b98-a8c2-4db6-a860-5c42dbc818f4 -TargetTermGroup cf33d1cd-42d8-431c-9e43-3d8dab9ea8fd" }, { - "Id": 934, "Rank": 2, "CommandName": "Move-PnPTermSet", + "Id": 945, "Command": "Move-PnPTermSet -Identity \"OperationLevel-1 Test\" -TermGroup \"FromPowerAutomate\" -TargetTermGroup \"TargetTermGroup\"" }, { - "Id": 935, "Rank": 1, "CommandName": "New-PnPAzureADGroup", + "Id": 946, "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname" }, { - "Id": 936, "Rank": 2, "CommandName": "New-PnPAzureADGroup", + "Id": 947, "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers" }, { - "Id": 937, "Rank": 3, "CommandName": "New-PnPAzureADGroup", + "Id": 948, "Command": "New-PnPAzureADGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsSecurityEnabled -IsMailEnabled" }, { - "Id": 938, "Rank": 1, "CommandName": "New-PnPAzureADUserTemporaryAccessPass", + "Id": 949, "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com" }, { - "Id": 939, "Rank": 2, "CommandName": "New-PnPAzureADUserTemporaryAccessPass", + "Id": 950, "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity 72e2eb87-c124-4bd9-8e01-a447a1752058 -IsUseableOnce:$true" }, { - "Id": 940, "Rank": 3, "CommandName": "New-PnPAzureADUserTemporaryAccessPass", + "Id": 951, "Command": "New-PnPAzureADUserTemporaryAccessPass -Identity johndoe@contoso.onmicrosoft.com -StartDateTime (Get-Date).AddHours(2) -LifeTimeInMinutes 10 -IsUseableOnce:$true" }, { - "Id": 941, "Rank": 1, "CommandName": "New-PnPAzureCertificate", + "Id": 952, "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer" }, { - "Id": 942, "Rank": 2, "CommandName": "New-PnPAzureCertificate", + "Id": 953, "Command": "New-PnPAzureCertificate -CommonName \"My Certificate\" -ValidYears 30" }, { - "Id": 943, "Rank": 3, "CommandName": "New-PnPAzureCertificate", + "Id": 954, "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -CertificatePassword (ConvertTo-SecureString -String \"pass@word1\" -AsPlainText -Force)" }, { - "Id": 944, "Rank": 4, "CommandName": "New-PnPAzureCertificate", + "Id": 955, "Command": "New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer -SanNames $null" }, { - "Id": 945, + "Rank": 1, + "CommandName": "New-PnPContainerType", + "Id": 956, + "Command": "New-PnPContainerType -ContainerTypeName \"test1\" -OwningApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscription c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup \"SPEmbed\" -Region \"Uk-South\"" + }, + { "Rank": 1, "CommandName": "New-PnPGraphSubscription", + "Id": 957, "Command": "New-PnPGraphSubscription -ChangeType Create -NotificationUrl https://mywebapiservice/notifications -Resource \"me/mailFolders('Inbox')/messages\" -ExpirationDateTime (Get-Date).AddDays(1) -ClientState [Guid]::NewGuid().ToString()" }, { - "Id": 946, "Rank": 2, "CommandName": "New-PnPGraphSubscription", + "Id": 958, "Command": "New-PnPGraphSubscription -ChangeType Updates -NotificationUrl https://mywebapiservice/notifications -Resource \"Users\" -ExpirationDateTime (Get-Date).AddHours(1) -ClientState [Guid]::NewGuid().ToString()" }, { - "Id": 947, "Rank": 1, "CommandName": "New-PnPGroup", + "Id": 959, "Command": "New-PnPGroup -Title \"My Site Users\"" }, { - "Id": 948, "Rank": 1, "CommandName": "New-PnPList", + "Id": 960, "Command": "New-PnPList -Title Announcements -Template Announcements" }, { - "Id": 949, "Rank": 2, "CommandName": "New-PnPList", + "Id": 961, "Command": "New-PnPList -Title \"Demo List\" -Url \"lists/DemoList\" -Template Announcements" }, { - "Id": 950, "Rank": 3, "CommandName": "New-PnPList", + "Id": 962, "Command": "New-PnPList -Title HiddenList -Template GenericList -Hidden" }, { - "Id": 951, "Rank": 1, "CommandName": "New-PnPMicrosoft365Group", + "Id": 963, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname" }, { - "Id": 952, "Rank": 2, "CommandName": "New-PnPMicrosoft365Group", + "Id": 964, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners \"owner1@domain.com\" -Members \"member1@domain.com\"" }, { - "Id": 953, "Rank": 3, "CommandName": "New-PnPMicrosoft365Group", + "Id": 965, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate" }, { - "Id": 954, "Rank": 4, "CommandName": "New-PnPMicrosoft365Group", + "Id": 966, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate" }, { - "Id": 955, "Rank": 5, "CommandName": "New-PnPMicrosoft365Group", + "Id": 967, "Command": "New-PnPMicrosoft365Group -DisplayName \"myPnPDemo1\" -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" }, { - "Id": 956, "Rank": 6, "CommandName": "New-PnPMicrosoft365Group", + "Id": 968, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Id": 957, "Rank": 7, "CommandName": "New-PnPMicrosoft365Group", + "Id": 969, "Command": "New-PnPMicrosoft365Group -DisplayName $displayName -Description $description -MailNickname $nickname -DynamicMembershipRule \"(user.department -eq \"\"HR\"\")\"" }, { - "Id": 958, "Rank": 1, "CommandName": "New-PnPMicrosoft365GroupSettings", + "Id": 970, "Command": "New-PnPMicrosoft365GroupSettings -DisplayName \"Group.Unified\" -TemplateId \"62375ab9-6b52-47ed-826b-58e47e0e304b\" -Values @{\"GuestUsageGuidelinesUrl\"=\"https://privacy.contoso.com/privacystatement\";\"EnableMSStandardBlockedWords\"=\"true\"}" }, { - "Id": 959, "Rank": 2, "CommandName": "New-PnPMicrosoft365GroupSettings", + "Id": 971, "Command": "New-PnPMicrosoft365GroupSettings -Identity $groupId -DisplayName \"Group.Unified.Guest\" -TemplateId \"08d542b9-071f-4e16-94b0-74abb372e3d9\" -Values @{\"AllowToAddGuests\"=\"false\"}" }, { - "Id": 960, "Rank": 1, "CommandName": "New-PnPPersonalSite", + "Id": 972, "Command": "New-PnPPersonalSite -Email @('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')" }, { - "Id": 961, "Rank": 1, "CommandName": "New-PnPPlannerPlan", + "Id": 973, "Command": "New-PnPPlannerPlan -Group \"Marketing\" -Title \"Conference Plan\"" }, { - "Id": 962, "Rank": 1, "CommandName": "New-PnPSdnProvider", + "Id": 974, "Command": "New-PnPSdnProvider -ID \"Hive\" -License \"\"" }, { - "Id": 963, "Rank": 1, "CommandName": "New-PnPSite", + "Id": 975, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" }, { - "Id": 964, "Rank": 2, "CommandName": "New-PnPSite", + "Id": 976, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase" }, { - "Id": 965, "Rank": 3, "CommandName": "New-PnPSite", + "Id": 977, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" }, { - "Id": 966, "Rank": 4, "CommandName": "New-PnPSite", + "Id": 978, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" }, { - "Id": 967, "Rank": 5, "CommandName": "New-PnPSite", + "Id": 979, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" }, { - "Id": 968, "Rank": 6, "CommandName": "New-PnPSite", + "Id": 980, "Command": "New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" }, { - "Id": 969, "Rank": 7, "CommandName": "New-PnPSite", + "Id": 981, "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso" }, { - "Id": 970, "Rank": 8, "CommandName": "New-PnPSite", + "Id": 982, "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -IsPublic" }, { - "Id": 971, "Rank": 9, "CommandName": "New-PnPSite", + "Id": 983, "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040" }, { - "Id": 972, "Rank": 10, "CommandName": "New-PnPSite", + "Id": 984, "Command": "New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -SiteAlias contoso-site" }, { - "Id": 973, "Rank": 11, "CommandName": "New-PnPSite", + "Id": 985, "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso" }, { - "Id": 974, "Rank": 12, "CommandName": "New-PnPSite", + "Id": 986, "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesignId ae2349d5-97d6-4440-94d1-6516b72449ac" }, { - "Id": 975, "Rank": 13, "CommandName": "New-PnPSite", + "Id": 987, "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Classification \"HBI\"" }, { - "Id": 976, "Rank": 14, "CommandName": "New-PnPSite", + "Id": 988, "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -ShareByEmailEnabled" }, { - "Id": 977, "Rank": 15, "CommandName": "New-PnPSite", + "Id": 989, "Command": "New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Lcid 1040" }, { - "Id": 978, "Rank": 16, "CommandName": "New-PnPSite", + "Id": 990, "Command": "New-PnPSite -Type TeamSite -TimeZone UTCPLUS0200_HELSINKI_KYIV_RIGA_SOFIA_TALLINN_VILNIUS -Title \"Contoso\" -Alias \"Contoso\"" }, { - "Id": 979, "Rank": 1, "CommandName": "New-PnPSiteCollectionTermStore", + "Id": 991, "Command": "New-PnPSiteCollectionTermStore" }, { - "Id": 980, "Rank": 1, "CommandName": "New-PnPSiteGroup", + "Id": 992, "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Name \"Project Leads\" -PermissionLevels \"Full Control\"" }, { - "Id": 981, "Rank": 2, "CommandName": "New-PnPSiteGroup", + "Id": 993, "Command": "New-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/marketing\" -Name \"NewGroupName\" -PermissionLevels \"Design\"" }, { - "Id": 982, "Rank": 1, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 994, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml" }, { - "Id": 983, "Rank": 2, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 995, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp" }, { - "Id": 984, "Rank": 3, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 996, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js" }, { - "Id": 985, "Rank": 4, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 997, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\"" }, { - "Id": 986, "Rank": 5, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 998, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -ContentType \"Test Content Type\"" }, { - "Id": 987, "Rank": 6, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 999, "Command": "New-PnPSiteTemplateFromFolder -Out template.xml -Folder c:\\temp -Match *.js -TargetFolder \"Shared Documents\" -Properties @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 988, "Rank": 7, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 1000, "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp" }, { - "Id": 989, "Rank": 8, "CommandName": "New-PnPSiteTemplateFromFolder", + "Id": 1001, "Command": "New-PnPSiteTemplateFromFolder -Out template.pnp -Folder c:\\temp" }, { - "Id": 990, "Rank": 1, "CommandName": "New-PnPTeamsApp", + "Id": 1002, "Command": "New-PnPTeamsApp -Path c:\\myapp.zip" }, { - "Id": 991, "Rank": 1, "CommandName": "New-PnPTeamsTeam", + "Id": 1003, "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false" }, { - "Id": 992, "Rank": 2, "CommandName": "New-PnPTeamsTeam", + "Id": 1004, "Command": "New-PnPTeamsTeam -GroupId $groupId" }, { - "Id": 993, "Rank": 3, "CommandName": "New-PnPTeamsTeam", + "Id": 1005, "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled" }, { - "Id": 994, "Rank": 4, "CommandName": "New-PnPTeamsTeam", + "Id": 1006, "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -AllowCreateUpdateRemoveTabs $false -AllowUserDeleteMessages $false -ResourceBehaviorOptions WelcomeEmailDisabled, HideGroupInOutlook" }, { - "Id": 995, "Rank": 5, "CommandName": "New-PnPTeamsTeam", + "Id": 1007, "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\"" }, { - "Id": 996, "Rank": 6, "CommandName": "New-PnPTeamsTeam", + "Id": 1008, "Command": "New-PnPTeamsTeam -DisplayName \"myPnPDemo1\" -Visibility Private -Owners \"user1@contoso.onmicrosoft.com\",\"user2@contoso.onmicrosoft.com\" -Members \"user3@contoso.onmicrosoft.com\" -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Id": 997, "Rank": 1, "CommandName": "New-PnPTenantSite", + "Id": 1009, "Command": "New-PnPTenantSite -Title Contoso -Url \"https://tenant.sharepoint.com/sites/contoso\" -Owner user@example.org -TimeZone 4 -Template STS#0" }, { - "Id": 998, "Rank": 2, "CommandName": "New-PnPTenantSite", + "Id": 1010, "Command": "New-PnPTenantSite -Title Contoso -Url /sites/contososite -Owner user@example.org -TimeZone 4 -Template STS#0" }, { - "Id": 999, "Rank": 1, "CommandName": "New-PnPTerm", + "Id": 1011, "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\"" }, { - "Id": 1000, "Rank": 2, "CommandName": "New-PnPTerm", + "Id": 1012, "Command": "New-PnPTerm -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { - "Id": 1001, "Rank": 1, "CommandName": "New-PnPTermGroup", + "Id": 1013, "Command": "New-PnPTermGroup -GroupName \"Countries\"" }, { - "Id": 1002, "Rank": 1, "CommandName": "New-PnPTermLabel", + "Id": 1014, "Command": "New-PnPTermLabel -Name \"Finanzwesen\" -Lcid 1031 -Term (Get-PnPTerm -Identity \"Finance\" -TermSet \"Departments\" -TermGroup \"Corporate\")" }, { - "Id": 1003, "Rank": 1, "CommandName": "New-PnPTermSet", + "Id": 1015, "Command": "New-PnPTermSet -Name \"Department\" -TermGroup \"Corporate\"" }, { - "Id": 1004, "Rank": 1, "CommandName": "New-PnPUPABulkImportJob", + "Id": 1016, "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"}" }, { - "Id": 1005, "Rank": 2, "CommandName": "New-PnPUPABulkImportJob", + "Id": 1017, "Command": "New-PnPUPABulkImportJob -Url \"https://{tenant}.sharepoint.com/sites/userprofilesync/Shared Documents/profiles.json\" -IdProperty \"IdName\" -UserProfilePropertyMapping @{\"Department\"=\"Department\"} -Wait -Verbose" }, { - "Id": 1006, "Rank": 1, "CommandName": "New-PnPUser", + "Id": 1018, "Command": "New-PnPUser -LoginName user@company.com" }, { - "Id": 1007, "Rank": 1, "CommandName": "New-PnPWeb", + "Id": 1019, "Command": "New-PnPWeb -Title \"Project A Web\" -Url projectA -Description \"Information about Project A\" -Locale 1033 -Template \"STS#0\"" }, { - "Id": 1008, "Rank": 1, "CommandName": "Publish-PnPApp", + "Id": 1020, "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f" }, { - "Id": 1009, "Rank": 2, "CommandName": "Publish-PnPApp", + "Id": 1021, "Command": "Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site" }, { - "Id": 1010, "Rank": 1, "CommandName": "Publish-PnPCompanyApp", + "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" }, { - "Id": 1011, "Rank": 1, "CommandName": "Publish-PnPContentType", + "Id": 1023, "Command": "Publish-PnPContentType -ContentType 0x0101" }, { - "Id": 1012, "Rank": 1, "CommandName": "Publish-PnPSyntexModel", + "Id": 1024, "Command": "Publish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" }, { - "Id": 1013, "Rank": 2, "CommandName": "Publish-PnPSyntexModel", + "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" }, { - "Id": 1014, "Rank": 1, "CommandName": "Read-PnPSiteTemplate", + "Id": 1026, "Command": "Read-PnPSiteTemplate -Path template.pnp" }, { - "Id": 1015, "Rank": 2, "CommandName": "Read-PnPSiteTemplate", + "Id": 1027, "Command": "Read-PnPSiteTemplate -Path template.pnp -TemplateProviderExtensions $extensions" }, { - "Id": 1016, "Rank": 3, "CommandName": "Read-PnPSiteTemplate", + "Id": 1028, "Command": "Read-PnPSiteTemplate -Xml $xml" }, { - "Id": 1017, "Rank": 1, "CommandName": "Read-PnPTenantTemplate", + "Id": 1029, "Command": "Read-PnPTenantTemplate -Path template.pnp" }, { - "Id": 1018, "Rank": 1, "CommandName": "Register-PnPAppCatalogSite", + "Id": 1030, "Command": "Register-PnPAppCatalogSite -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\" -Owner admin@domain.com -TimeZoneId 4" }, { - "Id": 1019, "Rank": 1, "CommandName": "Register-PnPAzureADApp", + "Id": 1031, "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Id": 1020, "Rank": 2, "CommandName": "Register-PnPAzureADApp", + "Id": 1032, "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\")" }, { - "Id": 1021, "Rank": 3, "CommandName": "Register-PnPAzureADApp", + "Id": 1033, "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -Store CurrentUser -GraphApplicationPermissions \"User.Read.All\" -SharePointApplicationPermissions \"Sites.Read.All\" -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Id": 1022, "Rank": 4, "CommandName": "Register-PnPAzureADApp", + "Id": 1034, "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -OutPath c:\\ -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter Password\")" }, { - "Id": 1023, "Rank": 5, "CommandName": "Register-PnPAzureADApp", + "Id": 1035, "Command": "Register-PnPAzureADApp -DeviceLogin -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" }, { - "Id": 1024, "Rank": 6, "CommandName": "Register-PnPAzureADApp", + "Id": 1036, "Command": "Register-PnPAzureADApp -Interactive -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force)" }, { - "Id": 1025, "Rank": 7, "CommandName": "Register-PnPAzureADApp", + "Id": 1037, "Command": "Register-PnPAzureADApp -ApplicationName TestApp -Tenant yourtenant.onmicrosoft.com -CertificatePath c:\\certificate.pfx -CertificatePassword (ConvertTo-SecureString -String \"password\" -AsPlainText -Force) -Username \"yourname@domain.com\" -Password (Read-Host -AsSecureString -Prompt \"Enter password\") -LogoFilePath c:\\logo.png" }, { - "Id": 1026, "Rank": 1, "CommandName": "Register-PnPHubSite", + "Id": 1038, "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" }, { - "Id": 1027, "Rank": 2, "CommandName": "Register-PnPHubSite", + "Id": 1039, "Command": "Register-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\" -Principals \"user@contoso.com\"" }, { - "Id": 1028, "Rank": 1, "CommandName": "Register-PnPManagementShellAccess", + "Id": 1040, "Command": "Register-PnPManagementShellAccess" }, { - "Id": 1029, "Rank": 2, "CommandName": "Register-PnPManagementShellAccess", + "Id": 1041, "Command": "Register-PnPManagementShellAccess -ShowConsentUrl" }, { - "Id": 1030, "Rank": 3, "CommandName": "Register-PnPManagementShellAccess", + "Id": 1042, "Command": "Register-PnPManagementShellAccess -ShowConsentUrl -TenantName yourtenant.onmicrosoft.com" }, { - "Id": 1031, "Rank": 1, "CommandName": "Remove-PnPAdaptiveScopeProperty", + "Id": 1043, "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey" }, { - "Id": 1032, "Rank": 2, "CommandName": "Remove-PnPAdaptiveScopeProperty", + "Id": 1044, "Command": "Remove-PnPAdaptiveScopeProperty -Key MyKey -Force" }, { - "Id": 1033, "Rank": 1, "CommandName": "Remove-PnPAlert", + "Id": 1045, "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7" }, { - "Id": 1034, "Rank": 2, "CommandName": "Remove-PnPAlert", + "Id": 1046, "Command": "Remove-PnPAlert -Identity 641ac67f-0ce0-4837-874a-743c8f8572a7 -User \"i:0#.f|membership|Alice@contoso.onmicrosoft.com\"" }, { - "Id": 1035, "Rank": 1, "CommandName": "Remove-PnPApp", + "Id": 1047, "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 1036, "Rank": 2, "CommandName": "Remove-PnPApp", + "Id": 1048, "Command": "Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Id": 1037, "Rank": 1, "CommandName": "Remove-PnPApplicationCustomizer", + "Id": 1049, "Command": "Remove-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Id": 1038, "Rank": 2, "CommandName": "Remove-PnPApplicationCustomizer", + "Id": 1050, "Command": "Remove-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" }, { - "Id": 1039, "Rank": 1, "CommandName": "Remove-PnPAvailableSiteClassification", + "Id": 1051, "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\"" }, { - "Id": 1040, "Rank": 2, "CommandName": "Remove-PnPAvailableSiteClassification", + "Id": 1052, "Command": "Remove-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" }, { - "Id": 1041, "Rank": 1, "CommandName": "Remove-PnPAzureADApp", + "Id": 1053, "Command": "Remove-PnPAzureADApp -Identity MyApp" }, { - "Id": 1042, "Rank": 2, "CommandName": "Remove-PnPAzureADApp", + "Id": 1054, "Command": "Remove-PnPAzureADApp -Identity 93a9772d-d0af-4ed8-9821-17282b64690e" }, { - "Id": 1043, "Rank": 1, "CommandName": "Remove-PnPAzureADGroup", + "Id": 1055, "Command": "Remove-PnPAzureADGroup -Identity $groupId" }, { - "Id": 1044, "Rank": 2, "CommandName": "Remove-PnPAzureADGroup", + "Id": 1056, "Command": "Remove-PnPAzureADGroup -Identity $group" }, { - "Id": 1045, "Rank": 1, "CommandName": "Remove-PnPAzureADGroupMember", + "Id": 1057, "Command": "Remove-PnPAzureADGroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 1046, "Rank": 1, "CommandName": "Remove-PnPAzureADGroupOwner", + "Id": 1058, "Command": "Remove-PnPAzureADGroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 1047, "Rank": 1, "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 1059, "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933 -AppRoleName \"User.ReadWrite.All\"" }, { - "Id": 1048, "Rank": 2, "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 1060, "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\" -AppRoleName \"Group.ReadWrite.All\"" }, { - "Id": 1049, "Rank": 3, "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 1061, "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal 797ee8a7-a950-4eb8-945d-7f10cc68a933" }, { - "Id": 1050, "Rank": 4, "CommandName": "Remove-PnPAzureADServicePrincipalAssignedAppRole", + "Id": 1062, "Command": "Remove-PnPAzureADServicePrincipalAssignedAppRole -Principal \"My application\"" }, { - "Id": 1051, "Rank": 1, "CommandName": "Remove-PnPContainer", + "Id": 1063, "Command": "Remove-PnPContainer -Identity \"b!aBrXSxKDdUKZsaK3Djug6C5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" }, { - "Id": 1052, "Rank": 2, "CommandName": "Remove-PnPContainer", + "Id": 1064, "Command": "Remove-PnPContainer -Identity \"https://contoso.sharepoint.com/contentstorage/CSP_4bd71a68-8312-4275-99b1-a2b70e3ba0e8\"" }, { - "Id": 1053, + "Rank": 1, + "CommandName": "Remove-PnPContainerType", + "Id": 1065, + "Command": "Remove-PnPContainerType -Identity 00be1092-0c75-028a-18db-89e57908e7d6" + }, + { "Rank": 1, "CommandName": "Remove-PnPContentType", + "Id": 1066, "Command": "Remove-PnPContentType -Identity \"Project Document\"" }, { - "Id": 1054, "Rank": 2, "CommandName": "Remove-PnPContentType", + "Id": 1067, "Command": "Remove-PnPContentType -Identity \"Project Document\" -Force" }, { - "Id": 1055, "Rank": 1, "CommandName": "Remove-PnPContentTypeFromDocumentSet", + "Id": 1068, "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType \"Test CT\" -DocumentSet \"Test Document Set\"" }, { - "Id": 1056, "Rank": 2, "CommandName": "Remove-PnPContentTypeFromDocumentSet", + "Id": 1069, "Command": "Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B" }, { - "Id": 1057, "Rank": 1, "CommandName": "Remove-PnPContentTypeFromList", + "Id": 1070, "Command": "Remove-PnPContentTypeFromList -List \"Documents\" -ContentType \"Project Document\"" }, { - "Id": 1058, "Rank": 1, "CommandName": "Remove-PnPCustomAction", + "Id": 1071, "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Id": 1059, "Rank": 2, "CommandName": "Remove-PnPCustomAction", + "Id": 1072, "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web" }, { - "Id": 1060, "Rank": 3, "CommandName": "Remove-PnPCustomAction", + "Id": 1073, "Command": "Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2 -Force" }, { - "Id": 1061, "Rank": 1, "CommandName": "Remove-PnPDeletedMicrosoft365Group", + "Id": 1074, "Command": "Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Id": 1062, "Rank": 1, "CommandName": "Remove-PnPEventReceiver", + "Id": 1075, "Command": "Remove-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Id": 1063, "Rank": 2, "CommandName": "Remove-PnPEventReceiver", + "Id": 1076, "Command": "Remove-PnPEventReceiver -List ProjectList -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22" }, { - "Id": 1064, "Rank": 3, "CommandName": "Remove-PnPEventReceiver", + "Id": 1077, "Command": "Remove-PnPEventReceiver -List ProjectList -Identity MyReceiver" }, { - "Id": 1065, "Rank": 4, "CommandName": "Remove-PnPEventReceiver", + "Id": 1078, "Command": "Remove-PnPEventReceiver -List ProjectList" }, { - "Id": 1066, "Rank": 5, "CommandName": "Remove-PnPEventReceiver", + "Id": 1079, "Command": "Remove-PnPEventReceiver" }, { - "Id": 1067, "Rank": 6, "CommandName": "Remove-PnPEventReceiver", + "Id": 1080, "Command": "Remove-PnPEventReceiver -Scope Site" }, { - "Id": 1068, "Rank": 7, "CommandName": "Remove-PnPEventReceiver", + "Id": 1081, "Command": "Remove-PnPEventReceiver -Scope Web" }, { - "Id": 1069, "Rank": 8, "CommandName": "Remove-PnPEventReceiver", + "Id": 1082, "Command": "Remove-PnPEventReceiver -Scope All" }, { - "Id": 1070, "Rank": 1, "CommandName": "Remove-PnPField", + "Id": 1083, "Command": "Remove-PnPField -Identity \"Speakers\"" }, { - "Id": 1071, "Rank": 2, "CommandName": "Remove-PnPField", + "Id": 1084, "Command": "Remove-PnPField -List \"Demo list\" -Identity \"Speakers\"" }, { - "Id": 1072, "Rank": 1, "CommandName": "Remove-PnPFieldFromContentType", + "Id": 1085, "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\"" }, { - "Id": 1073, "Rank": 2, "CommandName": "Remove-PnPFieldFromContentType", + "Id": 1086, "Command": "Remove-PnPFieldFromContentType -Field \"Project_Name\" -ContentType \"Project Document\" -DoNotUpdateChildren" }, { - "Id": 1074, "Rank": 1, "CommandName": "Remove-PnPFile", + "Id": 1087, "Command": "Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor" }, { - "Id": 1075, "Rank": 2, "CommandName": "Remove-PnPFile", + "Id": 1088, "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor" }, { - "Id": 1076, "Rank": 3, "CommandName": "Remove-PnPFile", + "Id": 1089, "Command": "Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor -Recycle" }, { - "Id": 1077, "Rank": 1, "CommandName": "Remove-PnPFileFromSiteTemplate", + "Id": 1090, "Command": "Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath" }, { - "Id": 1078, "Rank": 1, "CommandName": "Remove-PnPFileSharingLink", + "Id": 1091, "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\"" }, { - "Id": 1079, "Rank": 2, "CommandName": "Remove-PnPFileSharingLink", + "Id": 1092, "Command": "Remove-PnPFileSharingLink -FileUrl \"/sites/demo/Shared Documents/Test.docx\" -Force" }, { - "Id": 1080, "Rank": 1, "CommandName": "Remove-PnPFileVersion", + "Id": 1093, "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" }, { - "Id": 1081, "Rank": 2, "CommandName": "Remove-PnPFileVersion", + "Id": 1094, "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" }, { - "Id": 1082, "Rank": 3, "CommandName": "Remove-PnPFileVersion", + "Id": 1095, "Command": "Remove-PnPFileVersion -Url Documents/MyDocument.docx -All" }, { - "Id": 1083, "Rank": 1, "CommandName": "Remove-PnPFlowOwner", + "Id": 1096, "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com" }, { - "Id": 1084, "Rank": 2, "CommandName": "Remove-PnPFlowOwner", + "Id": 1097, "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04" }, { - "Id": 1085, "Rank": 3, "CommandName": "Remove-PnPFlowOwner", + "Id": 1098, "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin" }, { - "Id": 1086, "Rank": 4, "CommandName": "Remove-PnPFlowOwner", + "Id": 1099, "Command": "Remove-PnPFlowOwner (Get-PnPPowerPlatformEnvironment -IsDefault) -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force" }, { - "Id": 1087, "Rank": 1, "CommandName": "Remove-PnPFolder", + "Id": 1100, "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage" }, { - "Id": 1088, "Rank": 2, "CommandName": "Remove-PnPFolder", + "Id": 1101, "Command": "Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage -Recycle" }, { - "Id": 1089, "Rank": 1, "CommandName": "Remove-PnPFolderSharingLink", + "Id": 1102, "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\"" }, { - "Id": 1090, "Rank": 2, "CommandName": "Remove-PnPFolderSharingLink", + "Id": 1103, "Command": "Remove-PnPFolderSharingLink -Folder \"/sites/demo/Shared Documents/Test\" -Force" }, { - "Id": 1091, "Rank": 1, "CommandName": "Remove-PnPGraphSubscription", + "Id": 1104, "Command": "Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da" }, { - "Id": 1092, "Rank": 1, "CommandName": "Remove-PnPGroup", + "Id": 1105, "Command": "Remove-PnPGroup -Identity \"My Users\"" }, { - "Id": 1093, "Rank": 1, "CommandName": "Remove-PnPGroupMember", + "Id": 1106, "Command": "Remove-PnPGroupMember -LoginName user@company.com -Group 'Marketing Site Members'" }, { - "Id": 1094, "Rank": 1, "CommandName": "Remove-PnPHomeSite", + "Id": 1107, "Command": "Remove-PnPHomeSite" }, { - "Id": 1095, "Rank": 1, "CommandName": "Remove-PnPHubSiteAssociation", + "Id": 1108, "Command": "Remove-PnPHubSiteAssociation -Site \"https://tenant.sharepoint.com/sites/mysite\"" }, { - "Id": 1096, "Rank": 1, "CommandName": "Remove-PnPHubToHubAssociation", + "Id": 1109, "Command": "Remove-PnPHubToHubAssociation -HubSiteId 6638bd4c-d88d-447c-9eb2-c84f28ba8b15" }, { - "Id": 1097, "Rank": 2, "CommandName": "Remove-PnPHubToHubAssociation", + "Id": 1110, "Command": "Remove-PnPHubToHubAssociation -HubSiteUrl \"https://yourtenant.sharepoint.com/sites/sourcehub\"" }, { - "Id": 1098, "Rank": 1, "CommandName": "Remove-PnPIndexedProperty", + "Id": 1111, "Command": "Remove-PnPIndexedProperty -key \"MyIndexProperty\"" }, { - "Id": 1099, "Rank": 1, "CommandName": "Remove-PnPJavaScriptLink", + "Id": 1112, "Command": "Remove-PnPJavaScriptLink -Identity jQuery" }, { - "Id": 1100, "Rank": 2, "CommandName": "Remove-PnPJavaScriptLink", + "Id": 1113, "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site" }, { - "Id": 1101, "Rank": 3, "CommandName": "Remove-PnPJavaScriptLink", + "Id": 1114, "Command": "Remove-PnPJavaScriptLink -Identity jQuery -Scope Site -Confirm:$false" }, { - "Id": 1102, "Rank": 4, "CommandName": "Remove-PnPJavaScriptLink", + "Id": 1115, "Command": "Remove-PnPJavaScriptLink -Scope Site" }, { - "Id": 1103, "Rank": 5, "CommandName": "Remove-PnPJavaScriptLink", + "Id": 1116, "Command": "Remove-PnPJavaScriptLink -Identity faea0ce2-f0c2-4d45-a4dc-73898f3c2f2e -Scope All" }, { - "Id": 1104, "Rank": 1, "CommandName": "Remove-PnPKnowledgeHubSite", + "Id": 1117, "Command": "Remove-PnPKnowledgeHubSite" }, { - "Id": 1105, "Rank": 1, "CommandName": "Remove-PnPList", + "Id": 1118, "Command": "Remove-PnPList -Identity Announcements" }, { - "Id": 1106, "Rank": 2, "CommandName": "Remove-PnPList", + "Id": 1119, "Command": "Remove-PnPList -Identity Announcements -Force" }, { - "Id": 1107, "Rank": 3, "CommandName": "Remove-PnPList", + "Id": 1120, "Command": "Remove-PnPList -Identity Announcements -Recycle" }, { - "Id": 1108, "Rank": 4, "CommandName": "Remove-PnPList", + "Id": 1121, "Command": "Remove-PnPList -Identity Announcements -Recycle -LargeList" }, { - "Id": 1109, "Rank": 1, "CommandName": "Remove-PnPListDesign", + "Id": 1122, "Command": "Remove-PnPListDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 1110, "Rank": 1, "CommandName": "Remove-PnPListItem", + "Id": 1123, "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force" }, { - "Id": 1111, "Rank": 2, "CommandName": "Remove-PnPListItem", + "Id": 1124, "Command": "Remove-PnPListItem -List \"Demo List\" -Identity \"1\" -Force -Recycle" }, { - "Id": 1112, "Rank": 3, "CommandName": "Remove-PnPListItem", + "Id": 1125, "Command": "Remove-PnPListItem -List \"Demo List\"" }, { - "Id": 1113, "Rank": 1, "CommandName": "Remove-PnPListItemAttachment", + "Id": 1126, "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt" }, { - "Id": 1114, "Rank": 2, "CommandName": "Remove-PnPListItemAttachment", + "Id": 1127, "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle" }, { - "Id": 1115, "Rank": 3, "CommandName": "Remove-PnPListItemAttachment", + "Id": 1128, "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -FileName test.txt -Recycle -Force" }, { - "Id": 1116, "Rank": 4, "CommandName": "Remove-PnPListItemAttachment", + "Id": 1129, "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All -Recycle -Force" }, { - "Id": 1117, "Rank": 5, "CommandName": "Remove-PnPListItemAttachment", + "Id": 1130, "Command": "Remove-PnPListItemAttachment -List \"Demo List\" -Identity 1 -All" }, { - "Id": 1118, "Rank": 1, "CommandName": "Remove-PnPListItemVersion", + "Id": 1131, "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" }, { - "Id": 1119, "Rank": 2, "CommandName": "Remove-PnPListItemVersion", + "Id": 1132, "Command": "Remove-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" }, { - "Id": 1120, "Rank": 1, "CommandName": "Remove-PnPMicrosoft365Group", + "Id": 1133, "Command": "Remove-PnPMicrosoft365Group -Identity $groupId" }, { - "Id": 1121, "Rank": 2, "CommandName": "Remove-PnPMicrosoft365Group", + "Id": 1134, "Command": "Remove-PnPMicrosoft365Group -Identity $group" }, { - "Id": 1122, "Rank": 1, "CommandName": "Remove-PnPMicrosoft365GroupMember", + "Id": 1135, "Command": "Remove-PnPMicrosoft365GroupMember -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 1123, "Rank": 1, "CommandName": "Remove-PnPMicrosoft365GroupOwner", + "Id": 1136, "Command": "Remove-PnPMicrosoft365GroupOwner -Identity \"Project Team\" -Users \"john@contoso.onmicrosoft.com\",\"jane@contoso.onmicrosoft.com\"" }, { - "Id": 1124, "Rank": 1, "CommandName": "Remove-PnPMicrosoft365GroupPhoto", + "Id": 1137, "Command": "Remove-PnPMicrosoft365GroupPhoto -Identity \"Project Team\"" }, { - "Id": 1125, "Rank": 1, "CommandName": "Remove-PnPMicrosoft365GroupSettings", + "Id": 1138, "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\"" }, { - "Id": 1126, "Rank": 2, "CommandName": "Remove-PnPMicrosoft365GroupSettings", + "Id": 1139, "Command": "Remove-PnPMicrosoft365GroupSettings -Identity \"10f686b9-9deb-4ad8-ba8c-1f9b7a00a22b\" -Group $groupId" }, { - "Id": 1127, "Rank": 1, "CommandName": "Remove-PnPNavigationNode", + "Id": 1140, "Command": "Remove-PnPNavigationNode -Identity 1032" }, { - "Id": 1128, "Rank": 2, "CommandName": "Remove-PnPNavigationNode", + "Id": 1141, "Command": "Remove-PnPNavigationNode -Title Recent -Location QuickLaunch" }, { - "Id": 1129, "Rank": 3, "CommandName": "Remove-PnPNavigationNode", + "Id": 1142, "Command": "Remove-PnPNavigationNode -Title Home -Location TopNavigationBar -Force" }, { - "Id": 1130, "Rank": 1, "CommandName": "Remove-PnPOrgAssetsLibrary", + "Id": 1143, "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\"" }, { - "Id": 1131, "Rank": 2, "CommandName": "Remove-PnPOrgAssetsLibrary", + "Id": 1144, "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true" }, { - "Id": 1132, "Rank": 3, "CommandName": "Remove-PnPOrgAssetsLibrary", + "Id": 1145, "Command": "Remove-PnPOrgAssetsLibrary -LibraryUrl \"sites/branding/logos\" -ShouldRemoveFromCdn $true -CdnType Private" }, { - "Id": 1133, "Rank": 1, "CommandName": "Remove-PnPOrgNewsSite", + "Id": 1146, "Command": "Remove-PnPOrgNewsSite -OrgNewsSiteUrl \"https://tenant.sharepoint.com/sites/mysite\"" }, { - "Id": 1134, "Rank": 1, "CommandName": "Remove-PnPPage", + "Id": 1147, "Command": "Remove-PnPPage -Identity \"MyPage\"" }, { - "Id": 1135, "Rank": 2, "CommandName": "Remove-PnPPage", + "Id": 1148, "Command": "Remove-PnPPage -Identity \"Templates/MyPageTemplate\"" }, { - "Id": 1136, "Rank": 3, "CommandName": "Remove-PnPPage", + "Id": 1149, "Command": "Remove-PnPPage $page" }, { - "Id": 1137, "Rank": 4, "CommandName": "Remove-PnPPage", + "Id": 1150, "Command": "Remove-PnPPage -Identity \"MyPage\" -Recycle" }, { - "Id": 1138, "Rank": 1, "CommandName": "Remove-PnPPageComponent", + "Id": 1151, "Command": "Remove-PnPPageComponent -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Id": 1139, "Rank": 1, "CommandName": "Remove-PnPPlannerBucket", + "Id": 1152, "Command": "Remove-PnPPlannerBucket -Group \"Marketing\" -Plan \"Conference\" -Identity \"Pre-conference Todos\"" }, { - "Id": 1140, "Rank": 1, "CommandName": "Remove-PnPPlannerPlan", + "Id": 1153, "Command": "Remove-PnPPlannerPlan -Group \"Marketing\" -Identity \"Conference Planning\"" }, { - "Id": 1141, "Rank": 1, "CommandName": "Remove-PnPPlannerRoster", + "Id": 1154, "Command": "Remove-PnPPlannerRoster -Identity \"6519868f-868f-6519-8f86-19658f861965\"" }, { - "Id": 1142, "Rank": 1, "CommandName": "Remove-PnPPlannerRosterMember", + "Id": 1155, "Command": "Remove-PnPPlannerRosterMember -Identity \"6519868f-868f-6519-8f86-19658f861965\" -User \"johndoe@contoso.onmicrosoft.com\"" }, { - "Id": 1143, "Rank": 1, "CommandName": "Remove-PnPPlannerTask", + "Id": 1156, "Command": "Remove-PnPPlannerTask -Task _LIqnL4lZUqurT71i2-iY5YALFLk" }, { - "Id": 1144, "Rank": 1, "CommandName": "Remove-PnPPropertyBagValue", + "Id": 1157, "Command": "Remove-PnPPropertyBagValue -Key MyKey" }, { - "Id": 1145, "Rank": 2, "CommandName": "Remove-PnPPropertyBagValue", + "Id": 1158, "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder" }, { - "Id": 1146, "Rank": 3, "CommandName": "Remove-PnPPropertyBagValue", + "Id": 1159, "Command": "Remove-PnPPropertyBagValue -Key MyKey -Folder /" }, { - "Id": 1147, "Rank": 1, "CommandName": "Remove-PnPPublishingImageRendition", + "Id": 1160, "Command": "Remove-PnPPublishingImageRendition -Name \"MyImageRendition\" -Width 800 -Height 600" }, { - "Id": 1148, "Rank": 1, "CommandName": "Remove-PnPRoleDefinition", + "Id": 1161, "Command": "Remove-PnPRoleDefinition -Identity MyRoleDefinition" }, { - "Id": 1149, "Rank": 1, "CommandName": "Remove-PnPSdnProvider", + "Id": 1162, "Command": "Remove-PnPSdnProvider -Confirm:false" }, { - "Id": 1150, "Rank": 1, "CommandName": "Remove-PnPSearchConfiguration", + "Id": 1163, "Command": "Remove-PnPSearchConfiguration -Configuration $config" }, { - "Id": 1151, "Rank": 2, "CommandName": "Remove-PnPSearchConfiguration", + "Id": 1164, "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Site" }, { - "Id": 1152, "Rank": 3, "CommandName": "Remove-PnPSearchConfiguration", + "Id": 1165, "Command": "Remove-PnPSearchConfiguration -Configuration $config -Scope Subscription" }, { - "Id": 1153, "Rank": 4, "CommandName": "Remove-PnPSearchConfiguration", + "Id": 1166, "Command": "Remove-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" }, { - "Id": 1154, "Rank": 1, "CommandName": "Remove-PnPSiteCollectionAdmin", + "Id": 1167, "Command": "Remove-PnPSiteCollectionAdmin -Owners \"user@contoso.onmicrosoft.com\"" }, { - "Id": 1155, "Rank": 2, "CommandName": "Remove-PnPSiteCollectionAdmin", + "Id": 1168, "Command": "Remove-PnPSiteCollectionAdmin -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { - "Id": 1156, "Rank": 1, "CommandName": "Remove-PnPSiteCollectionAppCatalog", + "Id": 1169, "Command": "Remove-PnPSiteCollectionAppCatalog -Site \"https://contoso.sharepoint.com/sites/FinanceTeamsite\"" }, { - "Id": 1157, "Rank": 1, "CommandName": "Remove-PnPSiteCollectionTermStore", + "Id": 1170, "Command": "Remove-PnPSiteCollectionTermStore" }, { - "Id": 1158, "Rank": 1, "CommandName": "Remove-PnPSiteDesign", + "Id": 1171, "Command": "Remove-PnPSiteDesign -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 1159, "Rank": 1, "CommandName": "Remove-PnPSiteDesignTask", + "Id": 1172, "Command": "Remove-PnPSiteDesignTask -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 1160, "Rank": 1, "CommandName": "Remove-PnPSiteGroup", + "Id": 1173, "Command": "Remove-PnPSiteGroup -Identity GroupToRemove -Site \"https://contoso.sharepoint.com/sites/marketing\"" }, { - "Id": 1161, "Rank": 2, "CommandName": "Remove-PnPSiteGroup", + "Id": 1174, "Command": "Remove-PnPSiteGroup -Identity GroupToRemove" }, { - "Id": 1162, "Rank": 1, "CommandName": "Remove-PnPSiteScript", + "Id": 1175, "Command": "Remove-PnPSiteScript -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd" }, { - "Id": 1163, "Rank": 1, "CommandName": "Remove-PnPSiteUserInvitations", + "Id": 1176, "Command": "Remove-PnPSiteUserInvitations -Site \"https://contoso.sharepoint.com/sites/ContosoWeb1/\" -EmailAddress someone@example.com" }, { - "Id": 1164, "Rank": 1, "CommandName": "Remove-PnPStorageEntity", + "Id": 1177, "Command": "Remove-PnPStorageEntity -Key MyKey" }, { - "Id": 1165, "Rank": 2, "CommandName": "Remove-PnPStorageEntity", + "Id": 1178, "Command": "Remove-PnPStorageEntity -Key MyKey -Scope Site" }, { - "Id": 1166, "Rank": 1, "CommandName": "Remove-PnPStoredCredential", + "Id": 1179, "Command": "Remove-PnPStoredCredential -Name \"https://tenant.sharepoint.com\"" }, { - "Id": 1167, "Rank": 1, "CommandName": "Remove-PnPTaxonomyItem", + "Id": 1180, "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\"" }, { - "Id": 1168, "Rank": 2, "CommandName": "Remove-PnPTaxonomyItem", + "Id": 1181, "Command": "Remove-PnPTaxonomyItem -TermPath \"HR|Recruitment|Marketing\" -Force" }, { - "Id": 1169, "Rank": 1, "CommandName": "Remove-PnPTeamsApp", + "Id": 1182, "Command": "Remove-PnPTeamsApp -Identity ac139d8b-fa2b-4ffe-88b3-f0b30158b58b" }, { - "Id": 1170, "Rank": 2, "CommandName": "Remove-PnPTeamsApp", + "Id": 1183, "Command": "Remove-PnPTeamsApp -Identity \"My Teams App\"" }, { - "Id": 1171, "Rank": 1, "CommandName": "Remove-PnPTeamsChannel", + "Id": 1184, "Command": "Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Identity \"My Channel\"" }, { - "Id": 1172, "Rank": 1, "CommandName": "Remove-PnPTeamsChannelUser", + "Id": 1185, "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA==" }, { - "Id": 1173, "Rank": 2, "CommandName": "Remove-PnPTeamsChannelUser", + "Id": 1186, "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity 00000000-0000-0000-0000-000000000000" }, { - "Id": 1174, "Rank": 3, "CommandName": "Remove-PnPTeamsChannelUser", + "Id": 1187, "Command": "Remove-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Channel\" -Identity john.doe@contoso.com -Force" }, { - "Id": 1175, "Rank": 1, "CommandName": "Remove-PnPTeamsTab", + "Id": 1188, "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel \"General\" -Identity Wiki" }, { - "Id": 1176, "Rank": 2, "CommandName": "Remove-PnPTeamsTab", + "Id": 1189, "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity Wiki" }, { - "Id": 1177, "Rank": 3, "CommandName": "Remove-PnPTeamsTab", + "Id": 1190, "Command": "Remove-PnPTeamsTab -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Channel 19:796d063b63e34497aeaf092c8fb9b44e@thread.skype -Identity fcef815d-2e8e-47a5-b06b-9bebba5c7852" }, { - "Id": 1178, "Rank": 1, "CommandName": "Remove-PnPTeamsTag", + "Id": 1191, "Command": "Remove-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\"" }, { - "Id": 1179, "Rank": 1, "CommandName": "Remove-PnPTeamsTeam", + "Id": 1192, "Command": "Remove-PnPTeamsTeam -Identity 5beb63c5-0571-499e-94d5-3279fdd9b6b5" }, { - "Id": 1180, "Rank": 2, "CommandName": "Remove-PnPTeamsTeam", + "Id": 1193, "Command": "Remove-PnPTeamsTeam -Identity testteam" }, { - "Id": 1181, "Rank": 1, "CommandName": "Remove-PnPTeamsUser", + "Id": 1194, "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com" }, { - "Id": 1182, "Rank": 2, "CommandName": "Remove-PnPTeamsUser", + "Id": 1195, "Command": "Remove-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { - "Id": 1183, "Rank": 1, "CommandName": "Remove-PnPTenantCdnOrigin", + "Id": 1196, "Command": "Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public" }, { - "Id": 1184, "Rank": 1, "CommandName": "Remove-PnPTenantDeletedSite", + "Id": 1197, "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 1185, "Rank": 2, "CommandName": "Remove-PnPTenantDeletedSite", + "Id": 1198, "Command": "Remove-PnPTenantDeletedSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" }, { - "Id": 1186, "Rank": 1, "CommandName": "Remove-PnPTenantSite", + "Id": 1199, "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 1187, "Rank": 2, "CommandName": "Remove-PnPTenantSite", + "Id": 1200, "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -Force -SkipRecycleBin" }, { - "Id": 1188, "Rank": 3, "CommandName": "Remove-PnPTenantSite", + "Id": 1201, "Command": "Remove-PnPTenantSite -Url \"https://tenant.sharepoint.com/sites/contoso\" -FromRecycleBin" }, { - "Id": 1189, "Rank": 1, "CommandName": "Remove-PnPTenantSyncClientRestriction", + "Id": 1202, "Command": "Remove-PnPTenantSyncClientRestriction" }, { - "Id": 1190, "Rank": 1, "CommandName": "Remove-PnPTenantTheme", + "Id": 1203, "Command": "Remove-PnPTenantTheme -Name \"MyCompanyTheme\"" }, { - "Id": 1191, "Rank": 1, "CommandName": "Remove-PnPTerm", + "Id": 1204, "Command": "Remove-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" }, { - "Id": 1192, "Rank": 2, "CommandName": "Remove-PnPTerm", + "Id": 1205, "Command": "Remove-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 1193, "Rank": 1, "CommandName": "Remove-PnPTermGroup", + "Id": 1206, "Command": "Remove-PnPTermGroup -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380" }, { - "Id": 1194, "Rank": 2, "CommandName": "Remove-PnPTermGroup", + "Id": 1207, "Command": "Remove-PnPTermGroup -Identity \"Corporate\"" }, { - "Id": 1195, "Rank": 3, "CommandName": "Remove-PnPTermGroup", + "Id": 1208, "Command": "Remove-PnPTermGroup -Identity \"HR\" -Force" }, { - "Id": 1196, "Rank": 1, "CommandName": "Remove-PnPTermLabel", + "Id": 1209, "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term 2d1f298b-804a-4a05-96dc-29b667adec62" }, { - "Id": 1197, "Rank": 2, "CommandName": "Remove-PnPTermLabel", + "Id": 1210, "Command": "Remove-PnPTermLabel -Label \"Marknadsföring\" -Lcid 1053 -Term \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\"" }, { - "Id": 1198, "Rank": 1, "CommandName": "Remove-PnPUser", + "Id": 1211, "Command": "Remove-PnPUser -Identity 23" }, { - "Id": 1199, "Rank": 2, "CommandName": "Remove-PnPUser", + "Id": 1212, "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com" }, { - "Id": 1200, "Rank": 3, "CommandName": "Remove-PnPUser", + "Id": 1213, "Command": "Remove-PnPUser -Identity i:0#.f|membership|user@tenant.onmicrosoft.com -Confirm:$false" }, { - "Id": 1201, "Rank": 1, "CommandName": "Remove-PnPUserInfo", + "Id": 1214, "Command": "Remove-PnPUserInfo -LoginName user@domain.com -Site \"https://yoursite.sharepoint.com/sites/team\"" }, { - "Id": 1202, "Rank": 1, "CommandName": "Remove-PnPUserProfile", + "Id": 1215, "Command": "Remove-PnPUserProfile -LoginName user@domain.com" }, { - "Id": 1203, "Rank": 1, "CommandName": "Remove-PnPView", + "Id": 1216, "Command": "Remove-PnPView -List \"Demo List\" -Identity \"All Items\"" }, { - "Id": 1204, "Rank": 1, "CommandName": "Remove-PnPVivaConnectionsDashboardACE", + "Id": 1217, "Command": "Remove-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\"" }, { - "Id": 1205, "Rank": 1, "CommandName": "Remove-PnPWeb", + "Id": 1218, "Command": "Remove-PnPWeb -Identity projectA" }, { - "Id": 1206, "Rank": 2, "CommandName": "Remove-PnPWeb", + "Id": 1219, "Command": "Remove-PnPWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0" }, { - "Id": 1207, "Rank": 1, "CommandName": "Remove-PnPWebhookSubscription", + "Id": 1220, "Command": "Remove-PnPWebhookSubscription -List MyList -Identity ea1533a8-ff03-415b-a7b6-517ee50db8b6" }, { - "Id": 1208, "Rank": 1, "CommandName": "Remove-PnPWebPart", + "Id": 1221, "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Identity a2875399-d6ff-43a0-96da-be6ae5875f82" }, { - "Id": 1209, "Rank": 2, "CommandName": "Remove-PnPWebPart", + "Id": 1222, "Command": "Remove-PnPWebPart -ServerRelativePageUrl \"/sites/demo/sitepages/home.aspx\" -Title MyWebpart" }, { - "Id": 1210, "Rank": 1, "CommandName": "Remove-PnPWikiPage", + "Id": 1223, "Command": "Remove-PnPWikiPage -PageUrl '/pages/wikipage.aspx'" }, { - "Id": 1211, "Rank": 1, "CommandName": "Rename-PnPFile", + "Id": 1224, "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx" }, { - "Id": 1212, "Rank": 2, "CommandName": "Rename-PnPFile", + "Id": 1225, "Command": "Rename-PnPFile -SiteRelativeUrl Documents/company.aspx -TargetFileName mycompany.docx" }, { - "Id": 1213, "Rank": 3, "CommandName": "Rename-PnPFile", + "Id": 1226, "Command": "Rename-PnPFile -ServerRelativeUrl /sites/project/Documents/company.docx -TargetFileName mycompany.docx -OverwriteIfAlreadyExists" }, { - "Id": 1214, "Rank": 1, "CommandName": "Rename-PnPFolder", + "Id": 1227, "Command": "Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'" }, { - "Id": 1215, "Rank": 1, "CommandName": "Repair-PnPSite", + "Id": 1228, "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" }, { - "Id": 1216, "Rank": 2, "CommandName": "Repair-PnPSite", + "Id": 1229, "Command": "Repair-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" }, { - "Id": 1217, "Rank": 1, "CommandName": "Request-PnPAccessToken", + "Id": 1230, "Command": "Request-PnPAccessToken" }, { - "Id": 1218, "Rank": 2, "CommandName": "Request-PnPAccessToken", + "Id": 1231, "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2" }, { - "Id": 1219, "Rank": 3, "CommandName": "Request-PnPAccessToken", + "Id": 1232, "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All" }, { - "Id": 1220, "Rank": 4, "CommandName": "Request-PnPAccessToken", + "Id": 1233, "Command": "Request-PnPAccessToken -ClientId 26e29fec-aa10-4f99-8381-d96cddc650c2 -Scopes Group.ReadWrite.All, AllSites.FullControl" }, { - "Id": 1221, "Rank": 1, "CommandName": "Request-PnPPersonalSite", + "Id": 1234, "Command": "Request-PnPPersonalSite -UserEmails @(\"user1@contoso.com\", \"user2@contoso.com\")" }, { - "Id": 1222, "Rank": 2, "CommandName": "Request-PnPPersonalSite", + "Id": 1235, "Command": "Request-PnPPersonalSite -UserEmails \"user1@contoso.com\"" }, { - "Id": 1223, "Rank": 1, "CommandName": "Request-PnPReIndexList", + "Id": 1236, "Command": "Request-PnPReIndexList -Identity \"Demo List\"" }, { - "Id": 1224, "Rank": 1, "CommandName": "Request-PnPReIndexWeb", + "Id": 1237, "Command": "Request-PnPReIndexWeb" }, { - "Id": 1225, "Rank": 1, "CommandName": "Request-PnPSyntexClassifyAndExtract", + "Id": 1238, "Command": "Request-PnPSyntexClassifyAndExtract -FileUrl \"/sites/finance/invoices/invoice1.docx\"" }, { - "Id": 1226, "Rank": 2, "CommandName": "Request-PnPSyntexClassifyAndExtract", + "Id": 1239, "Command": "Request-PnPSyntexClassifyAndExtract -List \"Invoices\"" }, { - "Id": 1227, "Rank": 3, "CommandName": "Request-PnPSyntexClassifyAndExtract", + "Id": 1240, "Command": "Request-PnPSyntexClassifyAndExtract -Folder (Get-PnPFolder -Url \"invoices/Q1/jan\")" }, { - "Id": 1228, "Rank": 1, "CommandName": "Reset-PnPFileVersion", + "Id": 1241, "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\"" }, { - "Id": 1229, "Rank": 2, "CommandName": "Reset-PnPFileVersion", + "Id": 1242, "Command": "Reset-PnPFileVersion -ServerRelativeUrl \"/sites/test/office365.png\" -CheckinType MajorCheckin -Comment \"Restored to previous version\"" }, { - "Id": 1230, "Rank": 1, "CommandName": "Reset-PnPLabel", + "Id": 1243, "Command": "Reset-PnPLabel -List \"Demo List\"" }, { - "Id": 1231, "Rank": 2, "CommandName": "Reset-PnPLabel", + "Id": 1244, "Command": "Reset-PnPLabel -List \"Demo List\" -SyncToItems $true" }, { - "Id": 1232, "Rank": 1, "CommandName": "Reset-PnPMicrosoft365GroupExpiration", + "Id": 1245, "Command": "Reset-PnPMicrosoft365GroupExpiration" }, { - "Id": 1233, "Rank": 1, "CommandName": "Reset-PnPUserOneDriveQuotaToDefault", + "Id": 1246, "Command": "Reset-PnPUserOneDriveQuotaToDefault -Account 'user@domain.com'" }, { - "Id": 1234, "Rank": 1, "CommandName": "Resolve-PnPFolder", + "Id": 1247, "Command": "Resolve-PnPFolder -SiteRelativePath \"demofolder/subfolder\"" }, { - "Id": 1235, + "Rank": 1, + "CommandName": "Restore-PnPDeletedContainer", + "Id": 1248, + "Command": "Restore-PnPDeletedContainer -Identity \"b!jKRbiovfMEWUWKabObEnjC5rF4MG3pRBomypnjOHiSrjkM_EBk_1S57U3gD7oW-1\"" + }, + { "Rank": 1, "CommandName": "Restore-PnPDeletedMicrosoft365Group", + "Id": 1249, "Command": "Restore-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f" }, { - "Id": 1236, "Rank": 1, "CommandName": "Restore-PnPFileVersion", + "Id": 1250, "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity 512" }, { - "Id": 1237, "Rank": 2, "CommandName": "Restore-PnPFileVersion", + "Id": 1251, "Command": "Restore-PnPFileVersion -Url /sites/HRSite/Documents/MyDocument.docx -Identity 512" }, { - "Id": 1238, "Rank": 3, "CommandName": "Restore-PnPFileVersion", + "Id": 1252, "Command": "Restore-PnPFileVersion -Url Documents/MyDocument.docx -Identity \"Version 1.0\"" }, { - "Id": 1239, "Rank": 1, "CommandName": "Restore-PnPListItemVersion", + "Id": 1253, "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version 512" }, { - "Id": 1240, "Rank": 2, "CommandName": "Restore-PnPListItemVersion", + "Id": 1254, "Command": "Restore-PnPListItemVersion -List \"Demo List\" -Identity 1 -Version \"1.0\"" }, { - "Id": 1241, "Rank": 1, "CommandName": "Restore-PnPRecycleBinItem", + "Id": 1255, "Command": "Restore-PnPRecycleBinItem -Identity 72e4d749-d750-4989-b727-523d6726e442" }, { - "Id": 1242, "Rank": 1, "CommandName": "Restore-PnPTenantRecycleBinItem", + "Id": 1256, "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 1243, "Rank": 2, "CommandName": "Restore-PnPTenantRecycleBinItem", + "Id": 1257, "Command": "Restore-PnPTenantRecycleBinItem -Url \"https://tenant.sharepoint.com/sites/contoso\" -Wait" }, { - "Id": 1244, "Rank": 1, "CommandName": "Restore-PnPTenantSite", + "Id": 1258, "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\"" }, { - "Id": 1245, "Rank": 2, "CommandName": "Restore-PnPTenantSite", + "Id": 1259, "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force" }, { - "Id": 1246, "Rank": 3, "CommandName": "Restore-PnPTenantSite", + "Id": 1260, "Command": "Restore-PnPTenantSite -Identity \"https://tenant.sharepoint.com/sites/contoso\" -Force -NoWait" }, { - "Id": 1247, "Rank": 1, "CommandName": "Revoke-PnPAzureADAppSitePermission", + "Id": 1261, "Command": "Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa" }, { - "Id": 1248, "Rank": 1, "CommandName": "Revoke-PnPHubSiteRights", + "Id": 1262, "Command": "Revoke-PnPHubSiteRights -Identity \"https://contoso.sharepoint.com/sites/hubsite\" -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Id": 1249, "Rank": 1, "CommandName": "Revoke-PnPSiteDesignRights", + "Id": 1263, "Command": "Revoke-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals \"myuser@mydomain.com\",\"myotheruser@mydomain.com\"" }, { - "Id": 1250, "Rank": 1, "CommandName": "Revoke-PnPTenantServicePrincipalPermission", + "Id": 1264, "Command": "Revoke-PnPTenantServicePrincipalPermission -Scope \"Group.Read.All\"" }, { - "Id": 1251, "Rank": 1, "CommandName": "Revoke-PnPUserSession", + "Id": 1265, "Command": "Revoke-PnPUserSession -User user1@contoso.com" }, { - "Id": 1252, "Rank": 1, "CommandName": "Save-PnPPageConversionLog", + "Id": 1266, "Command": "Save-PnPPageConversionLog" }, { - "Id": 1253, "Rank": 1, "CommandName": "Save-PnPSiteTemplate", + "Id": 1267, "Command": "Save-PnPSiteTemplate -Template .\\template.xml -Out .\\template.pnp" }, { - "Id": 1254, "Rank": 1, "CommandName": "Save-PnPTenantTemplate", + "Id": 1268, "Command": "Save-PnPTenantTemplate -Template template.xml -Out .\\tenanttemplate.pnp" }, { - "Id": 1255, "Rank": 1, "CommandName": "Send-PnPMail", + "Id": 1269, "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\"" }, { - "Id": 1256, "Rank": 2, "CommandName": "Send-PnPMail", + "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" }, { - "Id": 1257, "Rank": 3, "CommandName": "Send-PnPMail", + "Id": 1271, "Command": "Send-PnPMail -To \"address@tenant.microsoftonline.com\" -Subject \"Test message\" -Body \"This is a test message\"" }, { - "Id": 1258, "Rank": 4, "CommandName": "Send-PnPMail", + "Id": 1272, "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.onmicrosoft.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server contoso.mail.protection.outlook.com" }, { - "Id": 1259, "Rank": 5, "CommandName": "Send-PnPMail", + "Id": 1273, "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com" }, { - "Id": 1260, "Rank": 6, "CommandName": "Send-PnPMail", + "Id": 1274, "Command": "Send-PnPMail -From \"user@contoso.onmicrosoft.com\" -To \"recipient@contoso.com\" -Subject \"Test message\" -Body \"This is a test message\" -Server smtp.myisp.com -Port 587 -EnableSsl:$true -Username \"userxyz\" -Password \"password123\"" }, { - "Id": 1261, "Rank": 1, "CommandName": "Set-PnPAdaptiveScopeProperty", + "Id": 1275, "Command": "Set-PnPAdaptiveScopeProperty -Key MyKey -Value MyValue" }, { - "Id": 1262, "Rank": 1, "CommandName": "Set-PnPApplicationCustomizer", + "Id": 1276, "Command": "Set-PnPApplicationCustomizer -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2" }, { - "Id": 1263, "Rank": 2, "CommandName": "Set-PnPApplicationCustomizer", + "Id": 1277, "Command": "Set-PnPApplicationCustomizer -ClientSideComponentId aa66f67e-46c0-4474-8a82-42bf467d07f2 -Scope web -ClientSideComponentProperties \"{`\"sourceTermSet`\":`\"PnP-CollabFooter-SharedLinks`\",`\"personalItemsStorageProperty`\":`\"PnP-CollabFooter-MyLinks`\"}\"" }, { - "Id": 1264, "Rank": 1, "CommandName": "Set-PnPAppSideLoading", + "Id": 1278, "Command": "Set-PnPAppSideLoading -On" }, { - "Id": 1265, "Rank": 2, "CommandName": "Set-PnPAppSideLoading", + "Id": 1279, "Command": "Set-PnPAppSideLoading -Off" }, { - "Id": 1266, "Rank": 1, "CommandName": "Set-PnPAuditing", + "Id": 1280, "Command": "Set-PnPAuditing -EnableAll" }, { - "Id": 1267, "Rank": 2, "CommandName": "Set-PnPAuditing", + "Id": 1281, "Command": "Set-PnPAuditing -DisableAll" }, { - "Id": 1268, "Rank": 3, "CommandName": "Set-PnPAuditing", + "Id": 1282, "Command": "Set-PnPAuditing -RetentionTime 7" }, { - "Id": 1269, "Rank": 4, "CommandName": "Set-PnPAuditing", + "Id": 1283, "Command": "Set-PnPAuditing -TrimAuditLog" }, { - "Id": 1270, "Rank": 5, "CommandName": "Set-PnPAuditing", + "Id": 1284, "Command": "Set-PnPAuditing -RetentionTime 7 -CheckOutCheckInItems -MoveCopyItems -SearchContent" }, { - "Id": 1271, "Rank": 1, "CommandName": "Set-PnPAvailablePageLayouts", + "Id": 1285, "Command": "Set-PnPAvailablePageLayouts -AllowAllPageLayouts" }, { - "Id": 1272, "Rank": 1, "CommandName": "Set-PnPAzureADAppSitePermission", + "Id": 1286, "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions Read" }, { - "Id": 1273, "Rank": 2, "CommandName": "Set-PnPAzureADAppSitePermission", + "Id": 1287, "Command": "Set-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa -Permissions FullControl -Site https://contoso.microsoft.com/sites/projects" }, { - "Id": 1274, "Rank": 1, "CommandName": "Set-PnPAzureADGroup", + "Id": 1288, "Command": "Set-PnPAzureADGroup -Identity $group -DisplayName \"My DisplayName\"" }, { - "Id": 1275, "Rank": 2, "CommandName": "Set-PnPAzureADGroup", + "Id": 1289, "Command": "Set-PnPAzureADGroup -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" }, { - "Id": 1276, "Rank": 3, "CommandName": "Set-PnPAzureADGroup", + "Id": 1290, "Command": "Set-PnPAzureADGroup -Identity $group -Owners demo@contoso.com" }, { - "Id": 1277, "Rank": 1, "CommandName": "Set-PnPBrowserIdleSignout", + "Id": 1291, "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter \"0.00:45:00\" -SignOutAfter \"0.01:00:00\"" }, { - "Id": 1278, "Rank": 2, "CommandName": "Set-PnPBrowserIdleSignout", + "Id": 1292, "Command": "Set-PnPBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)" }, { - "Id": 1279, "Rank": 3, "CommandName": "Set-PnPBrowserIdleSignout", + "Id": 1293, "Command": "Set-PnPBrowserIdleSignOut -Enabled:$false" }, { - "Id": 1280, "Rank": 1, "CommandName": "Set-PnPBuiltInDesignPackageVisibility", + "Id": 1294, "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage Showcase -IsVisible:$false" }, { - "Id": 1281, "Rank": 2, "CommandName": "Set-PnPBuiltInDesignPackageVisibility", + "Id": 1295, "Command": "Set-PnPBuiltInDesignPackageVisibility -DesignPackage TeamSite -IsVisible:$true" }, { - "Id": 1282, "Rank": 1, "CommandName": "Set-PnPBuiltInSiteTemplateSettings", + "Id": 1296, "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 9522236e-6802-4972-a10d-e98dc74b3344 -IsHidden $false" }, { - "Id": 1283, "Rank": 2, "CommandName": "Set-PnPBuiltInSiteTemplateSettings", + "Id": 1297, "Command": "Set-PnPBuiltInSiteTemplateSettings -Identity 00000000-0000-0000-0000-000000000000 -IsHidden $true" }, { - "Id": 1284, "Rank": 3, "CommandName": "Set-PnPBuiltInSiteTemplateSettings", + "Id": 1298, "Command": "Set-PnPBuiltInSiteTemplateSettings -Template CrisisManagement -IsHidden $true" }, { - "Id": 1285, "Rank": 4, "CommandName": "Set-PnPBuiltInSiteTemplateSettings", + "Id": 1299, "Command": "Set-PnPBuiltInSiteTemplateSettings -Template All -IsHidden $false" }, { - "Id": 1286, "Rank": 1, "CommandName": "Set-PnPContentType", + "Id": 1300, "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Name \"Project Documentation\" -Description \"Documentation for projects\"" }, { - "Id": 1287, "Rank": 2, "CommandName": "Set-PnPContentType", + "Id": 1301, "Command": "Set-PnPContentType -Identity \"Project Document\" -UpdateChildren -Group \"Custom Content Types\" -Hidden" }, { - "Id": 1288, "Rank": 3, "CommandName": "Set-PnPContentType", + "Id": 1302, "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -Name \"Project Documentation\" -Description \"Documentation for projects\"" }, { - "Id": 1289, "Rank": 4, "CommandName": "Set-PnPContentType", + "Id": 1303, "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -FormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -FormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" }, { - "Id": 1290, "Rank": 5, "CommandName": "Set-PnPContentType", + "Id": 1304, "Command": "Set-PnPContentType -Identity \"Project Document\" -List \"Projects\" -DisplayFormClientSideComponentId \"dfed9a30-ec25-4aaf-ae9f-a68f3598f13a\" -DisplayFormClientSideComponentProperties '{ \"someKey\": \"some value\" }'" }, { - "Id": 1291, "Rank": 1, "CommandName": "Set-PnPDefaultColumnValues", + "Id": 1305, "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"Company|Locations|Stockholm\"" }, { - "Id": 1292, "Rank": 2, "CommandName": "Set-PnPDefaultColumnValues", + "Id": 1306, "Command": "Set-PnPDefaultColumnValues -List Documents -Field TaxKeyword -Value \"15c4c4e4-4b67-4894-a1d8-de5ff811c791\"" }, { - "Id": 1293, "Rank": 3, "CommandName": "Set-PnPDefaultColumnValues", + "Id": 1307, "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyTextField -Value \"DefaultValue\" -Folder \"My folder\"" }, { - "Id": 1294, "Rank": 4, "CommandName": "Set-PnPDefaultColumnValues", + "Id": 1308, "Command": "Set-PnPDefaultColumnValues -List Documents -Field MyPeopleField -Value \"1;#Foo Bar\"" }, { - "Id": 1295, "Rank": 1, "CommandName": "Set-PnPDefaultContentTypeToList", + "Id": 1309, "Command": "Set-PnPDefaultContentTypeToList -List \"Project Documents\" -ContentType \"Project\"" }, { - "Id": 1296, "Rank": 1, "CommandName": "Set-PnPDefaultPageLayout", + "Id": 1310, "Command": "Set-PnPDefaultPageLayout -Title projectpage.aspx" }, { - "Id": 1297, "Rank": 2, "CommandName": "Set-PnPDefaultPageLayout", + "Id": 1311, "Command": "Set-PnPDefaultPageLayout -Title test/testpage.aspx" }, { - "Id": 1298, "Rank": 3, "CommandName": "Set-PnPDefaultPageLayout", + "Id": 1312, "Command": "Set-PnPDefaultPageLayout -InheritFromParentSite" }, { - "Id": 1299, "Rank": 1, "CommandName": "Set-PnPDisableSpacesActivation", + "Id": 1313, "Command": "Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant" }, { - "Id": 1300, "Rank": 2, "CommandName": "Set-PnPDisableSpacesActivation", + "Id": 1314, "Command": "Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity \"https://contoso.sharepoint.com\"" }, { - "Id": 1301, "Rank": 3, "CommandName": "Set-PnPDisableSpacesActivation", + "Id": 1315, "Command": "Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity \"https://contoso.sharepoint.com\"" }, { - "Id": 1302, "Rank": 1, "CommandName": "Set-PnPDocumentSetField", + "Id": 1316, "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -SetSharedField -SetWelcomePageField" }, { - "Id": 1303, "Rank": 2, "CommandName": "Set-PnPDocumentSetField", + "Id": 1317, "Command": "Set-PnPDocumentSetField -Field \"Test Field\" -DocumentSet \"Test Document Set\" -RemoveSharedField -RemoveWelcomePageField" }, { - "Id": 1304, "Rank": 1, "CommandName": "Set-PnPField", + "Id": 1318, "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"}" }, { - "Id": 1305, "Rank": 2, "CommandName": "Set-PnPField", + "Id": 1319, "Command": "Set-PnPField -Identity AssignedTo -Values @{JSLink=\"customrendering.js\";Group=\"My fields\"} -UpdateExistingLists" }, { - "Id": 1306, "Rank": 3, "CommandName": "Set-PnPField", + "Id": 1320, "Command": "Set-PnPField -List \"Tasks\" -Identity \"AssignedTo\" -Values @{JSLink=\"customrendering.js\"}" }, { - "Id": 1307, "Rank": 1, "CommandName": "Set-PnPFileCheckedIn", + "Id": 1321, "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\"" }, { - "Id": 1308, "Rank": 2, "CommandName": "Set-PnPFileCheckedIn", + "Id": 1322, "Command": "Set-PnPFileCheckedIn -Url \"/Documents/Contract.docx\" -CheckInType MinorCheckIn -Comment \"Smaller changes\"" }, { - "Id": 1309, "Rank": 1, "CommandName": "Set-PnPFileCheckedOut", + "Id": 1323, "Command": "Set-PnPFileCheckedOut -Url \"/sites/testsite/subsite/Documents/Contract.docx\"" }, { - "Id": 1310, "Rank": 1, "CommandName": "Set-PnPFolderPermission", + "Id": 1324, "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Id": 1311, "Rank": 2, "CommandName": "Set-PnPFolderPermission", + "Id": 1325, "Command": "Set-PnPFolderPermission -List 'AnotherDocumentLibrary' -Identity 'AnotherDocumentLibrary/Folder/Subfolder' -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Id": 1312, "Rank": 3, "CommandName": "Set-PnPFolderPermission", + "Id": 1326, "Command": "Set-PnPFolderPermission -List 'Shared Documents' -Identity 'Shared Documents/Folder' -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" }, { - "Id": 1313, "Rank": 1, "CommandName": "Set-PnPFooter", + "Id": 1327, "Command": "Set-PnPFooter -Enabled:$true" }, { - "Id": 1314, "Rank": 2, "CommandName": "Set-PnPFooter", + "Id": 1328, "Command": "Set-PnPFooter -Enabled:$true -Layout Extended -BackgroundTheme Neutral" }, { - "Id": 1315, "Rank": 3, "CommandName": "Set-PnPFooter", + "Id": 1329, "Command": "Set-PnPFooter -Title \"Contoso Inc.\" -LogoUrl \"/sites/communication/Shared Documents/logo.png\"" }, { - "Id": 1316, "Rank": 4, "CommandName": "Set-PnPFooter", + "Id": 1330, "Command": "Set-PnPFooter -LogoUrl \"\"" }, { - "Id": 1317, "Rank": 1, "CommandName": "Set-PnPGraphSubscription", + "Id": 1331, "Command": "Set-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da -ExpirationDate \"2020-11-22T18:23:45.9356913Z\"" }, { - "Id": 1318, "Rank": 1, "CommandName": "Set-PnPGroup", + "Id": 1332, "Command": "Set-PnPGroup -Identity 'My Site Members' -SetAssociatedGroup Members" }, { - "Id": 1319, "Rank": 2, "CommandName": "Set-PnPGroup", + "Id": 1333, "Command": "Set-PnPGroup -Identity 'My Site Members' -Owner 'site owners'" }, { - "Id": 1320, "Rank": 1, "CommandName": "Set-PnPGroupPermissions", + "Id": 1334, "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole Contribute" }, { - "Id": 1321, "Rank": 2, "CommandName": "Set-PnPGroupPermissions", + "Id": 1335, "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole 'Full Control' -AddRole 'Read'" }, { - "Id": 1322, "Rank": 3, "CommandName": "Set-PnPGroupPermissions", + "Id": 1336, "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -AddRole @('Contribute', 'Design')" }, { - "Id": 1323, "Rank": 4, "CommandName": "Set-PnPGroupPermissions", + "Id": 1337, "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -RemoveRole @('Contribute', 'Design')" }, { - "Id": 1324, "Rank": 5, "CommandName": "Set-PnPGroupPermissions", + "Id": 1338, "Command": "Set-PnPGroupPermissions -Identity 'My Site Members' -List 'MyList' -RemoveRole @('Contribute')" }, { - "Id": 1325, "Rank": 1, "CommandName": "Set-PnPHideDefaultThemes", + "Id": 1339, "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $true" }, { - "Id": 1326, "Rank": 2, "CommandName": "Set-PnPHideDefaultThemes", + "Id": 1340, "Command": "Set-PnPHideDefaultThemes -HideDefaultThemes $false" }, { - "Id": 1327, "Rank": 1, "CommandName": "Set-PnPHomePage", + "Id": 1341, "Command": "Set-PnPHomePage -RootFolderRelativeUrl SitePages/Home.aspx" }, { - "Id": 1328, "Rank": 2, "CommandName": "Set-PnPHomePage", + "Id": 1342, "Command": "Set-PnPHomePage -RootFolderRelativeUrl Lists/Sample/AllItems.aspx" }, { - "Id": 1329, "Rank": 1, "CommandName": "Set-PnPHomeSite", + "Id": 1343, "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\"" }, { - "Id": 1330, "Rank": 2, "CommandName": "Set-PnPHomeSite", + "Id": 1344, "Command": "Set-PnPHomeSite -HomeSiteUrl \"https://yourtenant.sharepoint.com/sites/myhome\" -VivaConnectionsDefaultStart:$true" }, { - "Id": 1331, "Rank": 1, "CommandName": "Set-PnPHubSite", + "Id": 1345, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Title \"My New Title\"" }, { - "Id": 1332, "Rank": 2, "CommandName": "Set-PnPHubSite", + "Id": 1346, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -Description \"My updated description\"" }, { - "Id": 1333, "Rank": 3, "CommandName": "Set-PnPHubSite", + "Id": 1347, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -SiteDesignId df8a3ef1-9603-44c4-abd9-541aea2fa745" }, { - "Id": 1334, "Rank": 4, "CommandName": "Set-PnPHubSite", + "Id": 1348, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -LogoUrl \"https://tenant.sharepoint.com/SiteAssets/Logo.png\"" }, { - "Id": 1335, "Rank": 5, "CommandName": "Set-PnPHubSite", + "Id": 1349, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -EnablePermissionsSync" }, { - "Id": 1336, "Rank": 6, "CommandName": "Set-PnPHubSite", + "Id": 1350, "Command": "Set-PnPHubSite -Identity \"https://tenant.sharepoint.com/sites/myhubsite\" -RequiresJoinApproval:$false" }, { - "Id": 1337, "Rank": 1, "CommandName": "Set-PnPImageListItemColumn", + "Id": 1351, "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -ServerRelativePath \"/sites/contoso/SiteAssets/test.png\"" }, { - "Id": 1338, "Rank": 2, "CommandName": "Set-PnPImageListItemColumn", + "Id": 1352, "Command": "Set-PnPImageListItemColumn -List \"Demo List\" -Identity 1 -Field \"Thumbnail\" -Path sample.png" }, { - "Id": 1339, "Rank": 1, "CommandName": "Set-PnPIndexedProperties", + "Id": 1353, "Command": "Set-PnPIndexedProperties -Keys SiteClosed, PolicyName" }, { - "Id": 1340, "Rank": 1, "CommandName": "Set-PnPInPlaceRecordsManagement", + "Id": 1354, "Command": "Set-PnPInPlaceRecordsManagement -Enabled $true" }, { - "Id": 1341, "Rank": 2, "CommandName": "Set-PnPInPlaceRecordsManagement", + "Id": 1355, "Command": "Set-PnPInPlaceRecordsManagement -Enabled $false" }, { - "Id": 1342, "Rank": 1, "CommandName": "Set-PnPKnowledgeHubSite", + "Id": 1356, "Command": "Set-PnPKnowledgeHubSite -KnowledgeHubSiteUrl \"https://yoursite.sharepoint.com/sites/knowledge\"" }, { - "Id": 1343, "Rank": 1, "CommandName": "Set-PnPLabel", + "Id": 1357, "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\"" }, { - "Id": 1344, "Rank": 2, "CommandName": "Set-PnPLabel", + "Id": 1358, "Command": "Set-PnPLabel -List \"Demo List\" -Label \"Project Documentation\" -SyncToItems $true" }, { - "Id": 1345, "Rank": 1, "CommandName": "Set-PnPList", + "Id": 1359, "Command": "Set-PnPList -Identity \"Demo List\" -EnableContentTypes $true" }, { - "Id": 1346, "Rank": 2, "CommandName": "Set-PnPList", + "Id": 1360, "Command": "Set-PnPList -Identity \"Demo List\" -Hidden $true" }, { - "Id": 1347, "Rank": 3, "CommandName": "Set-PnPList", + "Id": 1361, "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true" }, { - "Id": 1348, "Rank": 4, "CommandName": "Set-PnPList", + "Id": 1362, "Command": "Set-PnPList -Identity \"Demo List\" -EnableVersioning $true -MajorVersions 20" }, { - "Id": 1349, "Rank": 5, "CommandName": "Set-PnPList", + "Id": 1363, "Command": "Set-PnPList -Identity \"Demo Library\" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5" }, { - "Id": 1350, "Rank": 6, "CommandName": "Set-PnPList", + "Id": 1364, "Command": "Set-PnPList -Identity \"Demo List\" -EnableAttachments $true" }, { - "Id": 1351, "Rank": 7, "CommandName": "Set-PnPList", + "Id": 1365, "Command": "Set-PnPList -Identity \"Demo List\" -Title \"Demo List 2\" -Path \"Lists/DemoList2\"" }, { - "Id": 1352, "Rank": 8, "CommandName": "Set-PnPList", + "Id": 1366, "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $true" }, { - "Id": 1353, "Rank": 9, "CommandName": "Set-PnPList", + "Id": 1367, "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 30 -MajorVersions 500" }, { - "Id": 1354, "Rank": 10, "CommandName": "Set-PnPList", + "Id": 1368, "Command": "Set-PnPList -Identity \"Demo List\" -EnableAutoExpirationVersionTrim $false -ExpireVersionsAfterDays 0 -MajorVersions 500" }, { - "Id": 1355, "Rank": 11, "CommandName": "Set-PnPList", + "Id": 1369, "Command": "Set-PnPList -Identity \"Demo List\" -DefaultSensitivityLabelForLibrary \"Confidential\"" }, { - "Id": 1356, "Rank": 1, "CommandName": "Set-PnPListInformationRightsManagement", + "Id": 1370, "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true" }, { - "Id": 1357, "Rank": 2, "CommandName": "Set-PnPListInformationRightsManagement", + "Id": 1371, "Command": "Set-PnPListInformationRightsManagement -List \"Documents\" -Enable $true -EnableDocumentAccessExpire $true -DocumentAccessExpireDays 14" }, { - "Id": 1358, "Rank": 1, "CommandName": "Set-PnPListItem", + "Id": 1372, "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 1359, "Rank": 2, "CommandName": "Set-PnPListItem", + "Id": 1373, "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -ContentType \"Company\" -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 1360, "Rank": 3, "CommandName": "Set-PnPListItem", + "Id": 1374, "Command": "Set-PnPListItem -List \"Demo List\" -Identity $item -Values @{\"Title\" = \"Test Title\"; \"Category\"=\"Test Category\"}" }, { - "Id": 1361, "Rank": 4, "CommandName": "Set-PnPListItem", + "Id": 1375, "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Label \"Public\"" }, { - "Id": 1362, "Rank": 5, "CommandName": "Set-PnPListItem", + "Id": 1376, "Command": "Set-PnPListItem -List \"Demo List\" -Identity 1 -Values @{\"Editor\"=\"testuser@domain.com\"} -UpdateType UpdateOverwriteVersion" }, { - "Id": 1363, "Rank": 1, "CommandName": "Set-PnPListItemAsRecord", + "Id": 1377, "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4" }, { - "Id": 1364, "Rank": 2, "CommandName": "Set-PnPListItemAsRecord", + "Id": 1378, "Command": "Set-PnPListItemAsRecord -List \"Documents\" -Identity 4 -DeclarationDate $date" }, { - "Id": 1365, "Rank": 1, "CommandName": "Set-PnPListItemPermission", + "Id": 1379, "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Id": 1366, "Rank": 2, "CommandName": "Set-PnPListItemPermission", + "Id": 1380, "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Id": 1367, "Rank": 3, "CommandName": "Set-PnPListItemPermission", + "Id": 1381, "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'user@contoso.com' -AddRole 'Contribute' -ClearExisting" }, { - "Id": 1368, "Rank": 4, "CommandName": "Set-PnPListItemPermission", + "Id": 1382, "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -InheritPermissions" }, { - "Id": 1369, "Rank": 5, "CommandName": "Set-PnPListItemPermission", + "Id": 1383, "Command": "Set-PnPListItemPermission -List 'Documents' -Identity 1 -AddRole 'Read' -RemoveRole 'Contribute' -Group \"Site collection Visitors\"" }, { - "Id": 1370, "Rank": 1, "CommandName": "Set-PnPListPermission", + "Id": 1384, "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'" }, { - "Id": 1371, "Rank": 2, "CommandName": "Set-PnPListPermission", + "Id": 1385, "Command": "Set-PnPListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'" }, { - "Id": 1372, "Rank": 1, "CommandName": "Set-PnPListRecordDeclaration", + "Id": 1386, "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -ManualRecordDeclaration NeverAllowManualDeclaration" }, { - "Id": 1373, "Rank": 2, "CommandName": "Set-PnPListRecordDeclaration", + "Id": 1387, "Command": "Set-PnPListRecordDeclaration -List \"Documents\" -AutoRecordDeclaration $true" }, { - "Id": 1374, "Rank": 1, "CommandName": "Set-PnPMasterPage", + "Id": 1388, "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" }, { - "Id": 1375, "Rank": 2, "CommandName": "Set-PnPMasterPage", + "Id": 1389, "Command": "Set-PnPMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master -CustomMasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.master" }, { - "Id": 1376, "Rank": 3, "CommandName": "Set-PnPMasterPage", + "Id": 1390, "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" }, { - "Id": 1377, "Rank": 4, "CommandName": "Set-PnPMasterPage", + "Id": 1391, "Command": "Set-PnPMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master -CustomMasterPageSiteRelativeUrl _catalogs/masterpage/oslo.master" }, { - "Id": 1378, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", + "Id": 1392, "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\"" }, { - "Id": 1379, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", + "Id": 1393, "Command": "Set-PnPMessageCenterAnnouncementAsArchived -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1380, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsArchived", + "Id": 1394, "Command": "Set-PnPMessageCenterAnnouncementAsArchived" }, { - "Id": 1381, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", + "Id": 1395, "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\"" }, { - "Id": 1382, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", + "Id": 1396, "Command": "Set-PnPMessageCenterAnnouncementAsFavorite -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1383, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsFavorite", + "Id": 1397, "Command": "Set-PnPMessageCenterAnnouncementAsFavorite" }, { - "Id": 1384, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", + "Id": 1398, "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\"" }, { - "Id": 1385, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", + "Id": 1399, "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1386, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotArchived", + "Id": 1400, "Command": "Set-PnPMessageCenterAnnouncementAsNotArchived" }, { - "Id": 1387, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", + "Id": 1401, "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\"" }, { - "Id": 1388, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", + "Id": 1402, "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1389, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsNotFavorite", + "Id": 1403, "Command": "Set-PnPMessageCenterAnnouncementAsNotFavorite" }, { - "Id": 1390, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", + "Id": 1404, "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\"" }, { - "Id": 1391, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", + "Id": 1405, "Command": "Set-PnPMessageCenterAnnouncementAsRead -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1392, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsRead", + "Id": 1406, "Command": "Set-PnPMessageCenterAnnouncementAsRead" }, { - "Id": 1393, "Rank": 1, "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", + "Id": 1407, "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\"" }, { - "Id": 1394, "Rank": 2, "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", + "Id": 1408, "Command": "Set-PnPMessageCenterAnnouncementAsUnread -Identity \"MC123456\", \"MC234567\"" }, { - "Id": 1395, "Rank": 3, "CommandName": "Set-PnPMessageCenterAnnouncementAsUnread", + "Id": 1409, "Command": "Set-PnPMessageCenterAnnouncementAsUnread" }, { - "Id": 1396, "Rank": 1, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1410, "Command": "Set-PnPMicrosoft365Group -Identity $group -DisplayName \"My DisplayName\"" }, { - "Id": 1397, "Rank": 2, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1411, "Command": "Set-PnPMicrosoft365Group -Identity $groupId -Descriptions \"My Description\" -DisplayName \"My DisplayName\"" }, { - "Id": 1398, "Rank": 3, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1412, "Command": "Set-PnPMicrosoft365Group -Identity $group -GroupLogoPath \".\\MyLogo.png\"" }, { - "Id": 1399, "Rank": 4, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1413, "Command": "Set-PnPMicrosoft365Group -Identity $group -IsPrivate:$false" }, { - "Id": 1400, "Rank": 5, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1414, "Command": "Set-PnPMicrosoft365Group -Identity $group -Owners demo@contoso.com" }, { - "Id": 1401, "Rank": 6, "CommandName": "Set-PnPMicrosoft365Group", + "Id": 1415, "Command": "Set-PnPMicrosoft365Group -Identity $group -SensitivityLabels \"bc98af29-59eb-4869-baaa-9a8dff631aa4\"" }, { - "Id": 1402, "Rank": 1, "CommandName": "Set-PnPMicrosoft365GroupSettings", + "Id": 1416, "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"}" }, { - "Id": 1403, "Rank": 2, "CommandName": "Set-PnPMicrosoft365GroupSettings", + "Id": 1417, "Command": "Set-PnPMicrosoft365GroupSettings -Identity $groupSettingId -Values @{\"AllowToAddGuests\"=\"true\"} -Group $groupId" }, { - "Id": 1404, "Rank": 1, "CommandName": "Set-PnPMinimalDownloadStrategy", + "Id": 1418, "Command": "Set-PnPMinimalDownloadStrategy -Off" }, { - "Id": 1405, "Rank": 2, "CommandName": "Set-PnPMinimalDownloadStrategy", + "Id": 1419, "Command": "Set-PnPMinimalDownloadStrategy -On" }, { - "Id": 1406, "Rank": 1, "CommandName": "Set-PnPPage", + "Id": 1420, "Command": "Set-PnPPage -Identity \"MyPage\" -LayoutType Home -Title \"My Page\"" }, { - "Id": 1407, "Rank": 2, "CommandName": "Set-PnPPage", + "Id": 1421, "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled" }, { - "Id": 1408, "Rank": 3, "CommandName": "Set-PnPPage", + "Id": 1422, "Command": "Set-PnPPage -Identity \"MyPage\" -CommentsEnabled:$false" }, { - "Id": 1409, "Rank": 4, "CommandName": "Set-PnPPage", + "Id": 1423, "Command": "Set-PnPPage -Identity \"hr/MyPage\" -HeaderType Default" }, { - "Id": 1410, "Rank": 5, "CommandName": "Set-PnPPage", + "Id": 1424, "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType None" }, { - "Id": 1411, "Rank": 6, "CommandName": "Set-PnPPage", + "Id": 1425, "Command": "Set-PnPPage -Identity \"MyPage\" -HeaderType Custom -ServerRelativeImageUrl \"/sites/demo1/assets/myimage.png\" -TranslateX 10.5 -TranslateY 11.0" }, { - "Id": 1412, "Rank": 7, "CommandName": "Set-PnPPage", + "Id": 1426, "Command": "Set-PnPPage -Identity \"MyPage\" -ScheduledPublishDate (Get-Date).AddHours(1)" }, { - "Id": 1413, "Rank": 8, "CommandName": "Set-PnPPage", + "Id": 1427, "Command": "Set-PnPPage -Identity \"MyPage\" -Translate" }, { - "Id": 1414, "Rank": 9, "CommandName": "Set-PnPPage", + "Id": 1428, "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043" }, { - "Id": 1415, "Rank": 10, "CommandName": "Set-PnPPage", + "Id": 1429, "Command": "Set-PnPPage -Identity \"MyPage\" -Translate -TranslationLanguageCodes 1043,1035" }, { - "Id": 1416, "Rank": 11, "CommandName": "Set-PnPPage", + "Id": 1430, "Command": "Set-PnPPage -Identity \"MyPage\" -ShowPublishDate $true -Publish" }, { - "Id": 1417, "Rank": 1, "CommandName": "Set-PnPPageTextPart", + "Id": 1431, "Command": "Set-PnPPageTextPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -Text \"MyText\"" }, { - "Id": 1418, "Rank": 1, "CommandName": "Set-PnPPageWebPart", + "Id": 1432, "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson \"`\"Property1`\"=`\"Value1`\"\"" }, { - "Id": 1419, "Rank": 2, "CommandName": "Set-PnPPageWebPart", + "Id": 1433, "Command": "Set-PnPPageWebPart -Page Home -Identity a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties" }, { - "Id": 1420, "Rank": 1, "CommandName": "Set-PnPPlannerBucket", + "Id": 1434, "Command": "Set-PnPPlannerBucket -Bucket \"Todos\" -Group \"Marketing\" -Plan \"Conference Plan\" -Name \"Pre-conf Todos\"" }, { - "Id": 1421, "Rank": 1, "CommandName": "Set-PnPPlannerConfiguration", + "Id": 1435, "Command": "Set-PnPPlannerConfiguration -AllowRosterCreation:$false -IsPlannerAllowed:$true" }, { - "Id": 1422, "Rank": 2, "CommandName": "Set-PnPPlannerConfiguration", + "Id": 1436, "Command": "Set-PnPPlannerConfiguration -AllowPlannerMobilePushNotifications $false" }, { - "Id": 1423, "Rank": 1, "CommandName": "Set-PnPPlannerPlan", + "Id": 1437, "Command": "Set-PnPPlannerPlan -Group \"Marketing\" -Plan \"Conference\" -Title \"Conference 2020\"" }, { - "Id": 1424, "Rank": 1, "CommandName": "Set-PnPPlannerTask", + "Id": 1438, "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -StartDateTime 2020-10-01" }, { - "Id": 1425, "Rank": 2, "CommandName": "Set-PnPPlannerTask", + "Id": 1439, "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -Title \"New Title\" -Bucket \"To do\"" }, { - "Id": 1426, "Rank": 3, "CommandName": "Set-PnPPlannerTask", + "Id": 1440, "Command": "Set-PnPPlannerTask -TaskId RSNNbc4HM0e7jt-btAKtTZYAFAf0 -AssignedTo \"user@contoso.com\",\"manager@contoso.com\"" }, { - "Id": 1427, "Rank": 1, "CommandName": "Set-PnPPlannerUserPolicy", + "Id": 1441, "Command": "Set-PnPPlannerUserPolicy -Identity \"johndoe@contoso.onmicrosoft.com\"" }, { - "Id": 1428, "Rank": 1, "CommandName": "Set-PnPPropertyBagValue", + "Id": 1442, "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue" }, { - "Id": 1429, "Rank": 2, "CommandName": "Set-PnPPropertyBagValue", + "Id": 1443, "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /" }, { - "Id": 1430, "Rank": 3, "CommandName": "Set-PnPPropertyBagValue", + "Id": 1444, "Command": "Set-PnPPropertyBagValue -Key MyKey -Value MyValue -Folder /MyFolder" }, { - "Id": 1431, "Rank": 1, "CommandName": "Set-PnPRequestAccessEmails", + "Id": 1445, "Command": "Set-PnPRequestAccessEmails -Emails someone@example.com" }, { - "Id": 1432, "Rank": 2, "CommandName": "Set-PnPRequestAccessEmails", + "Id": 1446, "Command": "Set-PnPRequestAccessEmails -Disabled" }, { - "Id": 1433, "Rank": 3, "CommandName": "Set-PnPRequestAccessEmails", + "Id": 1447, "Command": "Set-PnPRequestAccessEmails -Disabled:$false" }, { - "Id": 1434, "Rank": 1, "CommandName": "Set-PnPRoleDefinition", + "Id": 1448, "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Clear EditListItems" }, { - "Id": 1435, "Rank": 2, "CommandName": "Set-PnPRoleDefinition", + "Id": 1449, "Command": "Set-PnPRoleDefinition -Identity \"NoDelete\" -SelectAll -Clear DeleteListItems" }, { - "Id": 1436, "Rank": 3, "CommandName": "Set-PnPRoleDefinition", + "Id": 1450, "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -NewRoleName \"NoDelete\" -Description \"Contribute without delete\"" }, { - "Id": 1437, "Rank": 4, "CommandName": "Set-PnPRoleDefinition", + "Id": 1451, "Command": "Set-PnPRoleDefinition -Identity \"CustomPerm\" -Order 500" }, { - "Id": 1438, "Rank": 1, "CommandName": "Set-PnPSearchConfiguration", + "Id": 1452, "Command": "Set-PnPSearchConfiguration -Configuration $config" }, { - "Id": 1439, "Rank": 2, "CommandName": "Set-PnPSearchConfiguration", + "Id": 1453, "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Site" }, { - "Id": 1440, "Rank": 3, "CommandName": "Set-PnPSearchConfiguration", + "Id": 1454, "Command": "Set-PnPSearchConfiguration -Configuration $config -Scope Subscription" }, { - "Id": 1441, "Rank": 4, "CommandName": "Set-PnPSearchConfiguration", + "Id": 1455, "Command": "Set-PnPSearchConfiguration -Path searchconfig.xml -Scope Subscription" }, { - "Id": 1442, "Rank": 1, "CommandName": "Set-PnPSearchExternalItem", + "Id": 1456, "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": 1443, "Rank": 2, "CommandName": "Set-PnPSearchExternalItem", + "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 -GrantUsers \"user@contoso.onmicrosoft.com\"" }, { - "Id": 1444, "Rank": 1, "CommandName": "Set-PnPSearchSettings", + "Id": 1458, "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Site" }, { - "Id": 1445, "Rank": 2, "CommandName": "Set-PnPSearchSettings", + "Id": 1459, "Command": "Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web" }, { - "Id": 1446, "Rank": 3, "CommandName": "Set-PnPSearchSettings", + "Id": 1460, "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\"" }, { - "Id": 1447, "Rank": 4, "CommandName": "Set-PnPSearchSettings", + "Id": 1461, "Command": "Set-PnPSearchSettings -SearchPageUrl \"\"" }, { - "Id": 1448, "Rank": 5, "CommandName": "Set-PnPSearchSettings", + "Id": 1462, "Command": "Set-PnPSearchSettings -SearchPageUrl \"https://contoso.sharepoint.com/sites/mysearch/SitePages/search.aspx\" -Scope Site" }, { - "Id": 1449, "Rank": 6, "CommandName": "Set-PnPSearchSettings", + "Id": 1463, "Command": "Set-PnPSearchSettings -SearchScope Tenant" }, { - "Id": 1450, "Rank": 7, "CommandName": "Set-PnPSearchSettings", + "Id": 1464, "Command": "Set-PnPSearchSettings -SearchScope Hub" }, { - "Id": 1451, "Rank": 1, "CommandName": "Set-PnPSite", + "Id": 1465, "Command": "Set-PnPSite -Classification \"HBI\"" }, { - "Id": 1452, "Rank": 2, "CommandName": "Set-PnPSite", + "Id": 1466, "Command": "Set-PnPSite -Classification $null" }, { - "Id": 1453, "Rank": 3, "CommandName": "Set-PnPSite", + "Id": 1467, "Command": "Set-PnPSite -DisableFlows" }, { - "Id": 1454, "Rank": 4, "CommandName": "Set-PnPSite", + "Id": 1468, "Command": "Set-PnPSite -DisableFlows:$false" }, { - "Id": 1455, "Rank": 5, "CommandName": "Set-PnPSite", + "Id": 1469, "Command": "Set-PnPSite -LogoFilePath c:\\images\\mylogo.png" }, { - "Id": 1456, "Rank": 6, "CommandName": "Set-PnPSite", + "Id": 1470, "Command": "Set-PnPSite -NoScriptSite $false" }, { - "Id": 1457, "Rank": 7, "CommandName": "Set-PnPSite", + "Id": 1471, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true" }, { - "Id": 1458, "Rank": 8, "CommandName": "Set-PnPSite", + "Id": 1472, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 10 -ExpireVersionsAfterDays 200" }, { - "Id": 1459, "Rank": 9, "CommandName": "Set-PnPSite", + "Id": 1473, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -MinorVersions 20 -ExpireVersionsAfterDays 0" }, { - "Id": 1460, "Rank": 10, "CommandName": "Set-PnPSite", + "Id": 1474, "Command": "Set-PnPSite -InheritTenantVPForNewDocLibs" }, { - "Id": 1461, "Rank": 11, "CommandName": "Set-PnPSite", + "Id": 1475, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForNewLibs" }, { - "Id": 1462, "Rank": 12, "CommandName": "Set-PnPSite", + "Id": 1476, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -ExpireVersionsAfterDays 200 -ApplyForNewLibs" }, { - "Id": 1463, "Rank": 13, "CommandName": "Set-PnPSite", + "Id": 1477, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 300 -ExpireVersionsAfterDays 0 -ApplyForNewLibs" }, { - "Id": 1464, "Rank": 14, "CommandName": "Set-PnPSite", + "Id": 1478, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $true -ApplyForExistingLibs" }, { - "Id": 1465, "Rank": 15, "CommandName": "Set-PnPSite", + "Id": 1479, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 200 -ApplyForExistingLibs" }, { - "Id": 1466, "Rank": 16, "CommandName": "Set-PnPSite", + "Id": 1480, "Command": "Set-PnPSite -EnableAutoExpirationVersionTrim $false -MajorVersions 100 -MinorVersions 5 -ExpireVersionsAfterDays 0 -ApplyForExistingLibs" }, { - "Id": 1467, "Rank": 17, "CommandName": "Set-PnPSite", + "Id": 1481, "Command": "Set-PnPSite -CancelVPForExistingLibs" }, { - "Id": 1468, "Rank": 1, "CommandName": "Set-PnPSiteClassification", + "Id": 1482, "Command": "Set-PnPSiteClassification -Identity \"LBI\"" }, { - "Id": 1469, "Rank": 1, "CommandName": "Set-PnPSiteClosure", + "Id": 1483, "Command": "Set-PnPSiteClosure -State Open" }, { - "Id": 1470, "Rank": 2, "CommandName": "Set-PnPSiteClosure", + "Id": 1484, "Command": "Set-PnPSiteClosure -State Closed" }, { - "Id": 1471, "Rank": 1, "CommandName": "Set-PnPSiteDesign", + "Id": 1485, "Command": "Set-PnPSiteDesign -Identity 046e2e76-67ba-46ca-a5f6-8eb418a7821e -Title \"My Updated Company Design\"" }, { - "Id": 1472, "Rank": 2, "CommandName": "Set-PnPSiteDesign", + "Id": 1486, "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": 1473, "Rank": 1, "CommandName": "Set-PnPSiteGroup", + "Id": 1487, "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com/sites/siteA\" -Identity \"ProjectViewers\" -PermissionLevelsToRemove \"Full Control\" -PermissionLevelsToAdd \"View Only\"" }, { - "Id": 1474, "Rank": 2, "CommandName": "Set-PnPSiteGroup", + "Id": 1488, "Command": "Set-PnPSiteGroup -Site \"https://contoso.sharepoint.com\" -Identity \"ProjectViewers\" -Owner user@domain.com" }, { - "Id": 1475, "Rank": 1, "CommandName": "Set-PnPSitePolicy", + "Id": 1489, "Command": "Set-PnPSitePolicy -Name \"Contoso HBI\"" }, { - "Id": 1476, "Rank": 1, "CommandName": "Set-PnPSiteScript", + "Id": 1490, "Command": "Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" }, { - "Id": 1477, "Rank": 1, "CommandName": "Set-PnPSiteScriptPackage", + "Id": 1491, "Command": "Set-PnPSiteScriptPackage -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title \"My Site Script\"" }, { - "Id": 1478, "Rank": 1, "CommandName": "Set-PnPSiteSensitivityLabel", + "Id": 1492, "Command": "Set-PnPSiteSensitivityLabel -Identity \"Top Secret\"" }, { - "Id": 1479, "Rank": 2, "CommandName": "Set-PnPSiteSensitivityLabel", + "Id": 1493, "Command": "Set-PnPSiteSensitivityLabel -Identity a1888df2-84c2-4379-8d53-7091dd630ca7" }, { - "Id": 1480, "Rank": 1, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1494, "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateDisplayName \"DisplayNameValue\"" }, { - "Id": 1481, "Rank": 2, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1495, "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateDisplayName \"DisplayNameValue\"" }, { - "Id": 1482, "Rank": 3, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1496, "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" }, { - "Id": 1483, "Rank": 4, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1497, "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateImagePreviewUrl \"Full URL of the Image Preview\"" }, { - "Id": 1484, "Rank": 5, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1498, "Command": "Set-PnPSiteTemplateMetadata -Path template.xml -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" }, { - "Id": 1485, "Rank": 6, "CommandName": "Set-PnPSiteTemplateMetadata", + "Id": 1499, "Command": "Set-PnPSiteTemplateMetadata -Path template.pnp -TemplateProperties @{\"Property1\" = \"Test Value 1\"; \"Property2\"=\"Test Value 2\"}" }, { - "Id": 1486, "Rank": 1, "CommandName": "Set-PnPStorageEntity", + "Id": 1500, "Command": "Set-PnPStorageEntity -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" }, { - "Id": 1487, "Rank": 2, "CommandName": "Set-PnPStorageEntity", + "Id": 1501, "Command": "Set-PnPStorageEntity -Scope Site -Key MyKey -Value \"MyValue\" -Comment \"My Comment\" -Description \"My Description\"" }, { - "Id": 1488, "Rank": 1, "CommandName": "Set-PnPStructuralNavigationCacheSiteState", + "Id": 1502, "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { - "Id": 1489, "Rank": 2, "CommandName": "Set-PnPStructuralNavigationCacheSiteState", + "Id": 1503, "Command": "Set-PnPStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl \"https://contoso.sharepoint.com/sites/product/\"" }, { - "Id": 1490, "Rank": 1, "CommandName": "Set-PnPStructuralNavigationCacheWebState", + "Id": 1504, "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $true -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { - "Id": 1491, "Rank": 2, "CommandName": "Set-PnPStructuralNavigationCacheWebState", + "Id": 1505, "Command": "Set-PnPStructuralNavigationCacheWebState -IsEnabled $false -WebUrl \"https://contoso.sharepoint.com/sites/product/electronics\"" }, { - "Id": 1492, "Rank": 1, "CommandName": "Set-PnPSubscribeSharePointNewsDigest", + "Id": 1506, "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$true" }, { - "Id": 1493, "Rank": 2, "CommandName": "Set-PnPSubscribeSharePointNewsDigest", + "Id": 1507, "Command": "Set-PnPSubscribeSharePointNewsDigest -Account 'user@domain.com' -Enabled:$false" }, { - "Id": 1494, "Rank": 1, "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1508, "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermId 863b832b-6818-4e6a-966d-2d3ee057931c" }, { - "Id": 1495, "Rank": 2, "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1509, "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'" }, { - "Id": 1496, "Rank": 3, "CommandName": "Set-PnPTaxonomyFieldValue", + "Id": 1510, "Command": "Set-PnPTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Terms @{\"TermId1\"=\"Label1\";\"TermId2\"=\"Label2\"}" }, { - "Id": 1497, "Rank": 1, "CommandName": "Set-PnPTeamifyPromptHidden", + "Id": 1511, "Command": "Set-PnPTeamifyPromptHidden" }, { - "Id": 1498, "Rank": 1, "CommandName": "Set-PnPTeamsChannel", + "Id": 1512, "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -DisplayName \"My Channel\"" }, { - "Id": 1499, "Rank": 2, "CommandName": "Set-PnPTeamsChannel", + "Id": 1513, "Command": "Set-PnPTeamsChannel -Team \"MyTeam\" -Channel \"MyChannel\" -IsFavoriteByDefault $true" }, { - "Id": 1500, "Rank": 1, "CommandName": "Set-PnpTeamsChannelUser", + "Id": 1514, "Command": "Set-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel \"19:796d063b63e34497aeaf092c8fb9b44e@thread.skype\" -Identity MCMjMiMjMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIyMxOTowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMEB0aHJlYWQuc2t5cGUjIzAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMA== -Role Owner" }, { - "Id": 1501, "Rank": 2, "CommandName": "Set-PnpTeamsChannelUser", + "Id": 1515, "Command": "Set-PnPTeamsChannelUser -Team \"My Team\" -Channel \"My Private Channel\" -Identity john@doe.com -Role Member" }, { - "Id": 1502, "Rank": 1, "CommandName": "Set-PnPTeamsTab", + "Id": 1516, "Command": "Set-PnPTeamsTab -Team \"MyTeam\" -Channel \"My Channel\" -Identity \"Wiki\" -DisplayName \"Channel Wiki\"" }, { - "Id": 1503, "Rank": 1, "CommandName": "Set-PnPTeamsTag", + "Id": 1517, "Command": "Set-PnPTeamsTag -Team 5beb63c5-0571-499e-94d5-3279fdd9b6b5 -Identity \"ZmY1ZjdmMjctZDhiNy00MWRkLTk2ZDQtYzcyYmVhMWIwOGYxIyM3ZTVhNGRmZS1kNWNlLTRkOTAtODM4MC04ZDIxM2FkYzYzOGIjI3RiVlVpR01rcg==\" -DisplayName \"Updated Tag\"" }, { - "Id": 1504, "Rank": 1, "CommandName": "Set-PnPTeamsTeam", + "Id": 1518, "Command": "Set-PnPTeamsTeam -Identity 'MyTeam' -DisplayName 'My Team'" }, { - "Id": 1505, "Rank": 2, "CommandName": "Set-PnPTeamsTeam", + "Id": 1519, "Command": "Set-PnPTeamsTeam -Identity \"baba9192-55be-488a-9fb7-2e2e76edbef2\" -Visibility Public" }, { - "Id": 1506, "Rank": 3, "CommandName": "Set-PnPTeamsTeam", + "Id": 1520, "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -AllowTeamMentions $false -AllowChannelMentions $true -AllowDeleteChannels $false" }, { - "Id": 1507, "Rank": 4, "CommandName": "Set-PnPTeamsTeam", + "Id": 1521, "Command": "Set-PnPTeamsTeam -Identity \"My Team\" -GiphyContentRating Moderate" }, { - "Id": 1508, "Rank": 1, "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1522, "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true" }, { - "Id": 1509, "Rank": 2, "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1523, "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $false" }, { - "Id": 1510, "Rank": 3, "CommandName": "Set-PnPTeamsTeamArchivedState", + "Id": 1524, "Command": "Set-PnPTeamsTeamArchivedState -Identity \"My Team\" -Archived $true -SetSiteReadOnlyForMembers $true" }, { - "Id": 1511, "Rank": 1, "CommandName": "Set-PnPTeamsTeamPicture", + "Id": 1525, "Command": "Set-PnPTeamsTeamPicture -Team \"MyTeam\" -Path \"c:\\myimage.jpg\"" }, { - "Id": 1512, "Rank": 1, "CommandName": "Set-PnPTemporarilyDisableAppBar", + "Id": 1526, "Command": "Set-PnPTemporarilyDisableAppBar $true" }, { - "Id": 1513, "Rank": 2, "CommandName": "Set-PnPTemporarilyDisableAppBar", + "Id": 1527, "Command": "Set-PnPTemporarilyDisableAppBar $false" }, { - "Id": 1514, "Rank": 1, "CommandName": "Set-PnPTenant", + "Id": 1528, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/team1\" -LockState NoAccess\r ; Set-PnPTenant -NoAccessRedirectUrl \"http://www.contoso.com\"" }, { - "Id": 1515, "Rank": 2, "CommandName": "Set-PnPTenant", + "Id": 1529, "Command": "Set-PnPTenant -ShowEveryoneExceptExternalUsersClaim $false" }, { - "Id": 1516, "Rank": 3, "CommandName": "Set-PnPTenant", + "Id": 1530, "Command": "Set-PnPTenant -ShowAllUsersClaim $false" }, { - "Id": 1517, "Rank": 4, "CommandName": "Set-PnPTenant", + "Id": 1531, "Command": "Set-PnPTenant -UsePersistentCookiesForExplorerView $true" }, { - "Id": 1518, "Rank": 1, "CommandName": "Set-PnPTenantAppCatalogUrl", + "Id": 1532, "Command": "Set-PnPTenantAppCatalogUrl -Url \"https://yourtenant.sharepoint.com/sites/appcatalog\"" }, { - "Id": 1519, "Rank": 1, "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1533, "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true" }, { - "Id": 1520, "Rank": 2, "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1534, "Command": "Set-PnPTenantCdnEnabled -CdnType Private -Enable $false" }, { - "Id": 1521, "Rank": 3, "CommandName": "Set-PnPTenantCdnEnabled", + "Id": 1535, "Command": "Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins" }, { - "Id": 1522, "Rank": 1, "CommandName": "Set-PnPTenantCdnPolicy", + "Id": 1536, "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue \"CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF\"" }, { - "Id": 1523, "Rank": 2, "CommandName": "Set-PnPTenantCdnPolicy", + "Id": 1537, "Command": "Set-PnPTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue \"Confidential,Restricted\"" }, { - "Id": 1524, "Rank": 1, "CommandName": "Set-PnPTenantSite", + "Id": 1538, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -SharingCapability Disabled" }, { - "Id": 1525, "Rank": 2, "CommandName": "Set-PnPTenantSite", + "Id": 1539, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com\" -Title \"Contoso Website\" -StorageWarningLevel 8000 -StorageMaximumLevel 10000" }, { - "Id": 1526, "Rank": 3, "CommandName": "Set-PnPTenantSite", + "Id": 1540, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners \"user@contoso.onmicrosoft.com\"" }, { - "Id": 1527, "Rank": 4, "CommandName": "Set-PnPTenantSite", + "Id": 1541, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -Owners @(\"user1@contoso.onmicrosoft.com\", \"user2@contoso.onmicrosoft.com\")" }, { - "Id": 1528, "Rank": 5, "CommandName": "Set-PnPTenantSite", + "Id": 1542, "Command": "Set-PnPTenantSite -Identity \"https://contoso.sharepoint.com/sites/sales\" -DenyAddAndCustomizePages:$false" }, { - "Id": 1529, "Rank": 1, "CommandName": "Set-PnPTenantSyncClientRestriction", + "Id": 1543, "Command": "Set-PnPTenantSyncClientRestriction -BlockMacSync:$false" }, { - "Id": 1530, "Rank": 2, "CommandName": "Set-PnPTenantSyncClientRestriction", + "Id": 1544, "Command": "Set-PnPTenantSyncClientRestriction -ExcludedFileExtensions \"pptx;docx;xlsx\"" }, { - "Id": 1531, "Rank": 1, "CommandName": "Set-PnPTerm", + "Id": 1545, "Command": "Set-PnPTerm -Identity 3d9e60e8-d89c-4cd4-af61-a010cf93b380 -Name \"New Name\"" }, { - "Id": 1532, "Rank": 2, "CommandName": "Set-PnPTerm", + "Id": 1546, "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { - "Id": 1533, "Rank": 3, "CommandName": "Set-PnPTerm", + "Id": 1547, "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Name \"Finance\" -DeleteAllCustomProperties -CustomProperties @{\"IsCorporate\"=\"True\"}" }, { - "Id": 1534, "Rank": 4, "CommandName": "Set-PnPTerm", + "Id": 1548, "Command": "Set-PnPTerm -Identity \"Marketing\" -TermSet \"Departments\" -TermGroup \"Corporate\" -Deprecated $true" }, { - "Id": 1535, "Rank": 1, "CommandName": "Set-PnPTermGroup", + "Id": 1549, "Command": "Set-PnPTermGroup -Identity \"Departments\" -Name \"Company Units\"" }, { - "Id": 1536, "Rank": 1, "CommandName": "Set-PnPTermSet", + "Id": 1550, "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -Name \"Business Units\"" }, { - "Id": 1537, "Rank": 2, "CommandName": "Set-PnPTermSet", + "Id": 1551, "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -UseForSiteNavigation $true" }, { - "Id": 1538, "Rank": 3, "CommandName": "Set-PnPTermSet", + "Id": 1552, "Command": "Set-PnPTermSet -Identity \"Departments\" -TermGroup \"Corporate\" -IsAvailableForTagging $false" }, { - "Id": 1539, "Rank": 1, "CommandName": "Set-PnPTheme", + "Id": 1553, "Command": "Set-PnPTheme" }, { - "Id": 1540, "Rank": 2, "CommandName": "Set-PnPTheme", + "Id": 1554, "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor" }, { - "Id": 1541, "Rank": 3, "CommandName": "Set-PnPTheme", + "Id": 1555, "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png'" }, { - "Id": 1542, "Rank": 4, "CommandName": "Set-PnPTheme", + "Id": 1556, "Command": "Set-PnPTheme -ColorPaletteUrl _catalogs/theme/15/company.spcolor -BackgroundImageUrl 'style library/background.png' -ResetSubwebsToInherit" }, { - "Id": 1543, "Rank": 1, "CommandName": "Set-PnPTraceLog", + "Id": 1557, "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt" }, { - "Id": 1544, "Rank": 2, "CommandName": "Set-PnPTraceLog", + "Id": 1558, "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug" }, { - "Id": 1545, "Rank": 3, "CommandName": "Set-PnPTraceLog", + "Id": 1559, "Command": "Set-PnPTraceLog -On -LogFile traceoutput.txt -Level Debug -Delimiter \",\"" }, { - "Id": 1546, "Rank": 4, "CommandName": "Set-PnPTraceLog", + "Id": 1560, "Command": "Set-PnPTraceLog -Off" }, { - "Id": 1547, "Rank": 1, "CommandName": "Set-PnPUserOneDriveQuota", + "Id": 1561, "Command": "Set-PnPUserOneDriveQuota -Account 'user@domain.com' -Quota 5368709120 -QuotaWarning 4831838208" }, { - "Id": 1548, "Rank": 1, "CommandName": "Set-PnPUserProfileProperty", + "Id": 1562, "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'SPS-Location' -Value 'Stockholm'" }, { - "Id": 1549, "Rank": 2, "CommandName": "Set-PnPUserProfileProperty", + "Id": 1563, "Command": "Set-PnPUserProfileProperty -Account 'user@domain.com' -Property 'MyProperty' -Values 'Value 1','Value 2'" }, { - "Id": 1550, "Rank": 1, "CommandName": "Set-PnPView", + "Id": 1564, "Command": "Set-PnPView -List \"Tasks\" -Identity \"All Tasks\" -Values @{JSLink=\"hierarchytaskslist.js|customrendering.js\";Title=\"My view\"}" }, { - "Id": 1551, "Rank": 2, "CommandName": "Set-PnPView", + "Id": 1565, "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\"" }, { - "Id": 1552, "Rank": 3, "CommandName": "Set-PnPView", + "Id": 1566, "Command": "Set-PnPView -List \"Documents\" -Identity \"Corporate Documents\" -Fields \"Title\",\"Created\" -Aggregations \"\"" }, { - "Id": 1553, "Rank": 4, "CommandName": "Set-PnPView", + "Id": 1567, "Command": "Set-PnPView -List \"Documents\" -Identity \"Dept Documents\" -Fields \"Title,\"Created\" -Values @{Paged=$true;RowLimit=[UInt32]\"100\"}" }, { - "Id": 1554, "Rank": 1, "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1568, "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": 1555, "Rank": 2, "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1569, "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -Title \"Update title\" -Description \"Update Description\"" }, { - "Id": 1556, "Rank": 3, "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1570, "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": 1557, "Rank": 4, "CommandName": "Set-PnPVivaConnectionsDashboardACE", + "Id": 1571, "Command": "Set-PnPVivaConnectionsDashboardACE -Identity \"58108715-185e-4214-8786-01218e7ab9ef\" -CardSize Large" }, { - "Id": 1558, "Rank": 1, "CommandName": "Set-PnPWeb", + "Id": 1572, "Command": "Set-PnPWeb -CommentsOnSitePagesDisabled:$true" }, { - "Id": 1559, "Rank": 2, "CommandName": "Set-PnPWeb", + "Id": 1573, "Command": "Set-PnPWeb -QuickLaunchEnabled:$false" }, { - "Id": 1560, "Rank": 3, "CommandName": "Set-PnPWeb", + "Id": 1574, "Command": "Set-PnPWeb -HeaderEmphasis Strong -HeaderLayout Compact" }, { - "Id": 1561, "Rank": 4, "CommandName": "Set-PnPWeb", + "Id": 1575, "Command": "Set-PnPWeb -NoCrawl:$true" }, { - "Id": 1562, "Rank": 1, "CommandName": "Set-PnPWebHeader", + "Id": 1576, "Command": "Set-PnPWebHeader -HeaderBackgroundImageUrl \"/sites/hrdepartment/siteassets/background.png\" -HeaderLayout Extended" }, { - "Id": 1563, "Rank": 2, "CommandName": "Set-PnPWebHeader", + "Id": 1577, "Command": "Set-PnPWebHeader -HeaderEmphasis Strong" }, { - "Id": 1564, "Rank": 3, "CommandName": "Set-PnPWebHeader", + "Id": 1578, "Command": "Set-PnPWebHeader -LogoAlignment Middle" }, { - "Id": 1565, "Rank": 1, "CommandName": "Set-PnPWebhookSubscription", + "Id": 1579, "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook" }, { - "Id": 1566, "Rank": 2, "CommandName": "Set-PnPWebhookSubscription", + "Id": 1580, "Command": "Set-PnPWebhookSubscription -List MyList -Subscription ea1533a8-ff03-415b-a7b6-517ee50db8b6 -NotificationUrl https://my-func.azurewebsites.net/webhook -ExpirationDate \"2017-09-01\"" }, { - "Id": 1567, "Rank": 1, "CommandName": "Set-PnPWebPartProperty", + "Id": 1581, "Command": "Set-PnPWebPartProperty -ServerRelativePageUrl /sites/demo/sitepages/home.aspx -Identity ccd2c98a-c9ae-483b-ae72-19992d583914 -Key \"Title\" -Value \"New Title\"" }, { - "Id": 1568, "Rank": 1, "CommandName": "Set-PnPWebPermission", + "Id": 1582, "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Contribute\"" }, { - "Id": 1569, "Rank": 2, "CommandName": "Set-PnPWebPermission", + "Id": 1583, "Command": "Set-PnPWebPermission -Group \"Project Managers\" -AddRole \"Contribute\"" }, { - "Id": 1570, "Rank": 3, "CommandName": "Set-PnPWebPermission", + "Id": 1584, "Command": "Set-PnPWebPermission -Identity projectA -User \"user@contoso.com\" -AddRole \"Contribute\"" }, { - "Id": 1571, "Rank": 4, "CommandName": "Set-PnPWebPermission", + "Id": 1585, "Command": "Set-PnPWebPermission -User \"user@contoso.com\" -AddRole \"Custom Role 1\",\"Custom Role 2\"" }, { - "Id": 1572, "Rank": 1, "CommandName": "Set-PnPWebTheme", + "Id": 1586, "Command": "Set-PnPWebTheme -Theme MyTheme" }, { - "Id": 1573, "Rank": 2, "CommandName": "Set-PnPWebTheme", + "Id": 1587, "Command": "Set-PnPWebTheme -Theme \"MyCompanyTheme\" -WebUrl https://contoso.sharepoint.com/sites/MyWeb" }, { - "Id": 1574, "Rank": 1, "CommandName": "Set-PnPWikiPageContent", + "Id": 1588, "Command": "Set-PnPWikiPageContent -ServerRelativePageUrl /sites/PnPWikiCollection/SitePages/OurWikiPage.aspx -Path .\\sampleblog.html" }, { - "Id": 1575, "Rank": 1, "CommandName": "Submit-PnPSearchQuery", + "Id": 1589, "Command": "Submit-PnPSearchQuery -Query \"finance\"" }, { - "Id": 1576, "Rank": 2, "CommandName": "Submit-PnPSearchQuery", + "Id": 1590, "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -MaxResults 10" }, { - "Id": 1577, "Rank": 3, "CommandName": "Submit-PnPSearchQuery", + "Id": 1591, "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -All" }, { - "Id": 1578, "Rank": 4, "CommandName": "Submit-PnPSearchQuery", + "Id": 1592, "Command": "Submit-PnPSearchQuery -Query \"Title:Intranet*\" -Refiners \"contentclass,FileType(filter=6/0/*)\"" }, { - "Id": 1579, "Rank": 5, "CommandName": "Submit-PnPSearchQuery", + "Id": 1593, "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SelectProperties ComplianceTag,InformationProtectionLabelId -All" }, { - "Id": 1580, "Rank": 6, "CommandName": "Submit-PnPSearchQuery", + "Id": 1594, "Command": "Submit-PnPSearchQuery -Query \"contentclass:STS_ListItem_DocumentLibrary\" -SortList @{\"filename\" = \"ascending\"} -All" }, { - "Id": 1581, "Rank": 1, "CommandName": "Submit-PnPTeamsChannelMessage", + "Id": 1595, "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A new message\"" }, { - "Id": 1582, "Rank": 2, "CommandName": "Submit-PnPTeamsChannelMessage", + "Id": 1596, "Command": "Submit-PnPTeamsChannelMessage -Team MyTestTeam -Channel \"My Channel\" -Message \"A bold new message\" -ContentType Html" }, { - "Id": 1583, "Rank": 1, "CommandName": "Sync-PnPAppToTeams", + "Id": 1597, "Command": "Sync-PnPAppToTeams -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 1584, "Rank": 1, "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1598, "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"HomePhone\"=\"phone\";\"CustomProperty\"=\"DisplayName\"}" }, { - "Id": 1585, "Rank": 2, "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1599, "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\"" }, { - "Id": 1586, "Rank": 3, "CommandName": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory", + "Id": 1600, "Command": "Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{\"CostCenter\"=\"extension_b0b5aaa58a0a4287acd826c5b8330e48_CostCenter\"} -Folder \"User Profile Sync\\Jobs\" -Wait -Verbose" }, { - "Id": 1587, "Rank": 1, "CommandName": "Test-PnPListItemIsRecord", + "Id": 1601, "Command": "Test-PnPListItemIsRecord -List \"Documents\" -Identity 4" }, { - "Id": 1588, "Rank": 1, "CommandName": "Test-PnPMicrosoft365GroupAliasIsUsed", + "Id": 1602, "Command": "Test-PnPMicrosoft365GroupAliasIsUsed -Alias \"MyGroup\"" }, { - "Id": 1589, "Rank": 1, "CommandName": "Test-PnPSite", + "Id": 1603, "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\"" }, { - "Id": 1590, "Rank": 2, "CommandName": "Test-PnPSite", + "Id": 1604, "Command": "Test-PnPSite -Identity \"https://contoso.sharepoint.com/sites/marketing\" -RuleID \"ee967197-ccbe-4c00-88e4-e6fab81145e1\"" }, { - "Id": 1591, "Rank": 1, "CommandName": "Test-PnPTenantTemplate", + "Id": 1605, "Command": "Test-PnPTenantTemplate -Template $myTemplate" }, { - "Id": 1592, "Rank": 1, "CommandName": "Undo-PnPFileCheckedOut", + "Id": 1606, "Command": "Undo-PnPFileCheckedOut -Url \"/sites/PnP/Shared Documents/Contract.docx\"" }, { - "Id": 1593, "Rank": 1, "CommandName": "Uninstall-PnPApp", + "Id": 1607, "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 1594, "Rank": 2, "CommandName": "Uninstall-PnPApp", + "Id": 1608, "Command": "Uninstall-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Id": 1595, "Rank": 1, "CommandName": "Unpublish-PnPApp", + "Id": 1609, "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 1596, "Rank": 2, "CommandName": "Unpublish-PnPApp", + "Id": 1610, "Command": "Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Id": 1597, "Rank": 1, "CommandName": "Unpublish-PnPContentType", + "Id": 1611, "Command": "Unpublish-PnPContentType -ContentType 0x0101" }, { - "Id": 1598, "Rank": 1, "CommandName": "Unpublish-PnPSyntexModel", + "Id": 1612, "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -ListWebUrl \"https://contoso.sharepoint.com/sites/finance\" -List \"Documents\"" }, { - "Id": 1599, "Rank": 2, "CommandName": "Unpublish-PnPSyntexModel", + "Id": 1613, "Command": "Unpublish-PnPSyntexModel -Model \"Invoice model\" -TargetSiteUrl \"https://contoso.sharepoint.com/sites/finance\" -TargetWebServerRelativeUrl \"/sites/finance\" -TargetLibraryServerRelativeUrl \"/sites/finance/shared%20documents\" -Batch $batch" }, { - "Id": 1600, "Rank": 1, "CommandName": "Unregister-PnPHubSite", + "Id": 1614, "Command": "Unregister-PnPHubSite -Site \"https://tenant.sharepoint.com/sites/myhubsite\"" }, { - "Id": 1601, "Rank": 1, "CommandName": "Update-PnPApp", + "Id": 1615, "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" }, { - "Id": 1602, "Rank": 2, "CommandName": "Update-PnPApp", + "Id": 1616, "Command": "Update-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site" }, { - "Id": 1603, "Rank": 1, "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1617, "Command": "Update-PnPAvailableSiteClassification -Classifications \"HBI\",\"Top Secret\"" }, { - "Id": 1604, "Rank": 2, "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1618, "Command": "Update-PnPAvailableSiteClassification -DefaultClassification \"LBI\"" }, { - "Id": 1605, "Rank": 3, "CommandName": "Update-PnPAvailableSiteClassification", + "Id": 1619, "Command": "Update-PnPAvailableSiteClassification -UsageGuidelinesUrl https://aka.ms/m365pnp" }, { - "Id": 1606, "Rank": 1, "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1620, "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll" }, { - "Id": 1607, "Rank": 2, "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1621, "Command": "Update-PnPSiteDesignFromWeb -Identity \"Contoso Project\" -IncludeAll -Lists (\"/lists/Issue list\", \"Shared Documents)" }, { - "Id": 1608, "Rank": 3, "CommandName": "Update-PnPSiteDesignFromWeb", + "Id": 1622, "Command": "Update-PnPSiteDesignFromWeb -Url https://contoso.sharepoint.com/sites/template -Identity \"Contoso Project\" -Lists \"/lists/Issue list\"" }, { - "Id": 1609, "Rank": 1, "CommandName": "Update-PnPTeamsApp", + "Id": 1623, "Command": "Update-PnPTeamsApp -Identity 4efdf392-8225-4763-9e7f-4edeb7f721aa -Path c:\\myapp.zip" }, { - "Id": 1610, "Rank": 1, "CommandName": "Update-PnPTeamsUser", + "Id": 1624, "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner" }, { - "Id": 1611, "Rank": 2, "CommandName": "Update-PnPTeamsUser", + "Id": 1625, "Command": "Update-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member" }, { - "Id": 1612, "Rank": 3, "CommandName": "Update-PnPTeamsUser", + "Id": 1626, "Command": "Update-PnPTeamsUser -Team a0c0a395-4ba6-4fff-958a-000000506d18 -User john@doe.com -Role Member -Force" }, { - "Id": 1613, "Rank": 1, "CommandName": "Update-PnPUserType", + "Id": 1627, "Command": "Update-PnPUserType -LoginName jdoe@contoso.com" } ] 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 index 679196cfd..8f10df1e3 100644 --- a/src/Commands/Admin/GetContainerTypeConfiguration.cs +++ b/src/Commands/Admin/GetContainerTypeConfiguration.cs @@ -19,7 +19,7 @@ protected override void ExecuteCmdlet() throw new ArgumentException($"Identity {Identity} value is invalid"); } ClientResult sPOContainerTypeConfigurationByContainerTypeId = Tenant.GetSPOContainerTypeConfigurationByContainerTypeId(Identity); - AdminContext.ExecuteQuery(); + 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 index b1596856e..012f09d7d 100644 --- a/src/Commands/Admin/GetDeletedContainer.cs +++ b/src/Commands/Admin/GetDeletedContainer.cs @@ -14,7 +14,6 @@ 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 index 1a9fb5e52..ebd8f35ea 100644 --- a/src/Commands/Admin/RemoveContainer.cs +++ b/src/Commands/Admin/RemoveContainer.cs @@ -9,7 +9,7 @@ namespace PnP.PowerShell.Commands.Admin [Cmdlet(VerbsCommon.Remove, "PnPContainer")] public class RemoveContainer : PnPAdminCmdlet { - [Parameter(Mandatory = true)] + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)] public ContainerPipeBind Identity { get; set; } protected override void ExecuteCmdlet() 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/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index b33ff3105..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 { @@ -410,6 +411,12 @@ public class SetTenant : PnPAdminCmdlet [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); @@ -1362,6 +1369,18 @@ protected override void ExecuteCmdlet() 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/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/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/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/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/Model/PowerPlatform/Environment/PowerPlatformSolution.cs b/src/Commands/Model/PowerPlatform/Environment/PowerPlatformSolution.cs new file mode 100644 index 000000000..d852d270b --- /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..df497e95f --- /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 92170f6dc..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 { @@ -185,6 +186,15 @@ public class SPOTenant 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) @@ -656,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/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/PnP.PowerShell.csproj b/src/Commands/PnP.PowerShell.csproj index 2ccc12072..9f2d44d37 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,7 +58,7 @@ - + diff --git a/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs b/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs index 870b9ae25..bdd85ca35 100644 --- a/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformConnector.cs @@ -23,6 +23,7 @@ public class GetPowerPlatformConnector : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { string environmentName = null; + string baseUrl = "https://api.flow.microsoft.com/"; if (ParameterSpecified(nameof(Environment))) { environmentName = Environment.GetName(); @@ -30,7 +31,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)) diff --git a/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs b/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs index 3d42e54f4..277872b23 100644 --- a/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformEnvironment.cs @@ -21,7 +21,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 = "https://api.flow.microsoft.com/"; + 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..f9f91087c --- /dev/null +++ b/src/Commands/PowerPlatform/Environment/GetPowerPlatformSolution.cs @@ -0,0 +1,64 @@ +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; + +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; + var environments = GraphHelper.GetResultCollectionAsync(Connection, "https://api.flow.microsoft.com/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/GetPowerApp.cs b/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs index 68c569df6..59162d830 100644 --- a/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs +++ b/src/Commands/PowerPlatform/PowerApps/GetPowerApp.cs @@ -31,7 +31,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 = "https://api.flow.microsoft.com/"; + 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)) diff --git a/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs b/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs index 12f7a62eb..8577a5676 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/AddFlowOwner.cs @@ -81,7 +81,7 @@ 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(); + RestHelper.PostAsync(Connection.HttpClient, $"https://api.flow.microsoft.com/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..50d060d05 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/DisableFlow.cs @@ -21,7 +21,7 @@ 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(); + RestHelper.PostAsync(Connection.HttpClient, $"https://api.flow.microsoft.com/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..0adbcecd1 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/EnableFlow.cs @@ -21,7 +21,7 @@ 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(); + RestHelper.PostAsync(Connection.HttpClient, $"https://api.flow.microsoft.com/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..c64ad3aac 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/ExportFlow.cs @@ -161,7 +161,7 @@ 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(); + var json = RestHelper.PostAsync(Connection.HttpClient, $"https://api.flow.microsoft.com/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/GetFlowOwner.cs b/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs index 82f76842d..d8df71757 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlowOwner.cs @@ -32,7 +32,7 @@ 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(); + var flowOwners = GraphHelper.GetResultCollectionAsync(Connection, $"https://api.flow.microsoft.com/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..5f9a0c403 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/GetFlowRun.cs @@ -20,6 +20,7 @@ public class GetFlowRun : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = "https://api.flow.microsoft.com/"; var environmentName = Environment.GetName(); if (string.IsNullOrEmpty(environmentName)) { @@ -35,12 +36,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..5b50704ef 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlow.cs @@ -26,6 +26,7 @@ public class RemoveFlow : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = "https://api.flow.microsoft.com/"; var environmentName = Environment.GetName(); var flowName = Identity.GetName(); @@ -38,10 +39,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 +53,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..0fbde3b3c 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RemoveFlowOwner.cs @@ -75,7 +75,7 @@ protected override void ExecuteCmdlet() if(Force || ShouldContinue($"Remove flow owner with id '{user.Id.Value}' from flow '{flowName}'?", "Remove flow owner")) { 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, $"https://api.flow.microsoft.com/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..c1ffe0a7e 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/RestartFlowRun.cs @@ -25,6 +25,7 @@ public class RestartFlowRun : PnPAzureManagementApiCmdlet protected override void ExecuteCmdlet() { + string baseUrl = "https://api.flow.microsoft.com/"; var environmentName = Environment.GetName(); if (string.IsNullOrEmpty(environmentName)) { @@ -46,8 +47,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..c56a566d4 100644 --- a/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs +++ b/src/Commands/PowerPlatform/PowerAutomate/StopFlowRun.cs @@ -43,7 +43,7 @@ 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(); + RestHelper.PostAsync(Connection.HttpClient, $"https://api.flow.microsoft.com/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/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/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/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/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 47ccbfaa1..fdaf6dc62 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.3.29 \ No newline at end of file +2.3.39 \ No newline at end of file