Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get list of log on names from NT server?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00339625
Message ID:
00339631
Vues:
27
>What can be done to get a list of user/computer names logged to a particular domain?

Computer names can be done using the Win32 API quite easily; you can modify the sample code in my NETRESOURCE class to sniff out the machine names pretty easily. You can download the code from here on UT; you'll also need CLSHEAP. You have to read the code and have a clue about how the Win32 WNetOpenEnum and WNetEnumResource calls work, but that's pretty well documented in the MSDN library and in comments in-line in code.

Sniffing out users involves detailed interaction with the authentication provider(s) to find out what's legal - the ADSI or WMI interface would be the easiest solutions, and could accomplish the first task as well, so I'd invest my time in learning about ADSI's capabilities.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform