VMware Communities
DocHodges
Contributor
Contributor

How to use domain login with vmrun CopyFileFromHostToGuest

I'm having a hard time with CopyFileFromHostToGuest.  If I use local accounts - no problem.  Linux guests no problem.

Windows VMs in a domain are a problem.  For example

/usr/bin/vmrun -gu Administrator -gp secret CopyFileFromHostToGuest /home/user/test/test.vmx   /tmp/putty.exe C:\Temp\putty.exe

only works if Administator is a local account.  In this case it's in the WIN2003 domain.

using   -gu WIN2003/Administrator    fails

using   -gu WIN2003\Administrator    fails

using   -gu WIN2003/\Administrator    fails

using   -gu WIN2003\/Administrator    fails

using   -gu "WIN2003/Administrator"    fails

using   -gu "WIN2003\Administrator"    fails

Always with    Error: Invalid user name or password for the guest OS

Command line and script results are the same.  Putting the user and password in by hand rather then -gu  and -gp  doesn't help.

How should one pass a domain name to the vmrun guest?

Thanks!

Doc

0 Kudos
0 Replies