|
-
Jan 28th, 2005, 04:18 PM
#1
Thread Starter
Hyperactive Member
Determine Local Machine Name [VB-Script]
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,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|