https://bugs.winehq.org/show_bug.cgi?id=52193
Bug ID: 52193 Summary: schtasks.exe:schtasks fails on Windows 7 when missing privileges Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: taskschd Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
schtasks.exe:schtasks fails on Windows 7 when missing privileges:
schtasks.c:190: Test failed: DeleteTask failed: 80070005 schtasks.c:193: Test failed: r = 0 schtasks.c:201: Test failed: r = 1 schtasks.c:204: Test failed: r = 0 schtasks.c:224: Test failed: r = 1
https://test.winehq.org/data/patterns.html#schtasks.exe:schtasks
When running as an administrator but without elevated privileges it looks like Windows 7 allows creating new tasks, but does not allow deleting the freshly created task!
This behavior also seems to be specific to Windows 7 since there is no failure on w8adm and w1064-adm.