thanks LucD!! The single quote worked fine, no more authentication errors, but the Invoke VMscript is still failing..
I have defined a variable for where the script resides, which is on my desktop, not in the guest OS. But It seems as though the Invoke-VMscript function is looking inside the guest OS for the script path I've defined rather than on my desktop.. I proved this by copying the insertps.ps1 script to the desktop of one of the VMs and sure enough, it found it and executed the script in that 1 VM.
The variable I have set up for the script I want to run against all the guest OSs:
$script = 'c:\users\gman\desktop\insertPS.ps1'
#this is how the rest is set up, first it grabs the VMs in the cluster which I have defined as a variable as you can see, then I run the invoke-vmscript for which I use -ScriptText $script in an attempt to run the insert.ps1 script against the VMs.
$VMs = get-vm -location $MEDITECHCLUSTER | Sort -property Name
Invoke-VMScript -ScriptText $script -VM $VMs -GuestUser administrator -GuestPassword 'jjw1ldT$G'
NOTE - if I just run the insertps.ps1 script by itself in powershell it works fine and provides me a the desired output from all the guestOS, but when I run it using the invoke-vmscript CMDlet from another script it keeps looking for the script inside the guestOS itself..
I'm hoping this is my last post for assistance on this because nobody else but you seems to reply and I don't want to consume all your time. You are obviously the best of the best on this stuff, I see your ID in many other posts here and there.. I thank you for your help on this..