$public_folders = $public_folder.folders.item("All Public Folders").folders.item("CAAP")
I can dynamically concatenate the string finally Invoke the string
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Answer accepted by question author
$public_folders = $public_folder.folders.item("All Public Folders").folders.item("CAAP")
I can dynamically concatenate the string finally Invoke the string
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)
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@keyman .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