Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UAC default reg value is wrong #150

Open
mind12 opened this issue Oct 5, 2024 · 2 comments
Open

UAC default reg value is wrong #150

mind12 opened this issue Oct 5, 2024 · 2 comments

Comments

@mind12
Copy link

mind12 commented Oct 5, 2024

Hi,

I created a custom xml using your awesome templates and found that in every xml when you enable back UAC the EnableLUA registry has a decimal value of 3 while in every document it's 1.
I think 1 is the correct value for this.
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-gpsb/958053ae-5397-4f96-977f-b7700ee461ec

:: Enables User Account Control (Default Value)
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 3 /f
@mind12
Copy link
Author

mind12 commented Oct 5, 2024

In the LTSC version of the script that Reg entry doesn't exist.... UAC is "re-enabled" with a command script instead.

:: Disables User Account Control Temporarily - Without this entry, some commands in the currentuser.cmd script will fail. UAC is re-enabled in the currentuser.cmd script again. reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f

<Description>Registry Entry to Execute the HKCU Registry Entry Script the First Time a New User Logs In</Description> <Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Runonce" /v "currentuser" /t REG_SZ /d "C:\Windows\Setup\Scripts\currentuser.cmd" /f</Path>

So, don't know what the code means you quote....

Here is a screenshot from the LTSC xml file:
image

@leeuniverse
Copy link

LOL... I'm an idiot. I was searching for UAC. LOL Nevermind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants