I am using the vdm_agent.adm and the connection/reconnection start up policy. Works great but cannot seam to find a a way ot hide the script at logon that it produces. It is mapping a printer for internal zero clients and running a BGINFO based for all. The printer mapping takes a few seconds so the screen is annoying to user experience. Hidden or minimized would be great. This the simple script but it does the job.
ECHO OFF
If @%ViewClient_Broker_Tunnel_URL%==@https://external.gateway,com:443 GOTO BGINFOONLY
powershell.exe -command "%logonserver%\netlogon\posh\printers.ps1"
:BGINFOONLY
%logonserver%\netlogon\Support\bginfo.exe %logonserver%\netlogon\Support\vdi.bgi -accepteula /silent /timer:0
:END