Level 1
0 / 100 XP

How to Copy Files To-From a Remote Machine Challenge

How can I Copy files To or From a Remote Machine Using VSC?

Prerequisites:

  • You need to create at least one VM.
  • You will need to create a folder on the host computer called C:\Temp\Local
  • Create a txt file called loginfo.txt in the C:\Temp\Local folder
  • Create a folder on the remote machine called C:\Temp\Remote

Copy a .pdf file to C:\Temp\Remote – Rename the pdf to KB.pdf

  • You have already followed the lecture called “Setting up Visual Studio Code for Powershell”

Located in Section 2. And Enabled PSremoting with Group Policy (Section 16 Lecture 87)

  • You have added your new VM to the Trusted Hosts List (from a previous challenge)

Hint – First you will need to create a remote session with VSC1, thenYou will be using the copy-item command to complete this challenge. Now it’s your job to research and figure out the rest of the one-liner.