[PR #37] [MERGED] CreateProcessAsUser Access is denied 0x00000005 #14

Closed
opened 2026-03-03 13:56:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KelvinTegelaar/RunAsUser/pull/37
Author: @timbrigham-oc
Created: 12/12/2022
Status: Merged
Merged: 4/18/2024
Merged by: @KelvinTegelaar

Base: masterHead: master


📝 Commits (10+)

  • ca89e7e Update runasuser.psm1
  • 7a15849 Merge pull request #1 from timbrigham-onecall/timbrigham-onecall-patch-1
  • db977b0 Merge branch 'KelvinTegelaar:master' into master
  • 4abf297 Merge branch 'KelvinTegelaar:master' into timbrigham-onecall-patch-1
  • 749e9ec Update runasuser.psm1
  • 4141f78 Update Invoke-AsCurrentUser.ps1
  • c021acf Update README.md
  • c9b066f Update runasuser.psm1
  • da822ee Merge branch 'master' into timbrigham-onecall-patch-1
  • efe6c5f Merge pull request #2 from timbrigham-oc/timbrigham-onecall-patch-1

📊 Changes

3 files changed (+7 additions, -4 deletions)

View changed files

📝 Public/Invoke-AsCurrentUser.ps1 (+3 -1)
📝 README.md (+0 -0)
📝 runasuser.psm1 (+4 -3)

📄 Description

Fix for "CreateProcessAsUser failed. (Access is denied, Win32ErrorCode 5 - 0x00000005)" bug.

This is triggered if using Tanium for starting the tasks, at a minimum.

References:
https://social.technet.microsoft.com/Forums/en-US/89df4e34-4a70-4503-a4db-d8cee86e0c3b/createprocessasuser-failing-with-error-code-5-erroraccessdenied
https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/KelvinTegelaar/RunAsUser/pull/37 **Author:** [@timbrigham-oc](https://github.com/timbrigham-oc) **Created:** 12/12/2022 **Status:** ✅ Merged **Merged:** 4/18/2024 **Merged by:** [@KelvinTegelaar](https://github.com/KelvinTegelaar) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`ca89e7e`](https://github.com/KelvinTegelaar/RunAsUser/commit/ca89e7e866d1cf171a1683f35af7f9dd862bc720) Update runasuser.psm1 - [`7a15849`](https://github.com/KelvinTegelaar/RunAsUser/commit/7a15849dc518bbbee83c8aead0f6eca7ef9a5f20) Merge pull request #1 from timbrigham-onecall/timbrigham-onecall-patch-1 - [`db977b0`](https://github.com/KelvinTegelaar/RunAsUser/commit/db977b00ccb8365ecfa41c9574a4479483d6d9f2) Merge branch 'KelvinTegelaar:master' into master - [`4abf297`](https://github.com/KelvinTegelaar/RunAsUser/commit/4abf2976a1988d10876391039092226c2dd2dee3) Merge branch 'KelvinTegelaar:master' into timbrigham-onecall-patch-1 - [`749e9ec`](https://github.com/KelvinTegelaar/RunAsUser/commit/749e9ec25e10b268921d75715ffe228ab2e3054f) Update runasuser.psm1 - [`4141f78`](https://github.com/KelvinTegelaar/RunAsUser/commit/4141f78520ef87656944f65d474222920c1ddabf) Update Invoke-AsCurrentUser.ps1 - [`c021acf`](https://github.com/KelvinTegelaar/RunAsUser/commit/c021acf93d7f33281fa6bcc0fb60fde380ac3aa2) Update README.md - [`c9b066f`](https://github.com/KelvinTegelaar/RunAsUser/commit/c9b066f0db7cbb86f60f92a90cccd520b841db58) Update runasuser.psm1 - [`da822ee`](https://github.com/KelvinTegelaar/RunAsUser/commit/da822ee945baacb1715f48e7af04adeef2eaa7aa) Merge branch 'master' into timbrigham-onecall-patch-1 - [`efe6c5f`](https://github.com/KelvinTegelaar/RunAsUser/commit/efe6c5f89fc06c22ad96b2c10d56a30afbf9add6) Merge pull request #2 from timbrigham-oc/timbrigham-onecall-patch-1 ### 📊 Changes **3 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Public/Invoke-AsCurrentUser.ps1` (+3 -1) 📝 `README.md` (+0 -0) 📝 `runasuser.psm1` (+4 -3) </details> ### 📄 Description Fix for "CreateProcessAsUser failed. (Access is denied, Win32ErrorCode 5 - 0x00000005)" bug. This is triggered if using Tanium for starting the tasks, at a minimum. References: https://social.technet.microsoft.com/Forums/en-US/89df4e34-4a70-4503-a4db-d8cee86e0c3b/createprocessasuser-failing-with-error-code-5-erroraccessdenied https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 13:56:48 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/RunAsUser#14
No description provided.