Install patch as Admin

G

gdescote

Is it a way to install a patch or program as administrator (batch), when the
user dont have the right to install any application.....

I try the command "runas" but it not possible to put the password on this
command...

Gérald
 
J

Jayjay

Is it a way to install a patch or program as administrator (batch), when the
user dont have the right to install any application.....

I try the command "runas" but it not possible to put the password on this
command...

Gérald

Its not the best way - but it has been working for me - I've been
using the program "autoit" from hiddensoft. Creating a script that
sends the text of the admin password to the runas command when
prompted.
 
J

Jayjay

Do you have a exemple of your script.... I'am curious.....

Thank

quick and basic way I got it to work.

Create a batch file with the runas command in it

runas /user:[domain\user] "cmd /c [patch location and appropriate
switches for running, I used the switches for unattend and to not
reboot when finished]"

Create the script file with the following text:

RUN, [batchfile location]
send, [password]
send, {enter}


It would be nice to run the runas command in the script file - instead
of creating the batch file to run it, but I tried w/ autoit for a few
hours today and couldn't get it to work properly, so resorted to the
above.
The trick is - running it on every computer. One possibility is to
email to users instructing to run the file, or going to each machine
and running the file yourself, or putting it into a login script to
run at login - but this may have to run for days to catch all users if
not every pc is used daily.
 
G

gdescote

Merci Beaucoup Jayjay,
Everything is working

Jayjay said:
Do you have a exemple of your script.... I'am curious.....

Thank

quick and basic way I got it to work.

Create a batch file with the runas command in it

runas /user:[domain\user] "cmd /c [patch location and appropriate
switches for running, I used the switches for unattend and to not
reboot when finished]"

Create the script file with the following text:

RUN, [batchfile location]
send, [password]
send, {enter}


It would be nice to run the runas command in the script file - instead
of creating the batch file to run it, but I tried w/ autoit for a few
hours today and couldn't get it to work properly, so resorted to the
above.
The trick is - running it on every computer. One possibility is to
email to users instructing to run the file, or going to each machine
and running the file yourself, or putting it into a login script to
run at login - but this may have to run for days to catch all users if
not every pc is used daily.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top