Uninstall Windows Patch via GPO

Dear Sir,

I would like to uninstall two windows patches for all PC. All PCs joined domain and normal users do not have privilege to install/uninstall software. The following batch file works when the user account logon locally and with local administrators right.

uninstall.bat
@echo off
wusa /uninstall /kb:4012204 /quiet /norestart
wusa /uninstall /kb:4012215 /quiet /norestart

I had created a computer group policy at the domain controller 00.cmd (i.e. computer configuration\policies\windows settings\scripts\startup\00.cmd) and call the uninstall.bat . But it's not working.

Any hints and advises for me?

Thank you.

Wataw
WatawAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AntzsInfrastructure ServicesCommented:
Any error when it is not working?  Is the GPO applied to the Computer successfully?
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
Add these commands to separate ZAP files and deploy via GPO Software Deployment
0
WatawAuthor Commented:
Dear Antzs,

No error at all. Restart and no pop up windows showing.

Dear Shaun,

How to create a ZAP for uninstall the windows package? And I should put it into Computer Configuration or User Configuration? If computer configuration is used, what windows account/credentials it will use?

Thank you.

With regards,
Wataw
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
Example below. Put it as computer configuration and it will run as system
[Application]
FriendlyName = "Microsoft Excel 97"
SetupCommand = "long folder\setup.exe" /unattend
SetupCommand = "setup.exe"
DisplayVersion = 8.0
Publisher = Microsoft

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
don't forget that these patches are also included in the March 2017 Security Monthly Quality Rollup http://bit.ly/2nWNpyY
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.