Skip to content

list-outlook-inbox

Lists Outlook's Inbox

#Requires -Version 5.1

try {
	$Outlook = New-Object -com Outlook.application
	$MAPI = $Outlook.GetNameSpace("MAPI")
	$Inbox = $MAPI.GetDefaultFolder(6)
	$Inbox.items | Select Received,Subject | Format-Table -AutoSize
	exit 0
} catch {
throw
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.