Skip to content

Commit dab1059

Browse files
Merge pull request #30746 from MicrosoftDocs/main
[AutoPublish] main to live - 02/09 04:41 PST | 02/09 18:11 IST
2 parents 20f35ba + 4def56a commit dab1059

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

copilot/copilot-prompt-gallery-export-prompts.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ The user account running the PowerShell script to export the data needs to be as
3535
3636
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:
3737

38-
1. [Download the CopilotLabDSR PowerShell script](#download-the-copilotlabdsr-powershell-script)
39-
2. [Install the MSAL.PS module](#install-the-msalps-module)
40-
3. [Load the CopilotLabDSR module](#load-the-copilotlabdsr-module)
38+
1. [Download the CopilotLabDSR PowerShell script](#download-the-copilotlabdsr-powershell-script).
39+
2. [Install the MSAL.PS module](#install-the-msalps-module).
40+
3. [Load the CopilotLabDSR module](#load-the-copilotlabdsr-module).
4141

4242
### Download the CopilotLabDSR PowerShell script
4343

4444
1. To get started, you need to [download the CopilotLabDSR PowerShell script](https://download.microsoft.com/download/a541f114-f315-4b2f-bc2c-e7e89bb3022f/CopilotLabDSR.psm1).
45-
2. In File Explorer, go to the location where you saved the CopilotLabDSR.psm1 file.
46-
3. Right-click on the CopilotLabDSR.psm1 file and select **Properties**.
45+
2. In File Explorer, go to the location where you saved the _CopilotLabDSR.psm1_ file.
46+
3. Right-click on the _CopilotLabDSR.psm1_ file and select **Properties**.
4747
4. On the **General** tab, select **Unblock** checkbox, and then select **Ok**.
4848

4949
You need to unblock the file because, by default, executing scripts downloaded from the internet isn't allowed.
@@ -90,17 +90,17 @@ Before you can export prompts that users saved, liked, or shared in Copilot Prom
9090
Export-PromptsUserContent -UserAadIdOrPrincipalName <Entra ID or UPN of user> -ExportDirectory <output location> -PromptType <type of prompt>
9191
```
9292

93-
| Parameter | Description |
94-
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
95-
| UserAadIdOrPrincipalName | Use either the Microsoft Entra ID or the User Principal Name (UPN) of the user for which you want to export content. |
96-
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
97-
| 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. |
93+
| Parameter | Description |
94+
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
95+
| UserAadIdOrPrincipalName | Use either the Microsoft Entra ID or the User Principal Name (UPN) of the user for which you want to export content. |
96+
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
97+
| 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. |
9898

99-
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.
100-
101-
```powershell
102-
Export-PromptsUserContent -UserAadIdOrPrincipalName reedsmith@contoso.com -ExportDirectory C:\PromptsExportReedSmith -PromptType saved
103-
```
99+
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.
100+
101+
```powershell
102+
Export-PromptsUserContent -UserAadIdOrPrincipalName reedsmith@contoso.com -ExportDirectory C:\PromptsExportReedSmith -PromptType saved
103+
```
104104
105105
2. When prompted to authenticate, sign in with an account assigned to the Global Admin role, not as the user you want to export.
106106
3. After the PowerShell cmdlet runs successfully, go to your export location to view your exported files.
@@ -109,23 +109,23 @@ Export-PromptsUserContent -UserAadIdOrPrincipalName reedsmith@contoso.com -Expor
109109
110110
1. From Windows PowerShell, use the `Export-PromptsGroupContent` cmdlet to export the prompts published to the specific team in Copilot Prompt Gallery.
111111
112-
```powershell
113-
Export-PromptsGroupContent -M365TeamsGroupId <team ID> -ExportDirectory <output location>
114-
```
112+
```powershell
113+
Export-PromptsGroupContent -M365TeamsGroupId <team ID> -ExportDirectory <output location>
114+
```
115115
116-
| Parameter | Description |
117-
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
118-
| M365TeamsGroupId | ID of the team to which the prompts were shared. |
119-
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
116+
| Parameter | Description |
117+
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
118+
| M365TeamsGroupId | ID of the team to which the prompts were shared. |
119+
| ExportDirectory | Location to store your output files. The folder should already exist. If not specified, the export files are saved to the current folder. |
120120
121-
For example, the following exports the prompts shared in Copilot Prompt Gallery to the team with an ID of "d0efcad2-6744-0de6-0624-ea467d4293af" and downloads the export files to the location C:\PromptsExportReedSmith.
121+
For example, the following exports the prompts shared in Copilot Prompt Gallery to the team with an ID of "d0efcad2-6744-0de6-0624-ea467d4293af" and downloads the export files to the location C:\PromptsExportReedSmith.
122122
123-
```powershell
124-
Export-PromptsGroupContent -M365TeamsGroupId d0efcad2-6744-0de6-0624-ea467d4293af -ExportDirectory C:\PromptsExportReedSmith
125-
```
123+
```powershell
124+
Export-PromptsGroupContent -M365TeamsGroupId d0efcad2-6744-0de6-0624-ea467d4293af -ExportDirectory C:\PromptsExportReedSmith
125+
```
126126
127-
> [!TIP]
128-
> To find the ID of the team, go to **Teams** > **Manage teams** in the [Teams admin center](https://admin.teams.microsoft.com/).
127+
> [!TIP]
128+
> To find the ID of the team, go to **Teams** > **Manage teams** in the [Teams admin center](https://admin.teams.microsoft.com/).
129129
130130
2. When prompted to authenticate, sign in with an account assigned to the Global Admin role.
131131
3. After the PowerShell cmdlet runs successfully, go to your export location to view your exported files.

0 commit comments

Comments
 (0)