We have a multi user environment with Cygwin / X installed. When the users log off, they receive an error message which says XWin.exe can't be terminated. There is an "End Now" button and a "Cancel" button.
How can I make Windows stop trying to kill XWin? I have written a logoff.bat script with "pskill XWin.exe" and it works just fine. The issue is that Windows still tries to kill the process before my logoff.bat runs.
gpedit.msc -> Windows -> Scripts -> Logoff -> and I used logoff.bat which contains:
pskill -t XWin.exe