Home All Groups Group Topic Archive Search About

Windows service LocalSystem account

Author
20 Oct 2006 11:39 PM
Walt
I need to access a network folder with read/write permissions from a windows
service application.  I get an error "Access denied..." whenever I try to
access a shared folder on the network.

On 7/24/2006 Michael D. Ober wrote:
Windows services, by default, don't have access to the network.  In w2k and
XP there is a network version of the system account you can use.

Does anyone know about this version of the local system account, or any
other way to access network folders on a windows service logged on as a Local
System account?

I much prefer NOT to use a user account since many (or most) of my customers
are not IT professionals.  It would be cumbersome to ask them to supply a
user name and password of a user with permissions to log on a service during
the install process.

Thanks for any help.

Walt
--
Walt

Author
23 Oct 2006 2:20 PM
Claes Bergefall
I'm guessing Michael mean the following account:
NT AUTHORITY\NetworkService

While that account has network access, it still might not be able to access
your shared folders (depending on the security settings of the share). I
would still recommend a dedicated account.

    /claes

Show quoteHide quote
"Walt" <W***@discussions.microsoft.com> wrote in message
news:E8A2CB51-CD5A-4294-BEF0-D63309BC4EAC@microsoft.com...
>I need to access a network folder with read/write permissions from a
>windows
> service application.  I get an error "Access denied..." whenever I try to
> access a shared folder on the network.
>
> On 7/24/2006 Michael D. Ober wrote:
> Windows services, by default, don't have access to the network.  In w2k
> and
> XP there is a network version of the system account you can use.
>
> Does anyone know about this version of the local system account, or any
> other way to access network folders on a windows service logged on as a
> Local
> System account?
>
> I much prefer NOT to use a user account since many (or most) of my
> customers
> are not IT professionals.  It would be cumbersome to ask them to supply a
> user name and password of a user with permissions to log on a service
> during
> the install process.
>
> Thanks for any help.
>
> Walt
> --
> Walt
Author
25 Oct 2006 10:56 PM
GhostInAK [Bastard]
Hello Claes,

Also, mapped drives are not available if there is no interactive session
logged on, so you'd do well to avoid those.  The dedicated account suggestion
is ideal.  Just have your installer create the account with the proper permissions.
Then you know the name and password of the account and don't have to ask
anyone for it.

-Boo

Show quoteHide quote
> I'm guessing Michael mean the following account:
> NT AUTHORITY\NetworkService
> While that account has network access, it still might not be able to
> access your shared folders (depending on the security settings of the
> share). I would still recommend a dedicated account.
>
> /claes
>
> "Walt" <W***@discussions.microsoft.com> wrote in message
> news:E8A2CB51-CD5A-4294-BEF0-D63309BC4EAC@microsoft.com...
>
>> I need to access a network folder with read/write permissions from a
>> windows
>> service application.  I get an error "Access denied..." whenever I
>> try to
>> access a shared folder on the network.
>> On 7/24/2006 Michael D. Ober wrote:
>> Windows services, by default, don't have access to the network.  In
>> w2k
>> and
>> XP there is a network version of the system account you can use.
>> Does anyone know about this version of the local system account, or
>> any
>> other way to access network folders on a windows service logged on as
>> a
>> Local
>> System account?
>> I much prefer NOT to use a user account since many (or most) of my
>> customers
>> are not IT professionals.  It would be cumbersome to ask them to
>> supply a
>> user name and password of a user with permissions to log on a service
>> during
>> the install process.
>> Thanks for any help.
>>
>> Walt
>> --
>> Walt