2
0

Added UAC Disable/Enable for Winget Installs

This commit is contained in:
bschaper 2024-12-12 15:52:03 -06:00
parent 2a901a2dc5
commit b0745ad21e

View File

@ -9,6 +9,9 @@ echo Office 2016 Installed...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts\01-PrinterInstall-AllPrinters.ps1" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts\01-PrinterInstall-AllPrinters.ps1"
powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts\02.2-PrinterProperties-Import.ps1" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts\02.2-PrinterProperties-Import.ps1"
:: Disable UAC to Allow for Winget Installs
powershell Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name EnableLUA -Value 0 -Force
:: Install Google Chrome Enterprise & Accept Winget Terms :: Install Google Chrome Enterprise & Accept Winget Terms
echo Installing Google Chrome... echo Installing Google Chrome...
winget install --exact --id Google.Chrome --silent --accept-source-agreements --accept-package-agreements winget install --exact --id Google.Chrome --silent --accept-source-agreements --accept-package-agreements
@ -47,6 +50,9 @@ winget install --exact --id Zoom.Zoom --silent
echo Installing Adobe Reader... echo Installing Adobe Reader...
winget install --exact --id Adobe.Acrobat.Reader.64-bit --silent winget install --exact --id Adobe.Acrobat.Reader.64-bit --silent
:: Enable UAC
powershell Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name EnableLUA -Value 1 -Force
:: Set Taskbar Layout for All Users :: Set Taskbar Layout for All Users
echo Setting Taskbar Layout... echo Setting Taskbar Layout...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\StartLayouts\Set-Taskbar-Layout.ps1" powershell -ExecutionPolicy Bypass -File "C:\Scripts\StartLayouts\Set-Taskbar-Layout.ps1"