Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Disable the Keep Printed Documents Attribute on a Printer?

Hey, Scripting Guy! How can I disable the Keep Printed Documents attribute on a printer?-- JJ Hey, JJ. You didn’t mention which operating system you’re trying to do this on, but we hope it’s a Windows XP or Windows Servers 2003 computer. Why? Well, on a Windows XP or Windows Server 2003 machine, this is easy; on any other version of ...

How Can I Tell Which Users are Connected to a Print Queue?

Hey, Scripting Guy! How can I tell which users are connected to a print queue?-- RE Hey, RE. You know, if your printers are anything like the ones the Scripting Guys are used to working with then it’s easy to tell which users are connected to a print queue: all you have to do is walk into the printer room and see who’s in there ...

How Can I Receive Notification Any Time Something is Printed to a Particular Printer?

Hey, Scripting Guy! How can I receive notification any time something is printed to a particular printer?-- IL Hey, IL. You know, one of the Scripting Guys once had a summer job in an organization where the only decent printer in the entire building was kept in the administrative assistant’s office. We can attest, from painful experience...

How Can I Purge All the Print Jobs on a Windows 2000 Print Server?

Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server?-- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That tenet - just a second while we blow the ...