Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Create DNS Mail Exchanger (MX) Records and Have a Text File Generated to Show What Was Created?

(image) Hey, Scripting Guy! We are adding some new Exchange Servers to our messaging infrastructure, and I want to create some new MX (Mail Exchanger) records in DNS. I do not want to to create these records manually because carpal tunnel is not my friend and manual creation tends to introduce errors. I like having a text file that shows ...

Hey, Scripting Guy! How Can I Enable or Disable My Network Adapter?

 (image) Hey, Scripting Guy! At my office I access the corporate network by using a wired ethernet connection. However, when I come home, I have a wireless connection. Since our security guys do not allow us to have multiple network connections active at the same time, I am constantly enabling the wireless connection when I get home, ...

Hey, Scripting Guy! How Do I Find Information About the Network Adapter Cards on My Computer?

(image) Hey, Scripting Guy! When I use WMI to query for network cards on my laptop, it comes back with 32 network cards. 32! I am not lying. My laptop does not even have 32 slots, so how does it have 32 network cards in it? How can I find information about the "real" network cards on my laptop? I figure I should only have two: the wired ...

How Can I Determine the Signal Strength of a Wireless Connection?

(image) Hey, Scripting Guy! Any time I’m connected to a wireless network I can open the Wireless Network Connection Status dialog box and see a series of bars – 1 through 5 – that indicates the signal strength. How can I get that same information using a script?-- RK(image) (image) (image) Hey, RK. Before we answer today’s question...