troubleshooting Question

XWin.exe causing dialog box upon logoff

Avatar of bryanatm
bryanatm asked on
Microsoft Server OSSoftwareActive Directory
6 Comments3 Solutions421 ViewsLast Modified:

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.

Best regards,

gpedit.msc -> Windows -> Scripts -> Logoff -> and I used logoff.bat which contains:
pskill -t XWin.exe

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros