jb3rry Posted September 8, 2004 Share Posted September 8, 2004 Just curious what some of the users favorite clean up commands are.... Link to comment Share on other sites More sharing options...
Aaron Posted September 8, 2004 Share Posted September 8, 2004 CD Eject batch executed before this (Because of WFP, and I'm not patching mine!):cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteREN %windir%\System32\dllcache\notepad.exe notepad.oldCOPY "%systemdrive%\install\notepad.exe" "%windir%\System32\dllcache\"REN %windir%\System32\notepad.exe notepad.oldCOPY "%systemdrive%\install\notepad.exe" "%windir%\System32\"REN %windir%\notepad.exe notepad.oldCOPY "%systemdrive%\install\notepad.exe" "%windir%"REN %windir%\System32\dllcache\mstsc.exe mstsc.oldCOPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\dllcache\"REN %windir%\System32\mstsc.exe mstsc.oldCOPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\"REN %windir%\System32\dllcache\mstscax.dll mstscax.oldCOPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\dllcache\"REN %windir%\System32\mstscax.dll mstscax.oldCOPY "%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 More sharing options...
Lolly Posted September 8, 2004 Share Posted September 8, 2004 Aaron, why are you renaming and copying files, like that notepad.exe and others...? Whats the purpose? C'mon, you're hiding teh thruth aren't ya? Share teh wisdom. Seriously, I'd like to know about it. Link to comment Share on other sites More sharing options...
Astalavista Posted September 8, 2004 Share Posted September 8, 2004 yah! what is that? Link to comment Share on other sites More sharing options...
Aaron Posted September 8, 2004 Share Posted September 8, 2004 Aaron, why are you renaming and copying files, like that notepad.exe and others...? Whats the purpose?I'm replacing it with Metapad, and the Windows Server 2003 Remote Desktop client Link to comment Share on other sites More sharing options...
Lolly Posted September 8, 2004 Share Posted September 8, 2004 Thanks, Im gonna give that Metapad a go,just about to make a iSO-RC.45345415614 of my unattended andmake a test run on VM again. Link to comment Share on other sites More sharing options...
Astalavista Posted September 8, 2004 Share Posted September 8, 2004 ok I got the file lolly how do i install it? Link to comment Share on other sites More sharing options...
jb3rry Posted September 8, 2004 Author Share Posted September 8, 2004 AstaWhat is that software in you Sig? Link etc? Link to comment Share on other sites More sharing options...
Lolly Posted September 8, 2004 Share Posted September 8, 2004 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\dllcache2. Renaming, backing up the original notepad , copying your metapad but now in the windir\sys32\REN %windir%\System32\notepad.exe notepad.oldCOPY "%systemdrive%\install\notepad.exe" "%windir%\System32\"3. Same again but in the windows directory.REN %windir%\notepad.exe notepad.oldCOPY "%systemdrive%\install\notepad.exe" "%windir%"So, there's 3 copys of themDid i miss something? Link to comment Share on other sites More sharing options...
evilvoice Posted September 8, 2004 Share Posted September 8, 2004 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 More sharing options...
Lolly Posted September 8, 2004 Share Posted September 8, 2004 Ok, thanks for clearing it out,Im doing everything to cutoff the wfp thing so im not expecting muchtrouble for that but you never now,it'll only take a one critical update and bam, all the crap is ON again... Link to comment Share on other sites More sharing options...
evilvoice Posted September 8, 2004 Share Posted September 8, 2004 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 More sharing options...
Astalavista Posted September 8, 2004 Share Posted September 8, 2004 evilvoice and lollywhat is this for?REN %windir%\System32\dllcache\mstsc.exe mstsc.oldCOPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\dllcache\"REN %windir%\System32\mstsc.exe mstsc.oldCOPY "%systemdrive%\install\mstsc.exe" "%windir%\System32\"REN %windir%\System32\dllcache\mstscax.dll mstscax.oldCOPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\dllcache\"REN %windir%\System32\mstscax.dll mstscax.oldCOPY "%systemdrive%\install\mstscax.dll" "%windir%\System32\" Link to comment Share on other sites More sharing options...
evilvoice Posted September 8, 2004 Share Posted September 8, 2004 Windows Server 2003 Remote Desktop client Link to comment Share on other sites More sharing options...
Astalavista Posted September 8, 2004 Share Posted September 8, 2004 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\InstallAnd 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.cmdJust Curious what else u got up your sleeves... hehehehe 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