-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pnp:dev' into unlockrecord
- Loading branch information
Showing
626 changed files
with
9,156 additions
and
8,338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"Updated": "20241202-025444", | ||
"PnPPowerShell": "ec09501bddd2e692a5f81025a52ce7b4a0617455", | ||
"PnPFramework": "f741f2780ac9e24d1b65bb9dddaa5695982905a6", | ||
"PnPCore": "2d2df5fa676e1fa063eb45907e69a40817eaa6ac" | ||
"Updated": "20241218-024853", | ||
"PnPPowerShell": "614fc0de671cf0dab5f92c2ec4b528dc39158ab9", | ||
"PnPFramework": "af52c5fdc25b6640c0dea0eaebcf9138e364de02", | ||
"PnPCore": "b960b12c188b936c43e846e2774a629969a016a1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
--- | ||
document type: cmdlet | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
HelpUri: '' | ||
Locale: en-US | ||
Module Name: PnP.PowerShell | ||
ms.date: 12/06/2024 | ||
PlatyPS schema version: 2024-05-01 | ||
title: Get-PnPCopilotAgent | ||
--- | ||
|
||
# Get-PnPCopilotAgent | ||
|
||
## SYNOPSIS | ||
|
||
Returns the Microsoft Copilot Agents (*.agent) in a site collection. | ||
|
||
## SYNTAX | ||
|
||
### __AllParameterSets | ||
|
||
```powershell | ||
Get-PnPCopilotAgent [-ServerRelativeUrl <string>] [-Connection <PnPConnection>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
This cmdlet iterates through the document libraries in a site and finds the copilot agents in that site. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
Get-PnPCopilotAgent | ||
``` | ||
|
||
This will return all the Microsoft Copilot agents in a site. | ||
|
||
|
||
### Example 2 | ||
|
||
```powershell | ||
Get-PnPCopilotAgent -ServerRelativeUrl /sites/demo/siteassets/copilots/approved/main.agent | ||
``` | ||
|
||
This will return the specific Microsoft Copilot agent if it exists. | ||
|
||
|
||
## 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: PnP.PowerShell.Commands.Base.PnPConnection | ||
DefaultValue: '' | ||
SupportsWildcards: false | ||
ParameterValue: [] | ||
Aliases: [] | ||
ParameterSets: | ||
- Name: (All) | ||
Position: Named | ||
IsRequired: false | ||
ValueFromPipeline: false | ||
ValueFromPipelineByPropertyName: false | ||
ValueFromRemainingArguments: false | ||
DontShow: false | ||
AcceptedValues: [] | ||
HelpMessage: '' | ||
``` | ||
### -ServerRelativeUrl | ||
The server relative URL to the .agent file. | ||
```yaml | ||
Type: System.String | ||
DefaultValue: '' | ||
SupportsWildcards: false | ||
ParameterValue: [] | ||
Aliases: [] | ||
ParameterSets: | ||
- Name: (All) | ||
Position: Named | ||
IsRequired: false | ||
ValueFromPipeline: false | ||
ValueFromPipelineByPropertyName: false | ||
ValueFromRemainingArguments: false | ||
DontShow: false | ||
AcceptedValues: [] | ||
HelpMessage: '' | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, | ||
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, | ||
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see | ||
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
Module Name: PnP.PowerShell | ||
schema: 2.0.0 | ||
applicable: SharePoint Online | ||
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPFileRetentionLabel.html | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
title: Get-PnPFileRetentionLabel | ||
--- | ||
|
||
# Get-PnPFileRetentionLabel | ||
|
||
## SYNOPSIS | ||
|
||
**Required Permissions** | ||
|
||
* Microsoft Graph API : One of Files.Read.All, Sites.Read.All, Files.ReadWrite.All, Sites.ReadWrite.All | ||
|
||
Retrieves the retention label information for a file in SharePoint. | ||
|
||
## SYNTAX | ||
```powershell | ||
Get-PnPFileRetentionLabel -Url <String> | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
The Get-PnPFileRetentionLabel cmdlet retrieves the retention label information for a file in SharePoint using Microsoft Graph. It takes a URL as input, decodes it, and specifically encodes the '+' character if it is part of the filename. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
This example retrieves the retention label information for the file at the specified URL. | ||
|
||
```powershell | ||
Get-PnPFileRetentionLabel -Url "/sites/Marketing/Shared Documents/Report.pptx" | ||
``` | ||
|
||
This example retrieves the retention label information for the file at the specified URL. | ||
|
||
## PARAMETERS | ||
|
||
### -Url | ||
Specifies the URL of the file for which to retrieve the retention label information. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.