You can change the details of multiple users in AD, at the same time, if you select them all and then right-click.
...This won't solve your problem of course..
I had found that some machines had issues with loading GPOs if they had the older version of the network driver, it seemed to be reconnecting the card in windows, at the same time windows was trying to load the GPOs. Check to see if you have the most recent versions.
Do you get any errors in the client eventlogs ?
This can be a problem with some of the SIS chip sets.
Originally Posted by User3204
Have you tried running a shorter version of the script?
Once you do get it working as well you could shorten that script a lot using some kind of loop as you are repeating the same code over and over.
We had this problem a while ago with some of the older/poorer spec machines running vbscript.
I think that the vbenginge was loading after the script was started [obviously the script will fail].
We moved over to kix scripts and all was ok.
whats wrong with a good old Logon.bat file ?
Can you run the script manually when the user is already logged in and you know the network connection has sparked to life and see that it works?
Add a few pauses to your script and run it visibly so you can see it's results while you do this.
Can you think of anything these machines have in common that the successful ones don't (I'm thinking have they been imaged recently EDIT (well not so much recently but at the same time or using the same image) or is there some other policy over-riding them), you said you have multiple DC's - do they all run AD and have you been to the default domain policy for all of them.
Do all the successful machines reside in the same OU(s) if so have you tried putting some of the unsuccessful ones in that(those) OU's?
It could also be worth trying to delete one of the machines computer accounts in AD, disconnect and then rejoin it to the domain and move the account created back into the right OU.
You've probably tried all this though!