Hi LucD - great post to help out on getting Virtual Al's script to work from a CSV file containing multiple machines, I have this part working fine thanks to you suggestion on this post.
However - I need to ask if you could back up to a more simple issue with this - the 'guestcrendential' piece of the invoke script.
I do not want to be prompted to enter in the credentials for each Guest OS because they all have the same local admin PW. However, I can't seem to authenticate without the prompting code.. and I see something about "secure string" in the guestpassword parameter which is probably my issue...
How do I get the invoke-VMScript to work from a text file using the local admin and pw for each guestOS?
I have tried the following and nether worked:
Invoke
-VMScript
-VM
$VM
-HostCredential
$HC
-GuestCredential
administrator -Guestpass xxxxxxxx -ScriptType
bat
-ScriptText
$netsh
Invoke
-VMScript
-VM
$VM
-HostCredential
$HC
-GuestCredential .\
administrator -Guestpass xxxxxxxx -ScriptType
bat
-ScriptText
$netsh
Also, I see the HostCrendential parameter in use here and on other posts, but I have found that when connecting to vCenter and provided the proper credentials when prompted to connect this is never really needed, can you confirm why I see this so much?