Solved

How to access files on the network using psexec

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internal CA server 6 94
learn programming 8 73
Do Wend Macro not working 22 58
VMware: Best way to move disks to new datastore? 5 48
When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
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 …

730 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