Quantcast
Viewing all articles
Browse latest Browse all 169668

Re: change ip address of all vms

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 -ScriptTypebat -ScriptText$netsh

Invoke-VMScript-VM$VM-HostCredential$HC-GuestCredential .\administrator -Guestpass xxxxxxxx -ScriptTypebat -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? 


Viewing all articles
Browse latest Browse all 169668

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>