Solved

Failed Task Sequence Notifies User in System Tray

Posted on 2016-08-10
3
49 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
  • 2
3 Comments
 
LVL 16

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 16

Expert Comment

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

13 Experts available now in Live!

Get 1:1 Help Now