Outlook iteracja po mailach

23 March 2015

$skrzynka = "mail@test.pl"

$Folder = "Skrzynka odbiorcza"

 

Add-Type -assembly "Microsoft.Office.Interop.Outlook"

$Outlook = New-Object -ComObject Outlook.Application

$Namespace = $Outlook.GetNameSpace("MAPI")

$AllEmail = $NameSpace.Folders.Item($skrzynka).Folders.Item($Folder).Items


Kategorie: Power Shell