Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Use WMI to Add a Printer Connection by Using Windows PowerShell?

(image) Hey, Scripting Guy! I am trying to determine how to use WMI to add a printer connection by using Windows PowerShell. I have found this script, but it uses VBScript and not WMI. This means that it is not very close at all, I am afraid. Do you have a WMI script I can use?- CM(image) (image) Hi CM,Ed looked around, but he did not find ...

Hey, Scripting Guy! How Can I Document Printer Usage on Client Workstations?

(image) Hey, Scripting Guy! I am tasked with the problem of documenting printer use on our client workstations. I must be able to determine whether someone prints directly to a printer, or if they are printing through our print servers. This is important because we have purchased a print monitoring software package that is used to back-charge...

Hey, Scripting Guy! How Can I Document Printers?

(image) Hey, Scripting Guy! I do not know about you, but does it seem that printers are a major pain in the dark side? I mean, they seem to multiply faster than bacteria. They are all just different enough to cause maintenance problems, and forget about trying to keep track of toner cartridges. Do you have any ideas that could help?- HR(...

Hey, Scripting Guy! How Can I Remove All the Network Printers on a Computer?

(image) Hey, Scripting Guy! Is it possible to delete or remove all network printers from a workstation with a VBScript script, similar to the way you removed all the network drives on a computer?-- WDC(image) (image) (image) Hey, WDC. If you’ve been following our daily TechEd preview report, then you know that the Scripting Guys have ...

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

(image) Hey, Scripting Guy! How can I map a printer based on the local computer’s OU?-- TG (image) (image) (image) 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 ...