Saturday, March 14, 2009

MCSA

Finally got my MCSA Certification - 18 or so months from when I started - which I am quite pleased with.

Friday, March 6, 2009

slipstreaming win2k3 installation-saving time on the hotfixes

Just decided to sort out slipstreaming SP2 and all hotfixes to my Win 2k3 installation files/discs, as haven't got around to doing it as yet.


Using nLite is a nice way to do it - google nLite and grab the latest version. This takes care of all the manual editing files and replacing files etc. you have to do otherwise. (Have't got it to integrate .Net framework 3.5 though - yet!)

Anyhow, to identify all relevant hotfixes required I installed the Win2k3 which I have already slipstreamed the SP2 to, and ran MBSA to check for security updates.
This provides a nice little report with download links to all the hotfixes not yet installed. You click through the download list and save the hotfixes/updates to a folder.

Thing is, they have like 'long' names, so here is a little script to quickly rename all hotfixes in a folder (change strPath to the relevant folder path) and it also creates a nice little QChain batch file to silently install the hotfixes with no restarts. (Need to restart manually when all done)


strPath = "D:\Documents and Settings\Administrator.SERVER\My Documents\MBSA\Updates\Rename"
set fso = CreateObject("Scripting.FileSystemObject")
set oFolder = fso.GetFolder(strPath)
set oQ = fso.OpenTextFile (strPath & "\qChain.cmd",2,True)
for each oFile in oFolder.Files
strf1 = oFile.Name
i = instr(oFile.Name,"kb")
If i >= 1 then
strF2 = mid(strF1,i,8)
strF2 = strF2 & ".exe"
fso.moveFile strF1, strF2
strF3 = strF2 & " /q /z "
oQ.WriteLine(strF3)
End If
next
oQ.Close