Project

PSOutlookProfile

Tool to manage (to some degree) Outlook Profile in PowerShell

Stars11
Forks7
Open issues2
Language: PowerShell Updated: 2019-09-13T08:49:40.0000000+00:00

Curated Examples

Preview Outlook account removal

Use PSOutlookProfile with WhatIf before changing an Outlook profile.

This pattern is useful when an Outlook profile needs cleanup but you want to confirm the intended action first.

It is adapted from Example/Manage-Outlook.ps1.

Example

Import-Module PSOutlookProfile

Start-OutlookProfile `
    -RemoveAccount 'secondary.user@example.com' `
    -PrimaryAccount 'primary.user@example.com' `
    -WhatIf

What this demonstrates

  • making the primary account explicit
  • previewing the profile change before applying it
  • avoiding broad profile changes from an unreviewed command

Source