Solved

How to access files on the network using psexec

Posted on 2008-10-10
2
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

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: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Make the most of your online learning experience.
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…
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…

690 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