Hi,
Is this possible to datamine Public Folder? i've done some looking around but not alot really on the top, below is my code which i connect to outlook so just wondering what i need to change or someone point me to some information :). It's currently just connecting to my default mailbox.
Function Get-OutlookInBox {
Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
$olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
$outlook = new-object -comobject outlook.application
$namespace = $outlook.GetNameSpace("MAPI")
$folder = $namespace.getDefaultFolder($olFolders::olFolderInBox)
$folder.items |
Select-Object -Property Subject, ReceivedTime, SenderName, SenderEmailAddress
} # Go into Mailbox & Access