Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Change the Font Name and Size for an Entire Word Document?

Hey, Scripting Guy! How can I change the font name and size for an entire Word document?-- CD Hey, CD. You know, this question reminded us of how old we Scripting Guys are getting - well, all of us except for Jean, of course, who continues to get younger and more beautiful every day. Note. No, that isn’t really true. However, because...

How Can I Remove All the Black-and-White Printers on a Computer?

Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers?-- JL Hey, JL. You know, in one classic episode of the Simpsons, Bart, in the throes of a sugar high, joins the Junior Campers. The next morning, realizing what he has done, he vows to weasel out of his commitment. ...

How Can I Determine Which Text has been Selected in an HTA?

Hey, Scripting Guy! How can I determine which text has been selected in an HTA?-- DO Hey, DO. You know, most people think that writing the Hey, Scripting Guy! column every day is one of the most glamorous and exciting jobs in the world. And it probably would be if it wasn’t for the fact that the Scripting Guy who writes this column is so ...

How Can I Purge a Print Queue on a Print Server?

Hey, Scripting Guy! How can I purge a print queue on a print server? I need to do this on both Windows 2000 and Windows Server 2003.-- KD Hey, KD. And hey: no fair! Lots of times we take the easy way out in this column: we provide an answer that works only on Windows XP or Windows Server 2003, and then say, “If there’s enough interest ...

How Can I Move All the Users from One OU to Another OU?

Hey, Scripting Guy! How can I move all the users from one OU to another OU?-- PD Hey, PD. You know, when you work at Microsoft you quickly learn to hate to word “move.” After all, if it wasn’t for the fact that we own the buildings you would think we were trying to skip out on paying the rent; that’s how often we move from one place...