Lately I was updating a couple of my scripts, and when I re-used my script that automatically updates AWS records for Let's Encrypt DNS challenges, I realised that I never stored my AWS credentials anywhere, but I was just using those cached into my powershell environment. Time to have some proper credential management.
In 2012 I published a post with a Powershell script to be able to check all the available VM’s in a given vSphere environment, and verify which ones were protected by Veeam Backup & Replication. Time to update the script to make it work with the latest versions of the two software.
In powershell, in order to use credentials to authenticate against different systems you have different options. When running scripts interactively, we can configure the powershell command to ask us for username and password, but saving passwords in clear text into a script is a bad security practice. Powershell however has a way to hide passwords in commands and scripts.
Vi segnalo un wiki molto interessante: vi-toolkit wiki ospita un elevato numero di pagine con esempi di codice per i nostri sistemi virtualizzati. Il link indicato porta direttamente alle categorie, a causa del numero elevato di pagine questa è assolutamente il punto da cui partire per navigare il sito.