Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have encrypted a file with EFS for a user (let us name this "User X"). An application which is running as "User X", is able to access the encrypted file. It keeps working fine across log off and log in for any user logging through UI log in screen till next reboot.

Upon reboot, the application running as "User X" is not able to access the encrypted file.

But when I login "User X" from the log in screen, it starts working. Meaning once I log in as "User X" and log off and login as any other user and run my application as "User X" it is able to access the encrypted file.

But as per design I don't want the "User X" to login using the UI screen.

Can anyone suggest, why upon reboot the "User X" is not able to access the EFS encrypted file and how do I resolve it, so that my application running as "User X", should be able to access the encrypted file without logging as user X?

Note: I am using Windows Embedded Std. 7.

Thank you in advance.

share|improve this question
add comment

1 Answer

There's a process named lsass.exe that's responsible for the security part (auth., logon, encryption, etc...) If I'm not mistaken this process runs only during interactive logons (like console or RDP). You can try add a small batch that would first launch lsass.exe.

share|improve this answer
    
Thank you EliadTech! It did not work. Actually After reboort, it does not work, till "User X" log in interactively. Once I log in as "User X" and log off and login as any other user and run my application as "User X" it is able to access the encrypted file. –  Rajeev Oct 31 '12 at 14:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.