Added UAC Disable/Enable for Winget Installs
This commit is contained in:
parent
2a901a2dc5
commit
b0745ad21e
@ -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\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
|
||||
echo Installing Google Chrome...
|
||||
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...
|
||||
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
|
||||
echo Setting Taskbar Layout...
|
||||
powershell -ExecutionPolicy Bypass -File "C:\Scripts\StartLayouts\Set-Taskbar-Layout.ps1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user