Re: Install patch as Admin

From: Jayjay (jjf_71_at_notmail.com)
Date: 09/11/03


Date: Thu, 11 Sep 2003 19:42:21 GMT


On Thu, 11 Sep 2003 15:02:34 -0400, "gdescote" <gdescote@hotmail.com>
wrote:

>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.



Relevant Pages

  • Re: Install patch as Admin
    ... > 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 ... > and running the file yourself, or putting it into a login script to ...
    (microsoft.public.win2000.security)
  • Re: please help.--3rd post. 2nd one lost in cyberspace--at least i cannot see it.
    ... seem like redirection operators work with the RunAs command. ... > i have downloaded and installed oracle. ... > this bactch file runs well in my user profile and since these two services ... > commands listed in the batch file. ...
    (microsoft.public.windowsxp.general)
  • Re: Backup Normal Vs Differential
    ... > then create a batch file with command line instructions to 'use' this backup ... > file and you schedule this batch file for operation. ... What switches are there and in what context are they ...
    (microsoft.public.windows.server.sbs)
  • Re: Batch files
    ... to use it as a batch file, just type in your complete xcopy command together ... with switches and then save it on a text file with an extension of .bat. ... the actual batch command won't be shown inside the dos box. ...
    (microsoft.public.windowsxp.general)
  • Re: Batch File Parameters
    ... It has so many switches that you need ... to run the command xxcopy /help> xxcopy.txt in order to ... >> to your batch file so that every parameter gets echoed to ... >>> goto GETNEXT ...
    (microsoft.public.windowsxp.general)