How to disable UAC
It's not that difficult to disable UAC if you read this blog. However, is there a way to do it in PowerShell or in scripts? I can't find a command that detects if UAC is enabled or disables UAC. Do you know how to do this at the command prompt?
February 7th, 2008 11:37pm

You can use runas
Free Windows Admin Tool Kit Click here and download it now
February 8th, 2008 7:47pm

http://www.microsoft.com/technet/technetmag/issues/2007/06/UtilitySpotlight/default.aspx
February 8th, 2008 7:51pm

The best way is to change the registry key at registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system; key = EnableLUAYou can use the following powershell code to check the value: Code Snippet $UAC = Get-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA$UAC.EnableLUATo change the value and disable UAC: Code Snippet Set-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -Value 0You need to reboot to make it take effect.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2008 11:52pm

I'm not sure I'd agree this is the best way (this way requires a reboot), but If you have found the answer you are looking for, please mark the post as answered.
February 13th, 2008 8:07am

There is no way to disable UAC without a logoff. UAC affects how your token is built at logon. Therefore you need to create a new token to get a full administrative token, and that requires a logoff-logon process. Instead of arguing about not disabling UAC, might I suggest the untied string bikini mode instead? http://msmvps.com/blogs/bradley/archive/2008/02/08/keep-your-bikini-on.aspx It's not quite like running naked. It's close, but not quite.
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2008 8:38am

Hello, I am using the Vista Home Premium and when I check the key on my computer, its already set to zero! That didnt work. Turning it off using the preferences is no good either because that balloon keeps popping up telling me to check my security settings. Thanks,
April 5th, 2008 5:35am

I think you are in the wrong forum. This is a Server 2008 forum. What are you trying to do, and what is not working? You may want to take it to the Vista forum: http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx?dg=microsoft.public.windows.vista.security.
Free Windows Admin Tool Kit Click here and download it now
April 5th, 2008 9:01am

how do I have the output show $objComputer.name is running $strOperatingSystem?
April 1st, 2010 12:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics