PSSQLite icon indicating copy to clipboard operation
PSSQLite copied to clipboard

Select alias in PSSQLite.psm1

Open evetsleep opened this issue 8 years ago • 2 comments

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 :)

evetsleep avatar Apr 16 '17 16:04 evetsleep

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!

RamblingCookieMonster avatar May 01 '17 16:05 RamblingCookieMonster

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 [email protected] 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 https://github.com/RamblingCookieMonster/PSSQLite/issues/13#issuecomment-298365960, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBoYE5-B1a_7m4piWfVwmhEg5hHvBhKks5r1gZ-gaJpZM4M-qei .

evetsleep avatar May 09 '17 01:05 evetsleep