I know that there are threads about this, I found this one: How to schedule a task to run when shutting down windows but it fails for me.
I wrote a little program in LabView and made an exe out of it. It runs perfect when I double click the exe in normal windows operation (it takes just a few seconds to complete). Then I put the exe in a batch file and that batch file in the group policy as a shutdown script. The result is that the computer hangs when shuting down. It shows the shutdown screen for minutes and I have to power cycle the PC to start it again. I even tried only a simple file copy command in the batch file with the same result. What am I doing wrong? Any hints are greatly welcome
Thanks a lot
Martin