Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PSEXEC \\RemoteSitePC XCOPY

Posted on 2012-03-26
3
Medium Priority
?
999 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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

715 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