mkellerman / Invoke-CommandAs

Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.

Home Page:https://www.powershellgallery.com/packages/Invoke-CommandAs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parsing error when using -FilePath

kkawabanga opened this issue · comments

$ScriptContent = Get-Content -Path $FilePath

use "-raw" switch, otherwise "get-content" removes newline-characters from the scriptfile on import.

->

Line 313: $ScriptContent = Get-Content -Path $FilePath -Raw

Thank you. Do you wish to create the PR and I merge it in? Let me know, or I'll go right ahead and make the changes.

Pull request is ready to merge

#60 has been merge! thank you for your contribution!