Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Connect to the Junk Mail Folder in Outlook?

Hey, Scripting Guy! Over the past year or so you’ve answered several questions in which you use a script to connect to the Inbox in Microsoft Outlook. But how can I connect to the Junk Mail folder in Outlook?-- ME Hey, ME. Let’s see, what time is it? OK good: we have enough time to answer this question and get the column posted. We were...

How Can I Get Access to a Mail Folder That Isn’t a Subfolder of My Outlook Inbox?

Hey, Scripting Guy! How can I access a specified mail folder in my Outlook Mailbox, a folder that isn’t a subfolder of my Inbox?-- RT Hey, RT. As you recall, in our last exciting episode – what do you mean you don’t recall any exciting episodes when it comes to this column? Come on: this is Hey, Scripting Guy!, the Kingda Ka of the ...

How Can I Get a List of All the Senders’ Email Addresses in an Outlook Folder?

Hey, Scripting Guy! How can I get a list of all the senders’ email addresses in an Outlook folder?-- CW Hey, CW. You know, you must get email from a whole different set of people than we Scripting Guys do. For example, in looking through the Scripting Guys Inboxes it appears as though all our mail comes from the following sources...

How Can I Delete All the Email Sent From a Specific Person?

Hey, Scripting Guy! How can I delete all the email sent from a specific person?-- VP Hey, VP. Ah, yes, deleting email from a specific person; that’s something we Scripting Guys are all too familiar with. For example, the first time the Scripting Guys ever heard of such a thing was back in the early days of Microsoft Mail, when Bill Gates ...

How Can I Write a Script That Accesses All the Subfolders in My Outlook Inbox?

Hey, Scripting Guy! How can I write a script that accesses all the subfolders in my Outlook Inbox?-- MB Hey, MB. You know, after you’ve written a daily scripting column for nearly two years (have we mentioned the Hey, Scripting Guy 500th column celebration lately?) you learn that certain subjects are strictly off-limits. Discuss religion ...