Search the Community
Showing results for tags 'esx'.
Greetings, I am tearing my hair out over this issue. I have copied the example of how this works, here. The errant line is "Set-VMHostAccount -UserAccount $UserName -Password $NewPassword" The error is that the UserAccount value cannot be found. The line works when run directly in PowerShell on the server. So at least it should work. It doesn't matter if the line is updated to have 'root' in place of the $UserName. It doesn't matter if there are only 3 lines in the script (the connect, the error, the disconnect)
Step 1: Ensure you have prerequisites set up for your web server and hosts, as per this forum post (Once off process) Step 2: Add new Password Record configured as follows: Screen 1: Ensure you configure the below 5 options correctly and enter in the password for the account. If you configure an Expiry Date it will automatically change the password when that date is reached. Screen 2: Three are three options on this page to configure: Confirm the Reset Linux Password reset script is selected Determine whether or not to use a Privileged Account