Skip to content

Instantly share code, notes, and snippets.

@najamsk
Created July 7, 2013 18:49
Show Gist options
  • Save najamsk/5944497 to your computer and use it in GitHub Desktop.
Save najamsk/5944497 to your computer and use it in GitHub Desktop.
function that will connect to your inbox from powershell
function BootOutlook(){
$outlook= New-object -ComObject outlook.application
$namespace = $outlook. GetNameSpace("MAPI")
$Inbox = $outlook. session.getDefaultFolder(6)
$Inbox
}
cls;
#$mailBox = BootOutlook
#$mailBox.Folders.item("islambox").Folders.Item("EmailLogs").Folders.Item("jun 2013").items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment