September 9th, 2009, 11:33 PM
windows service not able to read current user's registry plz help
I developed a windows service project using vb.net and windows service is installed with logon account as admin's user name and password. Target of windows service is to read the pst file path location from windows registry for currently logged user by accessing the following registry key "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\52a407cf2e436a4d8fe252d1d2574655\001f6700". The problem is , windows service can able to read the admin pst file path location if admin is logged in windows. When other user logged in windows, service is not able to read currently logged user's pst file path location from registry because of windows service is configured with admin user name and password. so it always reads admin's pst file location. Please let me know the solution for this or suggest me.
September 10th, 2009, 06:05 PM
Re: windows service not able to read current user's registry plz help
The actual key probably changes. Can't see the administrator being blocked, unless you're running as something else. You could impersonate the current user, couldn't you?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!