Taken from:
https://www.pdq.com/blog/secure-passw...
Code: https://gist.github.com/nanoDBA/11bfd...
Sometimes a script needs to use a password, but you want it stored securely. Passing a credential by utilizing 2 things:
1. A password file that contains the encrypted file
2. A key file that contains a randomly generated AES key
allows for utilization of credentials within scripts by different users and servers. The following method is only as secure as the locations of the files(password and key) themselves.
Auf dieser Seite können Sie das Online-Video Passing Credentials in PowerShell between users and computers using keys mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Lars Rasmussen 01 August 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,649 Mal angesehen und es wurde von 21 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!