File Transfer Issue From Hyper-V Host to Guest VM.

Thomas Williams 20 Reputation points

I'm trying to automatically update a shared folder on a HyperV machine when a folder from the local maching gets update. I've tried using Task Scheduler with Robocopy command and Powershell commands without luck. It seems like there's a security issue between the two computers but I cant seem to find where this problem exists. I've tried turning on printer and file sharing, allowing access to "everyone" on both folders, veriifying VM settings to allow file sharing. Any other input would be helpful, thanks!

A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,044 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
690 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 25,651 Reputation points

    What account did you configure the task to run as? If it's a local account, then both systems must have a local account with the same name and password. If it's a domain account, then RDP to the source machine with that account and verify that it can access the destination share.

    Have you reviewed both the share permissions and the folder permissions on the destination machine?

    The task scheduler does not perform a full logon, it does a user impersonation. The main implication is that drive letters are not mapped. Use UNC path notation, \\servername\sharename\foldername.

    Add a transcript to your script and capture the error that is occurring.

0 additional answers

Sort by: Most helpful