Troubles accesing NetWork folder with a Windows Service

agomeco

New member
Joined
Nov 20, 2008
Messages
2
Programming Experience
5-10
Hi everyone,
I am developing a windows service that creates three files with data base information from a query and put them in a network folder.

The problem I have is that the service didn´t create any file on this folder. On the other hand, if I change this folder to a local one it works perfectly.

I tried to execute a bat file after the files generation that moves the three files to the network resource and it fails as well. But If I change the bat code to a local folder it works.

I know that It is problem with the privileges, but I dont know what is.

For example, If i put the code in a common windows form project, it works, and the files are moved or created in the network folder.

For your information, I have full privileges in the network folder and i create the windows service like networkservice:

processInstaller.Account = ServiceAccount.NetworkService

Please, I need your help!
Thanks very much for your attention and regards.
 
Hi,
finally it works.
I have to configure the properties of the service in the control panel, and in the Log On tab set it as THIS ACCOUNT, with my windows credentials.

Finally, I would like to know if someone can tell me how can I retrieve the windows user password in vb .net.

Thanks again and regards.
 
Last edited:
Back
Top