I am trying to get a successful GPO scheduled task (simple logoff script .bat file) to run from my Windows Server 2008 R2 server to a single test machine before I implement it to a bigger group of Windows 7 workstations on my network. I haven't had any luck. I can run the script manually on the Windows 7 Test machine but I'm having problems getting it to execute through GPO from the server to the test machine. I keep getting a Last Run Result message of 0x1 - Incorrect function.(1). I added code in the log off script to produce a log to give me more information and that's where I am getting the Incorrect function.(1) message.
My simple logoff script is just shutdown.exe /f /l
I've tried some of the tips from the internet for different ways to setup the scheduled task to no avail.
The internet says that the last run result of 0x1 means: Incorrect function. Indicates that Action has attempted to execute non-recognized command in Windows command prompt cmd.exe.
What does this mean exactly?
Any suggestions would be greatly appreciated.