Scripting Blog

A place to learn about PowerShell and share stories of automation

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...

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 ...