Hello,
My goal here is to create an Outlook profile for each user who launches a published app from an RDS server by opening Outlook with zero config and then
terminating the Outlook app that was spawned from the RDS server. We have GPO in place to enable Outlook zero config and no PST file (online mode only) when Outlook launches from the server. Each day the user profiles on the RDS have to be removed and are
recreated when user logs in next day.
To accomplish this I created a .cmd script file that is launched as a published app:
@echo off
cmd /c Start /min outlook.exe
Start AOSCLUSTER.axc
ping 192.0.2.2 -n 1 -w 30000 > nul
taskkill /f /im Outlook.exe
The Script will start Outlook minimized and will start our ERP program. The script is supposed to wait 30 seconds and then terminate Outlook that was spawned form the server. The Outlook termination command terminates the Outlook session spawned from the server when Outlook isn’t already running locally on the client machine. When Outlook is already running locally on the client machine the taskill command doesn’t kill either Outlook session. Any ideas on how I could get Outlook to terminate when Outlook is already running locally on the client machine?