Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows 2000 Users
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00812720
Message ID:
00812915
Vues:
14
>
>CLEAR
>*-- Set lcMyDomain to be your domain or server for local server accounts
>lcMyDomain = "MYDOMAIN"
>oDomain = GetObject('WinNT://' + lcMyDomain)
>FOR EACH oItem IN oDomain
>    IF oItem.Class = "User"
>        ? oItem.Name
>    ENDIF
>ENDFOR
>
Say, that's vastly better than that tacky old NT Resource Kit method. I'm gonna use your code in the future, too, if you don't mind. Thanks.

Hmm...I spoke a little too soon, maybe. That's great for domains, but how can I get the domain Group lists with this technique? That's what I usually need. I'm probably just missing some little thing, when I'm modifying the code to drill down to groups...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform