in reply to Win32API::Net::GetDCName returns error code 87 for remote servers
The answer seems pretty straight-forward to me:
Also, you cannot remote this function to a non-PDC server.
Taken from MSDN docs