Scripting Blog [archived]

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

How Can I Change the IP Address Assigned to a Computer?

(image) Hey, Scripting Guy! How can I change the IP address assigned to a computer?-- RW(image) (image) (image) Hey, RW. To tell you the truth, this is a very difficult question for the Scripting Guys to answer. Not because this is a hard script to write; as you’ll see in a minute, it’s actually pretty easy. No, this is hard for the ...

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

(image) Hey, Scripting Guy! How can I disable the Keep Printed Documents attribute on a printer?-- JJ(image) (image) (image) 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...

How Can I Determine the Default Script Host on a Computer Before I Run a Script?

(image) Hey, Scripting Guy! I know that when I run a script I can use code to determine whether the script is running under WScript or CScript. What I can’t figure out is this: how can I determine the default script host on a computer before I run a script?-- AT(image) (image) (image) Hey, AT. You know, it’s not very often that people ...