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

Thomas Williams 20 Reputation points
2023-05-23T16:13:57.5233333+00:00

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!

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

Accepted answer
  1. MotoX80 34,516 Reputation points
    2023-05-23T16:37:57.04+00:00

    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.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-5.1


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.