Forum Discussion
taichroth_84
Jun 22, 2020Copper Contributor
Whiteboard App silent install
Hello is there a way to install MS Whiteboard App in silent mode. I want to roll out this app for all users. thanks for your help!!
Mousefluff
Nov 02, 2022Iron Contributor
taichroth_84This is an old post obviously. As an example, if you want it to become default with the image, it's much smarter to create a siloed provisioning package and then apply it to the image ( using a virtual machine with snapshots / checkpoints. This is not at all a new idea. It's similar for classic apps that reside outside of the Windows Namespace. )
Here's an example of how to install it using WinGet silently ( using a batch file. ) You could run it in the background even, or have it minimized:
@ECHO OFF
SETLOCAL
sc config BITS start= delayed-auto
sc config EventLog start= auto
sc config UsoSvc start= auto
sc config wuauserv start= auto
net start BITS
net start EventLog
net start UsoSvc
net start wuauserv
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser -Force}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine -Force}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Set-PSReadLineOption -HistorySaveStyle SaveNothing -MaximumHistoryCount 1}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Write-Output 'Remove-Module PSReadline' | New-Item -Path $PROFILE -Type File -Force}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Install-PackageProvider -Name PowerShellGet -Scope AllUsers -Force}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Install-PackageProvider -Name NuGet -Scope AllUsers -Force}"
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Install-PackageProvider -Name WinGet -Scope AllUsers -Force}"
REM NOTE: If the "Microsoft App Installer" doesn't install, then you have to go into the Microsoft Store ( App ) and hit the "Retry" button.
winget install 9NBLGGH4NNS1 --silent --accept-package-agreements --accept-source-agreements
winget install Microsoft.VCRedist.2015+.x86 --silent --accept-package-agreements --accept-source-agreements
winget install Microsoft.VCRedist.2015+.x64 --silent --accept-package-agreements --accept-source-agreements
winget install Microsoft.DotNet.Runtime.6 --silent --accept-package-agreements --accept-source-agreements
winget install Microsoft.DotNet.Runtime.Preview --silent --accept-package-agreements --accept-source-agreements
winget install 9MSPC6MP8FM4 --silent --accept-package-agreements --accept-source-agreements
REM Reset / Repair Apps:
REM Settings -> System -> Other troubleshooters -> Windows Store Apps (Run)
REM Settings -> System -> Other troubleshooters -> Windows Update (Run)
Siloed provisioning packages ( Capturing and applying independent applications )