Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows 2000 Users
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00812720
Message ID:
00812939
Views:
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...

To explain better, I can access the Groups list fine by changing the oItem.class to "oItem.Group" but can't seem to get down into the member level...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform