Great!! That answers my last question. It seems with
Win32::NetAdmin::LocalGroupAddUsers it will accept the domain prefix if you
specify it.
I wonder why LocalGroupGetMembersWithDomain isn't documented in it's module
docs.
Thanks again,
---------------------------------------------------------------
Robert Blake
Technical Systems Analyst
Intel Servers, IT Shared Services - Symcor Inc.
1 Robert Speck Parkway, Mississauga, Ontario
E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------
"Gould, Kevin"
<[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: RE:
Win32 network administration problems
eState.com
11/25/02 10:33 AM
C:\WINNT>perldoc win32::netadmin|find /i "withdomain"
LocalGroupGetMembersWithDomain(server, groupName, userRef)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 9:01 AM
To: [EMAIL PROTECTED]
Subject: Win32 network administration problems
Two questions.
1. I'm trying to get the users from a local group on the server with the
domain information. I.E. instead of 'rblake' it would show
'DOMAIN\Rblake'.
Win32::NetAdmin::GroupGetMembers() returns just the username and not the
domain. I also need to know this for adding the user to a group. Because
you can only specify the username in Win32::NetAdmin::GroupAddUsers() it
will check locally for the username, then the domain that your logged
into.
What if the user exists locally, or exists on a different domain?
2. I would like to change the name of a local account. All account
modifications I've seen have been varing the username as the identifier,
so
you can't change it.
Suggestions??
Thanks!
---------------------------------------------------------------
Robert Blake
Technical Systems Analyst
Intel Servers, IT Shared Services - Symcor Inc.
1 Robert Speck Parkway, Mississauga, Ontario
E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs