Scripting Blog [archived]

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

How Can I Modify the Output of the Ping Command?

(image) Hey, Scripting Guy! How can I place the current date and time at the beginning of each line of Ping.exe output?-- AL(image) (image) (image) Hey, AL. We have to admit, we were a little shocked by your question. Change the output of the Ping command? Really, AL. Would you ask us to rewrite Romeo and Juliet, giving it a more happy and...

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 Prevent a Computer from Using the LMHosts File?

(image) Hey, Scripting Guy! How can I prevent a computer from using the LMHosts file?-- MJ(image) (image) (image) Hey, MJ. You know, this was an interesting one, at least for the Scripting Guys. Not because the script was hard to write; that was actually pretty easy. What was hard - at least for us - was to find the LMHosts setting in the ...

How Can I Display the IP Addresses Associated with a Given MAC Address?

(image) Hey, Scripting Guy! How can I display the IP addresses associated with a given MAC address?-- NK(image) (image) (image) Hey, NK. Before we answer your question we should take a moment to answer a related question. People often ask us, “If I have a MAC address can I write a script that will tell me which computer on my network is ...