Windows Updates using K2000
We currently use Microsoft Update Services Version: 3.1.6001.65 to select Windows updates and distribute them. Is anyone using K2000 to do this? If so, what steps do you follow?
Thanks ~ David
Thanks ~ David
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
airwolf
13 years ago
Posted by:
rmeyer
13 years ago
I created a script to install some of the updates that is not slipstreamed into the WinXP installation yet:
What is does is:
It if the folder don't exist "C:\Temp\Logs" it will create it or the log files will fail
All files in the folder "W:\Updates\PostUpdates\" will be installed with thies parameters " /passive /norestart /nobackup /log:c:\Temp\Logs\" & folderIdx.Name & ".log"
It will only install exe files that you can download from Microsoft's homepage, not the msp/msi files, you need to create another folder and other command line to install thoes
It is not the perfect way to do it, that would be to slipstream it into the image, but untill I do that this helps windows from missing windows updates after a new installation =)
InstallPost.vbs (remember to run it with "cscript.exe InstallPost.vbs" to avoid the popups stopping the process)
---------------------------------------------
wscript.sleep(20000)
On Error Resume Next
Dim objFSO, objFolder, strDirectory
strDirectory = "c:\Temp\Logs"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(strDirectory)
Dim fso, folder, files, NewsFile,sFolder
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
' sFolder = Wscript.Arguments.Item(0)
sFolder = "W:\Updates\PostUpdates\"
If sFolder = "" Then
' Wscript.Echo "No Folder parameter was passed"
Wscript.Quit
End If
Set folder = fso.GetFolder(sFolder)
Set files = folder.Files
For each folderIdx In files
' wscript.echo folderIdx.Name & " installing..."
Return = WshShell.Run(sFolder & folderIdx.Name & " /passive /norestart /nobackup /log:c:\Temp\Logs\" & folderIdx.Name & ".log", 1, true)
Next
NewFile.Close
------------------------------------------------------------
What is does is:
It if the folder don't exist "C:\Temp\Logs" it will create it or the log files will fail
All files in the folder "W:\Updates\PostUpdates\" will be installed with thies parameters " /passive /norestart /nobackup /log:c:\Temp\Logs\" & folderIdx.Name & ".log"
It will only install exe files that you can download from Microsoft's homepage, not the msp/msi files, you need to create another folder and other command line to install thoes
It is not the perfect way to do it, that would be to slipstream it into the image, but untill I do that this helps windows from missing windows updates after a new installation =)
InstallPost.vbs (remember to run it with "cscript.exe InstallPost.vbs" to avoid the popups stopping the process)
---------------------------------------------
wscript.sleep(20000)
On Error Resume Next
Dim objFSO, objFolder, strDirectory
strDirectory = "c:\Temp\Logs"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(strDirectory)
Dim fso, folder, files, NewsFile,sFolder
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
' sFolder = Wscript.Arguments.Item(0)
sFolder = "W:\Updates\PostUpdates\"
If sFolder = "" Then
' Wscript.Echo "No Folder parameter was passed"
Wscript.Quit
End If
Set folder = fso.GetFolder(sFolder)
Set files = folder.Files
For each folderIdx In files
' wscript.echo folderIdx.Name & " installing..."
Return = WshShell.Run(sFolder & folderIdx.Name & " /passive /norestart /nobackup /log:c:\Temp\Logs\" & folderIdx.Name & ".log", 1, true)
Next
NewFile.Close
------------------------------------------------------------
Posted by:
cblake
13 years ago
If you're not thinking of switching from WSUS, then you can use the K2 to do a postinstall task to force a machine to update during the scripted install or system image. That post install BAT task might look like this:
net stop wuauserv
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.