I am trying to get a program run by System(rather than a user) to write to a file, but I am having trouble. Running my program as a user, the file is generated correctly, but running the same program using >PSExec -s myProgram.exe
, no file is generated. It seems to be otherwise running correctly and the file open function does not return NULL; is there something special I have to do to be able to write to a file as System?
I am having the same issue on both a Windows 7 64 bit machine and Windows XP 32.