Scripting Blog

A place to learn about PowerShell and share stories of automation

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

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

Hey, Scripting Guy! How can I set the default printer based on the IP address of the computer?-- TT 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 Scripting Son was able to bench press ...