hey guys, I am using netdom to add XP machines to the domain (and to rename and move containers), while doing the same for win2k, I could run 'net localgroup administrators /add 'domain\IT Staff"', but XP will not do that... it complains about security trusts.
shell 'netdom join /domain:domain ...'
shell 'netdom renamecomputer @wksta ...'
shell 'cmd /c net localgroup administrators /domain ...'
Can someone work out a method for this, I figure RUNAS would do it, but haven't been able to work around it.
I will have variables populated already with ladmin & PW and dadmin & PW.
I have the netdom statements working, it is just the localgroup statement that is choking. It needs to run while Ladmin is logged on and not domain member yet.