Following my article from yesterday and some returns, here after a new version.
A validation of credentials provided has been inserted in the psh code.
Note: You must use a local account with ADMIN role to run successfully the script.
I will try to see if it’s possible to use an AD Account.
The script can be download here (you will need to rename from txt to ps1 to run)
Thanks