I want to list the email subjects from the Inbox folders . I have written a code but it is taking me only to the folder level .Can you please tell me how to display the only email subjects from the folders .Please find the below code
$outlook = new-object -com outlook.application;
$ns = $outlook.GetNameSpace("MAPI");
$inbox = $ns.GetDefaultFolder(6)
$targetfolder = $inbox.Folders
$targetfolder |select -Property Name
If i execute the above code am getting the below folders that exists in my inbox .My queury is how to get only the email subjects that exists in these folders .