Access Outlook with PowerShell

Access Outlook with PowerShell

You can access Outlook with PowerShell and here’s how to do it!

First, we have to load the correct type:

We also have to get the com-object:

With that done, we can get the namespace and the folders.

Now we have access to a lot of things. In this example I’m displaying the current user, all the mails and the folders.

Download attachements from Outlook with PowerShell

Get Search Result from SharePoint with PowerShell

Get Search Result from SharePoint with PowerShell