GPO installation failed

The installation and/or removal of GPO pushed software can sometimes fail with error %%1274. This behavior can occur if the network has not started up or is starting up too slow for the machine boot process. Apply/enable following GPO to the failing computer:

Computer Configuration -> Policies -> Administrative Templates -> System -> Logon -> Always wait for the network at computer startup and logon
Computer Configuration -> Policies -> Administrative Templates -> System -> Group Policy -> Startup policy processing wait time

This should solve the problem. You need to try out which processing wait time works. some people reported that 30 seconds is enough, others 120 seconds.

If not, have a look at https://serverfault.com/questions/44257/group-policy-installation-failed-error-1274

Get MessageTrackingLog in Powershell

In this example we will get all failed messages in specific period:

Get-MessageTrackingLog -Start "7/15/2019 08:00 AM" -End "7/15/2019 03:00 PM" -ResultSize "Unlimited" -EventId FAIL | Select EventId,Source,TimeStamp,Sender,{$_.Recipients},MessageSubject | Export-Csv mail_fail.csv

Command inspired by https://anandthearchitect.com/2012/07/06/exchange-2010-how-to-export-message-tracking-results-to-excel-sheet/

Remove GPO installed software from machine

Here a simple step to remove GPO instaled software from your machine and make it reapply the GPO:

  • Remove software from Control Panel -> Software
  • Find and the clear the software UID from
    HKLM\Software\Microsoft\Windows\Current Version\Group Policy\AppMgmt
  • OR delete HKLM\Software\Microsoft\Windows\Current Version\Group Policy completely
  • open terminal/cmd as administrator and execute
    gpupdate /force
  • and last, reboot the desktop

After a reboot the GPO should have been (re)applied and the software been installed.