Solved

How to access files on the network using psexec

Posted on 2008-10-10
2
420 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 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