Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

4,333

Downloads

3,186

Downloads of v 0.0.3

10/31/2014

Last update

Disable UAC (User Account Control)

0.0.3

Package test results are passing.

This package was approved by moderator gep13 on 4/17/2015.

Disable UAC (User Account Control)

This does exactly what it says it does, it disables UAC. Be careful on Windows 8, as the Metro apps will no longer work.

To install Disable UAC (User Account Control), run the following command from the command line or from PowerShell:

C:\> choco install disableuac

To upgrade Disable UAC (User Account Control), run the following command from the command line or from PowerShell:

C:\> choco upgrade disableuac

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $packageName = 'disableuac'
    
    try {
      $uacRegPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
      $uacRegValue = "EnableLUA"
      $uacEnabled = $false
    
      # http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
      $osVersion = [Environment]::OSVersion.Version
      if ($osVersion -ge [Version]'6.0')
      {
        $uacRegSetting = Get-ItemProperty -Path $uacRegPath
        try {
          $uacValue = $uacRegSetting.EnableLUA
          if ($uacValue -eq 1) {
            $uacEnabled = $true
          } else {
            Write-Host "UAC is already disabled."
          }
        } catch {}
      } else {
        Write-Host "UAC doesn't exist on this machine."
      }
    
      if ($uacEnabled) {
        Start-ChocolateyProcessAsAdmin "Set-ItemProperty -Path `"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System`" -Name `"EnableLUA`" -Value 0"
        Write-Host "UAC has been disabled"
      }
    
      Write-ChocolateySuccess "$packageName"
    } catch {
      Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
      throw
    }
    
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Rob Reynolds

Tags

Version History

Version Downloads Last updated Status
Disable UAC (User Account Control) 0.0.2 885 Wednesday, December 4, 2013 approved
Disable UAC (User Account Control) 0.0.1 262 Wednesday, December 4, 2013  

Discussion for the Disable UAC (User Account Control) Package

Ground rules:

  • This discussion is only about Disable UAC (User Account Control) and the Disable UAC (User Account Control) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Disable UAC (User Account Control), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok