You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is kind of an odd one and I can fork and fix if you want, but in the PSSQLite.psm1 file you're using the alias for Select-Object as part of the function export process (at the end). Under normal circumstances this is totally ok, however I've been banging my head over the last few days trying to figure out why I can't get the PSSQLite module to work as part of a constrained endpoint (JEA) and after doing a lot of debugging the use of the Select alias is not playing nice with a locked down endpoint\shell (SessionType='Empty' and LanguageMode='RestrictedLanguage'). I tried defining Select as a valid alias with VisibleAliases but the only way I could get it to work is if I edited the module and spelled out the alias as Select-Object.
So anyway we can get the Select alias removed and the full cmdlet name put int the PSSQLite module file? I can do it if you want, but it seems like a really small change :)
The text was updated successfully, but these errors were encountered:
Must have missed this! Sure, makes sense to me, would gladly take a PR : ) I should probably start adding psscriptanalyzer gating for particular rules to avoid cases like this
Alright...pull request in. Take a look. I also am working on
Invoke-SqliteTransaction to execute a series of statements in a transaction
which I'll be submitted soon.
On Mon, May 1, 2017 at 12:21 PM, Warren Frame ***@***.***> wrote:
Must have missed this! Sure, makes sense to me, would gladly take a PR : )
I should probably start adding psscriptanalyzer gating for particular rules
to avoid cases like this
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGBoYE5-B1a_7m4piWfVwmhEg5hHvBhKks5r1gZ-gaJpZM4M-qei>
.
This is kind of an odd one and I can fork and fix if you want, but in the PSSQLite.psm1 file you're using the alias for Select-Object as part of the function export process (at the end). Under normal circumstances this is totally ok, however I've been banging my head over the last few days trying to figure out why I can't get the PSSQLite module to work as part of a constrained endpoint (JEA) and after doing a lot of debugging the use of the Select alias is not playing nice with a locked down endpoint\shell (
SessionType='Empty'
andLanguageMode='RestrictedLanguage'
). I tried defining Select as a valid alias withVisibleAliases
but the only way I could get it to work is if I edited the module and spelled out the alias as Select-Object.So anyway we can get the Select alias removed and the full cmdlet name put int the PSSQLite module file? I can do it if you want, but it seems like a really small change :)
The text was updated successfully, but these errors were encountered: