Blog
By Pete Zerger on 7/2/2009 5:05:33 PM • Rank (553) • Views 855
0

0

I had a customer in need of truly instant gratification related to a small software component. This trick will work in OpsMgr 2007 as well, but is not something I encourage.

Scenario:

Support engineer is required to uninstall and reinstall a small software component prone to failure on demand. In the past, this required the engineer to login as local administrator (users do not have local admin rights), uninstall, reinstall and logoff with the user waiting on the phone.

Given this has to be performed on demand, several times a week, using the normal software deployment functionality with the wuauclt /detectnow task really just did not meet support the need for instant gratification.

Workaround:

Create uninstall and installation tasks using the Windows Installer (msiexec), which provides well known command line parameters to silently install uninstall. This can can easily be accomplished using the msiexec -x (uninstall) and /qn (silent) flags.

As long as the package does not run beyond the task timeout limit specified when creating the task, it works well, and reports success or failure in the task window.

The Uninstall Task

Here's how you'd configure the task. Notice the software package is located on a network share with Everyone READ permissions. FYI- This was not the point from which the package was originally installed.

Uninstall

The Install Task

This looks much like the Uninstall Task, just minus the -x flag.

Install

Hope you find this tip useful! Please post feedback via comments on this post

Comments (2) - Comment RSS
Simon Skinner wrote: on Jul 02, 2009 02:15 PM
Pete, why is this something that you would not encourage in Ops Mgr? I have an example that is a bit long in explaination that is not to far of what you are doing here. I think this is an excellent post and just the tip of what could be done.
MadHatter wrote: on Jul 06, 2009 10:50 AM
Funny you should mention that. I have done this in Operations Manager 2007 (and MOM 2005) a few times when the situation warranted. OpsMgr tasks can be great for bridging gaps between monitoring and management. If you have a scenario where you have done this, it would be awesome if you would blog about it.


Who Viewed
Who Reviewed
Categories
Related Pages
Shortened URL
http://tinyurl.com/y4yvakc

Top Contributors
Featured Members
Pete Zerger
Points: 65442
Level: System Center Expert
Tommy Gunn
Points: 42712
Level: System Center Expert
Simon Skinner
Points: 40744
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27434
Level: System Center Expert