Using PSEXEC.EXE ro run msiexec's

Hi all,

I love to use psexec to kick off msi installs remotely, the only issue i have is knwoing when thay are done so I can call the user back and say "look how clever I am!"

Is there any tool or trick I can use to alert me when the msi has finished its job?

Huge thanks going out to anyone who knows this!!

Many thanks

Kevin
LVL 1
kevinsmith121Asked:
Who is Participating?
 
Nat_cConnect With a Mentor Commented:
try this:

start /wait <insert msiexec command here>
net send yourusername "Message to send"

copy this in to a text file and save it as something.bat

for testing purposes I used notepad in place of the msiexec command, the batch file waited for notepad to be closed before sending the message.

You will need to have the messenger service started on your PC in order to receive the messages, I think it may be set to manual as standard

Let me know how you get on,
Nat
0
 
Nat_cCommented:
Can you use psexec to run any type of executable or only msi files?

If you can use it to run a batch file you could have the batch file run the msi and then send you a net message (net send) when it is done.

I think you would also need to use the "wait" command to ensure that the net message was not sent as soon as the msi insall started.

Let me know what you think,
Nat
0
 
kevinsmith121Author Commented:
Batch files are not my area, if you could write up a dummy one with a <insert msiexec command here> that would be great, the important thing is for the message to only come up in the dos screen once the msi has finished.

Many thanks for your interest in this, I can follow your logic, just do not know how to do it! :-(

Ta!

Kev
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Nat_cCommented:
Hi Kevin,

Did you have any luck getting this to work?

Nat
0
 
kevinsmith121Author Commented:
Thanks Nat, apologies for the tardiness of my reply, yes it worked and thankyou.

Kevin
0
 
Nat_cCommented:
Glad it all worked!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.