Scripting Blog

A place to learn about PowerShell and share stories of automation

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

Hey, Scripting Guy! How can I change the IP address assigned to a computer?-- RW 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 Scripting Guys because it involves...

How Can I Prevent a Computer from Using the LMHosts File?

Hey, Scripting Guy! How can I prevent a computer from using the LMHosts file?-- MJ 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 Windows GUI; that’s something ...

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

Hey, Scripting Guy! How can I display the IP addresses associated with a given MAC address?-- NK 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 using that address?” ...

How Can I Determine if a Particular Patch is Installed?

Hey, Scripting Guy! How can I use a script to determine if a particular patch has been installed?-- GM Hey, GM. You know, not too long ago this would have been a question we might have “accidentally” dropped in the wastebasket and pretended never to have seen. Why? Well, back in the old days the only way to get information about patches...

How Can I Determine When the Last Patch From Windows Update was Applied?

Hey, Scripting Guy! How can I determine when the last patch from Windows Update was applied?-- JP Hey, JP. You know, you picked a good time to ask this question; that’s because we just published a Tales from the Script column that introduces scripters to the Windows Update object model, and provides a number of sample scripts for managing...

Feedback usabilla icon