Skip to content

Commit

Permalink
Add option to disable User Account Control
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Aug 11, 2024
1 parent c89c7cc commit 9dfa0d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public record class Configuration(
bool DisableDefender,
bool DisableDefenderPE,
bool DisableSac,
bool DisableUac,
bool DisableSystemRestore,
bool DisableFastStartup,
bool TurnOffSystemSounds,
Expand Down Expand Up @@ -317,6 +318,7 @@ HideModes HideFiles
DisableDefender: false,
DisableDefenderPE: false,
DisableSac: false,
DisableUac: false,
DisableFastStartup: false,
DisableSystemRestore: false,
TurnOffSystemSounds: false,
Expand Down
7 changes: 7 additions & 0 deletions modifier/Optimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ IEnumerable<string> SetExplorerOptions(string rootKey, string subKey)
);
}

if (Configuration.DisableUac)
{
appender.Append(
CommandBuilder.RegistryCommand(@"add ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"" /v EnableLUA /t REG_DWORD /d 0 /f")
);
}

if (Configuration.EnableLongPaths)
{
appender.Append(
Expand Down

0 comments on commit 9dfa0d4

Please sign in to comment.