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.