It is currently Sun Nov 18, 2018 4:33 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Oct 29, 2018 10:17 pm 
Offline
User avatar

Joined: Tue Feb 14, 2012 7:10 pm
Posts: 754
Location: NI
If you want to control your windows updates see the attached file

code posted here as well, just save it to a file called update_control.bat

Code:
@echo off

:START
@cls
@echo This utility will allow you to Enable or Disable windows updates
@echo You MUST run it as administrator for it to work
@echo.
@echo Type 1 to Disable Windows Updates
@echo Type 2 to Enable Windows Updates
@echo Type 3 to Disable Windows Installer
@echo Type 4 to Enable Windows Installer
@echo Type 5 to Exit
 
SET /p CHOICE=Type choice and hit enter
IF '%CHOICE%'=='1' GOTO DISABLEUPDATES
IF '%CHOICE%'=='2' GOTO ENABLEUPDATES
IF '%CHOICE%'=='3' GOTO DISABLEINSTALLER
IF '%CHOICE%'=='4' GOTO ENABLEINSTALLER
IF '%CHOICE%'=='4' GOTO END
exit


:DISABLEUPDATES
sc config BITS  start= disabled
sc failure BITS reset= 86400 actions= //////
net stop BITS

sc config wuauserv  start= disabled
sc failure wuauserv reset= 86400 actions= //////
net stop wuauserv

@echo AUtoMatic windows Updates are now DISABLED on the Computer
PING 1.1.1.1 -n 1 -w 5000 >NUL
GOTO START


:ENABLEUPDATES
sc config BITS  start= demand
sc failure BITS reset= 86400 actions= restart/15000/restart/30000//1000

sc config wuauserv start= delayed-auto
sc failure wuauserv reset= 86400 actions= restart/15000/restart/30000//1000
net start wuauserv

@echo AutoMatic windows Updates are now ENABLED on the Computer
PING 1.1.1.1 -n 1 -w 5000 >NUL
GOTO START


:DISABLEINSTALLER
sc config msiserver  start= disabled
sc failure msiserver reset= 86400 actions= //////
net stop msiserver
pause
GOTO START


:ENABLEINSTALLER
sc config msiserver start= demand
pause
sc failure msiserver reset= 86400 actions= restart/15000/restart/30000//1000
GOTO START

:END
exit





Attachments:
File comment: windows 10 update disable / re-enabler
update_control.bat [1.58 KiB]
Downloaded 1 time

_________________
ImageImageImageImageImageImage
Image Image
.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group