Jump to content

Registry Tweaks, Part-1


Recommended Posts

OE is hard to unistall. Go into Add/Remove programs and Microsoft Components.

Other than that...good luck.

I don't know if Outlook uses the OE engine, because Outlook is an independant program, self contained in office.

Link to comment
Share on other sites


So... I did some dinking, and between this:

Add device manager to , mycomputer right click context menu

Windows Registry Editor Version 5.00

;Add device manager to , mycomputer right click context menu
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr]
@="Launch Device Manager"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command]
@="mmc.exe D:\\WINDOWS\\SYSTEM32\\devmgmt.msc"

and these common tweaks:

Windows Registry Editor Version 5.00

;TweakUI to Control Panel
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}]
@="Tweak UI"
"InfoTip"="Starts the Tweak UI program which customizes advanced options in Windows"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\tweakui.exe,0"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell]
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open]
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\command]
@="tweakui.exe"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\ShellFolder]
"Attributes"=dword:00000030

;User Accounts 2 to Control Panel
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\netplwiz.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

I threw this together:

Windows Registry Editor Version 5.00

;Add Device Manager To Control Panel
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969E}]
@="Device Manager"
"InfoTip"="Manage hardware devices."
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969E}\DefaultIcon]
@="C:\\\\Windows\\\\System32\\\\nusrmgr.cpl,1"
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969E}\Shell]
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969E}\Shell\Open]
[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969E}\Shell\Open\command]
@="mmc.exe C:\\\\Windows\\\\SYSTEM32\\\\devmgmt.msc"

Probably worth mentioning this topic: Common Command Console Utilities , The hidden stuff. and Commands for control panels. And this common tweak as well:

Windows Registry Editor Version 5.00

;This will add "Services" to the right-click menu of "My Computer"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

I'm sure the icons for devmngr are not correct, I can't fix them right now as all my icons are FUBARed. Wanted to get this out there before I formatted to correct that and other problems.

Link to comment
Share on other sites

*MOVE AND RESIZE PAGEFILE* CACHESET.CMD

This batch file allows you to easily change the pagefile location and size. It also deletes on reboot any old pagefiles. You can set up pagefiles on up to 6 different drives.

What it does:

1) Asks for user to enter desired pagefile drive. (Checks to make sure drive exists.)

2) Asks user to enter MIN size, then MAX size. (256, 384, 512, 768, 1024, 1536, 2048, 2560, or 3072MB)

3) Asks if you want to set up additional pagefiles. Loop to 1).

4) Adjusts pagefile in registry.

5) Adds a RunOnce command to registry to delete old pagefile on reboot.

6) Automatically restarts computer (15 second delay... can be aborted.)

I learned a lot about batch files in developing this script! Maybe others can learn from this too. (Some unnecessary line breaks in the text below might mess up this script. I suggest you use the download link at end.) ---SibTiger

::Made by SibTiger  May 22, 2004 (Member of WWW.MSFN.ORG)

::Major revision: June 23, 2004

::   !!!ONLY TESTED ON WINDOWS XP!!!

::-----------------------

:: This batch file allows you to easily change the pagefile location and size.

:: It also deletes on reboot any old pagefiles. You can set up pagefiles on up

:: to 6 different drives. *Assumes current pagefile(s) are named pagefile.sys

:: and exist in the root directory. Don't use this batch file if this isn't true!

::-----------------------

@echo off

cls

color 1F

::____Next line checks OS version.____

if /i not '%OS%'=='Windows_NT' (

    echo *** This script designed for use with Windows XP only! ***

    echo     Press any key to abort...

    pause >NUL

    goto end

)

echo.

echo              * CHANGE PAGEFILE SIZE AND/OR LOCATION. *

echo   (NOTE: Recommend defragging target pagefile drive before continuing.)

Echo.

echo CURRENT PAGEFILE SETTINGS:

ECHO.

for %%F in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if /I exist %%F:\pagefile.sys (

      set %%F%%F=%%F

      echo     *** CURRENT PAGEFILE ON DRIVE %%F: ***

      dir /as %%F:\pagefile.sys | find "pagefile.sys"

      ECHO.

)

::____Following lines set up the counter.____

if exist %temp%\~counter.txt del %temp%\~counter.txt

:setdrive

if exist %temp%\~tmp.bat del %temp%\~tmp.bat

echo X>> %temp%\~counter.txt

set n=

echo @echo off> %temp%\~tmp.bat

echo.|set /p=set n=>>%temp%\~tmp.bat

type %temp%\~counter.txt | find /c "X" >> %temp%\~tmp.bat

