From e5a12146e3cdfc13add8450c4028be9eff3aaadc Mon Sep 17 00:00:00 2001 From: bschaper Date: Tue, 10 Dec 2024 13:59:54 -0600 Subject: [PATCH] Switched to: winget install --exact --id --- Autounattend/Laptop/autounattend.xml | 4 +-- TCSE-Computer-Deploy.bat | 42 ++++++++++++++++------------ 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/Autounattend/Laptop/autounattend.xml b/Autounattend/Laptop/autounattend.xml index a0309fb..6cf71f9 100644 --- a/Autounattend/Laptop/autounattend.xml +++ b/Autounattend/Laptop/autounattend.xml @@ -1,6 +1,6 @@ - + @@ -23,7 +23,7 @@ - 8PTT6-RNW4C-6V7J2-C2D3X-MHBPB + VK7JG-NPHTM-C97JM-9MPGT-3V66T true diff --git a/TCSE-Computer-Deploy.bat b/TCSE-Computer-Deploy.bat index 308a164..7a88c58 100644 --- a/TCSE-Computer-Deploy.bat +++ b/TCSE-Computer-Deploy.bat @@ -11,27 +11,33 @@ powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts :: Install Chocolatey Package Manager echo Installing Chocolatey... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install --id chocolatey.chocolatey --source winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install --id chocolatey.chocolatey --source winget +winget install --exact --id chocolatey.chocolatey -h :: Install Adobe Reader echo Installing Adobe Reader... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Adobe.Acrobat.Reader.64-bit -h -s winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Adobe.Acrobat.Reader.64-bit -h -s winget +winget install --exact --id Adobe.Acrobat.Reader.64-bit -h :: Install Google Chrome Enterprise echo Installing Google Chrome... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Google.Chrome -h -s winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Google.Chrome -h -s winget +winget install --exact --id Google.Chrome -h :: Install Google Drive echo Installing Google Drive... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Google.GoogleDrive -h -s winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Google.GoogleDrive -h -s winget +winget install --exact --id Google.GoogleDrive -h :: Install VLC Media Player echo Installing VLC Media Player... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install VideoLAN.VLC -h -s winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install VideoLAN.VLC -h -s winget +winget install --exact --id VideoLAN.VLC -h :: Install Zoom echo Installing Zoom... -C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Zoom.Zoom -h -s winget +:: C:\Users\Tech\AppData\Local\Microsoft\WindowsApps\winget.exe install Zoom.Zoom -h -s winget +winget install --exact --id Zoom.Zoom -h :: Install Google Cloud Provider for Windows echo Installing Google Cloud Provider for Windows... @@ -81,20 +87,20 @@ for %%F in ("%PUBLIC_DESKTOP%\*.lnk") do ( echo Deleted !deleted_count! shortcut(s) from the Public Desktop. :: Install Google Cloud Provider for Windows - Second Time -echo Installing Google Cloud Provider for Windows Second Time... -C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall -echo Google Cloud Provider for Windows Installed Second Time... +:: echo Installing Google Cloud Provider for Windows Second Time... +:: C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall +:: echo Google Cloud Provider for Windows Installed Second Time... :: Add Scheduled Tasks to Force GCPW Update -echo Run Google Updater... -powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\Run-Google-Updater.ps1" -echo Run Create First Boot Restart Task... -powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\First-Boot-Restart-Task.ps1" +:: echo Run Google Updater... +:: powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\Run-Google-Updater.ps1" +:: echo Run Create First Boot Restart Task... +:: powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\First-Boot-Restart-Task.ps1" :: Install Google Cloud Provider for Windows - Third Time -echo Installing Google Cloud Provider for Windows Second Time... -C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall -echo Google Cloud Provider for Windows Installed Third Time... +:: echo Installing Google Cloud Provider for Windows Second Time... +:: C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall +:: echo Google Cloud Provider for Windows Installed Third Time... :: Copy Login Scripts to User Startup echo Copying Login Scripts to All Users... @@ -102,6 +108,6 @@ powershell Copy-Item 'C:\Scripts\TCSE-Login.vbs' 'C:\ProgramData\Microsoft\Windo echo Successfully Copied Login Scripts... :: Restart System -echo Restarting system in 5 minutes... -timeout /t 300 +echo Restarting system in 2.5 minutes... +timeout /t 150 shutdown /r /t 0 \ No newline at end of file