Solved

PSEXEC access denied when using @file for multiple computers

Posted on 2009-07-10
2
1,128 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
[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
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

726 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