We have just setup a new build Windows 2008 R2 server for our Jenkins CI system. Our issue appears to be related to file permissions being different depending on whether a process is a service, or a console process.
When logged in as UserX, we can successfully do a directory listing of dir /b c:\Windows\System32\q*.exe
(actual command), and it returns 6 files. However, running the same command through a service, we only get 5. Same user account. Same computer.
The bigger issue is that, because the file doesn't appear in a directory listing, it can't be executed.
There doesn't appear to be any differences in the permissions between the files that do appear, and the one that doesn't.
Any ideas?