0

A Windows 10 PC is connected to a WSUS intranet server, like a lot of other PCs here which are functioning fine, but others do not receive WSUS updates. I've written .bat file to force remote pc to download and install the update, and .. restart but doesn't work fine !! can people with good health help me..

CODE 
@Echo off
 cd\
 Echo Procedura di reset aggiornamenti WSUS
 REM ****************************
 REM * Variabili di procedura *
 REM ****************************

 set varcomputer= ////
 set timerestart=360
 goto force_up
REM :NOMEMACCHINA

 Exit

 REM ****************************
 REM * PROCEDURE*
 REM ****************************

 :force_up
echo WSUS Force Update %varcomputer%
   wuauclt /resetauthorization /detectnow /force \\%varcomputer%
   wuauclt  /updatenow /force \\%varcomputer%
echo Shutting down %varcomputer%.
  shutdown -r -m  \\%varcomputer% -t %timerestart% -c "Il PC si riavvierà automaticamente per effettuare degli aggiornamenti di sicurezza entro %timerestart% secondi. Si prega di salvare e chiudere i documenti aperti."
 goto %varcomputer

echo ****** Procedura inviata *****
:FINE
pause
pause
pause
echo ****** Procedura inviata *****
pause
pause
7
  • "do not receive" means the search takes forever? Can you please add a screenshot of the Windows Update status in control panel? Do the Windows event logs of those machines show any error?
    – Furty
    Apr 24, 2020 at 16:08
  • Use this powershell command to generate WindowsUpdate.log, then, check the errors in it: Get-WindowsUpdateLog
    – Swisstone
    Apr 24, 2020 at 16:29
  • HOW TO USE IN REMOTE CMD ? Apr 24, 2020 at 16:32
  • Just use remote desktop to connect and create the control panel screenshot (and check logs). Then add the screenshot to your question.
    – Furty
    Apr 24, 2020 at 17:14
  • 1
    If you're on a network with WSUS your question is about business IT and needs to be addressed to the business IT staff, not us. Apr 25, 2020 at 15:54

0

You must log in to answer this question.

Browse other questions tagged .