mirror of
https://github.com/KelvinTegelaar/RunAsUser.git
synced 2026-04-26 09:05:56 +03:00
[PR #38] [MERGED] Reintroduced: Allow variables in $ScriptBlock #15
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#15
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/38
Author: @Qumoo
Created: 3/20/2024
Status: ✅ Merged
Merged: 4/18/2024
Merged by: @KelvinTegelaar
Base:
master← Head:master📝 Commits (1)
d54d4c3Reintroduced variable expansion, but with switch to prevent breaking older scripts📊 Changes
1 file changed (+12 additions, -3 deletions)
View changed files
📝
Public/Invoke-AsCurrentUser.ps1(+12 -3)📄 Description
This reintroduces variables in ScriptBlocks (as seen in #12 ) but also introduces a new switch -ExpandStringVariables that needs to be set to not break compatibility with older scripts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.