

$namespace.categories | Select-Object -Property Name, Color, ShortCutKey | Export-Csv -Path D:\Categories.txt -NoTypeInformation -encoding utf8 $namespace = $outlook.GetNamespace("MAPI") $outlook = New-Object -ComObject Outlook.Application

Use this script to export the categories in the default account's mailbox. You can edit the list in NotePad before importing it into Outlook. These scripts create a simple comma-separated list containing the category name, color code, and shortcut.

