in task scheduler it works, if i go to gpedit to scripts there is only Shutdown and Startup options no logoff and this is meant to work for shutdown, event viewer i dont know how to check i never worked with it
edit: ok ihave looked into the event viewer and there are no errors referring to my batch script, i converted it to .exe file, again it works if i open it but not on shutdown if i add it into scripts section