opsoftware
Content Type
Profiles
Forums
Events
Posts posted by opsoftware
-
-
The links need to be removed from the all users profile, now when manually checking the are there and do reside if the paths as specified in my script above.
But still only some are removed.
0 -
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...."
EXIT0 -
@Gee
I moved the $OEM$ folder in full to the same level as I386 and still no joy, just finished another test install
Regards,
Ozzie
0 -
@Gee
Thanks for the pointer but I already moved the $OEM$ folder to the root along side the I386 folder but still had the same effect but in addition NONE of the the required folders i.e. the install folder was copied to the root of c:\
Regards,
Ozzie
0 -
Hi All,
First I would like to say thanks for all the great advice that I have found searching the site.
I have a fully working network install of XP SP 2 + Office 2003 SP 1 + 6 other Apps all running silent via batch files and has been fully load tested clean installing 40 PC's in on shot, so thanks for that.
My problem is I am in the process of moving away from batch files to the RunOnceEx method but everytim I run the install it seem that the RunOnceEx just is not working.
I have been over the RunOnceEx setup tut at http://unattended several times but still no joy.
As this is a network install the $OEM$ folder resides within the I386 folder and all that I put into is copied to the correct locations is there something that I am missing.
I have even put a PAUSE in the RunOnceEx file to try and hold it for debugging but as that is not coming up and there are no registry entries once Windows loads I am happy to say it just is not running.
Any help would be great.
Regards,
Ozzie
[EDIT]
This is the cmdlines.txt which is in $OEM$
[COMMANDS]
"RunOnceEx.cmd"This is the RunOnceEx which is also in $OEM$
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Drives and Applications" /f
REG ADD %KEY%\001 /VE /D "Copy I386 Folder" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\1.cmd" /f
REG ADD %KEY%\002 /VE /D "Copy Programs Folder" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\2.cmd" /f
REG ADD %KEY%\003 /VE /D "Creating Second Drive" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\3.cmd" /f
REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\programs\AdobeReader7\setup.exe /S /qb-" /f
REG ADD %KEY%\010 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\programs\Office11\setup.exe TRANSFORMS=C:\Install\programs\Office11\setup_office.MST /qb-" /f
REG ADD %KEY%\015 /VE /D "Microsoft Visio 2003" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\programs\Visio\setup.exe TRANSFORMS=setup_visio.MST /qb-" /f
REG ADD %KEY%\020 /VE /D "MccAffee Anti Virus" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\programs\McAffeeVirusScan\Setup.exe /qb REBOOT=Suppress" /f
REG ADD %KEY%\025 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\025 /V 1 /D "REGEDIT /S %systemdrive%\install\XPNEW.reg" /f
REG ADD %KEY%\030 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
PauseThis is the file structure
WINXPSP2 <-- Root of share
|_ I386
|_$OEM$
|_cmdlines.txt
|_RunOnceEx.cmd
|_$$
|_$1
|_install
|_ Programs0
Argghhhhh: Removing Starts Links
in Unattended Windows 2000/XP/2003
Posted
@Mhz: Cheers I'll give it a try and let you know.