https://bugs.winehq.org/show_bug.cgi?id=54109
--- Comment #1 from François Gouget fgouget@codeweavers.com --- The reason that schedsvc:rpcapi causes taskschd:scheduler to crash is that it leaves the \Wine task folder behind.
The issue is that, while one can create a task folder without elevated privileges on Windows 7, ITaskFolder::DeleteFolder() then fails to delete that folder. The same happens if going the manual route: rmdir /s c:\Windows\System32\Tasks\Wine
So it looks like schedsvc:rpcapi cannot be fixed to clean behind itself. If so the other options would be:
* Skip the tests if lacking elevated privileges *and* running on Windows 7. * Tweak the task tests so they all use different folder names so they don't interfere even if the each fail to clean up after themselves. But, iirc, we already have some tests that check if the cleanup went well and are failing :-(