Marten,
Welcome to the board! Man.. It is amazing how these things come up all of the sudden. 
Did you get a chance to look over at the FAQ Forum?
Specfically, Installing an Application as an Admin
Well.. Did some research and it is not real simple.. But, as you read my response you will see how to arrive at a good conclusion.. Please bear with me as this response is a little long as I do some pretty extensive testing..
Hmm.. Let's see here.. We can try runas..
quote:
C:\>runas /?
RUNAS USAGE:
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/user: program
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/smartcard [/user:] program
/noprofile specifies that the user's profile should not be loaded.
This causes the application to load more quickly, but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows XP Home Edition
and will be ignored.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples
Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
NOTE: /profile is not compatible with /netonly.
Alright, let's try it..
This works.. However, you have to enter in everything manually..
quote:
C:\>runas /profile /env /user:%userdomain%\%username% cmd
Enter the password for DOMAIN\KDyer:
Attempting to start cmd as user "DOMAIN\KDyer" ...
We know with one of the things with the del command, we can echo through a "y" for a response..
For example -
echo y|Del C:\Somefolder\*.*
So, let's take the same logic and try to echo through a password through runas..
This does not work.. That is "echoing" the password through runas..
quote:
echo |runas /profile /env /user:%userdomain%\%username% cmd
C:\>ECHO |runas /profile /env /user:%userdomain%\%username% cmd
Enter the password for DOMAIN\KDyer:
Attempting to start cmd as user "DOMAIN\Kdyer" ...
RUNAS ERROR: Unable to run - cmd
1326: Logon failure: unknown user name or bad password.
This does not work.. Echoing password through runas with a "." as an enter key..
quote:
echo .|runas /profile /env /user:%userdomain%\%username% cmd
This does not work..
quote:
echo |runas /profile /env /user:%COMPUTERNAME%\%username% cmd
This does not work.. Echoing password through runas with a "." as an enter key..
quote:
echo .|runas /profile /env /user:%COMPUTERNAME%\%username% cmd
This does not work..
quote:
runas /noprofile /user:"NT AUTHORITY\SYSTEM" cmd
This does not work..
quote:
echo .|runas /noprofile /user:"NT AUTHORITY\SYSTEM" cmd
Another alternative is SANUR..
http://www.commandline.co.uk/sanur_unsupported/index.html
quote:
Pipe the password 'pa55w0rd' into Runas:-
runas /u:domain\username program.exe | sanur pa55w0rd
This does work!!
quote:
runas /u:%userdomain%\%username% cmd | sanur
Other alternatives..
http://www.commandline.co.uk/sanur/index.html
I tried to find a copy of the Windows 2000 Resource Kit, but could not find it locally..
You are supposed to be able to use the SU.EXE (switch user, which is also used in the UNIX World).. I also think there is a program called SCHTASKS.EXE in the 2000 Resource Kit as well..
Here is another way to schedule tasks..
ftp://ftp.microsoft.com/reskit/win2000/jt.zip
HTH,
Kent