Hi,
So this is my first post in this forum, so let me introduce myself.
I’m an 50 year old ITtechnician with about 5years of self-taught experience of PowerShell. I love automation and PowerShell is an awesome tool for me and I love it. I’m no expert in anyway. So if I ask silly question just bare that in mind, please. ![]()
On to my problem.
I’ve built a script that communicates with our Active Directory. But as the script is run from my computer at the moment, I need to add credentials. And as I am lazy
I create a credentials object while developing which means I set two strings, one for my userName and the other for the password. Well, that is kinda alright when I’m a lone dev and on my own machine and it’s not yet finished and mostly there for testing.
But once I release the script and put it on the automation server I need to have solved this somehow. I just don’t know how to do this is, what’s the best praxis here?
Sure, I could create an admin account with an absurdly complicated long password. But it will still be human readable if someone opens the script. This to me is bad. So what can I do instead or is this the way to do it?
I have tried to find good videos about this on Youtube, but it doesn’t seem to be a popular topic.
So any tips, hints, guides or anything really will be highly appreciated.
Thanks!
Figeluren