I'm in over my head. In the script below, nothing is returned except $fullname.
1). where can i get a list of property values to use for olegetpropery($user, property)?
2). please explain the $user = val line. I only have a vauge idea of what it does and would like to understand it. For example, why use WinNT for $domain when this is a 2000 domain? What does "SS" mean?
3). If someone could help me flesh this out I would appreciate it. I basically want to read a file of old usernames, then set the windows 2000 and per-windows 2000 userids to the full name.
4). renaming the home directory from the old name to the new name name is an added bonus.
5). adding a profile name to the userid is another bonus.

Thank you.

$DOMAIN = "AISD"
$OLDUSERID = "hgaldiano"
$domain = olegetobject(0,"WinNT://$DOMAIN")
$user = val("&"+olecallfunc($domain,"getobject","ss","user","$OLDUSERID"))
$adspath = olegetproperty($user,"adspath")
$firstname = olegetproperty($user,"firstname")
$lastname = olegetproperty($user,"lastname")
$fullname = olegetproperty($user,"fullname")
$username = olegetproperty($user,"userid")
$Securityid = olegetproperty($user,"sid")
? $firstname
? $lastname
? $fullname
? $username
? $securityid