Almeida80 Posted April 20, 2011 Share Posted April 20, 2011 Hi GuysNot sure if this is the right forum for this, i want to install a number of hotfixes on about 100 pc's running windows xp sp3.is there a script i can use to just run and install them? without leaving any of the temp folders the hotfixes leave behind?I read about WSUS, and i'm not able to use it at the moment.Any help would be great.thanks Link to comment Share on other sites More sharing options...
submix8c Posted April 20, 2011 Share Posted April 20, 2011 (edited) Windows Updates Downloader (WUD) and/or using several lists (usually links available) gets all/most updates. Also, Microsoft Baseline Security Analyzer (MBSA) from MS may/may not help.There's no (AFAIK) script available for actually applying the updates to a running system automatically. This you may have to write yourself and it would all depend on what is/isn't already on a given PC. Only other alternative is perhaps nLite+the updates+rollout-reinstall. Even slower (would have to go to each PC to run) would be AutoPatcher (not an MSFN member project, but sometimes recommended).What do you mean by "temp folders left behind"? Referring to the "Windows\SoftwareDistribution" folder?edit (before even posting) - OOPS! You can't use nLite for a Commercial Rollout, but it may be good for using to help understand what would be needed. nLite is NOT allowed to be used for other than Personal Use (in the EULA). Tools/lists for obtaining the updates are fine for your purpose since the updates come directly from MS (in line with MS' EULA).edit - (SEE NEXT POST) - There ya go! The method of delivery will be up to you and probably will (not tried myself since I do unattended) either re-install or be ignored (if already installed). Also note Hotfixes are different than App Installs (e.g. IE7/8/9, WMP10/11, DotNET, etc.) so set your BAT/CMD up accordingly (switches, order of install, etc.). Edited April 20, 2011 by submix8c Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2011 Share Posted April 20, 2011 Put all the updates in a folder then run this batch file on them...for %%a in (*.exe) do (start /wait %%a /quiet /norestart /nobackup )pauseChange the switches as you see fit. Link to comment Share on other sites More sharing options...
Almeida80 Posted April 21, 2011 Author Share Posted April 21, 2011 I tried it but nothing happens Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2011 Share Posted April 21, 2011 You will only see activity in the command window if you used the /quiet switch. Link to comment Share on other sites More sharing options...
Almeida80 Posted April 21, 2011 Author Share Posted April 21, 2011 i took the /quiet switch out and it just flashes on the screen and then goes. i checked add/remove programs to see if it got installed but cant find it there.does the script also stop it leaving these behind C:\WINDOWS\$NtUninstallKB923561$C:\c73df26733bea25b2dbd821228e5388e Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2011 Share Posted April 21, 2011 Check the WINDOWS directory for the update's log file, usually named by KB number such as "KB987654.log"./nobackup prevents $NtUninstallKB* directories.The second directory (named for the update's SHA-1 hash) is for temporary extraction and should never be left behind after an update finishes installing. Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2011 Share Posted April 21, 2011 Sounds like the script is exiting.If you took it out, put a pause on the last line. Link to comment Share on other sites More sharing options...
Almeida80 Posted April 21, 2011 Author Share Posted April 21, 2011 Check the WINDOWS directory for the update's log file, usually named by KB number such as "KB987654.log"./nobackup prevents $NtUninstallKB* directories.The second directory (named for the update's SHA-1 hash) is for temporary extraction and should never be left behind after an update finishes installing.how do i make it remove the temporary extraction folder Link to comment Share on other sites More sharing options...
Almeida80 Posted April 21, 2011 Author Share Posted April 21, 2011 Check the WINDOWS directory for the update's log file, usually named by KB number such as "KB987654.log"./nobackup prevents $NtUninstallKB* directories.The second directory (named for the update's SHA-1 hash) is for temporary extraction and should never be left behind after an update finishes installing.Hi thanks for help,no logs are appearing Link to comment Share on other sites More sharing options...
submix8c Posted April 21, 2011 Share Posted April 21, 2011 KB923561 mentions a permissions/work-around problem.I note that you're showing the C-drive in that post. What method of delivery of the CMD and hotfixes? Copy-and-run (click on CMD) all fixes for each PC? Copy CMD only and run from a mapped drive? User Logon Script?Help us to help you. Please give more info on methodology. Just a script without a delivery method (100 PC'S!!!) doesn't help us understand "what's going wrong"; All above info provided by "Helpers" thus far is correct.BTW, this indicates that the mentioned "fix" has been superseded. Maybe you can't apply a hotfix after a newer one has been installed. However (noting the contents mentioned from the link given), may/may not be correct (the fix you mention has additional components). You are installing in the correct order aren't you?Have you tried the MBSA yet to assist in getting the complete updates list? (Please note again that I haven't done mass-rollouts of Hotfixes.) Link to comment Share on other sites More sharing options...
oioldman Posted July 2, 2011 Share Posted July 2, 2011 i use something akin to this:@ECHO offTITLE Applying Windows Post Service Pack 2 UpdatesIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:GOTO START@author Neil Wooloff@version date:STARTSET /A NUMOFUPDATES=0ECHO.ECHO.ECHO ----------------------------------------------------------------------ECHO Security Updates Released By Microsoft for Windows XP SP2ECHO ----------------------------------------------------------------------ECHO.ECHO.ECHO MS Windows XP Service Pack 2FOR /F "SKIP=4 TOKENS=3*" %%V IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion') DO SET CSDVERSION=%%V %%WIF "%CSDVERSION%"=="Service Pack 2" (ECHO is already installed) ELSE (ECHO Installing...%CDROM%\KB835935SP2.exe /quiet /n /fECHO Installation complete.)ECHO.ECHO.ECHO Windows Update v6ECHO Installing...%CDROM%\WUv6.exe /wuforce /quiet /norestartECHO Installation complete.ECHO.ECHO.ECHO .NET Framework v1.1 with ServicePack 1REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\.NETFramework\1.1\S867460" > nul 2>&1IF %ERRORLEVEL% EQU 0 (ECHO is already installed) ELSE (ECHO Installing...%CDROM%\dotnet11sp1.exeSET /A NUMOFUPDATES+=1ECHO Installation complete.find a topic called install updates from discbasically copy all updates to a dvd and update the script and run itwhen done it will only install the missing ones and tell you how manybut yes, learn wsus be much easier in long term for you Link to comment Share on other sites More sharing options...
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