mirror of
https://github.com/KelvinTegelaar/RunAsUser.git
synced 2026-04-26 09:05:56 +03:00
[PR #14] [MERGED] Add null check to $privs to catch unelevated runs #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/RunAsUser#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KelvinTegelaar/RunAsUser/pull/14
Author: @dbeta
Created: 3/9/2021
Status: ✅ Merged
Merged: 3/22/2021
Merged by: @KelvinTegelaar
Base:
master← Head:patch-1📝 Commits (1)
cbf9c8bAdd null check to $privs to catch unelevated runs📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
Public/Invoke-AsCurrentUser.ps1(+1 -1)📄 Description
If RunAsUser is run in an unelevated PowerShell instance, the filtered whoami returns null instead of a disabled state.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.