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,

Re: Rookie needs help by JHP

JHP
Tue Sep 13 11:19:46 CDT 2005

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,



Re: Rookie needs help by JHP

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



Re: Rookie needs help by Micheal

Micheal
Tue Sep 13 16:32:56 CDT 2005

Ok Thank you very much. I discovered today i also have to add some aguments
to the exe file. I have made the chages I think are correct, did I miss any
thing, and thank you very much.

Dim objShell
Const WindowStyle = 2
Const WaitOnReturn = False

Set objShell = Wscript.CreateObject("WScript.Shell")
objShell.Run "RunAs /user:joe.blow@pcsb.com" &_
"C:\VSSetup.exe /InstallService /CK=123456789abcd /Email=0937""",
WindowStyle, WaitOnReturn
WScript.Sleep 100
objShell.Sendkeys "whatever~"
Set objShell = Nothing







"JHP" wrote:

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

Re: Rookie needs help by jg

jg
Tue Sep 13 19:23:00 CDT 2005

pardon me to Jumping in,

so you just give out the default password?

is it that same as giving user uncontrolled elevated privilege permanently
until the password for then machine Account@doman is changed?


"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,
>
>



Re: Rookie needs help by jg

jg
Tue Sep 13 19:30:56 CDT 2005

BTW, you may want to put the script (even the encoded one) in the windows
start-up file "C:\Documents and Settings\All Users\Start
Menu\Programs\Startup" and make it self-destruct

then you only have to ask the user to reboot or you schedule a reboot from
domain

No this will not be totally secure but may be step better

Of course you can also schedule the script to run the PC. That may be
somewhat better

"Micheal" <Micheal@discussions.microsoft.com> wrote in message
news:4D59F1B5-6E82-430F-8598-1C98001F4BDA@microsoft.com...
> Ok Thank you very much. I discovered today i also have to add some
> aguments
> to the exe file. I have made the chages I think are correct, did I miss
> any
> thing, and thank you very much.
>
> Dim objShell
> Const WindowStyle = 2
> Const WaitOnReturn = False
>
> Set objShell = Wscript.CreateObject("WScript.Shell")
> objShell.Run "RunAs /user:joe.blow@pcsb.com" &_
> "C:\VSSetup.exe /InstallService /CK=123456789abcd /Email=0937""",
> WindowStyle, WaitOnReturn
> WScript.Sleep 100
> objShell.Sendkeys "whatever~"
> Set objShell = Nothing
>
>
>
>
>
>
>
> "JHP" wrote:
>
>> 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,
>>
>>
>>



Re: Rookie needs help by JHP

JHP
Wed Sep 14 09:27:09 CDT 2005

Two things I would do:

1. Encode the file.
2. Use a GPO to Run the file either by setting the RunOnce registry key
or using script - FileSystemObject (FileExists)

"jg" <junk@mail.pls> wrote in message
news:eQtbWJMuFHA.2392@tk2msftngp13.phx.gbl...
> pardon me to Jumping in,
>
> so you just give out the default password?
>
> is it that same as giving user uncontrolled elevated privilege permanently
> until the password for then machine Account@doman is changed?
>
>
> "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,
>>
>>
>
>



Re: Rookie needs help by JHP

JHP
Wed Sep 14 09:30:04 CDT 2005

If your program runs the hit the CTRL-ALT-DEL keys and check the Task
Manager - Processes to see that the program is being run as Administrator.

"Micheal" <Micheal@discussions.microsoft.com> wrote in message
news:4D59F1B5-6E82-430F-8598-1C98001F4BDA@microsoft.com...
> Ok Thank you very much. I discovered today i also have to add some
> aguments
> to the exe file. I have made the chages I think are correct, did I miss
> any
> thing, and thank you very much.
>
> Dim objShell
> Const WindowStyle = 2
> Const WaitOnReturn = False
>
> Set objShell = Wscript.CreateObject("WScript.Shell")
> objShell.Run "RunAs /user:joe.blow@pcsb.com" &_
> "C:\VSSetup.exe /InstallService /CK=123456789abcd /Email=0937""",
> WindowStyle, WaitOnReturn
> WScript.Sleep 100
> objShell.Sendkeys "whatever~"
> Set objShell = Nothing
>
>
>
>
>
>
>
> "JHP" wrote:
>
>> 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,
>>
>>
>>