Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Vista
admin account
file management
games
general
hardware assessment
hardware devices
installation
mail
multimedia
networking sharing
performance
print_fax_scan
security
  
 
date: Thu, 3 Jul 2008 05:00:01 -0700,    group: microsoft.public.windows.vista.security        back       


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
date: Thu, 3 Jul 2008 05:00:01 -0700   author:   Rakesh

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

http://www.vistax64.com/tutorials/162976-bypass-uac.html

-- 
Sincerely,

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

"Rakesh"  wrote in message 
news:9D03D5C9-EB40-4672-B110-B7421DF02F88@microsoft.com...
> 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
date: Thu, 3 Jul 2008 15:12:26 +0300   author:   Daniel Petri MVP vethis

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:

> Try this tip:
> 
> http://www.vistax64.com/tutorials/162976-bypass-uac.html
> 
> -- 
> Sincerely,
> 
> Daniel Petri
> MVP, Senior IT consultant, trainer
> www.petri.co.il
> 
> "Rakesh"  wrote in message 
> news:9D03D5C9-EB40-4672-B110-B7421DF02F88@microsoft.com...
> > 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 
>
date: Thu, 3 Jul 2008 07:50:01 -0700   author:   Rocky

Re: How to run a .vbs file in administrator mode by default   
have you tried compatibility mode?


"Rocky"  wrote in message 
news:29D71CD0-0134-4435-8FF4-82706BE56038@microsoft.com...
> 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:
>
>> Try this tip:
>>
>> http://www.vistax64.com/tutorials/162976-bypass-uac.html
>>
>> -- 
>> Sincerely,
>>
>> Daniel Petri
>> MVP, Senior IT consultant, trainer
>> www.petri.co.il
>>
>> "Rakesh"  wrote in message
>> news:9D03D5C9-EB40-4672-B110-B7421DF02F88@microsoft.com...
>> > 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
>>
date: Thu, 3 Jul 2008 18:27:24 -0700   author:   Beoweolf

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us