Solved

Psexec error

Posted on 2010-09-22
9
2,811 Views
Last Modified: 2012-05-10
I am trying to run psexec and I keep getting the error:  The specified application is not on the path.  The command I am running is:

psexec \\remotecomputer -d -s -c -f myfile.bat

The batch file is located on my computer and this is what it does:
- check if a folder exsits and renames it if it does
- creates a new folder
- copies a folder from a network share to new folder on "remotecomputer"

I eventually want to run this for a list of computers and I have tried that too using the command:
psexec @list.txt -d -s -c -f myfile.bat
but this also failed with the same error.

Can someone please help me with this?  Thanks.
0
Comment
Question by:PPPL-helpdesk
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 7

Expert Comment

by:jesaja
Comment Utility
0
 
LVL 66

Expert Comment

by:johnb6767
Comment Utility
Is myfile.bat in the same folder as psexec?
0
 
LVL 4

Expert Comment

by:ekincam
Comment Utility
Try putting the full path name to the batch file on your computer rather than just the batch file.

IE you put the command similar to this:
psexec \\remotecomputer -d -s -c -f c:\pstools\myfile.bat
0
 
LVL 4

Expert Comment

by:ekincam
Comment Utility
Additionally, if you have spaces in the absolute path, then you use double-quote, ie "c:\some path\pstools\myfile.bat", to enclose the command
0
How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

 

Author Comment

by:PPPL-helpdesk
Comment Utility
myfile.bat is in the same folder as psexec
I have also tried the full path name and it did not work and the path does not have any spaces.

I can see psexec works because if I do
psexec \\computer name ipconfig /all
0
 
LVL 7

Accepted Solution

by:
jesaja earned 500 total points
Comment Utility
Did you read the link and tested to use it like this with .exe and only the -c ?

psexec.exe @File.txt -c SoftwareExtensionSearch.vbs
0
 

Author Comment

by:PPPL-helpdesk
Comment Utility
Ok, that worked and it also worked with -d -s -c -f.  Are there any limitations on how much I could copy with psexec?  I am having a weird issue.  On both computers the folder stopped copying at 500MB.
0
 
LVL 7

Expert Comment

by:jesaja
Comment Utility
psexec executes programs on remote systems like your batch file. So I would consider that something is with the batch

what happens when you execute the batch on the remote system manually?

can you place the code here

try robocopy to transfer files or rsync

0
 

Author Comment

by:PPPL-helpdesk
Comment Utility
I found that the antivirus software was blocking it after a certain point, so you can ignore my last question.
0

Featured Post

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

744 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

16 Experts available now in Live!

Get 1:1 Help Now