Skip to content

Commit ba6a93d

Browse files
authored
Update export-topics-powershell.md
I updated the article to be more clear and the user will have less reverse engineering to do. 1. Modified example script to include correct syntax 2. Add reference to missing DLL file noted in errors during failed attempts 3. Added directions for folder structure
1 parent 4d2dcbb commit ba6a93d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

microsoft-365/topics/export-topics-powershell.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ To export the topics, you run a PowerShell script. Requirements to run the scrip
3131

3232
- PowerShell 7 or later. To install the latest version of PowerShell, go to [Installing PowerShell on Windows](/powershell/scripting/install/installing-powershell-on-windows#installing-the-msi-package).
3333
- The user running the script needs to be a Topics admin or Knowledge Manager.
34+
- Create a subfolder for the Lib files called "lib"
35+
- Copy the following DLL from the AzureAD PowerShell module folder on your local desktop to the same directory has the lib files displayed below
36+
- Microsoft.IdentityModel.Clients.ActiveDirectory.dll
37+
- If you don't have the Azure AD module, install it and then grab the file from C:\Program Files\WindowsPowerShell\Modules\AzureAD\2.x.x.x
3438

35-
Key support files are included in this document:
39+
Key support files are included in this document (place in the Lib subfolder listed in Requirements):
3640

3741
- [Key support file AuthLib.ps1](#key-support-file-authlibps1)
3842
- [Key support file TopicLib.ps1](#key-support-file-topiclibps1)
@@ -46,7 +50,7 @@ Export-TopicLite -Upn < string > | Export-Csv -Path < string >
4650
Example:
4751

4852
```powershell
49-
Export-TopicLite -Upn "[email protected]" -Path "C:\"
53+
Export-TopicLite -Upn "[email protected]" | Export-Csv -Path "C:\temp\export.csv"
5054
```
5155

5256
## Output
@@ -639,4 +643,4 @@ function Get-TopicsDashboard()
639643
return $snapshots
640644
}
641645
642-
```
646+
```

0 commit comments

Comments
 (0)