Issue with Blockexecution with the Deployment toolkit v4

There seems to be an issue with using the blockexection. The app that is being blocked during deployment is still being blocked after. Anyone having this issue?

I was about to post this as well.

The kit does not automatically remove the reg key blocking the .exe when that parameter is set after completing the install successfully.

Example below:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplorer.exe

Entry

conhost.exe --headless powershell.exe -NonInteractive -NoProfile -NoLogo -Command & ([scriptblock]::Create([Microsoft.Win32.Registry]::GetValue(‘HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit’, ‘BlockExecutionCommand’, $null)))

This was already fixed three weeks ago, it’ll be in 4.0.5. - Fix bug where blocked executables weren't properly resetting. · PSAppDeployToolkit/PSAppDeployToolkit@e05a91b · GitHub

2 Likes