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