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

9

u/kaluaabyss Jul 02 '21

https://github.com/PowerShell/SecretManagement

With SecretStore vault type they could each have an encrypted password vault contained in their user profile.

-1

u/codeMonkeyfarmer Jul 02 '21

I think this is the answer. Thanks :) will try it in the morning.

7

u/ExceptionEX Jul 02 '21

Look man, you probably shouldn't do it even if you can, if. You have an it group locking the systems down that much.

You need to talk to them about a good password vault, and not try to implement one yourself. Don't know your situation, but say you make one and there is bug and leak all those passwords, or IT gets wind of it, and are super pissed.

-1

u/codeMonkeyfarmer Jul 02 '21 edited Jul 02 '21

Why? What would they be “pissed” about? Using proper practices? It seems like this is something that should have been addressed a long time ago but they haven’t had the bandwidth.

12

u/ExceptionEX Jul 02 '21 edited Jul 02 '21

Because what you sound like you are doing is called shadow IT, and you are making choices that aren't in your purview, and if you think powershell password management is a proper practice it reenforces you are making choices you aren't qualified to.

Again instead of diving off into something like this, consult them. There maybe a reason they haven't deployed something yet.

Do what you want as always, but I would recommend working with them, instead of working around them, because if something goes wrong who do you think will take the blame?

-16

u/codeMonkeyfarmer Jul 02 '21

You sound very junior. Yes that’s something you’d be told because, well, you may not know what you are doing. That’s ok. That being said I write code for a living and most of our IT is either over busy or outsourced to bureaucratic mechanisms that take a very, very long time.

Two things. I’m asking a general question because I’m unfamiliar with this aspect of powershell and the options available. I will then test it for myself. That’s how you “get qualified”

No there isn’t a reason this hasn’t been done other than people being overloaded. You’ll learn as you get more experienced and confident that sometimes you don’t ask for permission on things. You just read and test and learn and get the job done quickly.

1

u/ericm272 Jul 02 '21

When I worked in corporate cyber, developers who had an attitude like that got themselves into trouble over violating corporate IT policies because they thought they knew better. ExceptionEX was on the money with that advice.

2

u/arpan3t Jul 02 '21

Not to mention the irony in calling someone junior when the top result for googling "Powershell password manager" is the SecretManagement module...

1

u/codeMonkeyfarmer Jul 02 '21

Seeing if there was something better. Guess there isn’t. But thanks for the insight.