i have a PUBLIC FOLDER attached to my outlook. Is there a way I can query using powershell last received email? I don't want to go through message tracking log -received cmdlet because it takes a LOT OF TIME
i have a PUBLIC FOLDER attached to my outlook. Is there a way I can query using powershell last received email? I don't want to go through message tracking log -received cmdlet because it takes a LOT OF TIME
$public_folders = $public_folder.folders.item("All Public Folders").folders.item("CAAP")
I can dynamically concatenate the string finally Invoke the string
I am able to go up to here
Add-Type -assembly "Microsoft.Office.Interop.Outlook"
$Outlook = New-Object -comobject Outlook.Application
$namespace = $Outlook.GetNameSpace("MAPI")
$public_folder = $namespace.Folders.Item("Public Folders - myname@domain.com")
$public_folders = $public_folder.folders.item("All Public Folders")
$public_CAAP = $public_folders.folders.item("CAAP")
I would like to go recursively and find out the las received email and folder path. Please help me
I think partially I got the answer but please tell me the below
$public_folders = $public_folder.folders.item("All Public Folders")
$public_CAAP = $public_folders.folders.item("CAAP")
is there was I can consolidate the above two as
$public_CAAP = $public_folders.folders.item("All Public Folders\CAAP") (it doesn't work I tried different way \ in front of All public folder)
11 people are following this question.