473,492 Members | 4,279 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Local system account with Process class and with a Windows Service?

Hello.

I have a Windows Service which I want to execute a file. The service is
running under the local system account but when the file is executed it
seems to be run with the profile of the user Administrator (I am using
the System.Diagnostics.Process class). How can I force the execution to
the local system account too?

Do I have to use the string "SYSTEM" for the StartInfo.UserName member?
If yes, what password should I use?

Thanks in advance.

Andrew

--
Apr 11 '06 #1
1 2736
A process spawn by a service, running as 'localsystem' also runs as
'localsystem' and it uses the same profile, which is the "default profile".
How did come to the conclusion that the process is using the Administrators
profile?
Note that you can't specify SYSTEM as user account, this account is a
'pseudo account', the name is not SYSTEM nor does does it have a password.

Willy.

""Andrés G. Aragoneses"" <kn****@NO-SPAM-PLEASE-gmail.com> wrote in message
news:44**************@NO-SPAM-PLEASE-gmail.com...
| Hello.
|
| I have a Windows Service which I want to execute a file. The service is
| running under the local system account but when the file is executed it
| seems to be run with the profile of the user Administrator (I am using
| the System.Diagnostics.Process class). How can I force the execution to
| the local system account too?
|
| Do I have to use the string "SYSTEM" for the StartInfo.UserName member?
| If yes, what password should I use?
|
| Thanks in advance.
|
| Andrew
|
| --
Apr 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3616
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
2
12982
by: Scott | last post by:
Not sure if this is the right place to post this or not, but I am in the process of trying to find a Web Hosting/Isp Billing system that is reasonable in price and uses Access or SQL Server for a...
6
2900
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When...
5
2632
by: guy | last post by:
In the past I've used sockets in C++ to allow apps to communicate with each other over a local network. Is there anything better/more advanced in .NET or should I continue to use sockets and the...
3
1585
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here....
4
1898
by: Philip Wagenaar | last post by:
Can a windows service running under the local system account create users and add them to the administrators group? When I try to do this and try to use process.start with the user created I...
0
3208
by: robpimentel | last post by:
Hi, I've been using DB2 for about 1 week, so please bear with me. DB2 Connect Enterprise Edition v8.1 FixPack 5 Windows Server 2003 Standard Edition SP1 Here is an error that continues to...
3
11227
by: SugarDaddy | last post by:
Here's my problem. I have an NT service (really a .NET service) running as local system. I have a .NET form running on the user account. The form and the service communicate via an IPC Channel...
5
8943
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= | last post by:
Hello, I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.