call %temp%\~tmp.bat

SET n=%n:~1,1%

del %temp%\~tmp.bat >NUL

::____Following begins user input.____

:reselect

SET dr=

set csizea=

set csizeb=

echo ------------------------------

echo.

SET /P dr=SELECT DRIVE LETTER FOR PAGEFILE

IF NOT '%dr%'=='' SET dr=%dr:~0,1%

::____Check if selected drive letter is a valid drive.____

echo This is a temporary file. Please delete. >%dr%:\~tmp.txt

if not exist %dr%:\~tmp.txt (

     echo.

     echo Drive %dr% doesn't exist! Enter a different drive letter.

     goto reselect

     )

del %dr%:\~tmp.txt

::____Checks if user already set the pagefile for given drive.____

for %%f in (%dr1% %dr2% %dr3% %dr4% %dr5% %dr6%) do if /I '%%f'=='%dr%' goto inuse

goto setsize

:inuse

ECHO Drive selected was already used for a pagefile.

echo  (Scroll up to see selections you made.)

echo.

goto reselect

:setsize

set csizea=

echo.

set %dr%%dr%=

echo ------------------------------

echo.

echo SELECT PAGEFILE SIZE

echo    (Windows default: MIN=1.5 x RAM. MAX=3 x RAM.)

echo    (Some experts claim better performance with MIN and MAX set same.)

SET Choice=

Echo.

echo   MINIMUM SIZE

echo     1 -  256MB

echo     2 -  384MB

echo     3 -  512MB

echo     4 -  768MB

echo     5 - 1024MB

echo     6 - 1536MB

echo     7 - 2048MB

echo     8 - 2560MB

echo     9 - 3072MB

SET /P Choice=       (1,2,3,4,5,6,7,8,9)

IF '%Choice%'=='1' set csizea=256

IF '%Choice%'=='2' set csizea=384

IF '%Choice%'=='3' set csizea=512

IF '%Choice%'=='4' set csizea=768

IF '%Choice%'=='5' set csizea=1024

IF '%Choice%'=='6' set csizea=1536

IF '%Choice%'=='7' set csizea=2048

IF '%Choice%'=='8' set csizea=2560

IF '%Choice%'=='9' set csizea=3072

if not '%csizea'=='' goto setsize2

echo.

echo           !!!You must press 1,2,3,4,5,6,7,8 or 9. Try again.

goto setsize

:setsize2

echo.

set csizeb=

SET Choice=

echo ------------------------------

Echo.

echo   MAXIMUM SIZE (minimum was set to: %csizea%MB)

echo     1 -  256MB

echo     2 -  384MB

echo     3 -  512MB

echo     4 -  768MB

echo     5 - 1024MB

echo     6 - 1536MB

echo     7 - 2048MB

echo     8 - 2560MB

echo     9 - 3072MB

SET /P Choice=       (1,2,3,4,5,6,7,8,9)

IF '%Choice%'=='1' set csizeb=256

IF '%Choice%'=='2' set csizeb=384

IF '%Choice%'=='3' set csizeb=512

IF '%Choice%'=='4' set csizeb=768

IF '%Choice%'=='5' set csizeb=1024

IF '%Choice%'=='6' set csizeb=1536

IF '%Choice%'=='7' set csizeb=2048

IF '%Choice%'=='8' set csizeb=2560

IF '%Choice%'=='9' set csizeb=3072

if not '%csizeb'=='' goto editreg

echo.

echo           !!!You must press 1,2,3,4,5,6,7,8 or 9. Try again.

goto setsize2

:editreg

::____Checks that MIN is not greater than MAX___

   echo.

   if %csizea% GTR %csizeb% (

   ECHO ERROR! MIN (%csizea%) is greater than MAX (%csizeb%).

   echo Reenter sizes.

   echo.

   goto setsize

   )

set cache%n%=%dr%:\pagefile.sys %csizea% %csizeb%\0

set dr%n%=%dr%

:c_list

echo ------------------------------

echo.

echo     PAGEFILE WILL BE SET TO: %cache1%

if not '%dr2%'=='' echo 2nd pagefile will be set to: %cache2%

if not '%dr3%'=='' echo 3rd pagefile will be set to: %cache3%

if not '%dr4%'=='' echo 4th pagefile will be set to: %cache4%

if not '%dr5%'=='' echo 5th pagefile will be set to: %cache5%

if not '%dr6%'=='' echo 6th pagefile will be set to: %cache6%

echo.

if '%n%'=='6' goto limit

:loop3

