mirror of
https://github.com/KelvinTegelaar/RunAsUser.git
synced 2026-04-26 09:05:56 +03:00
[PR #16] [MERGED] Add functionality to use Microsoft PowerShell Core (pwsh.exe) #6
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#6
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/16
Author: @vollbrechteric
Created: 3/26/2021
Status: ✅ Merged
Merged: 3/26/2021
Merged by: @KelvinTegelaar
Base:
master← Head:master📝 Commits (2)
6969963Add logic to check for Microsoft PowerShell v.7ec4de64Changed the logic for $pwshPath📊 Changes
1 file changed (+12 additions, -3 deletions)
View changed files
📝
Public/Invoke-AsCurrentUser.ps1(+12 -3)📄 Description
This addresses the items that are issue #15
Added the switch -UseMicrosoftPowershell. When it is used the script will check if Microsoft PowerShell (aka PowerShell Core) is installed and then run the script block with that version.
This is useful in cases where an RMM uses its own version of PowerShell, or only looks for Windows PowerShell, but feature are needed from newer versions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.