Ok, I apologize, I didn't think I needed to get into what I was doing to answer this.

Since I am having problems with my user profiles mapping hidden directories I figured I would map them in my logon script which is KiXtart. The main problem is that all my user directories are organized on my File Server First by the Department the work in and then by their username. I could create an IF statement for each user but that would take forever considering I have quite a few users. So I figured I could just set the Department entry in a users properties to their Department then use something like this

USE U: "\\server\userdirs$\$department\$username"
(userdirs$ is the hidden share for my user directorys)

to map the user drive. But I cannot for the life of me figure out how to set $department. I have tried

$username = @USERID
$objUser = GetObject("LDAP://$username")
$department = objUser.Department

but that isn't working. What am I doing wrong here?

Thanks

Again, I apologize if my question was worded to vaguly.

-Al