Questions tagged [local-system-account]

60 questions
1
vote
1 answer

Finding users' HOMEPATHs from a service

In the process of writing a service I have //# Service Account Information serviceProcessInstaller.Account = ServiceAccount.LocalSystem; in the installer for it. I was having problems writing a log to static string…
John
  • 6,433
  • 7
  • 47
  • 82
1
vote
1 answer

What is the difference between running an application as a service and as an administrator on Windows OS?

I am working on some application that needs to access the windows network shares. I have some functionality broken in my app if I run it as a system service. The same logic works fine when I run my app as an Administrator. This made me curious to…
1
vote
1 answer

Launching an interactive user-process from a local-system process - get Error Code 5

I use Java JNA to execute Windows API commands. I have a background service running as local-system. From this background service, I'd like to spawn a new process, e.g. notepad.exe on the currently active desktop and user. The new process should…
1
vote
1 answer

file Exists c# visual studio 2017

Can not find the file and the file if it is in that route. FileInfo file = new FileInfo(@"\\10.125.16.22\Facturas Electronicas\Factura EMP000098.pdf"); if (file.Exists) { EventLog.WriteEntry("encontro los adjuntos de la factura " +…
1
vote
1 answer

How do I check what permissions Local System Account has on Windows?

Does anybody know how to check the permissions on the local system account on Windows Server 2008?
RPS
  • 807
  • 2
  • 13
  • 20
1
vote
1 answer

C# Process cmd.exe - 'hadoop' is not recognized as an internal or external command, operable program or batch file

Okay, I will give you the context first. I have a website deployed in IIS 7. On the server, I have windows Mapr Client installed. This gives me an access to the hadoop clusters on the windows system. (Windows MAPR client installation) I have logged…
UnitedSince88
  • 33
  • 1
  • 6
1
vote
1 answer

What is the name of the account "System.ServiceProcess.ServiceAccount.LocalSystem" in Windows 8.1?

I created a Windows Service Application using VS2013 and set the property ServiceProcessInstaller.Account to System.ServiceProcess.ServiceAccount.LocalSystem and the service don't run until I gave permission to the SYSTEM account. But I'm doubting…
user1785721
1
vote
0 answers

Can not receive SessionSwitch event in Windows Service

As I mentioned in title I have a problem with receiving SessionSwitch events of SystemEvents class. There is a sample code (Example 2) at the end of SystemEvents class documentation page which shows how to receive TimeChanged and…
0
votes
0 answers

Windows ServiceAccount.LocalSystem can access a User session?

I am using Windows Service inside my EXE package. And I am trying to understand what the difference between these two codes: First code: this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem; Second…
Rougher
  • 834
  • 5
  • 19
  • 46
0
votes
0 answers

how to acquire the primary display IDXGIOutput in a session 0 service running under LocalSystem

I have a remote access app that uses IDXGIOutputDuplication to capture the primary display. To do that, I need to acquire the display IDXGIOutput: // intermediate variables for casting IDXGIOutput* pDisplay_old; IDXGIFactory1* pFactory; …
0
votes
2 answers

Setting Registry from windows service does not work

I am setting or reading reg key from a windows services which runs as local system. But when I read or set the values in the Registry Editor they are not the same as when i read and set them from the windows services. If I execute the following…
0
votes
1 answer

Windows 7 or Windows 2008 how to launch a process in Local System Account or System Context (from desktop aplication)

In C++ I want to launch a process from my Desktop Application in "Local System account" or "System Context". My application executes with admin privileges. Is it possible? How? Thanks in advance.
Rahul
  • 1,401
  • 4
  • 17
  • 33
0
votes
0 answers

Scheduled task will not run as any other user

I am having an odd issue that I can't find or work out the answer to. I have a scheduled task that is running a Powershell script; I can run this fine both manually and on a schedule using my AD account, which is an admin on my machine and which I…
0
votes
0 answers

Using Local System with a Service to connect to SQL Server is throwing Error 18456, State 38

The facts: If I use a normal domain user XYZ, to "log on as" the service all works fine, which implies the database exists and the connection string is good. If I use Local Service, I get Error 18456, State 38 I have created \$…
0
votes
1 answer

VBS as LocalSystem in RDP

Using PSEXEC and to run a VBS as LocalSystem account, to let the script run with admin rights. VB script called prompts and GUIs are not visible if a person is connected to the computer via RDP. You can see the script or GUI as a running process in…
StevenH
  • 9
  • 2