Jump to content

SilverBulletUK

Member
  • Posts

    59
  • Joined

  • Last visited

  • Donations

    $0.00 
  • Country

    United Kingdom

Posts posted by SilverBulletUK

  1. 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. :blushing:

    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.

  2. 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??

  3. OK, got a problem....and I was hoping a few of you guys could help. please. :blush:

    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.

    post-39397-1153694000_thumb.jpg

  4. 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. :thumbup

    SilverB.

  5. 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 :}:}

    post-39397-1130360370_thumb.jpg

  6. 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....! :P

  7. 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..

  8. 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! :D

  9. 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?!

    :blushing:

  10. 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.... :blink:

    I can however, restart in safe mode ok. :thumbup

    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!!!)

  11. Sorry if this post: :blushing:

    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??

    :unsure: 'Prepares to be shouted at'

    thanks all,

    SB

  12. Hey guys,

    Need your guidance yet again :wacko: ...!!

    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?



×
×
  • Create New...