Jump to content

Argghhhhh: Removing Starts Links


Recommended Posts

Hi all,

As per the image below there are a number of links that I just can not get rid of:

Remote Assistance

Tour Windows XP

Command Prompt

Program Compatabiltiy Wizard

Synchronize

Windows Explorer

Any idea on how to get rid of them...

Below is my cleanup script

cmdow @ /HID
@echo off

:: Start >>
del "%ALLUSERSPROFILE%\Start Menu\New Office Document.lnk"
del "%ALLUSERSPROFILE%\Start Menu\Open Office Document.lnk"
del "%ALLUSERSPROFILE%\Start Menu\Set Program Access and Defaults.lnk"
del "%ALLUSERSPROFILE%\Start Menu\Windows Catalog.lnk"
del "%ALLUSERSPROFILE%\Start Menu\Windows Update.lnk"

:: Start >> Programs >>
del "%ALLUSERSPROFILE%\Start Menu\Programs\Remote Assistance.lnk" [B]<-- This does not seem to work[/B]

:: Start >> Programs >> Accessories >>
del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Tour Windows XP.lnk" [B]<-- This does not seem to work[/B]
del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Synchronize.lnk" [B]<-- This does not seem to work[/B]
del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Program Compatability Wizard.lnk" [B]<-- This does not seem to work[/B]
del "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Command Prompt.lnk" [B]<-- This does not seem to work[/B]
rd /s /q  "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools"
rd /s /q  "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Communications"

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

RD /S /Q %systemdrive%\I386\$OEM$\
RD /S /Q %systemdrive%\install\
RD /S /Q %systemdrive%\Logfiles\

net user aspnet /delete

shutdown.exe -r -f -t 5 -c "Windows will now restart...."

EXIT

post-62500-1121241756_thumb.png

Link to comment
Share on other sites


I have a "Command Prompt.lnk" in my users accessories folder anyway, and i guess it's created by default for each user on the system.

You you could put the del lines in each users logon script.

Or else maybe you could remove the links from the hidden "C:\Documents and Settings\Default User" folder. I presume this folder is the skeleton folder for all users logging on the system for the first time.

Edited by allan
Link to comment
Share on other sites

I reviewed your batch. This is what I finished with.

cmdow @ /HID
@echo off

:: Start >>
set AUPSM="%ALLUSERSPROFILE%\Start Menu"
del "%AUPSM%\New Office Document.lnk"
del "%AUPSM%\Open Office Document.lnk"
del "%AUPSM%\Set Program Access and Defaults.lnk"
del "%AUPSM%\Windows Catalog.lnk"
del "%AUPSM%\Windows Update.lnk"


:: Start >> Programs >>
set UPSMP="%USERPROFILE%\Start Menu\Programs"
del "%UPSMP%\Remote Assistance.lnk"


:: Start >> Programs >> Accessories >>
set AUPSMPA="%ALLUSERSPROFILE%\Start Menu\Programs\Accessories"
rd /s /q  "%AUPSMPA%\System Tools"
rd /s /q  "%AUPSMPA%\Communications"

set UPSMPA="%USERPROFILE%\Start Menu\Programs\Accessories"
del "%UPSMPA%\Tour Windows XP.lnk"
del "%UPSMPA%\Program Compatability Wizard.lnk"
del "%UPSMPA%\Synchronize.lnk"
del "%UPSMPA%\Command Prompt.lnk"


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

RD /S /Q %systemdrive%\I386\$OEM$\
RD /S /Q %systemdrive%\install\
RD /S /Q %systemdrive%\Logfiles\

net user aspnet /delete

shutdown.exe -r -f -t 5 -c "Windows will now restart...."

EXIT

The guys are correct, that you are are choosing the wrong profile directories.

Link to comment
Share on other sites

Have you looked in the 'Default User' profile folder?

<Edit>

All of the following lnks are found there:

  • Remote Assistance
    Tour Windows XP
    Command Prompt
    Program Compatabiltiy Wizard
    Synchronize
    Windows Explorer

</Edit>

Here is an example of a way round not knowing for sure in which profile your file /folder is located

@echo off&setlocal enableextensions
for /f "delims=" %%a in ('dir /b/s/ad "%AllUsersProfile%\..\*"') do if exist "%%~a\Start Menu" call :gothere "%%~a\Start Menu"
endlocal&goto :eof
:gothere
pushd %1

:: your profile dependent stuff [changed] here
del /q/s "New Office Document.lnk" 2>nul
del /q/s "Open Office Document.lnk" 2>nul
del /q/s "Set Program Access and Defaults.lnk" 2>nul
del /q/s "Windows Catalog.lnk" 2>nul
del /q/s "Windows Update.lnk" 2>nul
del /q/s "Remote Assistance.lnk" 2>nul
del /q/s "Tour Windows XP.lnk" 2>nul
del /q/s Synchronize.lnk 2>nul
del /q/s "Program Compatability Wizard.lnk" 2>nul
del /q/s "Command Prompt.lnk" 2>nul
rd /s/q "Programs\Accessories\System Tools" 2>nul
rd /s/q "Programs\Accessories\Communications" 2>nul

popd&goto :eof

Edited by Yzöwl
Link to comment
Share on other sites

  • 2 weeks later...

can someone please give an example of what the command would look like, to get rid of the Outlook Express.lnk file (in start menu)

and the Internet Explorer.lnk, would be nice to. :)

for the default user, and all future accounts created. (not %userprofile%).

Link to comment
Share on other sites

Thats a FAQ.

rem Hide IE and OE icons (Win2000)
rem "%SystemRoot%\system32\rundll32.exe" "%SystemRoot%\system32\shell32.dll",OCInstall HideIE
rem "%SystemRoot%\system32\rundll32.exe" "%SystemRoot%\system32\shell32.dll",OCInstall HideOE

rem Hide IE and Outlook Express icons (WinXP)
"%SystemRoot%\System32\shmgrate.exe" OCInstallHideIE
"%SystemRoot%\System32\shmgrate.exe" OCInstallHideOE

Edited by Dahi
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...