Solved

PSEXEC \\RemoteSitePC XCOPY

Posted on 2012-03-26
3
995 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 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