Thanks for the quick responses guys.
Sorry if this is like teaching a dog to use an abacus.

@Mart
I took the top portion of your code and put it into a script.
I get "expected ')'!" in line 7.

Here is the exact script:
 Code:
;Get all users from the current domain.
$oDomain = GetObject("WinNT://" + @LDomain)
$oDomain.filter = "User", ""

For Each $user in $oDomain
	If $user.name = @USERID
		$userhome = TranslateName(3, "", 3, @LDomain + "\" + $user.name, 1)
		$userinfo = GetObject("LDAP://" + $userhome[0])
		;Get user data.
		$empID = $userinfo.EmployeeID
	EndIf
Next

? "Employee ID is" $empid
? "Domain is" + @LDomain
Use H: "\\civwro990\" + $empid



Edited by CivGeek (2012-12-13 04:33 PM)