daddysmurf
New Member
Hi all, first of many posts, I'm sure. Here goes 
My company installs our software on about 50 computers a day. Included with that install is a remote-login software. In order for everything to work properly, we have to make a user, elevate that user to administrator, hide the user, and set power settings correctly. In xp, this is no problem, and up until now, we've required our clients have 2000 or xp. As vista is now over a year old, we're adding support for it too.
My problem is that the batch file I've written to handle adding a user and setting the computer properly requires administrative rights (see 'add user'). Everything I've read says something along the lines of 'right click, run as administrator' or 'to turn off uac, do this.' These are not options for me. The people installing this software are usually about computer savy as my grandmother, so I can't have them performing extra steps beyond 'click here. this pops up. click here. this happens. click here.' I'm ok with with boxes popping up asking for permission, but I can't assume they'll understand right-click.
I need to know how to raise my permission level from the command line. I need to be able to do this on any computer, no matter the computer name, administrator name, etc.
Thanks for any help you can provide.
found my answer here:
Run Commands Elevated In Batch Scripts - Vista

My company installs our software on about 50 computers a day. Included with that install is a remote-login software. In order for everything to work properly, we have to make a user, elevate that user to administrator, hide the user, and set power settings correctly. In xp, this is no problem, and up until now, we've required our clients have 2000 or xp. As vista is now over a year old, we're adding support for it too.
My problem is that the batch file I've written to handle adding a user and setting the computer properly requires administrative rights (see 'add user'). Everything I've read says something along the lines of 'right click, run as administrator' or 'to turn off uac, do this.' These are not options for me. The people installing this software are usually about computer savy as my grandmother, so I can't have them performing extra steps beyond 'click here. this pops up. click here. this happens. click here.' I'm ok with with boxes popping up asking for permission, but I can't assume they'll understand right-click.
I need to know how to raise my permission level from the command line. I need to be able to do this on any computer, no matter the computer name, administrator name, etc.
Thanks for any help you can provide.
found my answer here:
Run Commands Elevated In Batch Scripts - Vista
Last edited: