Windows Service in C# written to disable UAC in the registry on a timer.
Because sometimes Group Policy can get in the way..
##Installation
-
Make sure you are logged in with an administrative account
-
Disable UAC in Control Panel\All Control Panel Items\User Accounts\Change User Account Control settings
-
Download the latest release, currently vMediumRoast.
-
Unzip the release to a directory such as
C:\Temp
. -
Open up powershell and make sure you have adminstrative rights. You may need to run
Set-ExecutionPolicy Unrestricted
, depending on your machine's settings.- Navigate into the directory with
cd
.
- Navigate into the directory with
-
Run
.\InstallUAC.ps1
, and everything should run for you.- There are 2 customizable parameters:
-ServiceName
(default: "DisableUAC") and-InstallPath
(default: "C:\Utilities"). They should be self explantory what they do...
- There are 2 customizable parameters:
-
Get coffee, preferably dark and with a lot of caffeine. No milk and sugar allowed.
-
Enjoy all your new found free time not spent typing in your credentials every 2 minutes!
##Notes
- The solution is for VS2015 Update 3 which may not be reverse compatible, also you may want to make sure this truly works on your specific configuration as there are other GP settings that could get in the way.
- I have only tested this in Windows 7 x64
- You need to run this as administrator, and I claim NO responsibility if you violate company policy, damage your computer, or if anything happens whatsoever. You claim ALL responsibility by using this and agree to not hold me liable in any way shape or form.
- The timer hits every 30 seconds by default, so there is a window where UAC might turn on, this is all dependent on how your GP is set up, this is customizable by changing the
appSetting
calledTimerIntervalInSeconds
.
##Thanks
Thanks to @SharpProgrammer for his help with this.