Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Associate a Network Connection with an IP Address?

Hey, Scripting Guy! How can I determine the local area connection that’s associated with a particular IP address?-- SH Hey, SH. Believe it or not, this is a fairly complicated procedure, and for two reasons. To begin with, we have to use two separate WMI classes - Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration - in order to ...

How Can I Rename a Local Area Connection?

Hey, Scripting Guy! How can I rename a local area connection?-- AP Hey, AP. You know, you hurt our feelings here: we Microsoft types spent a lot of time coming up with clever and catchy names like Local Area Connection, Local Area Connection 2, and Local Area Connection 3. And now you say you want to change those names? That hurts. But you ...

How Can I Configure a Computer to Use a Dynamically-assigned DNS Server?

Hey, Scripting Guy! How can I configure a computer to use a dynamically-assigned DNS Server?-- JB Hey, JB. Ah, this question brings back memories. A couple years ago the Scripting Guys were faced with this same problem, and discovered the answer entirely by accident; in fact, if Greg was able to type a line of code without making a mistake ...

Why Doesn't My Ping Script Run on Windows 2000 Computers?

Hey, Scripting Guy! I have a script that pings a computer before it tries to connect to it. The script works fine on Windows XP, but doesn’t work at all on my Windows 2000 computers. Do you have any idea why?-- AK Hey, AK. As a matter of fact, we do have an idea why. Here’s a simplified version of your script, which pings the computer ...

Feedback usabilla icon