erhk.blogg.se

Export office 365 contacts powershell
Export office 365 contacts powershell












export office 365 contacts powershell

$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

export office 365 contacts powershell

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.

  • Click Run Script or F5 to run the script.įor these screenshots, I exported my categories then used the delete script to clear them before re-importing.
  • Use double quotes around the name if it contains spaces.
  • Change the filepath and name as needed.
  • export office 365 contacts powershell

  • Paste the desired script in the editor.
  • When it comes up, click on Windows PowerShell ISE to open it.
  • On the Windows Start menu, start typing powershell.













  • Export office 365 contacts powershell