Solved

Failed Task Sequence Notifies User in System Tray

Posted on 2016-08-10
3
70 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 17

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 17

Expert Comment

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

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excluding files during OSD refresh 8 101
SCCM 2012 Upgrade to SP1 4 80
SQL Cluster design 18 143
Cluster- Aware Update and SCCM 2012R2 SP1 2 48
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.
An article on effective troubleshooting
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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