[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 824
  • Last Modified:

Psexec copy file question

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
snyderkv
Asked:
snyderkv
2 Solutions
 
pony10usCommented:
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
 
QlemoC++ DeveloperCommented:
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
 
snyderkvAuthor Commented:
Ah I see. Thanks both of you
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now