473,382 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Problem with Process.Start command

Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
3 2963
The service should be able to start a process using Process.Start, are you
sure that the service identity has the nessesary privs (ACL) to start the
program?

Willy.

"hangten" <no******@pacbell.net> wrote in message
news:ug*************@tk2msftngp13.phx.gbl...
Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

The service is started up under a username/password. They do not want
this account to have admin. privs. When you say the necessary privs.
(ACL) what privs do you mean ? What privs. does that account need to
start the program. It has "run as service"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Make sure "username" has "Read & Execute" privileges on the executable image
file(.exe, .bat or .cmd file).
I'm also not clear what kind of program you are trying to start from your
service, but if it's a windows program, this won't work (unless SYSTEM is
the service identity and "Can interact with desktop" is set).
Another thing to consider is, once the program runs, it uses the same
identity (and privileges) as the service. I suggest you start the program
from the command line using the same identity as the service. To do this you
can use the "runas" service, just type runas from the cmd prompt to see the
options.
Willy.

"hangten" <no******@pacbell.net> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...

The service is started up under a username/password. They do not want
this account to have admin. privs. When you say the necessary privs.
(ACL) what privs do you mean ? What privs. does that account need to
start the program. It has "run as service"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

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

Similar topics

1
by: Ilya Dubov | last post by:
I am starting "iexplore" process by executing Process.Start command. Every time I execute this command, it creates a new window. Can somebody tell me what can I do, so that the new window...
10
by: Tony | last post by:
I am running an application called AcroComm.exe to poll time clocks here at our company. I have written a small C# app that will poll the clocks based on information found in a DB. My problem is...
5
by: Ty Moffett | last post by:
I'm using a queue to hold a series of strings that are complete command line arguments to start the silent/unattended installation of various pieces of software. Here is some sample code. 1 Dim...
3
by: bwalke | last post by:
I was wondering how the Process.Start() command can be used in a VB.NET Web Application. I have used this command in a Windows Application before successfully. I want the client side to envoke the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
4
by: Paul | last post by:
Hi, I am trying to start a process hidden. My code: wordprocess = new System.Diagnostics.Process(); ; wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd, args);...
6
by: bill | last post by:
I have a VB .net 2.0 site that needs to run a dos app upon a button click. I found Shell too unreliable using parameters and so used system.diagnostic.process. simple troubleshooting...
3
by: LoDawg | last post by:
I am using the system.diagnostics.process.start command to launch an excel template. Once open the user has the option to create a new template through a wizard I have created. When the wizard...
5
by: sjoshi23 | last post by:
Hello I'm trying to start a remote desktop session using Process.Start but it keeps saying "File not found". The same cmd thru DOS window works fine. I used: C:\\WINDOWS\\system32\\mstsc.exe...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.