[PR #18] [CLOSED] Added support for remoting + run under ADMIN (instead of SYSTEM) #8

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/18
Author: @ztrhgf
Created: 5/4/2021
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • 78f5b02 added support for remoting
  • 6c235d8 added support for outputting the command result
  • 815937a added support for passing arguments to scriptblock

📊 Changes

1 file changed (+781 additions, -46 deletions)

View changed files

📝 Public/Invoke-AsCurrentUser.ps1 (+781 -46)

📄 Description

I was in need to run some code under logged users on remote computers, so I've modified your function a little bit.

PS: because I am sending this function to remote session I was forced to add $Source in function body, so there are no dependencies left behind

PPS: I am using this as single function, not as module


🔄 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/18 **Author:** [@ztrhgf](https://github.com/ztrhgf) **Created:** 5/4/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`78f5b02`](https://github.com/KelvinTegelaar/RunAsUser/commit/78f5b0245f5e5217db5ad1e97238c81c9930539c) added support for remoting - [`6c235d8`](https://github.com/KelvinTegelaar/RunAsUser/commit/6c235d891a3f41ff5a1ba48600fb8e0160e2035f) added support for outputting the command result - [`815937a`](https://github.com/KelvinTegelaar/RunAsUser/commit/815937a7118c7dbc8276c8cdb6b4041528771174) added support for passing arguments to scriptblock ### 📊 Changes **1 file changed** (+781 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `Public/Invoke-AsCurrentUser.ps1` (+781 -46) </details> ### 📄 Description I was in need to run some code under logged users on remote computers, so I've modified your function a little bit. PS: because I am sending this function to remote session I was forced to add $Source in function body, so there are no dependencies left behind PPS: I am using this as single function, not as module --- <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#8
No description provided.