Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for winupd.kix

(view source code of winupd.kix as plain text)

  1. ; WindowsUpdate.kix,  Version 1.00
  2. ; Reenable Windows' Update function
  3. ;
  4. ; Usage:  KIX32 WindowsUpdate.kix  [ $Answer=Y ]
  5. ;
  6. ; Written by Rob van der Woude
  7. ; http://www.robvanderwoude.com
  8.  
  9.  
  10. If $Answer = ""
  11. 	? "Press Y if you want to reenable Windows' Update function "
  12. 	Get $Answer
  13. EndIf
  14. If $Answer = "Y"
  15. 	$Tree = "\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  16. 	$Key  = "NoWindowsUpdate"
  17.  
  18. 	? "Writing registry values . . ."
  19.  
  20. 	DelValue( "HKEY_CURRENT_USER"  + $Tree, $Key )
  21. 	DelValue( "HKEY_LOCAL_MACHINE" + $Tree, $Key )
  22. EndIf
  23.  

page last uploaded: 2017-08-21, 14:26