Yeah, that moves the names, but colors are randomly assigned. (Random compared to the original list - they are assigned in the order they are added to the master list.)
You can also do it using powershell - this gets the default account's categories. you can save it as a csv or txt, as long as its changed both places. (If you want to edit it, it might be easier in Excel - so use csv.)
open powershell ise and paste the script in a new script window then click run.
Code:
$outlook = New-Object -ComObject Outlook.Application
$namespace = $outlook.GetNamespace("MAPI")
$namespace.categories | Export-CSV .\Categories.txt
and this adds the list to the default account on the other computer;
Code:
$outlook = New-Object -ComObject Outlook.Application
$namespace = $outlook.GetNamespace("MAPI")
Import-CSV .\Categories.txt |
ForEach-Object {
$namespace.Categories.Add($_.Name,$_.Color,$_.ShortCutKey)
}
You can use this to clear the list - but will need to run it multiple times to remove all names (it goes forward, not backwards, so it skips every other one) - make a list using the first powershell, then run this to remove them. Run the first script on the old computer, the copy the text file to the new one and run the second script.
Code:
$outlook = New-Object -ComObject Outlook.Application
$namespace = $outlook.GetNamespace("MAPI")
Import-CSV .\Categories.txt |
ForEach-Object {
$namespace.Categories.Remove($_.CategoryID)
}