Petri.com forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Client Operating Systems > Windows 2000 Pro, XP Pro
Petri.com is happy to award RicklesP the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read
Notices

Psexec error

Psexec error

this thread has 9 replies and has been viewed 13758 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th August 2010, 19:58
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Psexec error

Hi All,

am using 3rd party packaging tool to convert exe to msi and install the msi package throsilent installation using psexec tool. in most of the PCs i can able to install it silently, in few PCs i face error while executing it

1. the msiexec with error code 1603 ... which is not allowing the package to isntall....it is processing for a long time and then send the error code...

2. psexec is not a valid win32 application

Can any one have idea onn this error... if so pls guide me how to resolve it

Thing i have tried....

for "psexec is not a valid win32 application" error i have downloded a new psexec tool from internet and used , the account am installing is having admin access, msiexec and psexec is present in %window%\system32.... in both source and the target machine


For "msiexec with error code 1603 " error code i have checked the windows service firewall, workstation ,server and diagnostin host service and these are set to automatic and started... in both source and target machine

pls guide me
  #2  
Old 17th August 2010, 23:07
Rems's Avatar
Rems Rems is offline
Moderator
 
 Join Date: Mar 2005
  6 month star 12 month star
 Location: NL
 Posts: 2,432
 Reputation: Rems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to behold (965)
Default Re: Psexec error

Show the psexec.exe command line.
Are you starting psexec from batch file or, running it from command prompt?

\Rems
__________________

This posting is provided "AS IS" with no warranties, and confers no rights.

__________________

** Remember to give credit where credit's due **
and leave Reputation Points for meaningful posts
  #3  
Old 18th August 2010, 17:29
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Re: Psexec error

Hi Rems

here you go >>

psexec \\hostname msiexec /i \\hostname\c$\tools\package name /quiet /qn

c:\tools - is where i copy my package and invoke the installation silently thro psexec

at times i wil combine two commans (copy and execute)

copy \\hostname\sharepath\packagename "\\target hostname\c$\tools|psexec \\hostname msiexec /i "\\hostname\c$\tools\package name /quiet /qn
  #4  
Old 19th August 2010, 13:52
g7rpo g7rpo is offline
Casual
Casual
 
 Join Date: Oct 2008
  6 month star 12 month star
 Posts: 49
 Reputation: g7rpo is on a distinguished road (10)
Default Re: Psexec error

Wouldnt it be easier to do this through GPO if indeed you are on a domain, especially as you have the msi file already.
  #5  
Old 24th August 2010, 07:51
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Re: Psexec error

we are in desktop support we dont have access to DCs thats the reason y we are using these tools to simplify our day to day tasks or rather repeated tasks....


can u pls suggest ...
  #6  
Old 24th August 2010, 13:43
Rems's Avatar
Rems Rems is offline
Moderator
 
 Join Date: Mar 2005
  6 month star 12 month star
 Location: NL
 Posts: 2,432
 Reputation: Rems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to behold (965)
Default Re: Psexec error

Quote:
Originally Posted by balajitry View Post
psexec \\hostname msiexec /i \\hostname\c$\tools\package name /quiet /qn

c:\tools - is where i copy my package and invoke the installation silently thro psexec

at times i wil combine two commans (copy and execute)
Msiexec.exe will be executed on the remote computer (\\targethostname) you have to use paths relative to that computer,, try,
Code:
Psexec.exe \\targethostname -w "%windir%\system32" -i -s msiexec.exe /i "c:\tools\packagename.msi" /quiet /qn
note: If psexec.exe is not in the current working directory or its path is not in %path% on the server then you should provide a full path to the psexec.exe file in the command: "c:\pstools\psexec.exe" <arguments>


