Solved

How to access files on the network using psexec

Posted on 2008-10-10
2
414 Views
Last Modified: 2013-11-10
I am trying to do remote PGP calls to a couple of designated systems that are running Windows XP. I have an executable on the local machines that I call and pass the command line that I would like run. The exe then parses the command line and modifies it as needed and then runs the PGP command using PGP Command Line 9.0.1. The calls works perfectly when being called from a remote system IF the file the is being encrypting\decrypted it is the local drive of the machine the command is being passed too, however, if the files are located on the network and are being called in this fashion PGP cannot find the file, nor can my app see files that are on the network (my app does a check to ensure the encrypted\decrypted file is there after PGP runs, PGP seems to return 0 even when files arent successfully encrypted\decrypted  not always but I need it to be consistent). I can run the exact same command locally on the designated system in a command prompt and it will encrypt\decrypt the file just fine if it is on the network or the local drive. When calling psexec I am passing the username and password and I know they are being passed because I can initiate the call from my machine which has a different user account then the designated machine that will run the command. The network drive that is trying to be accessed is also mapped with the same userID and password as the designated machine is logged in with. Here is an example of the command line I use when initiating the call using psexec.

psexec.exe -i \\<MachineName> -u "<User>" -p "<Pass>" <myExe> <PGP Command>

Please help!
0
Comment
Question by:DCT-2008
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 22694017
Try referencing the network files by UNC path (\\server\share) rather than by drive letter.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

770 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