Solved

Failed Task Sequence Notifies User in System Tray

Posted on 2016-08-10
3
83 Views
Last Modified: 2016-08-12
I have created a task sequence in SCCM 2012 to uninstall KB3161608 Windows Update.  The command line used is C:\Windows\System32\wusa.exe /uninstall /kb:3161608 /quiet /norestart /log

If KB3161608 is installed on the machine that I deploy this to, there are no issues.  If the machine doesn't have the KB installed, the user is notified in the system tray "Installation failed", "The software installation was not successful. Click to view the details."

Is there a way to check to see if the Windows KB update is installed before executing the command?  If not, is there a way to not notify the user that the installation failed?
0
Comment
Question by:Firstcom
[X]
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
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Mike T earned 500 total points
ID: 41751876
Hi,

Yes there is, especially if you are using a TS. Set the options to filter condition that only triggers if the patch is installed in the first place.

You can test before-hand with WMIC:

WMIC QFE get caption,hotfixID,installedon

Open in new window


which, after a long, long pause, will show *all* hotfixes with those columns.
Then to home in on the hotfix use:
WMIC QFE where hotfixid="KB3161608"

For the TS filter, the syntax is slightly different so will look like this:

select * from win32_QuickfixEngineering where HotfixID Like 'KB3161608'

Open in new window


So, click on the TS, click options, click Add then chose WMI and type that in.

Mike
0
 
LVL 1

Author Closing Comment

by:Firstcom
ID: 41753799
Thank you for your assistance.  This resolved my issue.
0
 
LVL 18

Expert Comment

by:Mike T
ID: 41754055
You're welcome
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Binary Differential Replication, What it is, how it works and how it differs from standard delta file replication
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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