Solved

Psexec copy file question

Posted on 2010-08-19
3
804 Views
Last Modified: 2012-05-10
EE,

I'm trying to run NLTest on workstations remotely via psexec, only NLTest is not installed on workstations. Instead of manually copying it I wanted to copy it using the -c in psexec and then run the command but so far it doesn't work for me.

psexec -c nltest.exe C:\WINDOWS\System32 \\RemoteIP cmd /k nltest /dsgetsite

This exits psexec every time. I swaped -c to the end and some other changes with no luck.

Any ideas?
0
Comment
Question by:snyderkv
3 Comments
 
LVL 26

Accepted Solution

by:
pony10us earned 250 total points
ID: 33477266
From:   http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

This command copies the program test.exe to the remote system (\\marklap) and executes it interactively:

psexec \\marklap -c test.exe

I
0
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 250 total points
ID: 33477729
The -c has no parameter, it is used as a simple switch indicating the program to start needs to be copied first. The correct usage is hence


psexec  \\RemoteIP -c nltest.exe /dsgetsite
0
 

Author Comment

by:snyderkv
ID: 33482266
Ah I see. Thanks both of you
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Utilizing an array to gracefully append to a list of EmailAddresses
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

895 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

13 Experts available now in Live!

Get 1:1 Help Now