2
0

Switched to: winget install --exact --id

This commit is contained in:
bschaper 2024-12-10 13:59:54 -06:00
parent 1dff180cb6
commit e5a12146e3
2 changed files with 26 additions and 20 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&BypassNetworkCheck=true&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Explicit&TimeZone=Central+Standard+Time&PartitionMode=Unattended&PartitionLayout=GPT&EspSize=600&RecoveryMode=Partition&RecoverySize=1500&WindowsEditionMode=Unattended&WindowsEdition=pro_education&UserAccountMode=Unattended&AccountName0=Tech&AccountPassword0=SandlotSlickBoat25%21&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&TaskbarSearch=Icon&ShowFileExtensions=true&DisableWidgets=true&LeftTaskbar=true&DeleteTaskbarIcons=true&HideTaskViewButton=true&DisableBingResults=true&AllowPowerShellScripts=true&DisableAppSuggestions=true&PreventDeviceEncryption=true&HideEdgeFre=true&WifiMode=Unattended&WifiName=Tricounty&WifiAuthentication=WPA2PSK&WifiPassword=TCSEwifi19%21&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Custom&SystemColorTheme=Light&AppsColorTheme=Light&AccentColor=%230078d4&WallpaperMode=Solid&WallpaperColor=%230978d3&Remove3DViewer=true&RemoveBingSearch=true&RemoveCalculator=true&RemoveCamera=true&RemoveClipchamp=true&RemoveClock=true&RemoveCopilot=true&RemoveCortana=true&RemoveDevHome=true&RemoveFamily=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveHandwriting=true&RemoveInternetExplorer=true&RemoveMailCalendar=true&RemoveMaps=true&RemoveMathInputPanel=true&RemoveMediaFeatures=true&RemoveMixedReality=true&RemoveZuneVideo=true&RemoveNews=true&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOneSync=true&RemoveOpenSSHClient=true&RemoveOutlook=true&RemovePaint=true&RemovePaint3D=true&RemovePeople=true&RemovePhotos=true&RemovePowerAutomate=true&RemovePowerShell2=true&RemovePowerShellISE=true&RemoveQuickAssist=true&RemoveRecall=true&RemoveRdpClient=true&RemoveSkype=true&RemoveSolitaire=true&RemoveSpeech=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveGetStarted=true&RemoveToDo=true&RemoveVoiceRecorder=true&RemoveWallet=true&RemoveWeather=true&RemoveFaxAndScan=true&RemoveWindowsHello=true&RemoveWindowsMediaPlayer=true&RemoveZuneMusic=true&RemoveWordPad=true&RemoveXboxApps=true&RemoveYourPhone=true&StartTilesMode=Default&StartPinsMode=Empty&FirstLogonScript0=curl+-L+https%3A%2F%2Fgitea.tcse.us%2Ftricounty%2Ftcse-deploy%2Farchive%2Fmain.zip+%2D%2Doutput+C%3A%5CScripts.zip&FirstLogonScriptType0=Cmd&FirstLogonScript1=Expand-Archive+-Path+%27C%3A%5CScripts.zip%27+-DestinationPath+%27C%3A%5CScripts%27%0D%0Atimeout+%2Ft+15%0D%0ARemove-Item+-Path+%27C%3A%5CScripts.zip%27&FirstLogonScriptType1=Ps1&FirstLogonScript2=Move-Item+-Path+%27C%3A%5CScripts%5Ctcse-deploy%5C*%27+-Destination+%27C%3A%5CScripts%27%0D%0Atimeout+%2Ft+15%0D%0ARemove-Item+-Path+%27C%3A%5CScripts%5Ctcse-deploy%5C%27&FirstLogonScriptType2=Ps1&FirstLogonScript3=C%3A%5CScripts%5CTCSE-Computer-Deploy.bat&FirstLogonScriptType3=Cmd&WdacMode=Skip--> <!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&BypassNetworkCheck=true&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Explicit&TimeZone=Central+Standard+Time&PartitionMode=Unattended&PartitionLayout=GPT&EspSize=600&RecoveryMode=Partition&RecoverySize=1500&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AccountName0=Tech&AccountPassword0=SandlotSlickBoat25%21&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&TaskbarSearch=Icon&ShowFileExtensions=true&DisableWidgets=true&LeftTaskbar=true&DeleteTaskbarIcons=true&HideTaskViewButton=true&DisableBingResults=true&AllowPowerShellScripts=true&DisableAppSuggestions=true&PreventDeviceEncryption=true&HideEdgeFre=true&WifiMode=Unattended&WifiName=Tricounty&WifiAuthentication=WPA2PSK&WifiPassword=TCSEwifi19%21&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Custom&SystemColorTheme=Light&AppsColorTheme=Light&AccentColor=%230078d4&WallpaperMode=Solid&WallpaperColor=%230978d3&Remove3DViewer=true&RemoveBingSearch=true&RemoveCalculator=true&RemoveCamera=true&RemoveClipchamp=true&RemoveClock=true&RemoveCopilot=true&RemoveCortana=true&RemoveDevHome=true&RemoveFamily=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveHandwriting=true&RemoveInternetExplorer=true&RemoveMailCalendar=true&RemoveMaps=true&RemoveMathInputPanel=true&RemoveMediaFeatures=true&RemoveMixedReality=true&RemoveZuneVideo=true&RemoveNews=true&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOneSync=true&RemoveOpenSSHClient=true&RemoveOutlook=true&RemovePaint=true&RemovePaint3D=true&RemovePeople=true&RemovePhotos=true&RemovePowerAutomate=true&RemovePowerShell2=true&RemovePowerShellISE=true&RemoveQuickAssist=true&RemoveRecall=true&RemoveRdpClient=true&RemoveSkype=true&RemoveSolitaire=true&RemoveSpeech=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveGetStarted=true&RemoveToDo=true&RemoveVoiceRecorder=true&RemoveWallet=true&RemoveWeather=true&RemoveFaxAndScan=true&RemoveWindowsHello=true&RemoveWindowsMediaPlayer=true&RemoveZuneMusic=true&RemoveWordPad=true&RemoveXboxApps=true&RemoveYourPhone=true&StartTilesMode=Default&StartPinsMode=Empty&FirstLogonScript0=curl+-L+https%3A%2F%2Fgitea.tcse.us%2Ftricounty%2Ftcse-deploy%2Farchive%2Fmain.zip+%2D%2Doutput+C%3A%5CScripts.zip&FirstLogonScriptType0=Cmd&FirstLogonScript1=Expand-Archive+-Path+%27C%3A%5CScripts.zip%27+-DestinationPath+%27C%3A%5CScripts%27%0D%0Atimeout+%2Ft+15%0D%0ARemove-Item+-Path+%27C%3A%5CScripts.zip%27&FirstLogonScriptType1=Ps1&FirstLogonScript2=Move-Item+-Path+%27C%3A%5CScripts%5Ctcse-deploy%5C*%27+-Destination+%27C%3A%5CScripts%27%0D%0Atimeout+%2Ft+15%0D%0ARemove-Item+-Path+%27C%3A%5CScripts%5Ctcse-deploy%5C%27&FirstLogonScriptType2=Ps1&FirstLogonScript3=C%3A%5CScripts%5CTCSE-Computer-Deploy.bat&FirstLogonScriptType3=Cmd&WdacMode=Skip-->
<settings pass="offlineServicing"></settings> <settings pass="offlineServicing"></settings>
<settings pass="windowsPE"> <settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
@ -23,7 +23,7 @@
</ImageInstall> </ImageInstall>
<UserData> <UserData>
<ProductKey> <ProductKey>
<Key>8PTT6-RNW4C-6V7J2-C2D3X-MHBPB</Key> <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
</ProductKey> </ProductKey>
<AcceptEula>true</AcceptEula> <AcceptEula>true</AcceptEula>
</UserData> </UserData>

