You can do this several ways. The first two methods require that your user have Admin permissions on the computer already. The third requires that you install and use SU.exe. The last method would be for you as Admin to execute a script that makes the change to a remote computer via the network.
1. Net localgroup administrators Domain\Account /add
2. Script with COM. This also requires ADSI on the client. code:
$grp = GetObject("WinNT://@wksta/administrators")
$grp.add("WinNT://@Ldomain/group1")
3. Use SU.exe to give the script the required permissions then use #1 or #2. Never used it, but you can find many threads on its use.
4. You can modify the script in #2 and run from your computer and target other computers. Or you can use a third party tool like AddToAdmin.exe
This thread contains many good ADSI code snippets: Add to Your ADSI Code Library
[ 07 May 2002, 22:40: Message edited by: Howard Bullock ]