VBScript Scripting Techniques > Network > Names
In this section I'll show you how to retrieve user names, computer names and domain names (user domains, computer domains, ...) and related properties using various techniques.
I'll also try to list all requirements for each technique: OS version, Active Directory/NT domain/workgroup, stand-alone VBScript vs. HTA, and WMI or client software.
So, depending on your environment, you may need to combine several techniques to cover all OS versions and all possible configurations.
To test if any of these techniques work in your environment, I also created a script demonstrating each of these techniques (download the ZIPped source here).
page last modified: 2016-09-19