# installation of a selection of packages the -y option is to avoid any confimation requestĬhoco install adobereader 7zip firefox notepadplusplus vlc choco-upgrade-all-at-startup -y Set PATH=%PATH% %ALLUSERSPROFILE%\chocolatey\binĬhoco feature enable -n allowGlobalConfirmation Powershell -NoProfile -ExecutionPolicy Bypass -Command "::SecurityProtocol = ::SecurityProtocol -bor 3072 iex ((New-Object ).DownloadString(' '))"
REM -> If error flag set, we do not have admin.Įcho Requesting administrative privileges.Įcho Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"Įcho UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 > "%temp%\getadmin.vbs" >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
Here is the script I use it's a ".bat" off