Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - UAC and scripting

Reply
 
Old 05-08-2008   #1 (permalink)
sputnik


 
 

UAC and scripting

What is Microsofts solution if you run vbscripts for administrative
tasks and these are affected by UAC ?

Swicthing UAC off requires a restart, once to disable and then once to
enable UAC once script has finished running, which hardly makes the
administrative change transparent to the user. Group policies are handy
to do this, and was a good idea but the question is the restart thats
required.

You can turn it off completely and leave it off which sounds like the
best idea, but I'm really curious about Microsoft's take on this ?
There must be some big companies using scripts out there. How do people
get around this ?

cheers

My System SpecsSystem Spec
Old 05-08-2008   #2 (permalink)
Charlie Russel - MVP


 
 

Re: UAC and scripting

I get around it by opening a window "As Administrator" and running scripts
that require administrative privileges from there. I don't run VB at all - I
use PowerShell for my scripting. But the requirements should be the same.

--
Charlie.
http://msmvps.com/blogs/xperts64
http://mvp.support.microsoft.com/profile/charlie.russel


"sputnik" <sputnik@xxxxxx> wrote in message
news:%23%23$yB2RsIHA.3632@xxxxxx
Quote:

> What is Microsofts solution if you run vbscripts for administrative tasks
> and these are affected by UAC ?
>
> Swicthing UAC off requires a restart, once to disable and then once to
> enable UAC once script has finished running, which hardly makes the
> administrative change transparent to the user. Group policies are handy
> to do this, and was a good idea but the question is the restart thats
> required.
>
> You can turn it off completely and leave it off which sounds like the best
> idea, but I'm really curious about Microsoft's take on this ? There must
> be some big companies using scripts out there. How do people get around
> this ?
>
> cheers
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Registry scripting VB Script
Re: batch scripting VB Script
Scripting question Vista General
VB scripting help VB Script
Scripting bug? PowerShell


Vista Forums 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 Ltd

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