问题
I have a file:
\\Computer1\Share\file.pdf
and I need to open in using a service running as the network service account on another computer:
Computer2\NETWORK SERVICE
FWIW, Both Computer1
and Computer2
are on the same domain Domain1
Is it possible to accomplish this task?
回答1:
Yes.
If both servers are on the same domain then you can enable access to the share for Domain1\Computer2$
(where Computer2$
represents Network Service on Computer2).
回答2:
If it were me, I'd use a domain account to run the service and grant that same domain account the appropriate permissions on the remote computer.
I don't like to claim this is the answer as whilst it would resolve the problem it doesn't address the question as asked - but it is the "right" solution, assuming that its possible to elect to run the service using something other the Network Service account...
来源:https://stackoverflow.com/questions/8432556/possible-to-give-network-service-on-one-computer-permission-to-a-directory-on