# Newbie with Copy question

**URL:** <https://forums.powershell.org/t/newbie-with-copy-question/2833>\
**Category:** PowerShell Help\
**Created:** [July 16, 2014, 2:07am UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833 "2014-07-16T02:07:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg-singer-39](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@greg-singer-39](https://forums.powershell.org/u/greg-singer-39)\
**Post date:** [July 16, 2014, 2:07am UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833/1 "2014-07-16T02:07:22Z")

</div>

I want to copy a file from one computer to another on the same domain. I am an admin on both boxes and on the domain and am logged into PowerShell 3 as an admin as well. I am VERY new to this and can’t figure this one out. I would like to do this by sending the file to the other machine name, in this case ED0000400005409 and make it reside on that machines desktop. I keep trying and failing. Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![sam-boutros](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/sam-boutros/32/5_2.png) [@sam-boutros](https://forums.powershell.org/u/sam-boutros)\
**Post date:** [July 16, 2014, 2:51am UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833/2 "2014-07-16T02:51:20Z")

</div>

```
# Copy example
#
# Use this command to see how to use Copy-Item commandlet
help Copy-Item -Full
#
$Source = "d:\files\MyFile.txt" # or "\\server1\share1\folder1\file1.txt"
$Target = "\\PC1\d$\folder\"
Copy-Item -Path $Source -Destination $Target -Confirm:$false -Force
```

To make the target a machine’s desktop, you need to identify whose desktop. Each user logged on each machine gets their own desktop. The path to the desktop will depend on the OS version, domain membership, as well as the user name.  
All can be scripted if you can provide clarity on these questions.

---

<div class="post-metadata">

**Author:** ![rob-simmers](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/rob-simmers/32/1010_2.png) [@rob-simmers](https://forums.powershell.org/u/rob-simmers)\
**Post date:** [July 16, 2014, 2:53am UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833/3 "2014-07-16T02:53:02Z")

</div>

```
Copy-Item -Path "C:\MyFile.txt" -Destination "\\ED0000400005409\c$\Users\GSinger\Desktop
```
"

---

<div class="post-metadata">

**Author:** ![greg-singer-39](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@greg-singer-39](https://forums.powershell.org/u/greg-singer-39)\
**Post date:** [July 16, 2014, 3:05am UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833/4 "2014-07-16T03:05:26Z")

</div>

Fantastic, I used the command as Rob Simmers posted it and it worked perfectly. Thank you so much.I got tired of tryong to figure that one out and finally had to just break down and ask

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:47pm UTC](https://forums.powershell.org/t/newbie-with-copy-question/2833/5 "2024-05-16T20:47:48Z")

</div>


