memstechtips / UnattendedWinstall

Personalized Unattended Answer Files that helps automatically debloat and customize Windows 10 & 11 during the installation process.
MIT License
2.51k stars 305 forks source link

winget require powershell credentials when fresh install Windows #104

Closed phjtieudoc closed 3 hours ago

phjtieudoc commented 1 month ago

I fresh install Windows 10 June 2024 Update with Standard version of UnattendedWinstall on a VMWare, when I use CTT to install with Winget, the PowerShell menu dispalyed a popup that require "attempt installation with specific user credentials", that's weird since I fresh install with a fresh ISO, and the old version of UWinstall with the same ISO, the Winget work just fine. I don't know what to type since it always say wrong password.

image image

memstechtips commented 1 month ago

Hi, I think it's related to User Account Control Settings.

Please Run this in CMD or PowerShell and restart your PC then test again.


:: 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 ```
phjtieudoc commented 3 weeks ago

look like it's didn't work for me.

image
felipedamata commented 3 weeks ago

@phjtieudoc You should execute the command without the ```entries, probably a copy paste mistake. So, it would be: reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 3 /f

Tip: This must be run as admin