SET Choice=

echo SETUP AN ADDITIONAL PAGEFILE?

echo     (Some users "spread" the pagefile across multiple drives.)

echo          "Y" - Add another pagefile.

echo          "N" - Continue. Applies changes to registry and reboots.

Echo.

SET /P Choice=                (Y / N)

IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%

echo.

IF /I '%Choice%'=='Y' goto setdrive

IF /I '%Choice%'=='N' goto regchnge

echo INVALID ENTRY: *%choice%*  Try again!

echo.

goto loop3

:limit

echo.

echo *You have set 6 pagefiles. No more can be set with this script.*

echo      Press any key to enter your settings in the registry.

pause >NUL

::____REGISTRY CHANGES FOR PAGEFILE SIZE AND LOCATION____

:regchnge

del %temp%\~counter.txt

REG ADD "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /f /v PagingFiles /t REG_MULTI_SZ /d "%cache1%\0%cache2%%cache3%%cache4%%cache5%%cache6%"

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /f /v PagingFiles /t REG_MULTI_SZ /d "%cache1%%cache2%%cache3%%cache4%%cache5%%cache6%"

::____CREATE _CLEAN.CMD to delete old pagefiles on reboot.____

if exist c:\_clean.cmd del c:\_clean.cmd

echo @echo off> c:\_clean.cmd

echo rem Created automatically by cacheset.cmd on %date% at %time%.>> c:\_clean.cmd

echo if exist c:\reboot.txt del c:\reboot.txt>> c:\_clean.cmd

echo echo Old pagefile being deleted. Please wait...>> c:\_clean.cmd

for %%F in (%cc%%dd%%ee%%ff%%gg%%hh%%ii%%jj%%k%%ll%%mm%%nn%%oo%%pp%%qq%%rr%%ss%%tt%%uu%%vv%%ww%%xx%%yy%%zz%) DO (

      echo attrib -s -h %%F:\pagefile.sys>> c:\_clean.cmd

      echo del /f /q %%F:\pagefile.sys>> c:\_clean.cmd

      )

echo del /f /q c:\_clean.cmd>> c:\_clean.cmd

::____ADDS _CLEAN.CMD TO RUNONCE____

REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v CLEANUP /d c:\_clean.cmd

::___Reboot routine___

:reboot

cls

echo.

echo               *** DONE!!! ***

echo.

echo **** MUST REBOOT FOR SETTINGS TO TAKE EFFECT. ****

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

echo.

echo Automatic restart in 15 seconds. Press any key to abort.

pause >NUL

shutdown -a

goto end

:end

cacheset.zip

Link to comment
Share on other sites

I frequently use command scripts to do misc. jobs... Like with cmdlines, I use a command script to prompt for a new administrator name (safer than having an Administrator account on your PC) and then renames the guest account and removes it from the guests group.

Command scripts are good for a lot of things. Just need to know how to use them.

Link to comment
Share on other sites

i have problems with the show all hidden/system files.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"Hidden"=dword:00000001

"HideFileExt"=dword:00000000

"SuperHidden"=dword:00000001

"ShowSuperHidden"=dword:00000001

applied that but it wont work. i have to go to win explorer > folder options and deactivate it manually.

any ideas? also tried with dword 0 and everything, no success.

Link to comment
Share on other sites

@tribble

you have to re-start/logoff before those settings take effect.

@monstersnatch

in a .cmd, just give this command:

set temp=e:\temp
set tmp=e:\temp

Only problem is that this change of paths is valid only until the .cmd (batch file) finishes executing [in other words, after that command window is closed, %temp% and %tmp% will revert to the previous values].

Link to comment
Share on other sites

Hello, I need some reg-tweaks for:

setting the environmentvariable TEMP and TMP to a specified path (for ex. E:\TEMP and E:\TMP )

Look in these keys (The exported value is in Hex, so it won't help to post mine):

For current user:

HKEY_CURRENT_USER\Environment

TEMP=

TMP=

For Local Machine:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

TEMP=

TMP=

(Path is also set in the same key under PATH=)

Set it the way you want it on your pc, then export it to a .reg file.

Link to comment
Share on other sites

  • setting the environmentvariable TEMP and TMP to a specified path (for ex. E:\TEMP and E:\TMP )

Try this:

;Set the temp directory to C:\Temp
[HKEY_CURRENT_USER\Environment]
"TEMP"="C:\\Temp"
"TMP"="C:\\Temp"

But just like all HKCU tweaks, it will need to be applied via cmdlines.txt to take effect for all users... Hope that helps.

Matt

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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