Good afternoon!
So I use this to deploy to servers via sccm, ie no users present. So I change the default deploymode parameter to Silent. Also, when necessary the technicians will just double-click the ps1 instead of running from a command line, so setting this to silent is preferred.
[Parameter(Mandatory=$false)]
[ValidateSet(‘Interactive’,‘Silent’,‘NonInteractive’)]
[System.String]$DeployMode = ‘Silent’,
Instead of the default ‘Interactive’. However, when running the Invoke-AppDeployToolkit.ps1 without specifying -DeployMode Silent from the command line, it runs Interactive, prompting the ‘Defer’ dialog. Not ideal, because there is nobody at the console, and we want it to run immediately.
I can simply ensure that the -Deploymode Silent switch is added to the sccm program lines, however that defeats the purpose of setting it to Silent in the wrapper. This is how everything was set in the 3.x toolkit and was working as expected. Am I doing something wrong?