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
+45-43Lines changed: 45 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Export prompts that users saved or shared in Copilot Prompt Gallery"
3
-
description: "Provides admins the steps to take to export prompts that users saved or shared in Copilot Prompt Gallery"
2
+
title: "Export prompts that users saved, liked, or shared in Copilot Prompt Gallery"
3
+
description: "Provides admins the steps to take to export prompts that users saved, liked, or shared in Copilot Prompt Gallery"
4
4
ms.author: danbrown
5
5
author: DHB-MSFT
6
6
manager: laurawi
@@ -12,34 +12,33 @@ ms.collection:
12
12
- m365copilot
13
13
- magic-ai-copilot
14
14
hideEdit: true
15
-
ms.date: 11/19/2024
15
+
ms.date: 04/16/2025
16
16
---
17
17
18
-
# Export prompts that users saved or shared in Copilot Prompt Gallery
18
+
# Export prompts that users saved, liked, or shared in Copilot Prompt Gallery
19
19
20
-
In [Copilot Prompt Gallery](https://copilot.cloud.microsoft/prompts), users can save or share prompts they created, including sharing prompts with a specific team (in Microsoft Teams) that they're a member of. As an admin, you can use Windows PowerShell to export data to a file about either of the following types of prompts in Copilot Prompt Gallery:
20
+
In [Copilot Prompt Gallery](https://copilot.cloud.microsoft/prompts), users can save or share prompts they created, including sharing prompts with a specific team (in Microsoft Teams) that they're a member of. Users can also like prompts created by others. As an admin, you can use Windows PowerShell to export data to a file about either of the following types of prompts in Copilot Prompt Gallery:
21
21
22
-
- The saved and shared prompts of a specific user.
22
+
- The saved, liked, and shared prompts of a specific user.
23
23
- The prompts shared with a specific team.
24
24
25
25
> [!NOTE]
26
26
> The user account running the PowerShell script to export the data needs to be assigned the Global Admin role.
27
27
28
28
## Configure your Windows PowerShell environment
29
29
30
-
Before you can export prompts that users saved or shared in Copilot Prompt Gallery, you need to configure your PowerShell environment by doing the following steps:
30
+
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:
31
31
32
32
1.[Download the CopilotLabDSR PowerShell script](#download-the-copilotlabdsr-powershell-script)
33
33
2.[Install the MSAL.PS module](#install-the-msalps-module)
34
34
3.[Load the CopilotLabDSR module](#load-the-copilotlabdsr-module)
35
35
36
36
### Download the CopilotLabDSR PowerShell script
37
37
38
-
1. To get started, you need to [download the CopilotLabDSR PowerShell script](https://download.microsoft.com/download/b/a/b/babff430-cc1f-46e0-b98b-2997d79af5ae/tenant-admin-scripts.zip).
39
-
2. Extract the CopilotLabDSR.psm1 file from the tenant-admin-scripts.zip file to a location you can access from PowerShell.
40
-
3. In File Explorer, go to the location where you saved the CopilotLabDSR.psm1 file that you extracted.
41
-
4. Right-click on the CopilotLabDSR.psm1 file and select **Properties**.
42
-
5. On the **General** tab, select **Unblock** checkbox, and then select **Ok**.
38
+
1. To get started, you need to [download the CopilotLabDSR PowerShell script](https://download.microsoft.com/download/a541f114-f315-4b2f-bc2c-e7e89bb3022f/CopilotLabDSR.psm1).
39
+
2. In File Explorer, go to the location where you saved the CopilotLabDSR.psm1 file.
40
+
3. Right-click on the CopilotLabDSR.psm1 file and select **Properties**.
41
+
4. On the **General** tab, select **Unblock** checkbox, and then select **Ok**.
43
42
44
43
You need to unblock the file because, by default, executing scripts downloaded from the internet isn't allowed.
45
44
@@ -64,7 +63,7 @@ Before you can export prompts that users saved or shared in Copilot Prompt Galle
64
63
2. Run the following command to import the module with all available cmdlets.
65
64
66
65
```PowerShell
67
-
Import-module "<location where you saved the CopilotLabDSR.psm1 file that you extracted>"
66
+
Import-module "<location where you saved the CopilotLabDSR.psm1 file>"
68
67
```
69
68
70
69
For example, if your file is saved in C:\AdminScripts, you would type:
@@ -73,9 +72,9 @@ Before you can export prompts that users saved or shared in Copilot Prompt Galle
## Export the saved and shared prompts of a specific user
75
+
## Export the saved, liked, and shared prompts of a specific user
77
76
78
-
1. From Windows PowerShell, use the `Export- PromptsUserContent` cmdlet to export the saved or shared prompts of a specific user from Copilot Prompt Gallery.
77
+
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.
79
78
80
79
```powershell
81
80
Export-PromptsUserContent -UserAadIdOrPrincipalName <Entra ID or UPN of user> -ExportDirectory <output location> -PromptType <type of prompt>
@@ -85,7 +84,7 @@ Export-PromptsUserContent -UserAadIdOrPrincipalName <Entra ID or UPN of user> -E
| UserAadIdOrPrincipalName | Use either the Microsoft Entra ID or the User Principal Name (UPN) of the user for which you want to export content. |
87
86
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
88
-
| 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. |
87
+
| 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. |
89
88
90
89
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.
After running the PowerShell cmdlet to export your user's data from Copilot Prompt Gallery, you'll receive one file in your download location folder. You can use the information in the following sections to help you understand the properties you see in the file you received.
127
126
128
-
### Export file for the saved and shared prompts of a specific user
127
+
### Export file for the saved, liked, and shared prompts of a specific user
129
128
130
129
The file name is prefixed with "User" and the Microsoft Entra ID of the user followed by the prompts type used for export. The file has the properties listed in the following table.
0 commit comments