Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 3
    getmac does the same thing and is built into Windows.
    – MDMarra
    Commented Nov 9, 2009 at 12:07
  • 8
    that's not called reinventing the wheel. That's called "there are many ways to do things". vbscript works almost in every version of windows , including Win9x. getmac is not available in every version.
    – user31894
    Commented Nov 10, 2009 at 1:38
  • Well, it's a Window 7 question, so why bother writing a whoooole script when you can just type a command?
    – TFM
    Commented May 22, 2010 at 10:03
  • @TFM: Because the script can give you the MAC address only, while getmac requires output parsing... Commented Feb 24, 2012 at 22:11
  • 2
    @TFM: That and WMI can be used over the network natively, without having to "reinvent the wheel" with SSH/psexec/WS-Remoting. Just change strComputer. Commented Feb 24, 2012 at 22:13