CreateProcessWithLogonW is a Windows API function that allows the creation of a user-mode process as an arbitrary user.
Questions tagged [createprocesswithlogonw]
7 questions
1
vote
0 answers
Want to launch process 'X' as using token of user 'B' in session of user ‘A’ by AdvApi in service code
We have service which is running as system session.
Taking token of User 'B'
In this token changing session id of User 'A'
Using this token launching the process 'X'
After process 'X' launch getting error The exception unknown software exception…

Mukesh Methaniya
- 752
- 1
- 5
- 13
1
vote
1 answer
Should I take measures to prevent a password being read from a call to CreateProcessWithLogonW?
A lot of programs like runas on Windows and su on *nix take measures to ensure that users won't do dumb things like write passwords in batch files by ensuring that the password can't be piped to it or supplied as an argument.
At work there is a task…

Govind Parmar
- 20,656
- 7
- 53
- 85
0
votes
1 answer
How to use CreateProcessWithLogonW with internal commands
We have a VB6 application that sometimes needs to run a command with elevated permissions, so we invoke CreateProcessWithLogonW function so we can do so without requiring the user to enter the credentials. Currently, we do this with xcopy and it…

user1422348
- 345
- 1
- 7
- 23
0
votes
1 answer
What makes Outlook crashing after executing CreateProcessWithLogonW ?
I have an Outlook 2016 (64-bit) running next vba code, and when the function exits, Outlook crashes. The api executes fine and I see notepad launched under an other user.
Sub TestRunAs()
If User_RunAs("jonny", "JonnysPassword", "lvd.be",…

Bernard Wielfaert
- 61
- 1
- 8
0
votes
0 answers
Launch process under another user account
Below is the sequence of Process calling;
Service calling Process A (this causes Process A to run under local system account).
Process A launching Process B under different user account (non admin user) using CreateProcessWithLogonW API (as logon…

Gvs13
- 126
- 12
0
votes
0 answers
VB6 - CreateProcessWithLogonW does not work on Windows 10 - Error Code 740
I have an old VB6 application that I need to maintain.
Within the app functionality is a call to CreateProcessWithLogonW which does not work when run on Windows 10 (but runs fine on Windows 7).
The error code I'm receiving via a call to…

P_Fitz
- 819
- 9
- 16
0
votes
0 answers
Launching CMD from windows service results in exception code 0xC0000142
We have a service application that launches CMD.exe with Stdin/Stdout/Stderr
redirected to a named pipe. The Service is running as an administrator account
(It is NOT running as LocalSystem). The development environment is Windows 8.1 Pro.
When we…

user590028
- 11,364
- 3
- 40
- 57