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/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.

6

u/djchateau 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.

I'm not junior and I call shenanigans on this. While I agree with you that you do what you can to get things done, working around IT makes our jobs harder when we're already overloaded. Communicate with your IT staff instead of committing to shadow IT practices.

-2

u/codeMonkeyfarmer Jul 02 '21

Communicate what in particular? That I’m using tools that I’ve used before that are available to me to solve a problem that doesn’t have a solution by writing a script? What do they need to know here? Legitimately

7

u/djchateau Jul 02 '21

If the issue here is that you need password management for your team, get an actual password management solution approved instead of trying to script around it.

-1

u/codeMonkeyfarmer Jul 02 '21

How is the above repo not “an actual solution”? … what could they add? As far as I can tell it does the job and either way it encrypts account information that IT is not supposed to have. What are they gonna add to that? Honest question.

→ More replies (0)

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.