To combine copying and executing to a one-liner, try something like,
Code:
(XCopy.exe /I /Y /D "\\servername\sharepath\packagename.msi" "\\targethostname\c$\tools\")&&(Psexec.exe \\targethostname -w "%windir%\system32" -i -s msiexec.exe /i "c:\tools\packagename.msi" /quiet /qn)

Note:
Good practice is to use full_filenames, like psexec.exe and msiexec.exe.
Good practice is to enclose "path\file" within quotes


\Rems
__________________

This posting is provided "AS IS" with no warranties, and confers no rights.

__________________

** Remember to give credit where credit's due **
and leave Reputation Points for meaningful posts
  #7  
Old 30th August 2010, 12:38
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Re: Psexec error

sorryto day....i got simillar error in few PCS with 1603 and in other PC psexec is not a valid win32 application...


i am trying the cmd line which you gave and using psexec.exe and msiexec.exe

pls suggest me ...
  #8  
Old 30th August 2010, 13:56
Rems's Avatar
Rems Rems is offline
Moderator
 
 Join Date: Mar 2005
  6 month star 12 month star
 Location: NL
 Posts: 2,432
 Reputation: Rems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to behold (965)
Default Re: Psexec error

Quote:
Originally Posted by balajitry View Post
in other PC psexec is not a valid win32 application...
Are you sure it is saying that - PSEXEC.EXE is not a valid win32 application - (and not psexesvc, msiexec, packagename.msi or something else...). How would that be possible - don't you run the psexec.exe command line manually from one and same central computer then? From where do you launch the psexec command?
Are you running psexec from within a script/batch or do you enter/paste the command line on a command prompt for every remote computer?
Does the "invalid win32 application" error occour just with one "remote" or "local" computer?

try this,
Copy the file msiexec.exe to the same network folder where the packagename.msi is.
And copy also the file Psexec.exe to that shared folder.

then run,
Code:
"\\servername\sharepath\Psexec.exe" \\targethostname -i -s "\\servername\sharepath\msiexec.exe" /i "\\servername\sharepath\packagename.msi" /quiet /qn
Use quotes around the filepaths

You use the -i switch, this will run the remote process in the System account (NT AUTHORITY\System). However he Local System account does not have any rights to access the network it uses the account Domain\computername$ when network access is necessary. So for the command line above to work, make sure the Computer account has read and excecute rights on the networkfolder.


\Rems
__________________

This posting is provided "AS IS" with no warranties, and confers no rights.

__________________

** Remember to give credit where credit's due **
and leave Reputation Points for meaningful posts
  #9  
Old 16th September 2010, 04:46
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Re: Psexec error

now all started working after i copy a new psexec.exe from other PC...looks strange!! when i does the same earlier it was not working...

any how all ends well.

Thanks for all the comments
  #10  
Old 18th September 2010, 09:25
balajitry balajitry is offline
Casual
Casual
 
 Join Date: Feb 2008
  6 month star 12 month star
 Posts: 58
 Reputation: balajitry is on a distinguished road (10)
Thumbs up Re: Psexec error

I have found a gui tool for PStools utuility which is front end for Pstools http://www.davitools.com/fepstools/fepstools.aspx . Which is quite impressive tools which has all the pstools commands in the gui format. I tried to run the MSI package using the FePsTools psexec command but i was not successful. Can u pls guide me how to use this GUI tool so my task will be much easier if i want to push the software for bulk of PCs i can use this tool to complete the task.
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VDR Error: Configure Destination Error Data Recovery could not add the specified Netw Albertwt VMware Virtualization 3 7th October 2009 11:45
provisioning error: a security package specific error occurred HMC4.0 techie_007 Exchange 2007 / 2010 / 2013 2 19th June 2009 23:25
issue with nested calls in psexec script (access denied) alexbogus General Scripting 1 11th December 2008 16:16
OWA error 500 - Internal server error / The specified module could not be found. gulars Exchange 2000 / 2003 10 23rd October 2008 15:16
Psexec/bat credentials question damnlamb General Scripting 4 23rd April 2007 22:43


All times are GMT +3. The time now is 20:52.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri