New
#1
Shutdown script (gpedit) runs with 'Restart' but not with 'Shut down'
Dear all,
I have an issue with a shutdown script that I don't manage to resolve:
I wrote a .bat file script that works fine when it is clicked on. Through gpedit.msc, I added it as a shutdown script. When the computer is restarted (Power -> Restart), it works fine as well (I log the results of this batch file to a txt file, so I can check it).
However, when I do a normal shutdown of the computer (Power -> Shut down, so no automatic restart, but manual restart later on), the script is not activated at all (not even the log.txt file is created).
My OS is Windows 10 Pro.
Has anyone run into this problem as well?
Thanks and kind regards,
Dirk