Jump to content


blaf

How to uninstall patch in SCCM 2012

Recommended Posts

Hello,

 

I am testing uninstallation of Microsoft Hotfix. It's pushed to a couple of machines successfully with SCCM 2012 as package.

 

Now before deploying this mandatory hotfix ( KB 2531912 ) I need to test uninstall.

 

I created task sequence with only this command:

 

C:Windows\System32\WUSA.exe /uninstall /kb:2531912 /quiet /promptrestart

 

On client I am getting error:

 

Command line execution failed (80070002)
Failed to run the last action: Run Command Line. Execution of task sequence failed.
The system cannot find the file specified. (Error: 80070002; Source: Windows)

Install Software failed to run command line, hr=0x80070002

 

Smts.log file at C:Windows\CCM\Logs\smts.log

 

Any thoughts....?

 

Thanks

 

Blaf

Share this post


Link to post
Share on other sites

your command isn't correct and is missing at least one backslash

 

C:Windows\System32\WUSA.exe /uninstall /kb:2531912 /quiet /promptrestart

 

try this instead

cmd.exe /c "C:\Windows\System32\WUSA.exe /uninstall /kb:2531912 /quiet"

Share this post


Link to post
Share on other sites

Thanks Niall,

 

I'll try this right away, hopefully it will work.

 

Your forum makes learning curve with SCCM much easier.Definitively I missed backslash after C: drive in command line.

 

Best regards,

 

Blaf

Share this post


Link to post
Share on other sites

i dont think the promptrestart will work however as it's running in system context, if you want a prompt for the user you'll need to use serviceui.exe from the MDT toolkit, i've blogged about how to run commands using that here

Share this post


Link to post
Share on other sites

Pause task sequence is excellent feature, I will use it for Task Sequence OS deployments which is failing.

 

Even though I included commands as suggested for hotfix deploment

 

cmd.exe /c "C:\Windows\System32\WUSA.exe /uninstall /kb:2531912 /quiet"

 

it didn't uninstall hotfix. Task sequence was running too long , I closed it and uninstallation was not performed properly.

 

Not sure how to proceed. Please find below smts log file snapshot.

 

 

 

Share this post


Link to post
Share on other sites

Pause task sequence is excellent feature, I will test it in the other task sequece - for OSD.

 

Task sequence for uninstalling hotifx has failed. TS was running too long without any confirmation.post-28857-0-66224300-1438068245_thumb.jpg

 

Please find in the attachment smts log snapshot

 

Any thoughts....

 

 

Share this post


Link to post
Share on other sites

>>> C:\Windows\System32\WUSA.exe

 

If i remember correctly, there is a WUSA.exe is the SYSWOW64 folder as well, you may need to call on this in order to uninstall the hotfix.

 

The easiest way to test is simply try your command manually on a machine, that will confirm if your syntax is correct or not. If the hotfix is removed when you run the command manually on a machine then at least you're half way there. You then only need to worry about calling the correct WUSA

Share this post


Link to post
Share on other sites

Have you ticked the 'Disable 64-bit file system redirection'? I don't know if it will help but all of the uninstall TS that we have here have that ticked (I personally haven't created any as they were all done by my predecessor)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.