I am looking for a very quick and simple way to get the Local Machine Name and store it as a variable in my VB-Script.

From the Command Line we can simply type “%COMPUTERNAME%”, can this be incorporated into my VB-Script.vbs file somehow?

Otherwise the only way I can think of is using WMI, I already have a WMI object created so I just need to see how, from that, I can extract the required information.

I would have accepted a Registry Key however the method must work under both Windows NT4 and NT5 (2K).

Any help would be appreciated.
Thanks,