Remotely set Adminsitrative rights or group member
Posted on 2009-04-20
I have several hundreds of Windows Embedded pc's in a closed network environment. Each pc has an Administrator user, and a user called User. The User logs in by default, and has limited rights. For instance, I can't perform any Admin task, e.g. Control Panel - Administrative tools - Local Security Policy returns 'Group Policy Error' You do not have permission to perform this operation.
Since I need Administrative rights to execute a batchfile to enable Automatic DST Adjustment and sync instantly using NET TIME \\ntpserver /set /y, i want to change the user type of all these PC's to Administrator, or add the User user to the Administrator group without the need to log in as Administrator.
Is there a way to do this remotely by sending some sort of batchfile to these computers and execute it so that it changes my user type or adds me to the Administrator group? i do have the Administrator password and all, it is just that the PC's have been configured incorrectly at installation, and due to the large number of PC's, i need an easy going procedure, that I can invoke remotely.
I have several ways to access the PC's by UltraVNC and a piece of software we developed ourselves, I just need to know the batchfile with regedit execution or any other command to change the user type ro group assigment. Our software will execute it as soon as it is locally present at the computer.