Discussion Locked

Using SETPRFDC.exe with NT client

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to use setprfdc.exe to set up a local Wan BDC to authenicate my clients but when running in the computer (from a command line)I get "Cannot set new trusted DC to \\server :Error_ACCESS_DENIED Failed to set the DC." when ran from a normal users account. But when I logon onto the computer as an admin it works perfectly.

Why and can I get it to work with a normal users account so I can put the line in a script file.

Thanks!

4 replies

by duwaned

Hi.

Are you logged into the workstation with a user account that resides in the same Domain as the BDC or are you using a local machine account?

My next question is how are you going to script this? By the time the script runs, you are already authenticated with a Domain controller. Why don't you rather use an LMHOSTS file with the #PRE #DOM entries to specify the local server. This can also be distributed by a script. Primitive I know, but if you are only using it to point to the local BDC, then its not too much of an Admin nightmare.

Let me know what you think.
Regards.
Duwane.

by duwaned

One more thing... try re-creating the workstations domain account, as it may be out of sync with the domain. Do this by going to Server manager, find the machine in the list, and remove it from the domain. Then re-add it and try again.

by tzmueller

I used the lmhosts file option. Thanks and it worked perfectly. I am using scriptlogic to setup the right lmhosts file for differnet subnets such as 192.168.100.* / 192.168.101.*.

Thanks.

This discussion is closed to new replies.