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
Solved

PSEXEC access denied when using @file for multiple computers

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

840 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