Windows service accessing network share
In order to get this to work you will have to configure the Windows Service to run as a specific user, and then you'll have to create an identical user on the remote system with the same password. It might work then. The problem stems from the fact that in order to log in to a machine not in a domain, you have to log into that machine using an account that exists on that machine. The machine account for something else definitely won't exist on that local machine. By creating an identical user with an identical password, you might be able get the login to work.
I created identical accounts on both machines and the service account was able to access the shared drive. Having the servers on the same domain is a better solution, so I'm working towards that, but this will work in the mean time. Brian T was correct. But I would like to add something.
But when we changed the config to use IP-address of the network instead of drive letter, we managed to fix the issue. However the syntax changed a bit:. Setting the share permissions is not enough. Also set the NTFS permissions adequately, then it'll work. Everyone Full Control on the share means, everyone can get through the network to the root of the share but from then on NTFS rights are used to determine what is allowed and what not.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Add a comment. Active Oldest Votes. Improve this answer. Evan Anderson Evan Anderson k 18 18 gold badges silver badges bronze badges. You can't actaully grant local accounts on one computer access to resources on another computer. The end result is the same. Network Service is an exception.
It does map across as the computer account. In Windows , the System account did the same. Brian Kelley. Brian Kelley K. Brian Kelley 8, 30 30 silver badges 33 33 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. I can print to the network printer with no problem. And lastly I put my laptop on the network and I can access my laptop from any of the three PC's with no problem but when I try to access any of the three from my laptop I get "Cannot connect network share".
As this thread has been quiet for a while, we assume that the issue has been resolved. If the issue still persists, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish. By sharing your experience you can help other community members facing similar problems.
Thanks for your understanding and efforts. Leo Huang. TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb microsoft. According to your description, I suggest to use Network Troubleshooter first:. If the issue persist, check the permission of share folder if the security is set for everyone.
Also try to map the network share on your laptop to see if it works. Apply the settings. The other settings such as encryption I have set as use bit encryption. Hope that helps. Enable network discovery -Turn on file and print sharing -Turn off password protected sharing -Use user accounts and passwords to connect to other computers.
I should add they have a wireless and a wired network. The wireless address is used for internet access and is assigned an address in the I have tried disabling the wireless adaptor to make sure it was not causing the problem and there was no change even after a reboot. Again I can ping by name and I. P address with no problem from the command prompt. Other settings seem to be correct, but you've not mentioned anything about Public Folder sharing.
Please check the permission of share folder. This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Close Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website.
We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies.
0コメント