Copies a folder or file to a different location. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Notice that if copying between sites or to a subsite you cannot specify a target filename, only a folder name.
Copies a folder named MyProjectFiles in the document library called Documents located in the current site to the root folder of the library named Documents in the site collection otherproject. If a folder named MyProjectFiles already exists, it will overwrite it.
Copies a file named company.docx located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a file named company.docx already exists, it won't perform the copy.
Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it won't perform the copy. Only the latest version of the file will be copied and its history will be discarded.
Copies a folder named Archive located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a folder named Archive already exists, it will overwrite it.
Copies a file named company.docx located in a document library called Documents to the document library named Documents in a subsite named Subsite keeping the file name.
Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it will still perform the copy and replace the original company.docx file.
Copies a folder named MyDocs in the document library called Documents located in the current site to the site collection otherproject. If the MyDocs folder exist it will copy into it, if not it will be created.
Copies a file named company.docx from the current document library to the documents library in SubSite2. It will not wait for the action to return but returns job information instead. The Receive-PnPCopyMoveJobStatus cmdlet will return the job status.
-
PARAMETERS
-
-Force
-
If provided, no confirmation will be requested and the action will be performed
If provided, only the latest version of the document will be copied and its history will be discarded. If not provided, all historical versions will be copied.
If provided, if a file already exists at the TargetUrl, it will be overwritten. If omitted, the copy operation will be canceled if the file already exists at the TargetUrl location.
Site or server relative URL specifying the file or folder to copy. Must include the file name if it is a file or the entire path to the folder if it is a folder.
If specified the task will return immediately after creating the copy job. The cmdlet will return a job object which can be used with Receive-PnPCopyMoveJobStatus to retrieve the status of the job.
PnP PowerShell exists out of 705 cmdlets which can help you in setting up, configuring, maintaining and using various Microsoft 365 products from one single connection. Each of the cmdlets is documented to aid in learning how to use it. Find the available cmdlets below.
+
PnP PowerShell exists out of 704 cmdlets which can help you in setting up, configuring, maintaining and using various Microsoft 365 products from one single connection. Each of the cmdlets is documented to aid in learning how to use it. Find the available cmdlets below.
1: Only available in the latest nightly build. All the others can also be used using the latest stable release. 2: Cmdlet is an alias of another cmdlet, used to provide backwards compatibility.
diff --git a/index.json b/index.json
index 08b09eace..79ad9644a 100644
--- a/index.json
+++ b/index.json
@@ -109,6 +109,11 @@
"title": "Visual Studio Code Extension | PnP PowerShell",
"keywords": "Visual Studio Code Extension If you like using Visual Studio Code to develop your PnP PowerShell scripts, you might want to try the PnP PowerShell extension to boost your productivity. It provides various features that may be helpful when creating scripts using PnP PowerShell. Currently, the extension provides the following: full docs for every PnP PowerShell command directly in VS Code samples gallery with samples from PnP script sample repo snippets with all possible commands Check out the PnP PowerShell Visual Studio Code Extension page for more information."
},
+ "cmdlets/Add-PnPAdaptiveScopeProperty.html": {
+ "href": "cmdlets/Add-PnPAdaptiveScopeProperty.html",
+ "title": "Add-PnPAdaptiveScopeProperty | PnP PowerShell",
+ "keywords": "Add-PnPAdaptiveScopeProperty SYNOPSIS This is an alias for Set-PnPAdaptiveScopeProperty. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Add-PnPAlert.html": {
"href": "cmdlets/Add-PnPAlert.html",
"title": "Add-PnPAlert | PnP PowerShell",
@@ -179,6 +184,21 @@
"title": "Add-PnPDocumentSet | PnP PowerShell",
"keywords": "Add-PnPDocumentSet SYNOPSIS Creates a new document set in a library. SYNTAX Add-PnPDocumentSet -List -Name -ContentType [-Connection ] DESCRIPTION Allows to add new document set to library. EXAMPLES EXAMPLE 1 Add-PnPDocumentSet -List \"Documents\" -ContentType \"Test Document Set\" -Name \"Test\" This will add a new document set based upon the 'Test Document Set' content type to a list called 'Documents'. The document set will be named 'Test' 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. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -ContentType The name of the content type, its ID or an actual content object referencing to the document set Type: ContentTypePipeBind Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -List The name of the list, its ID or an actual list object from where the document set needs to be added Type: ListPipeBind Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Name The name of the document set Type: String Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Add-PnPEntraIDGroupMember.html": {
+ "href": "cmdlets/Add-PnPEntraIDGroupMember.html",
+ "title": "Add-PnPEntraIDGroupMember | PnP PowerShell",
+ "keywords": "Add-PnPEntraIDGroupMember SYNOPSIS This is an alias for Add-PnPAzureADGroupMember. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Add-PnPEntraIDGroupOwner.html": {
+ "href": "cmdlets/Add-PnPEntraIDGroupOwner.html",
+ "title": "Add-PnPEntraIDGroupOwner | PnP PowerShell",
+ "keywords": "Add-PnPEntraIDGroupOwner SYNOPSIS This is an alias for Add-PnPAzureADGroupOwner. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Add-PnPEntraIDServicePrincipalAppRole.html": {
+ "href": "cmdlets/Add-PnPEntraIDServicePrincipalAppRole.html",
+ "title": "Add-PnPEntraIDServicePrincipalAppRole | PnP PowerShell",
+ "keywords": "Add-PnPEntraIDServicePrincipalAppRole SYNOPSIS This is an alias for Add-PnPAzureADServicePrincipalAppRole. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Add-PnPEventReceiver.html": {
"href": "cmdlets/Add-PnPEventReceiver.html",
"title": "Add-PnPEventReceiver | PnP PowerShell",
@@ -399,6 +419,11 @@
"title": "Add-PnPPlannerTask | PnP PowerShell",
"keywords": "Add-PnPPlannerTask SYNOPSIS Required Permissions Microsoft Graph API: Group.ReadWrite.All Adds a new task to a planner bucket SYNTAX By Group Add-PnPPlannerTask -Group -Plan -Bucket -Title [-PercentComplete ] [-DueDateTime ] [-StartDateTime ] [-AssignedTo ] [-Description ] By Plan Id Add-PnPPlannerTask -Bucket -PlanId -Title [-PercentComplete ] [-DueDateTime ] [-StartDateTime ] [-AssignedTo ] [-Description ] DESCRIPTION This cmdlet adds a new task to Planner bucket EXAMPLES Example 1 Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" This cmdlet adds a new task. Example 2 Add-PnPPlannerTask -PlanId \"QvfkTd1mc02gwxHjHC_43JYABhAy\" -Bucket \"Todos\" -Title \"Design booth layout\" This cmdlet adds a new task. Example 3 Add-PnPPlannerTask -Group \"Marketing\" -Plan \"Conference Plan\" -Bucket \"Todos\" -Title \"Design booth layout\" -AssignedTo \"user@contoso.com\",\"manager@contoso.com\" This cmdlet adds a new task and assigns to user@contoso.com and manager@contoso.com PARAMETERS -Bucket The bucket to add the task too Type: PlannerBucketPipeBind Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Group Specify the group id or name of the group owning the plan. Type: PlannerGroupPipeBind Parameter Sets: By Group Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Plan Specify the id or name of the plan to add the tasks to. Type: PlannerPlanPipeBind Parameter Sets: By Group Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -PlanId Specify the id the plan to add the tasks to. Type: String Parameter Sets: By Plan Id Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Title Specify the title of the task Type: String Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -AssignedTo Specify the email(s) of the user to assign the task to. Type: String[] Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -StartDateTime Defines the start date of the task. Type: DateTime Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -DueDateTime Specify the due date. Type: DateTime Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -PercentComplete Defines the percentage of completeness of the task. Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Priority Sets the priority of the task. Value should be a number between 0 and 10. values 0 and 1 are interpreted as Urgent values 2, 3 and 4 are interpreted as Important values 5, 6 and 7 are interpreted as Medium values 8, 9 and 10 are interpreted as Low Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Description Sets the description (notes) of the task. Type: String Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters. RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Add-PnPPropertyBagValue.html": {
+ "href": "cmdlets/Add-PnPPropertyBagValue.html",
+ "title": "Add-PnPPropertyBagValue | PnP PowerShell",
+ "keywords": "Add-PnPPropertyBagValue SYNOPSIS This is an alias for Set-PnPPropertyBagValue. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Add-PnPPublishingImageRendition.html": {
"href": "cmdlets/Add-PnPPublishingImageRendition.html",
"title": "Add-PnPPublishingImageRendition | PnP PowerShell",
@@ -419,6 +444,11 @@
"title": "Add-PnPRoleDefinition | PnP PowerShell",
"keywords": "Add-PnPRoleDefinition SYNOPSIS Adds a Role Definition (Permission Level) to the site collection in the current context SYNTAX Add-PnPRoleDefinition -RoleName [-Clone ] [-Include ] [-Exclude ] [-Description ] [-Connection ] DESCRIPTION This command allows adding a custom Role Definition (Permission Level) to the site collection in the current context. It does not replace or remove existing Role Definitions. EXAMPLES EXAMPLE 1 Add-PnPRoleDefinition -RoleName \"CustomPerm\" Creates additional permission level with no permission flags enabled. EXAMPLE 2 Add-PnPRoleDefinition -RoleName \"NoDelete\" -Clone \"Contribute\" -Exclude DeleteListItems Creates additional permission level by cloning \"Contribute\" and removes flags DeleteListItems EXAMPLE 3 Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone \"Contribute\" -Exclude DeleteListItems, EditListItems Creates additional permission level by cloning \"Contribute\" and removes flags DeleteListItems and EditListItems EXAMPLE 4 $roleDefinition = Get-PnPRoleDefinition -Identity \"Contribute\" Add-PnPRoleDefinition -RoleName \"AddOnly\" -Clone $roleDefinition -Exclude DeleteListItems, EditListItems Creates additional permission level by cloning \"Contribute\" and removes flags DeleteListItems and EditListItems PARAMETERS -Clone An existing permission level or the name of an permission level to clone as base template. Type: RoleDefinitionPipeBind Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Connection Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Description Optional description for the new permission level. Type: String Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Exclude Specifies permission flag(s) to disable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum Type: PermissionKind[] Parameter Sets: (All) Accepted values: EmptyMask, ViewListItems, AddListItems, EditListItems, DeleteListItems, ApproveItems, OpenItems, ViewVersions, DeleteVersions, CancelCheckout, ManagePersonalViews, ManageLists, ViewFormPages, AnonymousSearchAccessList, Open, ViewPages, AddAndCustomizePages, ApplyThemeAndBorder, ApplyStyleSheets, ViewUsageData, CreateSSCSite, ManageSubwebs, CreateGroups, ManagePermissions, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, ManageWeb, AnonymousSearchAccessWebLists, UseClientIntegration, UseRemoteAPIs, ManageAlerts, CreateAlerts, EditMyUserInfo, EnumeratePermissions, FullMask Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Include Specifies permission flag(s) to enable. Please visit https://learn.microsoft.com/previous-versions/office/sharepoint-csom/ee536458(v%3Doffice.15) for the PermissionKind enum Type: PermissionKind[] Parameter Sets: (All) Accepted values: EmptyMask, ViewListItems, AddListItems, EditListItems, DeleteListItems, ApproveItems, OpenItems, ViewVersions, DeleteVersions, CancelCheckout, ManagePersonalViews, ManageLists, ViewFormPages, AnonymousSearchAccessList, Open, ViewPages, AddAndCustomizePages, ApplyThemeAndBorder, ApplyStyleSheets, ViewUsageData, CreateSSCSite, ManageSubwebs, CreateGroups, ManagePermissions, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, ManageWeb, AnonymousSearchAccessWebLists, UseClientIntegration, UseRemoteAPIs, ManageAlerts, CreateAlerts, EditMyUserInfo, EnumeratePermissions, FullMask Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -RoleName Name of new permission level. Type: String Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Add-PnPSiteClassification.html": {
+ "href": "cmdlets/Add-PnPSiteClassification.html",
+ "title": "Add-PnPSiteClassification | PnP PowerShell",
+ "keywords": "Add-PnPSiteClassification SYNOPSIS This is an alias for Add-PnPAvailableSiteClassification. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Add-PnPSiteCollectionAdmin.html": {
"href": "cmdlets/Add-PnPSiteCollectionAdmin.html",
"title": "Add-PnPSiteCollectionAdmin | PnP PowerShell",
@@ -579,6 +609,16 @@
"title": "Clear-PnPDefaultColumnValues | PnP PowerShell",
"keywords": "Clear-PnPDefaultColumnValues SYNOPSIS Clear default column values for a document library SYNTAX Clear-PnPDefaultColumnValues [-List] -Field [-Folder ] [-Connection ] DESCRIPTION Clear default column values for a document library, per folder, or for the root folder if the folder parameter has not been specified. EXAMPLES EXAMPLE 1 Clear-PnPDefaultColumnValues -List Documents -Field MyField Clears the default value for the field MyField on a library EXAMPLE 2 Clear-PnPDefaultColumnValues -List Documents -Field MyField -Folder A Clears the default value for the field MyField on the folder A on a library 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. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Field The internal name, id or a reference to a field Type: FieldPipeBind Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Folder A library relative folder path, if not specified it will set the default column values on the root folder of the library ('/') Type: String Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -List The ID, Name or Url of the list. Type: ListPipeBind 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"
},
+ "cmdlets/Clear-PnPEntraIDGroupMember.html": {
+ "href": "cmdlets/Clear-PnPEntraIDGroupMember.html",
+ "title": "Clear-PnPEntraIDGroupMember | PnP PowerShell",
+ "keywords": "Clear-PnPEntraIDGroupMember SYNOPSIS This is an alias for Clear-PnPAzureADGroupMember. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Clear-PnPEntraIDGroupOwner.html": {
+ "href": "cmdlets/Clear-PnPEntraIDGroupOwner.html",
+ "title": "Clear-PnPEntraIDGroupOwner | PnP PowerShell",
+ "keywords": "Clear-PnPEntraIDGroupOwner SYNOPSIS This is an alias for Clear-PnPAzureADGroupOwner. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Clear-PnPListItemAsRecord.html": {
"href": "cmdlets/Clear-PnPListItemAsRecord.html",
"title": "Clear-PnPListItemAsRecord | PnP PowerShell",
@@ -647,7 +687,7 @@
"cmdlets/Copy-PnPFolder.html": {
"href": "cmdlets/Copy-PnPFolder.html",
"title": "Copy-PnPFolder | PnP PowerShell",
- "keywords": "Copy-PnPFolder SYNOPSIS Copies a folder or file to a different location SYNTAX Copy-PnPFolder [-SourceUrl] [-TargetUrl] [-Overwrite] [-Force] [-IgnoreVersionHistory] [-NoWait] [-Connection ] DESCRIPTION Copies a folder or file to a different location. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Notice that if copying between sites or to a subsite you cannot specify a target filename, only a folder name. Copying files and folders is bound to some restrictions. You can find more on it here: https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#moving-and-copying-across-sites EXAMPLES EXAMPLE 1 Copy-PnPFolder -SourceUrl \"Shared Documents/MyProjectfiles\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite Copies a folder named MyProjectFiles in the document library called Documents located in the current site to the root folder of the library named Documents in the site collection otherproject. If a folder named MyProjectFiles already exists, it will overwrite it. EXAMPLE 2 Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" Copies a file named company.docx located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a file named company.docx already exists, it won't perform the copy. EXAMPLE 3 Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -IgnoreVersionHistory Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it won't perform the copy. Only the latest version of the file will be copied and its history will be discarded. EXAMPLE 4 Copy-PnPFolder -SourceUrl \"/sites/project/Shared Documents/Archive\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite Copies a folder named Archive located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a folder named Archive already exists, it will overwrite it. EXAMPLE 5 Copy-PnPFolder -SourceUrl \"Documents/company.docx\" -TargetUrl \"Documents/company2.docx\" Copies a file named company.docx located in a document library called Documents to a new document named company2.docx in the same library. EXAMPLE 6 Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"Shared Documents2/company.docx\" Copies a file named company.docx located in a document library called Documents to a document library called Documents2 in the same site. EXAMPLE 7 Copy-PnPFolder -SourceUrl \"Shared DocuDocuments/company.docx\" -TargetUrl \"Subsite/Shared Documents\" Copies a file named company.docx located in a document library called Documents to the document library named Documents in a subsite named Subsite keeping the file name. EXAMPLE 8 Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"/sites/otherproject/Shared Documents\" -Overwrite Copies a file named company.docx located in a document library called Documents in the current site to the site collection otherproject. If a file named company.docx already exists, it will still perform the copy and replace the original company.docx file. EXAMPLE 9 Copy-PnPFolder -SourceUrl \"Shared Documents/MyDocs\" -TargetUrl \"/sites/otherproject/Documents\" -Overwrite Copies a folder named MyDocs in the document library called Documents located in the current site to the site collection otherproject. If the MyDocs folder exist it will copy into it, if not it will be created. EXAMPLE 10 Copy-PnPFolder -SourceUrl \"SubSite1/Documents/company.docx\" -TargetUrl \"SubSite2/Documents\" Copies a file named company.docx in the library named Documents in SubSite1 to the library named Documents in SubSite2. EXAMPLE 11 $job = Copy-PnPFolder -SourceUrl \"Shared Documents/company.docx\" -TargetUrl \"SubSite2/Shared Documents\" -NoWait $jobStatus = Receive-PnPCopyMoveJobStatus -Job $result if($jobStatus.JobState == 0) { Write-Host \"Job finished\" } Copies a file named company.docx from the current document library to the documents library in SubSite2. It will not wait for the action to return but returns job information instead. The Receive-PnPCopyMoveJobStatus cmdlet will return the job status. PARAMETERS -Force If provided, no confirmation will be requested and the action will be performed Type: SwitchParameter Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -IgnoreVersionHistory If provided, only the latest version of the document will be copied and its history will be discarded. If not provided, all historical versions will be copied. Type: SwitchParameter Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Overwrite If provided, if a file already exists at the TargetUrl, it will be overwritten. If omitted, the copy operation will be canceled if the file already exists at the TargetUrl location. Type: SwitchParameter Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -SourceUrl Site or server relative URL specifying the file or folder to copy. Must include the file name if it is a file or the entire path to the folder if it is a folder. Type: String Parameter Sets: (All) Aliases: SiteRelativeUrl, ServerRelativeUrl Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False -TargetUrl Site or server relative URL where to copy the file or folder to. Must not include the file name. Type: String Parameter Sets: (All) Aliases: TargetServerRelativeLibrary Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False -NoWait If specified the task will return immediately after creating the copy job. The cmdlet will return a job object which can be used with Receive-PnPCopyMoveJobStatus to retrieve the status of the job. 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"
+ "keywords": "Copy-PnPFolder SYNOPSIS This is an alias for Copy-PnPFile. RELATED LINKS Microsoft 365 Patterns and Practices"
},
"cmdlets/Copy-PnPItemProxy.html": {
"href": "cmdlets/Copy-PnPItemProxy.html",
@@ -944,6 +984,11 @@
"title": "Get-PnPChangeLog | PnP PowerShell",
"keywords": "Get-PnPChangeLog SYNOPSIS Returns the changelog for PnP PowerShell SYNTAX Get-PnPChangeLog [-Nightly] DESCRIPTION This cmdlets returns the changelog in markdown format. It is retrieved dynamically from GitHub. EXAMPLES EXAMPLE 1 Get-PnPChangeLog Returns the changelog for the currently released version. EXAMPLE 2 Get-PnPChangeLog -Nightly Returns the changelog for the current nightly build. PARAMETERS -Nightly Return the changelog for the nightly build 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"
},
+ "cmdlets/Get-PnPClientSidePage.html": {
+ "href": "cmdlets/Get-PnPClientSidePage.html",
+ "title": "Get-PnPClientSidePage | PnP PowerShell",
+ "keywords": "Get-PnPClientSidePage SYNOPSIS This is an alias for Get-PnPPage. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPCompatibleHubContentTypes.html": {
"href": "cmdlets/Get-PnPCompatibleHubContentTypes.html",
"title": "Get-PnPCompatibleHubContentTypes | PnP PowerShell",
@@ -1024,6 +1069,66 @@
"title": "Get-PnPDocumentSetTemplate | PnP PowerShell",
"keywords": "Get-PnPDocumentSetTemplate SYNOPSIS Retrieves a document set template SYNTAX Get-PnPDocumentSetTemplate [-Identity] [-Connection ] [-Includes ] DESCRIPTION Allows to retrieve a document set template. EXAMPLES EXAMPLE 1 Get-PnPDocumentSetTemplate -Identity \"Test Document Set\" This will get the document set template with the name \"Test Document Set\" EXAMPLE 2 Get-PnPDocumentSetTemplate -Identity \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\" This will get the document set template with the id \"0x0120D520005DB65D094035A241BAC9AF083F825F3B\" 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. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Identity Either specify a name, an id, a document set template object or a content type object Type: DocumentSetPipeBind 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"
},
+ "cmdlets/Get-PnPEntraIDActivityReportDirectoryAudit.html": {
+ "href": "cmdlets/Get-PnPEntraIDActivityReportDirectoryAudit.html",
+ "title": "Get-PnPEntraIDActivityReportDirectoryAudit | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDActivityReportDirectoryAudit SYNOPSIS This is an alias for Get-PnPAzureADActivityReportDirectoryAudit. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDActivityReportSignIn.html": {
+ "href": "cmdlets/Get-PnPEntraIDActivityReportSignIn.html",
+ "title": "Get-PnPEntraIDActivityReportSignIn | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDActivityReportSignIn SYNOPSIS This is an alias for Get-PnPAzureADActivityReportSignIn. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDApp.html": {
+ "href": "cmdlets/Get-PnPEntraIDApp.html",
+ "title": "Get-PnPEntraIDApp | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDApp SYNOPSIS This is an alias for Get-PnPAzureADApp. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDAppPermission.html": {
+ "href": "cmdlets/Get-PnPEntraIDAppPermission.html",
+ "title": "Get-PnPEntraIDAppPermission | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDAppPermission SYNOPSIS This is an alias for Get-PnPAzureADAppPermission. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDAppSitePermission.html": {
+ "href": "cmdlets/Get-PnPEntraIDAppSitePermission.html",
+ "title": "Get-PnPEntraIDAppSitePermission | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDAppSitePermission SYNOPSIS This is an alias for Get-PnPAzureADAppSitePermission. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDGroup.html": {
+ "href": "cmdlets/Get-PnPEntraIDGroup.html",
+ "title": "Get-PnPEntraIDGroup | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDGroup SYNOPSIS This is an alias for Get-PnPAzureADGroup. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDGroupMember.html": {
+ "href": "cmdlets/Get-PnPEntraIDGroupMember.html",
+ "title": "Get-PnPEntraIDGroupMember | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDGroupMember SYNOPSIS This is an alias for Get-PnPAzureADGroupMember. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDGroupOwner.html": {
+ "href": "cmdlets/Get-PnPEntraIDGroupOwner.html",
+ "title": "Get-PnPEntraIDGroupOwner | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDGroupOwner SYNOPSIS This is an alias for Get-PnPAzureADGroupOwner. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDServicePrincipal.html": {
+ "href": "cmdlets/Get-PnPEntraIDServicePrincipal.html",
+ "title": "Get-PnPEntraIDServicePrincipal | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDServicePrincipal SYNOPSIS This is an alias for Get-PnPAzureADServicePrincipal. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDServicePrincipalAssignedAppRole.html": {
+ "href": "cmdlets/Get-PnPEntraIDServicePrincipalAssignedAppRole.html",
+ "title": "Get-PnPEntraIDServicePrincipalAssignedAppRole | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDServicePrincipalAssignedAppRole SYNOPSIS This is an alias for Get-PnPAzureADServicePrincipalAssignedAppRole. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDServicePrincipalAvailableAppRole.html": {
+ "href": "cmdlets/Get-PnPEntraIDServicePrincipalAvailableAppRole.html",
+ "title": "Get-PnPEntraIDServicePrincipalAvailableAppRole | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDServicePrincipalAvailableAppRole SYNOPSIS This is an alias for Get-PnPAzureADServicePrincipalAvailableAppRole. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
+ "cmdlets/Get-PnPEntraIDUser.html": {
+ "href": "cmdlets/Get-PnPEntraIDUser.html",
+ "title": "Get-PnPEntraIDUser | PnP PowerShell",
+ "keywords": "Get-PnPEntraIDUser SYNOPSIS This is an alias for Get-PnPAzureADUser. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPEventReceiver.html": {
"href": "cmdlets/Get-PnPEventReceiver.html",
"title": "Get-PnPEventReceiver | PnP PowerShell",
@@ -1289,11 +1394,21 @@
"title": "Get-PnPMicrosoft365GroupMember | PnP PowerShell",
"keywords": "Get-PnPMicrosoft365GroupMember SYNOPSIS Required Permissions Microsoft Graph API : at least Group.Read.All Microsoft Graph API : Directory.Read.All Returns the members of a particular Microsoft 365 Group SYNTAX Get-PnPMicrosoft365GroupMember -Identity [-UserType ] DESCRIPTION Returns the members of a particular Microsoft 365 Group EXAMPLES EXAMPLE 1 Get-PnPMicrosoft365GroupMember -Identity $groupId Retrieves all the members of a specific Microsoft 365 Group based on its ID EXAMPLE 2 Get-PnPMicrosoft365GroupMember -Identity $group Retrieves all the members of a specific Microsoft 365 Group based on the group's object instance EXAMPLE 3 Get-PnPMicrosoft365GroupMember -Identity \"Sales\" | Where-Object UserType -eq Guest Returns all the guest users of the Microsoft 365 Group named \"Sales\" PARAMETERS -Identity The Identity of the Microsoft 365 Group Type: Microsoft365GroupPipeBind Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Get-PnPMicrosoft365GroupMembers.html": {
+ "href": "cmdlets/Get-PnPMicrosoft365GroupMembers.html",
+ "title": "Get-PnPMicrosoft365GroupMembers | PnP PowerShell",
+ "keywords": "Get-PnPMicrosoft365GroupMembers SYNOPSIS This is an alias for Get-PnPMicrosoft365GroupMember. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPMicrosoft365GroupOwner.html": {
"href": "cmdlets/Get-PnPMicrosoft365GroupOwner.html",
"title": "Get-PnPMicrosoft365GroupOwner | PnP PowerShell",
"keywords": "Get-PnPMicrosoft365GroupOwner SYNOPSIS Required Permissions Microsoft Graph API : at least Group.Read.All Microsoft Graph API : Directory.Read.All Gets owners of a particular Microsoft 365 Group SYNTAX Get-PnPMicrosoft365GroupOwner -Identity DESCRIPTION Allows to retrieve owners of Microsoft 365 Group. EXAMPLES EXAMPLE 1 Get-PnPMicrosoft365GroupOwner -Identity $groupId Retrieves all the owners of a specific Microsoft 365 Group based on its ID EXAMPLE 2 Get-PnPMicrosoft365GroupOwner -Identity $group Retrieves all the owners of a specific Microsoft 365 Group based on the group's object instance PARAMETERS -Identity The Identity of the Microsoft 365 Group. Type: Microsoft365GroupPipeBind Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Get-PnPMicrosoft365GroupOwners.html": {
+ "href": "cmdlets/Get-PnPMicrosoft365GroupOwners.html",
+ "title": "Get-PnPMicrosoft365GroupOwners | PnP PowerShell",
+ "keywords": "Get-PnPMicrosoft365GroupOwners SYNOPSIS This is an alias for Get-PnPMicrosoft365GroupOwner. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPMicrosoft365GroupSettingTemplates.html": {
"href": "cmdlets/Get-PnPMicrosoft365GroupSettingTemplates.html",
"title": "Get-PnPMicrosoft365GroupSettingTemplates | PnP PowerShell",
@@ -1384,6 +1499,11 @@
"title": "Get-PnPPowerApp | PnP PowerShell",
"keywords": "Get-PnPPowerApp SYNOPSIS Required Permissions Azure: management.azure.com Returns the Power Apps for a given environment SYNTAX Get-PnPPowerApp [-Environment ] [-AsAdmin] [-Identity ] [-Connection ] [-Verbose] DESCRIPTION This cmdlet returns the Power Apps for a given enviroment. EXAMPLES Example 1 $environment = Get-PnPPowerPlatformEnvironment Get-PnPPowerApp -Environment $environment This returns all the apps for a given Power Platform environment Example 2 $environment = Get-PnPPowerPlatformEnvironment Get-PnPPowerApp -Environment $environment -Identity fba63225-baf9-4d76-86a1-1b42c917a182 This returns a specific app PARAMETERS -Environment The name of the Power Platform environment or an Environment object to retrieve the available Power Apps for. Type: PowerPlatformEnvironmentPipeBind Parameter Sets: (All) Aliases: Required: False Position: Named Default value: The default environment Accept pipeline input: True Accept wildcard characters: False -Identity The Id of the app to retrieve. Type: PowerAppPipeBind Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -AsAdmin If specified returns all the Power Apps as admin. If not specified only the apps for the current user will be returned. Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Connection Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. Type: PnPConnection 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. 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"
},
+ "cmdlets/Get-PnPPowerPlatformConnector.html": {
+ "href": "cmdlets/Get-PnPPowerPlatformConnector.html",
+ "title": "Get-PnPPowerPlatformConnector | PnP PowerShell",
+ "keywords": "Get-PnPPowerPlatformConnector SYNOPSIS This is an alias for Get-PnPPowerPlatformCustomConnector. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPPowerPlatformCustomConnector.html": {
"href": "cmdlets/Get-PnPPowerPlatformCustomConnector.html",
"title": "Get-PnPPowerPlatformCustomConnector | PnP PowerShell",
@@ -1429,6 +1549,11 @@
"title": "Get-PnPRequestAccessEmails | PnP PowerShell",
"keywords": "Get-PnPRequestAccessEmails SYNOPSIS Returns the request access e-mail addresses SYNTAX Get-PnPRequestAccessEmails [-Connection ] DESCRIPTION Allows to retrieve request access e-mail addresses. EXAMPLES EXAMPLE 1 Get-PnPRequestAccessEmails This will return all the request access e-mail addresses for the current web 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. 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"
},
+ "cmdlets/Get-PnPRetentionLabel.html": {
+ "href": "cmdlets/Get-PnPRetentionLabel.html",
+ "title": "Get-PnPRetentionLabel | PnP PowerShell",
+ "keywords": "Get-PnPRetentionLabel SYNOPSIS This is an alias for Get-PnPTenantRetentionLabel. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPRoleDefinition.html": {
"href": "cmdlets/Get-PnPRoleDefinition.html",
"title": "Get-PnPRoleDefinition | PnP PowerShell",
@@ -1479,6 +1604,11 @@
"title": "Get-PnPSiteAnalyticsData | PnP PowerShell",
"keywords": "Get-PnPSiteAnalyticsData SYNOPSIS Retrieves analytics data for a site. SYNTAX Return analytics data Get-PnPSiteAnalyticsData -Url [-Connection ] DESCRIPTION Retrieves site analytics data within a specific date range. EXAMPLES EXAMPLE 1 Get-PnPSiteAnalyticsData -All Retrieves all available analytics data for the specified site. EXAMPLE 2 Get-PnPSiteAnalyticsData -LastSevenDays Retrieves analytics data for the last seven days of the site. EXAMPLE 3 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 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 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. 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. 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. 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 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. 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. 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"
},
+ "cmdlets/Get-PnPSiteClassification.html": {
+ "href": "cmdlets/Get-PnPSiteClassification.html",
+ "title": "Get-PnPSiteClassification | PnP PowerShell",
+ "keywords": "Get-PnPSiteClassification SYNOPSIS This is an alias for Get-PnPAvailableSiteClassification. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPSiteClosure.html": {
"href": "cmdlets/Get-PnPSiteClosure.html",
"title": "Get-PnPSiteClosure | PnP PowerShell",
@@ -1904,6 +2034,11 @@
"title": "Get-PnPWebhookSubscription | PnP PowerShell",
"keywords": "Get-PnPWebhookSubscription SYNOPSIS Gets all the Webhook subscriptions of the resource SYNTAX Get-PnPWebhookSubscription [-List ] [-Connection ] DESCRIPTION Allows to retrieve Webhook subscriptions of specified list. EXAMPLES EXAMPLE 1 Get-PnPWebhookSubscription -List MyList Gets all Webhook subscriptions of the list MyList EXAMPLE 2 Get-PnPList | Get-PnPWebhookSubscription Gets all Webhook subscriptions of the all the lists 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. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -List The list object or name to get the Webhook subscriptions from Type: ListPipeBind 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"
},
+ "cmdlets/Get-PnPWebhookSubscriptions.html": {
+ "href": "cmdlets/Get-PnPWebhookSubscriptions.html",
+ "title": "Get-PnPWebhookSubscriptions | PnP PowerShell",
+ "keywords": "Get-PnPWebhookSubscriptions SYNOPSIS This is an alias for Get-PnPWebhookSubscription. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Get-PnPWikiPageContent.html": {
"href": "cmdlets/Get-PnPWikiPageContent.html",
"title": "Get-PnPWikiPageContent | PnP PowerShell",
@@ -1914,6 +2049,11 @@
"title": "Grant-PnPAzureADAppSitePermission | PnP PowerShell",
"keywords": "Grant-PnPAzureADAppSitePermission SYNOPSIS Required Permissions Microsoft Graph API: Sites.FullControl.All Adds permissions for a given Azure Active Directory application registration. SYNTAX Grant-PnPAzureADAppSitePermission -AppId -DisplayName -Permissions [-Site ] [-Connection ] DESCRIPTION This cmdlet adds permissions for a given Azure Active Directory application registration in a site collection. It is used in conjunction with the Azure Active Directory SharePoint application permission Sites.Selected. EXAMPLES EXAMPLE 1 Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions Read Adds permissions for the Azure Active Directory application registration with the specific application id and sets the rights to 'Read' access for the currently connected site collection. EXAMPLE 2 Grant-PnPAzureADAppSitePermission -AppId \"aa37b89e-75a7-47e3-bdb6-b763851c61b6\" -DisplayName \"TestApp\" -Permissions FullControl -Site https://contoso.sharepoint.com/sites/projects Adds permissions for the Azure Active Directory application registration with the specific application id and sets the rights to 'FullControl' access for the site collection at the provided URL. PARAMETERS -AppId Specify the AppId of the Azure Active Directory application registration to grant permission for. Type: Guid 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 Get-PnPConnection. Type: PnPConnection Parameter Sets: (All) Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -DisplayName The display name to set for the application permission you're adding. Only for visual reference purposes, does not need to match the name of the application in Azure Active Directory. Type: String Parameter Sets: (All) Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Permissions Specifies the permissions to set for the Azure Active Directory application registration which can either be Read, Write, Manage or FullControl. Type: String Parameter Sets: (All) Required: True Accepted values: Read, Write, Manage, FullControl Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False -Site Optional url of a site to set the permissions for. Defaults to the current site if not provided. Type: SitePipeBind Parameter Sets: (All) Required: True Position: Named Default value: Currently connected site Accept pipeline input: False Accept wildcard characters: False RELATED LINKS Microsoft 365 Patterns and Practices"
},
+ "cmdlets/Grant-PnPEntraIDAppSitePermission.html": {
+ "href": "cmdlets/Grant-PnPEntraIDAppSitePermission.html",
+ "title": "Grant-PnPEntraIDAppSitePermission | PnP PowerShell",
+ "keywords": "Grant-PnPEntraIDAppSitePermission SYNOPSIS This is an alias for Grant-PnPAzureADAppSitePermission. RELATED LINKS Microsoft 365 Patterns and Practices"
+ },
"cmdlets/Grant-PnPHubSiteRights.html": {
"href": "cmdlets/Grant-PnPHubSiteRights.html",
"title": "Grant-PnPHubSiteRights | PnP PowerShell",
@@ -1974,6 +2114,11 @@
"title": "Invoke-PnPSPRestMethod | PnP PowerShell",
"keywords": "Invoke-PnPSPRestMethod SYNOPSIS Invokes a REST request towards a SharePoint site. SYNTAX Invoke-PnPSPRestMethod -Url [-Method ] [-Content