Solved

PSEXEC access denied when using @file for multiple computers

Posted on 2009-07-10
2
1,122 Views
Last Modified: 2012-05-07
I am attempting to use PSEXEC to deploy and MSP (Microsoft Installer Patch) file to about 80 computers. For some reason when I try to put the command in a batch file I get a logon failure on the remote computer. Below is the string from the batch file:

C:\PSTools\psexec \\@C:\PSTools\CPUListHPPC.txt -u "Domain\administrator" -p "PassWord" msiexec.exe /p "\\eoverbylt\osc\OSCC70R3G02Client.msp" /qn >deployhppc.log 2>&1

The funny thing is if I just open a command prompt and just run the command from there it works flawless.

So to explain the command.  PSexec is reading a list of computers from CPUListHPPC.txt and using the domain administrator account to log into the pc.  Then uses the /p switch to install the MSP (patch) file to the program with /qn or quiet mode enabled and logging to deployhppc.log file.

Is psexec ignoring the -u and -p switches for the username/password since it is being opened via a batch file?
0
Comment
Question by:evan021702
  • 2
2 Comments
 
LVL 6

Author Comment

by:evan021702
ID: 24828018
Just for point of fact.  If you are looking to deploy to multiple PCs and don't want to wait on interactive messages from each PC.  You can use the -d switch to have the command simply continue to the next PC once the remote install process is started on each PC.
0
 
LVL 6

Accepted Solution

by:
evan021702 earned 0 total points
ID: 24896431
Deployed using the command instead of the batch file.  I believe there is a problem with PSExec when trying to run at a bat.  Here is a quick walkthrough on what I did:
http://www.3foldsolutions.com/forum/viewtopic.php?f=5&t=4  
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

810 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