probedrone Posted August 29, 2006 Posted August 29, 2006 I'm sure you smart people have done it before So can anyone give me the safest way to run windows updates? I prefere not to go through IE
Xenobiologist Posted August 29, 2006 Posted August 29, 2006 HI, Start --> Help & support --> update ? Or what do you mean? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
probedrone Posted August 29, 2006 Author Posted August 29, 2006 Well same problem as before I cant really automate the button clicks, say for choosing "express" install
pootie tang Posted August 29, 2006 Posted August 29, 2006 (edited) Well same problem as before I cant really automate the button clicks, say for choosing "express" installThere are a couple of posted on this topic. Best one I've seen and used is to use the Windows Update Agent API to write a VBScript to automate the process Edited August 29, 2006 by pootie tang
Danny35d Posted August 30, 2006 Posted August 30, 2006 just to get you start it.... This is a script to deploy patches or windows updates....and this other one is so you can download all needed windows updates or even office updates AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
rmarino Posted August 30, 2006 Posted August 30, 2006 If this is in a corporate setting then Microsoft WSUS is the way to go. You have a lot more control by running this server add on.
diveboy Posted August 30, 2006 Posted August 30, 2006 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU] "NoAutoUpdate"=dword:00000000 "AUOptions"=dword:00000003 "UseWUServer"=dword:00000001 "DetectionFrequencyEnabled"=dword:00000001 "DetectionFrequency"=dword:00000001 "RebootWarningTimeout"=dword:00000001 "RebootWarningTimeoutEnabled"=00000001these are the reg keys of interest, read the following link for their use.MS WSUS REG KEYS
probedrone Posted September 1, 2006 Author Posted September 1, 2006 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU] "NoAutoUpdate"=dword:00000000 "AUOptions"=dword:00000003 "UseWUServer"=dword:00000001 "DetectionFrequencyEnabled"=dword:00000001 "DetectionFrequency"=dword:00000001 "RebootWarningTimeout"=dword:00000001 "RebootWarningTimeoutEnabled"=00000001 these are the reg keys of interest, read the following link for their use. MS WSUS REG KEYS Hmmm I dont have that in my registry... HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
gcriaco Posted September 14, 2006 Posted September 14, 2006 Here is a very simple code to deploy Windows XP patches contained in a folder with just one click. You can provide the path of the folder containing the patches from command-line or choose it from the GUI. Hope it's useful for some of you. expandcollapse popupLocal $i,$sPatch, $sFolder If $CMDLINE[0] = 0 Then $sFolder = FileSelectFolder("Select the Windows Patches folder", "") If @error = 1 Then Exit Else $sFolder = $CMDLINE[1] EndIf ; Shows the filenames of all files in the current directory. $search = FileFindFirstFile($sFolder & "\WindowsXP-*.exe") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop RunWait($sFolder & "\" & $file & " /passive /norestart") $i = $i + 1 If $i <= 10 Then $sPatch = $sPatch & $file & @CRLF if $i = 11 Then $sPatch = $sPatch & "...and more..." WEnd ; Close the search handle FileClose($search) #Region --- CodeWizard generated code Start --- ;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes and No, Icon=Info If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(68,"WinPatch","Done! The following " & $i & " patches have been installed:" & @CRLF & @CRLF & $sPatch _ & @CRLF & @CRLF & "Do you want to reboot Windows now?") Select Case $iMsgBoxAnswer = 6 ;Yes Shutdown(2) Case $iMsgBoxAnswer = 7 ;No ;Continue EndSelect #EndRegion --- CodeWizard generated code End ---
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now