Scripting - Resettare il Servizio BITS e WUAUSERV

Nel caso in cui:


  • Automatic Update Services si stoppa automaticamente.
  • Il Background Intelligent Transfer Service service termina con errore 2147500053 (0x80004015).
  • Errore 0x8DDD0018 / Errore 0x800a0046
Nel caso in cui siamo nella necessità di resettare l'ACL di tali servizi è sufficiente eseguire il seguente .cmd:


==========START CODE=========
@echo off
Echo This batch file will Set Service Object Security for WUAUSERV & BITS.
REM Result will be written to %temp%\SetServiceObjectSecurity.log and then launched in Notepad.
Echo Please wait...
@echo on
sc sdset bits "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" >%temp%\SetServiceObjectSecurity.log
sc sdset wuauserv "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" >>%temp%\SetServiceObjectSecurity.log
@echo off
notepad %temp%\SetServiceObjectSecurity.log
Echo Open %temp%\SetServiceObjectSecurity.log for SUCCESS entry.
Echo Open the Services applet from control panel to see if the services are started.
@echo off
Pause