take a look at this script as well..
http://lists.more.net/arch
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.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
take a look at this script as well..
http://lists.more.net/arch
If you know all the names of the PC, you can try the following batch file with PSEXEC from Sysinternals:
@echo off
::Requires PsExec from SysInternals.com
::Pass Admin password as first parameter
:: Set Admin Account
Set AdmAcct=Administrator
for /f %%a in (PClist.txt) do call:Next %1 %%a
goto:eof
:Next
net use \\%2\c$ "/user:%2\%AdmAcct%" %1
net localgroup "Administrators" "User" /Add
goto:eof
Place all the names of the PCs in a file called pclist.txt and place this in the same folder as the batch file.
Note this will fail on PCs that are turned off.
you use psexec to call the whole batch file
http://technet.microsoft.c
but if you're going to use it at all, why not use it to apply the patch, rather than change the pc account levels?
If you run it with your credentials specified, it should be able to do what you want. It's like a remote RunAs command.
I executed the following line:
psexec remaddusr.bat password
My screen flickers and the batch file exits with error code 255
The batch file is:
@echo off
::Requires PsExec from SysInternals.com
::Pass Admin password as first parameter
:: Set Admin Account
Set AdmAcct=Administrator
for /f %%a in pclist.txt do call:Next %1 %%a
goto:eof
:Next
net use \\%2\c$ "/user:%2\%AdmAcct%" %1
net localgroup "Administrators" "User" /Add
goto:eof
pclist.txt contains 1 pc for testing
Oops, you're right.
Place the line net localgroup "Administrators" "User" /Add into a file called addusr.cmd
Then replace the above line with psexec \\%2 -d -i -c addusr.cmd
I modified an existing batch file I had for pushing out patches remotely and forgot to correctly edit the last line
Business Accounts
Answer for Membership
by: aleinssPosted on 2009-04-20 at 07:51:15ID: 24185167
Start>Run>Type in "MMC>Add Computer Management Snap-in>
Select Another Computer>Enter in the computer name of the computer you want to manager
Say OK, then drill down to System Tools>Local Users and Groups>Groups>Administrators
Add the User account there
To remotely access the C drive on the desktops (to place files), you can use "targetpc\c$"