Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 210400

Re: I need a script to log into guest OS desktop, similar to option in guest customization wizard

$
0
0

Hi LucD - I have made some progress with my scripting, decided there is no way to script the logon I'm looking for without the reg modification that I don't want, so I started to develop new ways to script the verifications I need.  and in doing so, I implemented the Invoke VMscript method as you suggested, but it continues to fail to authenticate.  I do have the PSscript I wrote working directly in powershell, but when I attempt to perform the actions with powercli Invoke VMwcript I can't authenticate. 

 

this I extracted the piece that is causing the problem and tried to run a simple script:

 

connect-viserver $vcentername


$VMs = get-vm -location $CLUSTERNAME | Sort -property Name
Invoke-VMScript -ScriptText $script -VM $VMs -GuestUser administrator -GuestPassword ********

 

What could I being doing wrong in this?  all the VMs are built with the same admin pw...  so I would think I shouldn't have any problem logging in with this the way it is...

 

I'm using vSphere powercli 5.1 release 2


Viewing all articles
Browse latest Browse all 210400

Trending Articles



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