login with the an admin account then run the script?
run the script as a scheduled task i think it then runs as system?
use runas to call the script?
use psexec.exe when logged onto remote machine as user will elevated permissions?
start the script from some installation service? e.g. altiris, sccm, sms, these clients will prob have elevated rights?
pass the script as command line parameters the creditials you want it to use in its calls?
use cacls or xcacls to assign folder permissions?
I Hear, I Forget
I See, I Remember
I Do, I Understand
Ronald McDonald