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

Reply via email to