Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
DOMAIN\usr for Win32API::Net::LocalGroupGetMembers
iwovGraduate
I am using Win32API::Net::LocalGroupGetMembers(), which returns a list of users for a given group.
Is there any way (any other module perhaps?) I can get the usernames in the format DOMAIN\user? We have local group with members who are domain accounts.
e.g. a local group "this_host\my_local_group" has the following users -
this_host\localuser_a
domain1\user_b
domain2\user_c
...
[W2K, TS 6.5]
Find more posts tagged with
Comments
Migrateduser
use Win32::NetAdmin instead:
my
@groupMembers
;
Win32::NetAdmin::LocalGroupGetMembersWithDomain($hostname, $group, \
@groupMembers
);
cheers,
-Rori
iwovGraduate
That works.
Thanks!