windows service

  • Thread starter Thread starter Ivan G.
  • Start date Start date
I

Ivan G.

Hi.

How to write to network share located on another computer from windows
service? Service runs under LocalService account.

Thanx.
 
Give the domain computer account rights to the share, or perform network
authentication using WNetAddConnectionX APImethod.

Arild
 
Hi,

a) To impersonate a user having sufficient permissions

or

b) To grant necessary permissions to the LocalService account (not sure this
is possible though)

or

c) Configure the service to run under another account having necessary
permissions
 
Back
Top