Win32:NetAdmin UserGet/SetAttributes.
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
| [reply] [Watch: Dir/Any] |
Win32::Lanman should give you all you need and more.
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature | [reply] [Watch: Dir/Any] |
Perl maintains environment variables in a special hash named `%ENV'. Try typing "perldoc env" to get more info.
I'm not sure how it would be done for a list of account names from the server side, but you could
access local environment variables on each workstation by using %ENV.
use strict;
my $profile = $ENV{'USERPROFILE'};
print $profile, "\n"; # $profile contains the path to the user's profi
+le
# usually located in C:\Documents and Settings\u
+ser
I'm sure some of the more experienced Monks will be able to give more advice on this, but I hope this helps. | [reply] [Watch: Dir/Any] [d/l] [select] |