You can grab some of those variables automatically. $network = new COM("WScript.Network"); $computername = $network->ComputerName; $username = $network->UserName;
"Court Shrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Was searching through the groups and thought I would share this code: > > <?php > // set this to your NT domain > $DomainName = "domain"; > > // set this to the username you want info on > $UserAccount = "username"; > > // Binds to the user account > $ADSIObject = new COM("WinNT://" . $DomainName . "/" . $UserAccount); > > //Returns full name > echo $ADSIObject->FullName . '<br>'; > > //Returns Account Name > echo $ADSIObject->Name . '<br>'; > > //Returns Account Description > echo $ADSIObject->Description . '<br>'; > ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php