You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: copilot/copilot-prompt-gallery-export-prompts.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,13 @@ In [Copilot Prompt Gallery](https://m365.cloud.microsoft/copilot-prompts), users
24
24
- The saved, liked, and shared prompts of a specific user.
25
25
- The prompts shared with a specific team.
26
26
27
-
> [!NOTE]
28
-
> The user account running the PowerShell script to export the data needs to be assigned the Global Admin role.
29
-
30
27
## Configure your Windows PowerShell environment
31
28
29
+
The user account running the PowerShell script to export the data needs to be assigned to the Global Administrator role.
30
+
31
+
> [!IMPORTANT]
32
+
> Microsoft recommends that you use roles with the fewest permissions. Using lower permissioned accounts helps improve security for your organization. Global Administrator is a highly privileged role that should be limited to emergency scenarios when you can't use an existing role. To learn more, see [About admin roles in the Microsoft 365 admin center](/microsoft-365/admin/add-users/about-admin-roles).
33
+
32
34
Before you can export prompts that users saved, liked, or shared in Copilot Prompt Gallery, you need to configure your PowerShell environment by doing the following steps:
33
35
34
36
1.[Download the CopilotLabDSR PowerShell script](#download-the-copilotlabdsr-powershell-script)
@@ -47,12 +49,16 @@ Before you can export prompts that users saved, liked, or shared in Copilot Prom
47
49
### Install the MSAL.PS module
48
50
49
51
1. Check if the MSAL.PS module is installed by running the following command in PowerShell:
52
+
50
53
```PowerShell
51
54
Get-Module -ListAvailable MSAL.PS
52
55
```
53
-
2. If the module isn't installed, install the module by running the following command in PowerShell:
56
+
57
+
1. If the module isn't installed, install the module by running the following command in PowerShell:
58
+
54
59
```PowerShell
55
60
Install-Module -Name MSAL.PS -Scope CurrentUser
61
+
```
56
62
57
63
### Load the CopilotLabDSR module
58
64
@@ -72,29 +78,29 @@ Before you can export prompts that users saved, liked, or shared in Copilot Prom
## Export the saved, liked, and shared prompts of a specific user
78
84
79
85
1. From Windows PowerShell, use the `Export- PromptsUserContent` cmdlet to export the saved, liked, or shared prompts of a specific user from Copilot Prompt Gallery.
80
86
81
-
```powershell
82
-
Export-PromptsUserContent -UserAadIdOrPrincipalName <Entra ID or UPN of user> -ExportDirectory <output location> -PromptType <type of prompt>
83
-
```
87
+
```powershell
88
+
Export-PromptsUserContent -UserAadIdOrPrincipalName <Entra ID or UPN of user> -ExportDirectory <output location> -PromptType <type of prompt>
| UserAadIdOrPrincipalName | Use either the Microsoft Entra ID or the User Principal Name (UPN) of the user for which you want to export content. |
88
94
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
89
95
| PromptType | Specify "saved" to export the prompts saved by the user. Specify "shared" to export the prompts for which a shareable link to the prompt was generated. Specify "liked" to export prompts liked by the user. |
90
96
91
-
For example, the following exports Reed Smiths's saved prompts in Copilot Prompt Gallery using his UPN and downloads the export files to the location C:\PromptsExportReedSmith.
97
+
For example, the following exports Reed Smiths's saved prompts in Copilot Prompt Gallery using their UPN and downloads the export files to the location C:\PromptsExportReedSmith.
0 commit comments