Solved

PSEXEC \\RemoteSitePC XCOPY

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
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 …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

18 Experts available now in Live!

Get 1:1 Help Now