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