No Object Found. Unable to get distinguished name.

Nov 6, 2014 at 1:13 AM
Edited Nov 6, 2014 at 1:14 AM
As part of my task sequence, I have a custom script that adds PCs to specific security groups based on OS and machine type. In addition it sets some computer attributes.

This works fine for a PC that has been in AD for some time.
But for a newly imaged PC, it typically fails saying "No object found, Unable to get distinguished name.".

I thought the web service had some functions to find the DC for the site and perform the tasks there? But I am not seeing that referenced in any of the log files and I have all logging enabled.

How do I ensure that the web service is properly calling a local DC?