vmrun – Error: You do not have access rights to this file

VMware vmrun command is very powerful feature of VMware Workstation and ESX server to automate things in virtual machines.

Configuring automated script for Windows 2008 Server and Windows 2008 R2 was easy task. Everything went as expected. However the same script failed on Windows Vista and Windows 7 with the following two errors:
for vmrun ... copyFileFromHostToGuest ...:
Error: You do not have access rights to this file

for vmrun ... runProgramInGuest ...:
Access denied

I searched extensively, but couldn’t find anything that helped to get rid of these errors. Then I started thinking about, what is the difference between Windows Workstation and Windows Server editions. The answer is – UAC – User Account Control is enabled by default on workstations for administrator account.

Still looking for solid fix, but currently I have disabled UAC on these virtual machines.

To disable UAC on Windows 7, go to Start – type UAC – press enter – set slider to Never notify – restart computer if needed.

To disable UAC on Windows Vista, go to Control Panel – type uac in the search box – uncheck “Use User Account Control (UAC) to help protect your computer” – click OK.

One reply on “vmrun – Error: You do not have access rights to this file”

  1. hi
    I have a windows7 as host and other on VMware as guest,
    when I try to run “CopyfromHosttoGuest” and versa using vmrun from a folder of host to desktop of geust by this command “vmrun -gu -gp “vmware path” E:\z\1.jpg C:\Users\user\Desktop”, faced with this error : You do not have access rights to this file
    what is the problem and solution?

Comments are closed.