# Copying to Another Computer

A shared folder has a network address, a UNC path such as \\\\back-office\\reports, that Test-Path, Get-ChildItem and Copy-Item use like any other path, and where there's no share, Copy-Item -ToSession and -FromSession copy a file through a remoting session made with New-PSSession and closed with Remove-PSSession.

![Cheat sheet for the lesson Copying to Another Computer: A shared folder has a network address, a UNC path such as \\\\back-office\\reports, that Test-Path, Get-ChildItem and Copy-Item use like any other path, and where there's no share, Copy-Item -ToSession and -FromSession copy a file through a…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/41aeefdb26514ccc9c1ddfe1e1f6d545.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: copy-item, operating-system, powershell, pssession, shared-folder, unc-path
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-copy-to-session-cheat-sheet
