How to move content folder...

Discussion in 'Update Services' started by Luca Fabbri, Nov 7, 2006.

  1. Luca Fabbri

    Luca Fabbri Guest

    Luca Fabbri, Nov 7, 2006
    1. Advertisements

  2. Luca Fabbri

    Dave Mills Guest

    1. Advertisements

  3. Luca Fabbri

    BobD Guest

    I'm glad I read this before posting my next question..."how do you move or
    make room in a WSUS Content location?". Wsusutil will apparently do both
    along with the "/deleteunneededrevisions" option. Are there any other means
    of deleting old content?

    When our IT crew installed WSUS, I don't think they had a clue as to how
    much space would be needed for updates. If we can't find another disk to
    move the content to, "trimming the fat" would be our only other alternative.

    BobD, Nov 10, 2006
  4. Luca Fabbri

    Dave Mills Guest

    See although the page seems somewhat

    I run a batch job monthly. All I then need to do is decline any content I don't
    need once in a while. Usually I decline only superceded updates.. I will decline
    all W2K content once all system are XP/Vista/W2003 and remove the product from
    WSUS sync. The batch file will then clean up for me.

    By then I expect I will be on WWSUS 3.0 (or System Centre Essentials) :)

    Rem Batch file written by From: "Michael D. Ober" <>
    Rem and published to WSUS newsgroup Jan 2006
    Rem Modified to set the LogDir withing the script - Dave Mills
    Rem Modified to use the date format for UK settings - Dave Mills

    pushd "c:\program files\update services\tools"

    Rem Set a Logfile folder
    Set LogDir=C:\LogDir

    for /F "tokens=1" %%a in ('date /t') do set day=%%a
    for /F "tokens=2" %%a in ('date /t') do set date=%%a
    for /F "tokens=1, 2, 3 delims=/" %%a in ("%date%") do set date=%%c%%b%%a
    set logfile=%LogDir%\WSUSCleanUp
    md "%logfile%"
    set logfile="%LogDir%\WSUSCleanUp\%USERNAME% on %COMPUTERNAME% - %date%.log"

    echo Stopping WSUS %date%:%time%>> %logfile%
    net stop "Update Services" >> %logfile%

    echo Deleting Unneeded Revisions %date%:%time%>> %logfile%
    wsusutil.exe deleteunneededrevisions >> %logfile%

    echo Starting WSUS %date%:%time%>> %logfile%
    net start "Update Services" >> %logfile%
    WsusDebugTool.exe /Tool:purgeUnneededFiles >> %logfile%

    echo Finished %date%:%time%>> %logfile%

    Dave Mills, Nov 11, 2006
  5. Luca Fabbri

    BobD Guest

    Thanks, Dave. Once again, you have been most helpful. --BobD

    BobD, Nov 13, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.