[PR #27] [MERGED] Added CaptureOutput for commands. #9

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

📋 Pull Request Information

Original PR: https://github.com/KelvinTegelaar/RunAsUser/pull/27
Author: @redanthrax
Created: 4/25/2022
Status: Merged
Merged: 8/7/2022
Merged by: @KelvinTegelaar

Base: masterHead: CaptureScriptOutput


📝 Commits (1)

  • 6f48e92 Added CaptureOutput for commands.

📊 Changes

3 files changed (+129 additions, -63 deletions)

View changed files

📝 Public/Invoke-AsCurrentUser.ps1 (+4 -2)
📝 README.md (+0 -0)
📝 runasuser.psm1 (+125 -61)

📄 Description

Added ability to capture the output from a script/command ran in the users context.
This will redirect STDOut and STDErr from the users process so the user will not see output if a window is shown and captureoutput is set.


🔄 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/27 **Author:** [@redanthrax](https://github.com/redanthrax) **Created:** 4/25/2022 **Status:** ✅ Merged **Merged:** 8/7/2022 **Merged by:** [@KelvinTegelaar](https://github.com/KelvinTegelaar) **Base:** `master` ← **Head:** `CaptureScriptOutput` --- ### 📝 Commits (1) - [`6f48e92`](https://github.com/KelvinTegelaar/RunAsUser/commit/6f48e92d92cd1095c5d9db414989ef51e0bd4f4e) Added CaptureOutput for commands. ### 📊 Changes **3 files changed** (+129 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `Public/Invoke-AsCurrentUser.ps1` (+4 -2) 📝 `README.md` (+0 -0) 📝 `runasuser.psm1` (+125 -61) </details> ### 📄 Description Added ability to capture the output from a script/command ran in the users context. This will redirect STDOut and STDErr from the users process so the user will not see output if a window is shown and captureoutput is set. --- <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:46 +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#9
No description provided.