At a client with 100+ workstations, all running a simple logon script, two workstations are experiencing a strange problem. For testing and as an example, a simplified logon script is used:
net use T: \\server\public set > C:\Temp\LoginEnv.txt
This works on all but the two workstations, mapping the drive and filling the text file with the environment settings. On the two problematic workstations, the NET USE command returns error 10 - The environment is invalid, and the text file is empty. To troubleshoot further, I added a command to return a list of specific DNS SRV records, which should list all of the AD domain controllers in the domain. Again, this list is empty on the faulty systems.
Oddly, after logging in, if we open a command prompt and run the same commands, everything works. The problem only happens during logon.
I'd appreciate any ideas as to the cause of this behaviour before we resort to simply re-imaging these systems.