Or... you could use runas or SFimpersonator in your scripts to impersonate an administrative account for these tasks.
--
http://cwashington.netreach.net
On this site you will find resources for all of your Windows NT/2000/XP admin scripting needs. Everything you need to get up and running. OVER 800 Sample scripts . OVER 60 FREE scriptable COM objects. You will find reference materials, FAQs, and technical support via a public online forum we call the discussionLOUNGE and public chat rooms
Clarence
I wish to write a script that would allow the adding of the currently
logged in user to the local admin group (after supplying admin account and
password). Then being able to remove the user from that group. It would
make doing software updates infinatly easier. I would not have to log the
user out, make them a member, log them back in, run the update, log them
out, remove them from the group, let them log back in to veryify blah to
much stuff for such a simple process. TIA! This would be a life saver.