Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Data Mining Public Folders Possible?

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>