Scripting Blog

A place to learn about PowerShell and share stories of automation

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 ...

How Can I Get Total Size and Number of Items in an Office Outlook Folder?

Hey, Scripting Guy! How can I get the total number of items - and the total size - of all the items in my Inbox and Sent Items folders?-- CS Hey, CS. You know, one of the Scripting Guys has a foolproof method for determining this information. What does he do? Nothing; instead, he just sits around and waits for the inevitable email from the ...

How Can I Convert an Outlook Email Message into a Text File?

Hey, Scripting Guy! How can I convert an Outlook email message into a text file?-- MW Hey, MW. You know what drives the Scripting Guys crazy? (We mean besides the other Scripting Guys.) It’s this: people who barely say hello before they start making excuses: “I’m sorry I did such a lousy job on this, but ….” “I realize that I ...

Feedback usabilla icon