VMware Cloud Community
tdubb123
Expert
Expert

invoke-vmscript getting Failed ti authenticate with guest operating system using supplied credential

I keep getting following error when trying to run invoke-vmscript on a vm

 

guest tools asre current

 

invoke-vmscript -scripttext {dir c:} -vm vmname -guestcredentials $creds

 

any idea?

0 Kudos
1 Reply
LucD
Leadership
Leadership

I'm not sure if something went wrong in this post, but I can't see any errors.
How did you create the value in $creds?

Also, the ScripText parameter expects a String, not a ScriptBlock.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos