Jump to content

People Favorite Clean Up Cmds


Recommended Posts


CD Eject batch executed before this (Because of WFP, and I'm not patching mine!):

cmdow @ /HID

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

net user aspnet /delete

REN %windir%\System32\dllcache\notepad.exe notepad.old
COPY "%systemdrive%\install\notepad.exe" "%windir%\System32\dllcache\"
REN %windir%\System32\notepad.exe notepad.old
COPY "%systemdrive%\install\notepad.exe" "%windir%\System32\"
REN %windir%\notepad.exe notepad.old
COPY "%systemdrive%\install\notepad.exe" "%windir%"

REN %windir%\System32\dllcache\mstsc.exe mstsc.old
COPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\dllcache\"
REN %windir%\System32\mstsc.exe mstsc.old
COPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\"

REN %windir%\System32\dllcache\mstscax.dll mstscax.old
COPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\dllcache\"
REN %windir%\System32\mstscax.dll mstscax.old
COPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\"

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%UserProfile%\Desktop\Flashget.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"
RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\install\

Link to comment
Share on other sites

Im figuring out that at the moment, he he...

First, you have to have your metapad.exe in your ..\install directory,

then rename metapad to notepad for these things to happen.

This is what I think happens during the unattended install:

1. Renaming the original notepad.exe in the windir\sys32\dllcache to notepad.old :

(ie. making a backup):

REN %windir%\System32\dllcache\notepad.exe notepad.old

Copying the your renamed metapad to windir\sys32\dllcache:

COPY "%systemdrive%\install\notepad.exe" "%windir%\System32\dllcache

2. Renaming, backing up the original notepad , copying your metapad but now in the windir\sys32\

REN %windir%\System32\notepad.exe notepad.old

COPY "%systemdrive%\install\notepad.exe" "%windir%\System32\"

3. Same again but in the windows directory.

REN %windir%\notepad.exe notepad.old

COPY "%systemdrive%\install\notepad.exe" "%windir%"

So, there's 3 copys of them

Did i miss something?

Link to comment
Share on other sites

uhm, sorta...renaming the one in dllcache makes it so that when windows does its little wfp thing, it doesnt copy windows notepad over metapad...he renames it to old just to keep it in case, I assume...so thats why notepad.exe is renamed to notepad.old in every case...but the reason its done in dllcache first is because of wfp.

Link to comment
Share on other sites

Ok, thanks for clearing it out,

Im doing everything to cutoff the wfp thing so im not expecting much

trouble for that but you never now,

it'll only take a one critical update and bam, all the crap is ON again...

:lol:

Link to comment
Share on other sites

hmmm, unless the update overwrites sfc_os.dll wfp should never be turned back on...you just gotta watch out for when it gets overwritten...but, the other flipside of the coin is that if you disable wfp and delete dllcache, as I do, if sfc_os.dll gets overwritten, how will windows rebuild the dllcache...so I think even if it does get overwritten, itll never be able to truly reactivate wfp.

Link to comment
Share on other sites

evilvoice and lolly

what is this for?

REN %windir%\System32\dllcache\mstsc.exe mstsc.old

COPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\dllcache\"

REN %windir%\System32\mstsc.exe mstsc.old

COPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\"

REN %windir%\System32\dllcache\mstscax.dll mstscax.old

COPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\dllcache\"

REN %windir%\System32\mstscax.dll mstscax.old

COPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\"

Link to comment
Share on other sites

basically,

all i need to do is copy the script that Aaron wrote.

then put the renamed metapad to notepad and put into

$oem$\$1\Install

And that is it? ;)

u know i just looked at my prepare.cmd file, which i haven't touched in months.

Actually since i first learned about Unattended Install.

Aaron, or anyone can u post your Prepared.cmd

Just Curious what else u got up your sleeves... hehehehe :thumbup

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...