Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

How to run a .vbs file in administrator mode by default

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 07-03-2008   #1 (permalink)
Rakesh
Guest


 

How to run a .vbs file in administrator mode by default

Hi,

I have a vb script file which does some thing like putting some files in
program files folder and tweaking registry entries etc. How can I run this
script as Administrator by default with out right clicking the cmd and then
selecting the "Run As Administrator"
Please help...
Thanks in Advance

My System SpecsSystem Spec
Old 07-03-2008   #2 (permalink)
Daniel Petri
Guest


 

Re: How to run a .vbs file in administrator mode by default

Try this tip:

Bypass UAC

--
Sincerely,

Daniel Petri
MVP, Senior IT consultant, trainer
www.petri.co.il

"Rakesh" <Rocky@xxxxxx> wrote in message
news:9D03D5C9-EB40-4672-B110-B7421DF02F88@xxxxxx
Quote:

> Hi,
>
> I have a vb script file which does some thing like putting some files in
> program files folder and tweaking registry entries etc. How can I run this
> script as Administrator by default with out right clicking the cmd and
> then
> selecting the "Run As Administrator"
> Please help...
> Thanks in Advance
My System SpecsSystem Spec
Old 07-03-2008   #3 (permalink)
Rocky
Guest


 

Re: How to run a .vbs file in administrator mode by default

Thanks for the response.

The below tip does not solve my purpose, my case is like this:
When I run my .vbs file directly it is not working and says "Permission
Denied".
But When I run the same .vbs file from command prompt which has been opened
as Administrator (right click and run as administrator) it is working
properly.
But running the script this way is not a feasible solution for users of my
script.
I need some code snippet which runs my .vbs file using administrator
privileges.

Thanks,

"Daniel Petri <MVP>" wrote:
Quote:

> Try this tip:
>
> Bypass UAC
>
> --
> Sincerely,
>
> Daniel Petri
> MVP, Senior IT consultant, trainer
> www.petri.co.il
>
> "Rakesh" <Rocky@xxxxxx> wrote in message
> news:9D03D5C9-EB40-4672-B110-B7421DF02F88@xxxxxx
Quote:

> > Hi,
> >
> > I have a vb script file which does some thing like putting some files in
> > program files folder and tweaking registry entries etc. How can I run this
> > script as Administrator by default with out right clicking the cmd and
> > then
> > selecting the "Run As Administrator"
> > Please help...
> > Thanks in Advance
>
My System SpecsSystem Spec
Old 07-03-2008   #4 (permalink)
Beoweolf
Guest


 

Re: How to run a .vbs file in administrator mode by default

have you tried compatibility mode?


"Rocky" <Rocky@xxxxxx> wrote in message
news:29D71CD0-0134-4435-8FF4-82706BE56038@xxxxxx
Quote:

> Thanks for the response.
>
> The below tip does not solve my purpose, my case is like this:
> When I run my .vbs file directly it is not working and says "Permission
> Denied".
> But When I run the same .vbs file from command prompt which has been
> opened
> as Administrator (right click and run as administrator) it is working
> properly.
> But running the script this way is not a feasible solution for users of my
> script.
> I need some code snippet which runs my .vbs file using administrator
> privileges.
>
> Thanks,
>
> "Daniel Petri <MVP>" wrote:
>
Quote:

>> Try this tip:
>>
>> Bypass UAC
>>
>> --
>> Sincerely,
>>
>> Daniel Petri
>> MVP, Senior IT consultant, trainer
>> www.petri.co.il
>>
>> "Rakesh" <Rocky@xxxxxx> wrote in message
>> news:9D03D5C9-EB40-4672-B110-B7421DF02F88@xxxxxx
Quote:

>> > Hi,
>> >
>> > I have a vb script file which does some thing like putting some files
>> > in
>> > program files folder and tweaking registry entries etc. How can I run
>> > this
>> > script as Administrator by default with out right clicking the cmd and
>> > then
>> > selecting the "Run As Administrator"
>> > Please help...
>> > Thanks in Advance
>>
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
administrator login as default jlavell General Discussion 1 08-27-2008 03:50 PM
Does Vista Have Administrator Default Password? Hannes Vista account administration 3 08-09-2008 09:33 AM
Run a program as administrator in XP mode Inge Vista installation & setup 2 04-09-2007 10:34 AM
Default Administrator AJ Vista account administration 7 07-27-2006 07:46 AM
Why the default account is an administrator and not a standard use BillD Vista security 6 06-18-2006 02:23 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51