Powershell script
- or -
Post a project like this$$
- Posted:
- Proposals: 2
- Remote
- #2047350
- Expired
Description
Experience Level: Intermediate
i have a small script to look at read receipts in an outlook shared datafile and export to excel, i am trying to get senders email address for all receipts. the script above works , but only for half the receipts, for the other half it returns blank for senders name, email etc.
here is the code that grabs the emails
Function Get-OutlookInBox {
Add-Type -AssemblyName "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.pickfolder()
$Folder.Items | Get-Member
$Folder.Items | Select-Object Subject, SenderName, SenderEmailAddress ,CreationTime, ReceivedTime, Final-recipient, UserProperties, ItemProperties, MAPIOBJECT, ReceivedByName,Recipents, Sender,SentOn,SentOnBehalfOfName | Export-CSV -NoTypeInformation xxx\Trial.csv
}
Get-OutlookInBox
unfortunately this only grabs half the emails and i would like to grab all the email address
here is the code that grabs the emails
Function Get-OutlookInBox {
Add-Type -AssemblyName "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.pickfolder()
$Folder.Items | Get-Member
$Folder.Items | Select-Object Subject, SenderName, SenderEmailAddress ,CreationTime, ReceivedTime, Final-recipient, UserProperties, ItemProperties, MAPIOBJECT, ReceivedByName,Recipents, Sender,SentOn,SentOnBehalfOfName | Export-CSV -NoTypeInformation xxx\Trial.csv
}
Get-OutlookInBox
unfortunately this only grabs half the emails and i would like to grab all the email address
Lewis W.
0% (0)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
28 Mar 2017
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies