Re: How to execute a process under another account - PROPERLY?
- From: "MB" <bla@xxxxxxx>
- Date: Fri, 7 Apr 2006 21:46:50 +0100
What errors are you getting returned when this fails on the customer
machine?
They vary between different customers. For some of them it works. For some
the Oracle reports module evidently can't access the printer, as no printout
appears in the queue. For others the process could not be executed. As you
can see from the code, I eventually made (almost) every step along the way
optional, so I could play around with different settings in an .ini file to
enable or disable, say, creation of user's environment etc.
I don't have the exact errors to hand. The cases I'm concerned about are
where logging on to the machine interactively and executing the report
writer works, but executing the report writer from the service does not
work, even though I am logging on with the same credentials. Before getting
down to the dirty business of troubleshooting individual cases, I have a
simple question:
Why is there a difference between:
(1) Logging on interactively and executing the program, i.e. me sitting in
front of the machine, logging on and double clicking on the report icon.
(2) Executing the program from a service, using the same command, start in
directory and logon credentials as in case (1).
This difference obviously has to do with account permissions and the way
some of our customers tie down their user accounts or where the user hive of
the registry is located, or whether there are logon scripts ... or who
knows. If you know further steps I'm missing, please tell me! Surely there
must be a way to programmatically emulate fully what happens when you are
physically in front of the machine and log on to a Windows account?
.
- References:
- Prev by Date: Re: DLL Loading Question
- Next by Date: Re: DLL Loading Question
- Previous by thread: Re: How to execute a process under another account - PROPERLY?
- Next by thread: Re: How to execute a process under another account - PROPERLY?
- Index(es):
Relevant Pages
|