Questions tagged [localsystem]

29 questions
7
votes
1 answer

Confused over LocalSystem and LocalService Accounts

I am new to windows services programming. I have confusion about what to set the Account type while writing a windows services. How to choose or how to determine to which account type we need to set while writing a service?
Rajesh Kaki
6
votes
0 answers

Is it possible to run Console Application under LocalSystem Account?

Is it possible to run Console Application under LocalSystem Account programmatically in C#? If yes, how can i do it ? If not, why not ? thanks
Esat Yilmaz
  • 71
  • 1
  • 4
5
votes
1 answer

How to run a separate process as a domain user with a 'local system' service?

I have this following simple service program: using System.Diagnostics; using System.ServiceProcess; namespace BasicService { public partial class Service1 : ServiceBase { public Service1() { …
ymerej
  • 727
  • 1
  • 8
  • 21
4
votes
1 answer

Get list of files in a directory in cordova

function onDeviceReady() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, onFileSystemFail); } function onFileSystemSuccess(fileSystem) { var directoryEntry = fileSystem.root; …
4
votes
4 answers

how to get 32 bit application data folder from 64 bit application on 64 bit Machine using c# code

I am facing very strange issue: I got a 64 bit c#.net application on 64 bit Windows Server 2008 R2 machine and it is being invoked by a Windows Service and it is started under Local System User, Moreover,this 64 bit c#.net application launches 32…
Yogesh
  • 3,044
  • 8
  • 33
  • 60
3
votes
2 answers

Is it possible to run tests as the `Local System` user?

I'm writing an integration test that requires the method to be run in the Local System security context to achieve the desired behavior. I couldn't achieve this yet. What should I do? I'm using C#, VS 2010, MsTest and the target project is a Windows…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
2
votes
2 answers

Setup Identity for an Application Pool as LocalSystem in Azure

Is there a way to do this in ServiceDefinition.csdef or other place without go to the IIS and adjust by hand? I tried executionContext="elevated" for webrole, not working. UPDATE If you install "IIS 6 Metabase Compatibility" on Azure IIS, the error…
Eric Yin
  • 8,737
  • 19
  • 77
  • 118
2
votes
1 answer

Inno Setup is unable to install to LocalSystem's %LOCALAPPDATA%

I have a Windows service that runs as the local system account. It stores some data in its %LOCALAPPDATA% folder. For LocalSystem, this is the following location: C:\Windows\system32\config\systemprofile\AppData\Local This works without a hitch;…
Petter Hesselberg
  • 5,062
  • 2
  • 24
  • 42
2
votes
1 answer

Where can I safely store records (i.e. files) that a standard (limited) user cannot modify or delete?

I have a service auditing standard users of the local PC. I would like to get the performance logs uploaded to an SQL server but as a first step, and for simplicity I need to store them, as well as the config.ini which initializes the service in a…
John
  • 6,433
  • 7
  • 47
  • 82
2
votes
1 answer

How to configure IE proxying for the local system account?

See Server Fault: How do I configure proxy settings for LOCAL SYSTEM? I have a Windows service that needs to start up IE with certain proxy settings (e.g. host name and port). If the service is configured to run as some normal user (e.g. me), I…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
2
votes
1 answer

Can a Windows service running under Local System create new files on the computer it is running on?

I have created a Windows Service that has a function that creates a new file. It is running under "Local System account" with "Allow service to interact with desktop" set to true. When running under this account can files be created locally? I can't…
Dan Harris
  • 1,336
  • 1
  • 21
  • 44
2
votes
4 answers

Determine the LocalSystem account name using C#

We have an application that installs SQL Server Express from the command line and specifies the service account as the LocalSystem account via the parameter SQLACCOUNT="NT AUTHORITY\SYSTEM". This doesn't work with different languages because the…
Carl
  • 2,483
  • 4
  • 28
  • 30
1
vote
2 answers

Is it possible to query WMI as Local System?

Is it possible to query WMI as the Local System account? I tried to test this out by creating a Local System instance of Internet Explorer, and running WMI Tools from it. I got an error saying that: The core WMI components build number could not…
Eric
  • 5,842
  • 7
  • 42
  • 71
1
vote
0 answers

Allow localsystem access to sql server?

I have a service which runs as localsystem and should get access to a sql server. But i'am not sure which authentication method would be the best. For normal user access microsoft recommends window authentication. Since the service runs with…
ean
  • 11
  • 2
1
vote
0 answers

SQL Server machine account failed to open database

I have an ASP.NET Web application hosted in IIS. Application is running under LocalSystem account. Application is trying to connect to a database on SQL Server with Integrated Security=True. I have added the machine account to sql server and also…
dkthedon
  • 71
  • 1
  • 6
1
2