Solved

PSEXEC \\RemoteSitePC XCOPY

Posted on 2012-03-26
3
987 Views
Last Modified: 2012-03-26
Hi there,

Logged on as a domain admin, here is what i tried, but it does not work:
PSEXEC \\RemoteSitePC XCOPY /Y /I "\\RemoteSiteServer\Shared$\AHugeFile.msi" "C:\Temp"
PSEXEC \\RemoteSitePC -u DomainName\administrator -p password XCOPY /Y /I "\\RemoteSiteServer\Shared$\AHugeFile.msi" "C:\Temp"

Open in new window


By the way:
-I have full access everywhere
-I can run "psexec \\RemoteSitePC CMD" and type a command
-When logged on RemoteSitePC, I can run:
XCOPY /Y /I "\\RemoteSiteServer\Shared$\AHugeFile.msi" "C:\Temp"

Thanks for your help,
Rene
0
Comment
Question by:ReneGe
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Leon Fester earned 500 total points
ID: 37766347
You can copy directly without PSEXEC
From your local machine, logged in as domain admin then run:
COPY "\\RemoteSiteServer\Shared$\AHugeFile.msi" "\\RemoteSitePC\c$\temp"

Open in new window


With psexec, you need to enter the full path of the command to be executed.

PSEXEC \\RemoteSitePC c:\windows\system32\XCOPY /Y /I  \\RemoteSiteServer\Shared$\AHugeFile.msi C:\Temp
0
 
LVL 26

Expert Comment

by:Leon Fester
ID: 37766353
XCOPY "\\RemoteSiteServer\Shared$\AHugeFile.msi" "\\RemoteSitePC\c$\temp" /Y /I

Open in new window

0
 
LVL 10

Author Comment

by:ReneGe
ID: 37767504
A direct xcopy is a problem, because the packets goes from the remote site server, to my PC, then back to the remote site PC.

The following is the working solution.

Thanks for your help.

Cheers,
Rene

PSEXEC \\RemoteSitePC /u DomainName\Administrator /p password c:\windows\system32\XCOPY /Y /I \\RemoteSiteServer\Shared$\AHugeFile.msi C:\Temp

Open in new window

0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Let’s list some of the technologies that enable smooth teleworking. 
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now