Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Map a Printer Based on the Computer’s OU?

Hey, Scripting Guy! How can I map a printer based on the local computer’s OU?-- TG Hey, TG. Before we begin, we’d like to offer a sincere and heartfelt apology to the Scripting Editor. In a recent column, we made it sound as if, in her words, the Scripting Editor was a “ditzy teenager.” That, of course, is not the case. Instead, we...

How Can I List the Network Printers For the Logged-On User?

Hey, Scripting Guy! How can I create a logon script that lists the network printers for the logged-on user, then writes that information to a text file?-- RC Hey, RC. You know, the nice thing about coming to work after a few days off is – well, OK, so maybe we can’t actually think of anything nice about coming to work after a few days ...

How Can I Let Users Choose a Default Printer From a List of Printers?

Hey, Scripting Guy! In a logon script, how can I enable users to choose a default printer from a list of the printers installed on their computer?-- JD Hey, JD. You know, a lot of people write in to say, “Hey, Scripting Guys! Why do you limit yourselves to system administration scripting? Don’t you realize that you guys, and you guys ...

How Can I Add a Network Printer at Logon and, Optionally, Make That the Default Printer?

Hey, Scripting Guy! How can I add a network printer at logon? I’d also like to make that the default printer unless the user has a local printer. In that case I don’t want to make the network printer the default printer.-- DB Hey, DB. So, how are … things ….? That’s really some kind of weather we’ve/you’ve been having lately, ...

How Can I List All the Printers on a Remote Computer?

Hey, Scripting Guy! How can I list all the printers – both local printers and network printers – on a remote computer?-- CH Hey, CH. You know, back when he worked at the University of Washington the Scripting Guy who writes this column was asked to speak at a symposium being held as part of a conference on computers and education. To ...