Scripting Blog [archived]

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

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

(image) Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server?-- KC(image) (image) (image) 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 - ...

How Can I Map a Printer, But Only If the User Doesn’t Have a Local Printer?

(image) Hey, Scripting Guy! I’d like to have a logon script that maps a network printer for each user unless that user already has a local printer. If they have a local printer, I don’t want to add the network printer. Is that possible?-- AG(image) (image) (image) Hey, AG. Not only is that possible, but it’s actually pretty easy, ...

Hey, Scripting Guy! Is There Any Way to Determine the Default Printer On a Computer?

(image) Hey, Scripting Guy! Is there any way to determine the default printer on a computer?-- JW(image) (image) (image) Hey, JW. If you’re running Windows XP or Windows Server 2003, determining the default printer is easy. That’s because the WMI class Win32_Printer found on these versions of Windows includes a property named Default. ...