in reply to Getting Windows NT User Name using Perl
Dear AnonyMonk,
In your script, get the ip address or the DHCP name of the machine making a request. Pass that value to nbtstat using the correct flag (-a or -A for DHCP or IP, respectively) and capture the output.
nbtstat will return the username, computer name and the workgroup/domain name of the computer you specified.
Also, please sign up for Perl Monks. It's free, and it allows us to get in contact with you much more easily. If you have any further questions, sign up and post. :)
Hope this helps, and good luck!
John J Reiser
newrisedesigns.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (nrd) Getting Windows NT User Name using Perl
by jj808 (Hermit) on Oct 06, 2002 at 15:32 UTC |