re:Is a Service not allowed to write to a network share?

From: felecha (felechaji_at_yahoo-dot-com.no-spam.invalid)
Date: 08/31/04


Date: 31 Aug 2004 16:03:14 -0500

I found that I could make it work by setting the Logon for the Service
to a User that has network access privileges, which the default
LocalSystem account for Services does not.

So I can get it to work, but I really want to make it set the Account
in my Service's code. There is a ServiceProcessInstaller.Account
property that looks like it is supposed to do exactly what I am doing
manually, but I'm getting errors. If I set

ServiceProcessInstaller.Account =
System.ServiceProcess.ServiceAccount.User

I get an Exception when I try to install the service. It says the
account is invalid or does not exist. The other Account property
possibilities allow the install to work but throw exceptions saying
that access to either the local or remote filepath is denied.

I've looked everywhere I can think of, but there must be something I
don't know about. The MSDN documentation is as clear as can be - it
definitely is telling me to do what I'm doing, but it's just not
working. Some little piece of the puzzle is missing



Relevant Pages

  • Re: Advanced Client install nightmare
    ... I can successfully install manually using the SMS account. ... MS Client Configuration Manager cannot install the Advanced Client to ...
    (microsoft.public.sms.admin)
  • Re: userName="machine" didnt work
    ... Juan, ... version) than the .42 dlls. ... Deleted the ASPNET account from "Local Users and Group – ... ASPNET user and allowed the ASP.NET install to re-create it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Alerting - Malicious software removal tool
    ... >needed to install an application that she could not install from ... >"Administrator" account. ... You failed to analyze the root cause and correct it ... use their computers to have fun. ...
    (microsoft.public.security.virus)
  • Re: Alerting - Malicious software removal tool
    ... much of what the MSRT ... yet), used MS Works, had a single account, administrator level logon ... needed to install an application that she could not install from ... only reacting AFTER the compromise. ...
    (microsoft.public.security.virus)
  • SMS MP Problem
    ... I had to install a hotfix for OSDFP and, ... account is privileged and the provider may cause a security violation if it ... 1020 SMS Site Component Manager failed to reinstall this component on this ... information by running the net user command line for the IWAM account. ...
    (microsoft.public.sms.setup)