Install patch as Admin

  • Thread starter Thread starter gdescote
  • Start date Start date
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
 
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.
 
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.
 
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.
 
Back
Top