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?
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