Solved

PSEXEC \\RemoteSitePC XCOPY

Posted on 2012-03-26
3
990 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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

828 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