Jump to content

SilverBulletUK

Member
  • Posts

    59
  • Joined

  • Last visited

  • Donations

    $0.00 
  • Country

    United Kingdom

Everything posted by SilverBulletUK

  1. We use a custom application in our office, and one of the updates stops it communicating with its server in the workshop. If the update gets installed we have a lenghty process of installing the manufacturers 'hotfixes' so I was just thinking of a way round it. Might not be of use to anyone else, but just thought id offer it up. SilverB.
  2. Hi guys, Ive been figuring out a way to ban hotfixes from being installed via windows update via my XPUa CD. I think ive sussed it and would like to pass on my solution, I know it could be done via VBS but im a bit more comfortable with Batch files. I hope this helps, feel free to improve. 2 Files are needed, firstly..... BanHotFix.BAT @Echo Off Title=Banning updates... Set BannedUpdateList=HotfixList.ini :::::::::::::::::::::::::::| Parsing Banned Update List File :: Set UpdateNumber=0 FOR /F "skip=10" %%a in (%BannedUpdateList%) Do Call :Process %%a GOTO :EOF :PROCESS Set Update=%~1 Set /a UpdateNumber=%UpdateNumber%+1 Cls Echo Banning Item: %UpdateNumber% Update name: %Update% Echo. :::::::::::::::::::::::::::| Creating Folder Structure :: Set UpdateFolder=%WINDIR%\$NtUninstall%Update%$ IF NOT EXIST %UpdateFolder% MD %UpdateFolder% Attrib +R +H %UpdateFolder% :::::::::::::::::::::::::::| Creating Dummy Text File :: Echo "This update has been banned via your installation CD.">>%WINDIR%\%Update%.log :::::::::::::::::::::::::::| Creating Registry Key 1 :: Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%Update% /f :::::::::::::::::::::::::::| Creating Registry Key 1 Data :: Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%Update% /v DisplayName /t REG_SZ /d "This update has been banned via your installation CD." /f :::::::::::::::::::::::::::| Creating Registry Key 2 :: Reg Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\HotFix\%Update%" /f Reg Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\HotFix\%Update%\File 1" /f :::::::::::::::::::::::::::| Creating Registry Key 2 Data :: Reg Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\HotFix\%Update%" /v Comments /t REG_SZ /d "This update has been banned via your installation CD." /f Reg Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\HotFix\%Update%" /v Installed /t REG_DWORD /d 1 /f :EOF And... HotFixList.ini :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ::Please list any updates you wish to add to the banned list :: by placing the update UNDER the "[UpdateList]" header. :: :: PLEASE NOTE: All updates MUST be preceded by Q or KB! :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [UpdateList] KBsample Qsample Im hoping it should be pretty self explanatory. EDITED TO INCLUDE DUMMY TEXT FILE, COUNTER AND UPDATE CURRENTLY PROCESSING EDITED TO INCLUDE "/F" SWITCH TO REG ADD WHICH FORCES UPDATE IF KEY EXISTS ALREADY EDITED TO INCLUDE "FILE 1" REGISTRY STRING SilverB.
  3. Hi, thanks for the quick reply. I too woudl prefer not to use ICS, there just seems something 'wrong' about it.... The wireless switch sounds like a good idea, can you recommend one? Just for clarity, The router and the MCE PC are located in a 'newly' furnished living room, so I cannot hard-wire the router to the other PC's im afraid. I'd alsos prefer to have the router as a router just so If I add a laptop to the home later, I can connect wirelessly. Any more ideas??
  4. OK, got a problem....and I was hoping a few of you guys could help. please. Could you please see attached picture, this is how I would l like my network setup. The red connections are wired and the black line is the vga cable to my TV from my MCE system. The router can act as a DHCP server, and if needed so can "pc3" as i have Server 2003 as a resource. I would like all the pcs on the same ip range (10.1.0.1, 10.1.0.2 etc...), and, all allocated from a DHCP server. My preferance would be for the Router to be the DHCP server just for easy-of-use.... PC3 has 2 network connections, one wired CAT5 and other 54g Wireless. Could someone please suggest a walkthrough/ guidance on how to set this up? :shiftyninja: Cheers all.
  5. Try using this: SHSUCDX Cool tool! More info: http://www.google.co.uk/search?hl=en&q=SHSUCDX Silver B
  6. Hello, As always, your answer is lying awit here. http://unattended.msfn.org/unattended.xp/view/web/77/ SilverB
  7. Try this, it sets the variables in the batch file for use later on within it... @Echo off ::Setting Path Variables Set BACKUPDIR=C: Set TARGET=%USERPROFILE%\MYDOCU~1 Set ZIPEXE=C: ::Grabbing date variables... @For /F "tokens=1 delims=/ " %%A in ('Date /t') do set DD=%%A @For /F "tokens=2 delims=/ " %%B in ('Date /t') do set MM=%%B @For /F "tokens=3 delims=/ " %%C in ('Date /t') do set YY=%%C Set CUSTOMDATE=%DD%-%MM%-%YY% :: Running7Z... start /wait %ZIPEXE%\7za.exe a -tzip %BACKUPDIR%\MyDoc%CUSTOMDATE%.zip "%TARGET%\*" Exit Hope this helps you. SilverB.
  8. Hello! You could try something like this... Simple, but easily changed. @Echo Off Set File=C:\Testfile.doc Cls Echo. Echo Testing if file exists... Echo. If exist %file% goto :YESFILE Echo Sorry, the file "%file%", does not exist... Echo. Pause Exit :YESFILE Echo Success, file "%file%" exists! Echo. Pause Exit Any use mateee? Save as filetest.BAT
  9. Sorry that didn't work either, those drivers are for nForce 1,2... But check out this benchmark, i've just overlocked the processor to see if this figure changes but it stays static at these levels for 2.0ghz and 2.4ghz
  10. Yeah I see that gunsmokingman, and very nice it is too, it just seems overkill for what he is actually asking for.... Maybe he needs all the extra info your script can provide him....who knows.
  11. What about.... @Echo Off IF EXIST %WINDIR%\Driver~1\i386\SP2.CAB GOTO SP2YES GOTO SP2NO :SP2YES SET SP2STATUS=Yes GOTO OUTPUT :SP2NO SET SP2STATUS=No GOTO OUTPUT :OUTPUT Cls Echo. Echo Does this machine have Service Pack 2 you ask? Echo. Echo %SP2STATUS% Echo. Pause Exit Nice and simple i know, but, does the trick....!
  12. Ok, i've narrowed it down (after yet another format or 3!).... It seems the problem occurs the moment I install GART from the package, i can install every option in the 5.10 driver pack except GART.... A workaround anyone....what is GART?? :s Thanks..
  13. *bump* Anyone help? Getting quite desperate now.... Pleeeease?
  14. Hi, Service Pack 2 is already on my Xp installation CD. Im afraid I can't avoid installing it.... This is very strange, I thought it may have some thing to do with DEP so have disabled that altogether but to no avail..... lol, k, NEXT!
  15. Hmmmmm..... Everything is brand new, CPU is running at stock 2.0ghz, and so is RAM. Motherboard has latest BIOS and temps are showing OK. I just cant figure it out, if I had a hardware failure, would it not affect the system even if I did a manual install of the drivers?? I though in doing a manual install I would be able to fault find the problem, but as I said in earlier post, I have no other devices to install in Device manager.... anyone else?!
  16. Hello, thanks for prompt reply! I use these: http://www.nvidia.com/object/nforce_udp_winxp_5.10.html A brief breakdown of system spec may be appropriate too.... 3300+ AMD Sempron 754 Abit NF8 1024 Kingston RAM 400 80 GB Master 160 GB Slave NEC DVD RW Geforce 4 Ti4200 128mb So, you say install an older version of NForce3 drivers then update with newer??
  17. Hi all, I've got a really strange problem with my XP box......i was wondering if you can help. After a clean install of XP SP2, I install the newly downloaded Nforce 3 package from Nvidia and restart as requested. Then the problem..... It restarts but gets to where the Windows XP logo should show (you know the one, with the moving blue bar etc...) and does nothing......stays there....forever.... I can however, restart in safe mode ok. Ive reformatted and installed each device marked in yellow from device manager manually by unpacking the .exe file with no problems.... I say no problems, other than it running like a bag of spanners! I did notice however that during he 'manual' install it does not require many of the included drivers, audio util, memctrlr etc.... Any ideas? Thanks alot, SilverB (a now very experienced HD formatter!!!)
  18. Sorry if this post: Other Post Should have been placed in here but im kinda stuck now....any chance anyone of you programmers here could take a swift peek?? Im trying to get the following a batch file to make the following directory structure... C:\LOGS\**USERNAME**\**DATE (130105 formt will be good)**\**TIME (24h)** Is this at all possible?? 'Prepares to be shouted at' thanks all, SB
  19. Ahhhh, Explains why when I try i get %username%\Logs\25\01\05\ Intresting theory you get there.....but how to get rid of the "\" in the output..... Guess im off to google for a few more hours...!
  20. ::BUMP:: Anyone know how to make the Date & Time folders as stated above please???
  21. Ah ha! Cheers Fella!! %USERNAME% Worked........Now ive just got to figure out how to make the following Directory Structure... %username%\%DATE%\%TIME%\ And yes....ive tried the above Vars Ideas...?
  22. Yeah, i was thinking somehting along thos lines but wasn't entirely sure as to how to use it...Ie syntax etc....
  23. Hey guys, Need your guidance yet again ...!! Im trying to make a batch file to make a folder named after the user who is logged onto the computer at the time..... Little explanation...... @echo off SYSINFO.BAT >> C:\Logs\***username here***\Output.txt Exit how could i set the variable needed to replace "***username here***" is this even possible, forgive me this is really simple but its late!!! Does this make any sense?
  24. I know that NAV wraps HTML for the GUI, hence the odd wierd script error on older versions...remember those!?! B) Maybe its something to do with IE..? Only a guess though......any wierd security settings on the machine? Got me thinkin now!


×
×
  • Create New...