JHP
Tue Sep 13 11:33:39 CDT 2005
Also... if your worried about sensitive data being easily accessed - you
could download the following MS Encoder and run it with the following
parameter:
screnc /l vbscript C:\RunAs.vbs C:\RunAs.vbe
http://www.microsoft.com/downloads/details.aspx?FamilyId=E7877F67-C447-4873-B1B0-21F0626A6329&displaylang=en
HTH
"JHP" <goawayspam@GFY.com> wrote in message
news:uxOQ27HuFHA.1364@tk2msftngp13.phx.gbl...
> Try the following (change the words in UPPER case to your configuration):
>
> Option Explicit
>
> Dim objShell
> Const WindowStyle = 2
> Const WaitOnReturn = False
>
> Set objShell = Wscript.CreateObject("WScript.Shell")
> objShell.Run "RunAs /user:ACCOUNT@DOMAIN " &_
> "C:\DIRECTORY\VSSetup.exe""", WindowStyle, WaitOnReturn
> WScript.Sleep 100
> objShell.Sendkeys "PASSWORD~"
> Set objShell = Nothing
>
> HTH
>
> "Micheal" <Micheal@discussions.microsoft.com> wrote in message
> news:A46393D7-2B70-4F8A-A7A8-34E7AD2CA823@microsoft.com...
>>I have a file "VSSetup.exe" that need to be installed with local admin
>> rights. I want to install through a script, but there is no way I am
>> going
>> to give the users elevated rights. How can I install the (McAfee
>> Antivirus
>> Product) with elevated permisions?
>>
>> Thank you all,
>
>