Skip to main content

Utilities

For full details and examples, run Get-Help Format-MessageIDsFromClipboard -Detailed or Get-Help Format-SortedEmailsFromClipboard -Detailed.

Format-MessageIDsFromClipboard

note

The function name is Format-MessageIDsFromClipboard. The legacy alias mids remains available for backward compatibility.

Reads quarantine identities (one per line) from the clipboard, deduplicates them, copies a quoted/comma-separated list back to the clipboard, and can release the messages immediately using Unlock-QuarantineMessageId -Identity.

Syntax

Format-MessageIDsFromClipboard [-NoRelease] [-PassThru]
ParameterDescriptionDefault
NoReleaseSkip automatic release of the identities.False
PassThruEmit the formatted string to the pipeline.False

Example

# Format and release immediately (by Identity)
Format-MessageIDsFromClipboard

# Format only, keep the list in the clipboard and show it
Format-MessageIDsFromClipboard -NoRelease -PassThru

Format-SortedEmailsFromClipboard

note

The function name is Format-SortedEmailsFromClipboard. The legacy alias fse remains available for backward compatibility.

Extracts e-mail addresses from clipboard text, deduplicates and sorts them, then copies a quoted/comma-separated list back to the clipboard.

Syntax

Format-SortedEmailsFromClipboard [-PassThru]
ParameterDescriptionDefault
PassThruEmit the formatted string to the pipeline.False

Example

Format-SortedEmailsFromClipboard -PassThru