Why my scheduled task completes with return code 2

I recently had a task job scheduled in one of Windows server 2008 but kept getting a return code 2 every time it runs. Task Scheduler successfully completed task “\RoomView” , instance “{fcc8337a-11b2-4e69-b101-a58bb8d18ead}” , action “C:\Windows\SYSTEM32\cmd.exe” with return code 2. Obviously, even though it says Task Scheduler successfully completed task, the task didn’t complete what it supposed to do. The […]