Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Set the Default Printer Based on the IP Address of the Computer?

(image) Hey, Scripting Guy! How can I set the default printer based on the IP address of the computer?-- TT(image) (image) (image) Hey, TT. You’ll have to forgive us for being a little distracted this morning. Last night the Scripting Guy who writes this column went to the gym with his 16-year-old son. For the first time ever, the ...

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

(image) Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers?-- JL(image) (image) (image) 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 ...

How Can I Print Text Files to a Printer Other than the Default Printer?

(image) Hey, Scripting Guy! How can I print text files to a printer other than the default printer?-- JD(image) (image) (image) Hey, JD. Boy, talk about pride going before the fall. When we first set out to answer this question we already “knew” how to solve the problem. We were well aware that the Shell object provides a way for you ...

How Can I Remove All the Local Printers from a Computer?

(image) Hey, Scripting Guy! How can I remove all the local printers from a computer?-- JW(image) (image) (image) Hey, JW. You did say that you wanted to do this only on computers running Windows XP or Windows Server 2003, didn’t you? You didn’t? Oh. Well, we’re going to pretend that you did, because this is a very easy task to carry ...

How Can I Retrieve Information About the Printer Driver Used by a Printer?

(image) Hey, Scripting Guy! How can I retrieve information about the printer driver used by a specific printer?-- RW(image) (image) (image) Hey, RW. Did you say something? Oh, right: printer drivers. You’ll have to excuse us today: the Scripting Guys (well, one of them anyway) are in mourning. That’s because the Colt League All-Star ...