Created
July 7, 2013 18:49
-
-
Save najamsk/5944497 to your computer and use it in GitHub Desktop.
function that will connect to your inbox from powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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