CreateProcessAsUser error 1314

后端 未结 4 1716
庸人自扰
庸人自扰 2020-12-14 21:03

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

4条回答
  •  被撕碎了的回忆
    2020-12-14 21:29

    The local account that is running your app must have these privileges enabled in the Local Security Policy:

    • Act as part of the operating system
    • Create a token object
    • Log on as a batch job

    Edit: Please see Patel's answer below. The correct privilege in this case should be:

    • "Replace a process level token"

提交回复
热议问题