Solved

PSEXEC access denied when using @file for multiple computers

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

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now