I want to block users launching certain .exe's with some deployments as these interfere with deployments.
I am aware there was a bug in previous versions of v4 so I omitted the param in previous scripts however, v4.1.0, i tested the param again using "winword" as an example:
AppProcessesToClose = @( @{ Name = 'winword'; Description = 'microsoft word'})
$saiwParams = @{
AllowDefer = $true
DeferTimes = 3
CheckDiskSpace = $true
PersistPrompt = $true
}
if ($adtSession.AppProcessesToClose.Count -gt 0)
{
$saiwParams.Add('CloseProcesses', $adtSession.AppProcessesToClose)
}
Show-ADTInstallationWelcome @saiwParams `
-Title $adtSession.InstallTitle -subtitle "Update" -NoMinimizeWindows -BlockExecution
the log is below:
But then nothing happens.... No errors, nothing.