View File

@ -11,27 +11,33 @@ powershell -ExecutionPolicy Bypass -File "C:\Scripts\Printers\01-Printer-Scripts
:: Install Chocolatey Package Manager :: Install Chocolatey Package Manager
echo Installing Chocolatey... 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 :: Install Adobe Reader
echo Installing 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 :: Install Google Chrome Enterprise
echo Installing Google Chrome... 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 :: Install Google Drive
echo Installing 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 :: Install VLC Media Player
echo Installing 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 :: Install Zoom
echo Installing 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 :: Install Google Cloud Provider for Windows
echo Installing 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. echo Deleted !deleted_count! shortcut(s) from the Public Desktop.
:: Install Google Cloud Provider for Windows - Second Time :: Install Google Cloud Provider for Windows - Second Time
echo Installing Google Cloud Provider for Windows Second Time... :: echo Installing Google Cloud Provider for Windows Second Time...
C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall :: C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall
echo Google Cloud Provider for Windows Installed Second Time... :: echo Google Cloud Provider for Windows Installed Second Time...
:: Add Scheduled Tasks to Force GCPW Update :: Add Scheduled Tasks to Force GCPW Update
echo Run Google Updater... :: echo Run Google Updater...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\Run-Google-Updater.ps1" :: powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\Run-Google-Updater.ps1"
echo Run Create First Boot Restart Task... :: echo Run Create First Boot Restart Task...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\First-Boot-Restart-Task.ps1" :: powershell -ExecutionPolicy Bypass -File "C:\Scripts\GCPW\First-Boot-Restart-Task.ps1"
:: Install Google Cloud Provider for Windows - Third Time :: Install Google Cloud Provider for Windows - Third Time
echo Installing Google Cloud Provider for Windows Second Time... :: echo Installing Google Cloud Provider for Windows Second Time...
C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall :: C:\Scripts\Software\gcpwstandaloneenterprise64.exe /silent /fullinstall
echo Google Cloud Provider for Windows Installed Third Time... :: echo Google Cloud Provider for Windows Installed Third Time...
:: Copy Login Scripts to User Startup :: Copy Login Scripts to User Startup
echo Copying Login Scripts to All Users... 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... echo Successfully Copied Login Scripts...
:: Restart System :: Restart System
echo Restarting system in 5 minutes... echo Restarting system in 2.5 minutes...
timeout /t 300 timeout /t 150
shutdown /r /t 0 shutdown /r /t 0