Hi guys!

I have roamed around the board for several days now, but I can't find the answer to this...
(or more likely... It's me not being able to figure it out)

I can get this line to work:
$srvr = GetObject("LDAP://rootDSE").Get("dnsHostName")


but this returns "-2147352567 "COM exception error - catalog properties can't be found in cach memory"
$srvr = GetObject("LDAP://CN=Lastname Firstname,OU=ou2,OU=ou1,DC=our,DC=domain").Get("dnsHostName")


And if I try this, it prints "dnsHostName" to the screen and then returns "6 - The handle is incorrect"
$srvr = GetObject("LDAP://CN=Lastname Firstname,OU=ou1,OU=ou2,DC=our,DC=domain").Get("dnsHostName")


The first line returns wich server I'm logged on to...
What I'm looking for is a way to find out wich server authenticated a specific user... can it be done this way?

/Viggen