createprocessasuser

How CreateProcessAsUser on Windows Using Delegated Credentials from SSPI?

蓝咒 提交于 2021-01-27 16:16:34
问题 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 problem to create a context between my principal (client) and my service principal (server). I also delegated my client credentials to the server, because I need to create a process on the server using client user credentials. And this is my problem, on

How CreateProcessAsUser on Windows Using Delegated Credentials from SSPI?

好久不见. 提交于 2021-01-27 16:07:53
问题 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 problem to create a context between my principal (client) and my service principal (server). I also delegated my client credentials to the server, because I need to create a process on the server using client user credentials. And this is my problem, on

example code: A service calls CreateProcessAsUser() I want the process to run in the user's session, not session 0

江枫思渺然 提交于 2020-08-22 12:15:40
问题 I am seeking example code: For a service calls CreateProcessAsUser() I want the process to run in the user's session, not session 0 thus far the created process is only running like a service in session 0 回答1: This was stripped from some old code that launched a console app from a service. It worked under NT4 but I haven't tested it with a modern version of Windows so can't guarantee it will work as it did on NT4. EDIT: No, that's not going to work as-is. You need to add the code found here

example code: A service calls CreateProcessAsUser() I want the process to run in the user's session, not session 0

Deadly 提交于 2020-08-22 12:15:03
问题 I am seeking example code: For a service calls CreateProcessAsUser() I want the process to run in the user's session, not session 0 thus far the created process is only running like a service in session 0 回答1: This was stripped from some old code that launched a console app from a service. It worked under NT4 but I haven't tested it with a modern version of Windows so can't guarantee it will work as it did on NT4. EDIT: No, that's not going to work as-is. You need to add the code found here

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

本小妞迷上赌 提交于 2020-01-13 18:25:12
问题 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 come up short trying to put a working solution together. Let me start with some background-- Background: I have a vb.net application that is getting delivered to Windows Servers and PCs in my organization using CA IT Client Manager (ITCM). Much like

Create Process with FS Virtualization Enabled

情到浓时终转凉″ 提交于 2020-01-07 04:19:10
问题 With UAC disabled, I need to create a process with the same characteristics as the process created with UAC enabled - basically I'm emulating process creation with UAC enabled. My only roadblock is virtualization. The sample code below should create an instance of notedpad at medium IL with virtualization enabled. In actuality, it creates an instance of notepad at medium IL with virtualization disabled. I'm not entirely sure why the virtualization token is being ignored. Any ideas? BOOL bRet;

CreateProcessAsUser is successful, but no process is created

北城以北 提交于 2019-12-25 08:17:38
问题 We have a service application which spawns a process in the console session (WTSGetActiveConsoleSessionId) to allow for a desktop control style access to the machine. This works well in most situations however there are some VM's which appear to successfully create the process as far as the result of CreateProcessAsUser is concerned, however the process does not get created. The service runs under the LocalSystem account. The process being started is NOT already running. No virus protection

CreateProcessAsUser error 1314

故事扮演 提交于 2019-12-18 02:49:15
问题 I want create a process under another user. So I use LogonUser and CreateProcessAsUser. But my problem is, that CreatePtocessAsUser always returns the errorcode 1314, which means "A required privilige is not held by the client". So my question is, what I am doing wrong? Or how can i give the priviliges to the handle? (I think the handle should have the privileges, or I am wrong?) Sorry for my english mistakes, but my english knowledge isn't the best :) Plesase help if anyone knows how to

Print Pdf from windows service and keep working after logoff

对着背影说爱祢 提交于 2019-12-11 17:37:16
问题 I am creating a windows service that will print pdf in time interval. I have done some research on this and found a class public class ProcessStarter : IDisposable { #region Import Section private static uint STANDARD_RIGHTS_REQUIRED = 0x000F0000; private static uint STANDARD_RIGHTS_READ = 0x00020000; private static uint TOKEN_ASSIGN_PRIMARY = 0x0001; private static uint TOKEN_DUPLICATE = 0x0002; private static uint TOKEN_IMPERSONATE = 0x0004; private static uint TOKEN_QUERY = 0x0008; private

How to create process as user with arguments

二次信任 提交于 2019-12-11 16:29:08
问题 Tried to create a process as a user with portablechrome.exe but I could not handle it with arguments. How can I open an HTML file with arguments? Such as portablechrome.exe sample.html --kiosk I'm using system service like this: string url = @System.AppDomain.CurrentDomain.BaseDirectory + "updater.html "; string kioskMode = url + " --kiosk --incognito --disable-pinch --overscroll-history-navigation=0 "; StartProcessAsCurrentUser("C:\\Chrome\\PortableChrome.exe", kioskMode); And my wrapper for