Questions tagged [createprocessasuser]

114 questions
4
votes
1 answer

CreateProcessAsUser - Create process with a different parent?

I was reading about UAC's implementation on MSDN: http://technet.microsoft.com/en-us/magazine/2007.06.uac.aspx Chanced upon this interesting line: Although AIS is technically the parent of the elevated process, AIS uses new support in the…
MathOldTimer
  • 1,311
  • 3
  • 13
  • 22
4
votes
2 answers

Is there any way of know when CreateProcessAsUser's processes exit from C#?

I'm currently playing with CreateProcessAsUser using P/Invoke from c#, in order to launch process as limited users from a windows Service running in SYSTEM Account. My objective is to have a Service that launches an app that needs to get info from…
Largo
  • 53
  • 1
  • 5
4
votes
1 answer

Using a vb.net application running as SYSTEM, how do I start a detached process for each logged on user?

After weeks of research on this topic I've finally decided to start a thread of my own in hope there is someone out there with experience that can help. I've scoured the internet trying to understand the various coding examples out there, but I've…
user1932998
3
votes
0 answers

CreateProcessAsUser not from a service

I want to run an application under another user account's (non-elevated) credentials while that user is already logged-in. Specifically, I want my application's installer (which runs under any administrator account) to spawn processes into each…
DSII
  • 429
  • 6
  • 15
3
votes
0 answers

Create process as different user with Java and Kerberos

I am working on a Java server application (running under Windows as a service) and want to achieve the following scenario: A user issues a POST request to the server. The user is authenticated with Kerberos (SPNEGO, SSO in an enterprise…
3
votes
1 answer

How to CreateProcessAsUser and make it a foreground window?

I'm trying to start an UI using CreateProcessAsUser but the window doesn't come as the foreground Window. I wouldn't mind if it was a normal window, but this window triggers the UAC prompt and it isn't displayed in foreground neither.
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
3
votes
3 answers

CreateProcessAsUser not working with LogonUser token when printing from a Windows Service

I am building a windows services under LocalSystem account that will print pdf in some time interval. To do this I am creating user token by using LogonUser IntPtr currentToken = IntPtr.Zero; const int LOGON32_LOGON_INTERACTIVE = 2; const int…
Manoj
  • 4,951
  • 2
  • 30
  • 56
3
votes
0 answers

How to launch an elevated process in a logon user session from a local service?

I need to launch an elevated process in an interactive logon user session from my local service. For that I use the code very similar to this one. But I'm not sure how to specify elevation in the user token returned by WTSQueryUserToken API, and to…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
3
votes
2 answers

How can an admin process open an application in the logged in user?

Overview The Process exe/dll compiled in C++ to be run Scenario Log in (win 7) to a standard user account (no admin) run The Process as admin The Process opens some app (exe) using ShellExecute Problem The app is opened in the scope of the admin…
idanshmu
  • 5,061
  • 6
  • 46
  • 92
3
votes
2 answers

Delphi and CreateProcessAsUser example?

Does anyone have an example of how to use CreateProcessAsUser in Delphi? I'm using Delphi 2009, not the .NET Delphi.
Ryan
  • 7,733
  • 10
  • 61
  • 106
3
votes
3 answers

How CreateProcessAsUser on Windows Using Delegated Credentials from SSPI?

I work on a Kerberos logon infrastructure (Single Sign-On) with: A client which is authenticated to the Kerberos Key Distribution Center. A principal service server using Kerberos as authentication. Server Program is coded in C++. I have no…
Axel Borja
  • 3,718
  • 7
  • 36
  • 50
3
votes
1 answer

CreateProecssAsUser elevated privilege?

I'm getting an error with my CreateProcessAsUser function. It says "The requested operation requires elevation. " I thought i had given it the highest privilege i could. Anyone help? thanks My code is as follows: activeSessionId =…
user966890
  • 205
  • 1
  • 7
  • 15
3
votes
0 answers

Successive processes created via CreateProcessAsUser from web service using delegation cannot read/write to network share

What could be causing successive processes created via CreateProcessAsUser from web service using delegation to encounter System.UnauthorizedAccessException exceptions when trying to access network shares? WCF Rest web service kicks off a new…
3
votes
1 answer

Run application on Win7 logon screen

I'd like to run an application on the logon screen of Windows 7 from a service. I've been doing long researches on this and trying out different ways already, but unfortunately wasn't fully successful so far. I managed to run the application on the…
CodeX
  • 717
  • 7
  • 23
2
votes
0 answers

CreateProcessAsUser fails in Windows 7 after 7 invocations

My service spawns a process for each core on the target machine using CreateProcessAsUser. The process is a MFC program which has been modified to run using commandline parameters rather than GUI controls. It has run successfully in this scenario…
Spud
  • 243
  • 1
  • 2
  • 12