Jump to content

delete shortcuts


Recommended Posts

If you followed the instructions from MSFN's Unattended guide, you would more than likely have a CLEANUP.CMD batch file that will delete your shortcuts for you.... This batch file gets run by apps.cmd which is in winnt.sif GuiRunOnce section. apps.cmd sets up GuiRunOnce commands for all the program installers..

A copy of my CLEANUP.CMD :

@echo off

shutdown.exe -r -f -t 45 -c "Windows XP will now restart in 45 seconds..."

ECHO.
ECHO.
ECHO Cleaning up and deleting Windows XP Bulls*** files...
ECHO.

ECHO Deleting wallpapers

DEL "%systemroot%\*.bmp"

ECHO Deleting screensavers...

DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

ECHO Deleting start menu shortcuts...

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"
DEL "%SystemDrive%\Documents and Settings\Default User\Start Menu\Programs\Remote Assistance.lnk"

ECHO Deleting desktop shortcuts...

DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\CloneCD.lnk"
DEL "%AllUsersProfile%\Desktop\PowerDVD.lnk"
DEL "%AllUsersProfile%\Desktop\ISOBuster.lnk"
DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"
DEL "%AllUsersProfile%\Desktop\DAEMON Tools.lnk"
DEL "%SystemDrive%\Documents and Settings\Default User\Desktop\Ad-Aware 6.0.lnk"
DEL "%SystemDrive%\Documents and Settings\Default User\Desktop\CDex.lnk"
DEL "%AllUsersProfile%\Desktop\BSplayer.lnk"
ECHO.
ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\Install
RD /S /Q %systemdrive%\FAH

Where I am deleting the Ad-Aware and CDex link you can see these are being deleted out of the "Default User" account folder... if you substituted this for "Administrator" that will work too, as long as your "Default User" account has administrative rights...

Link to comment
Share on other sites


i wonder myself why IE and OE shortcuts cannot be deleted. they are somehow protected. trying to move them doesnt work either.

These shortcuts are created by ActiveSetup. ActiveSetup is run each time a new user logs onto Windows. Shortcuts to the following programs are all created by ActiveSetup:

Windows Messenger

Internet Explorer 6

Windows MEdia Player

Outlook Express

You can prevent the shortcuts to these items being created by removing the STUBPATH key from the ActiveSetup portion of the registry. I included an INF file which removes these keys in my previous post.

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