r/PowerShell • • Jul 02 '21

Question Powershell password manager?

Hey all. Have non-admin powershell at work. IT is slow here due to being quite busy, but PS is available. 5.x. Would like a program like keepass for my engineering group (we have a lot of logins and people write them in text files), but even the portable version is locked down (no unapproved exe) - would there be a sensible way to approximate keepass for a normal user via a PS script without admin access?

1 Upvotes

39 comments sorted by

View all comments

Show parent comments

1

u/mprz Jul 02 '21

The way you've phrased your problem I was under assumption that your plan is to run keepass via PS to avoid it being blocked.

2

u/codeMonkeyfarmer Jul 02 '21

No sorry if I made that unclear. No matter where you fire the exe from it doesn’t work. Carbon black thing, not sure how it it forms it’s white lists or blacklists or whatever, but it does. Given it will take a long time to get a new program approved, just want to use the tool at hand (PS) to avoid storing lots of rotating passwords in plain text until then if I can.

1

u/mprz Jul 02 '21 edited Jul 02 '21

Easiest way I can think of? PS + SQLite + encrypting via passphrase on the fly and decrypting when queried.

Or some googling for existing solutions... like this one.

1

u/kibje Jul 02 '21

You don't need to run keepass.exe to use it as a vault through secretsmanagement.

1

u/BlackV Jul 02 '21

I mean they CAN using the powershell secrets module and the keepass plugin, dosnt require the keepass.exe at all

1

u/mprz Jul 02 '21

Yeah, got it already.

1

u/BlackV Jul 02 '21

good as gold