Reread Registry?

  • Thread starter Thread starter Pop`
  • Start date Start date
P

Pop`

In a recent post from Rick Rogers, he said, in part:
"
Hit ctrl+shift+escape to open Task Manager, then kill explorer.exe on
the processes tab. Now on the applications tab click new task and run CMD to
open the emulator. Go to your desktop folder (%userprofile%\desktop) and DEL
the file from there. Then close the command prompt and run explorer.exe from
the new task prompt to restart the Windows shell.
"

-- Is that effectively reloading the Registry?

-- Would it work for "Restart" commands when doing program (not hardware
related) installs?

TIA,

Pop`
 
Pop` said:
In a recent post from Rick Rogers, he said, in part:
"
Hit ctrl+shift+escape to open Task Manager, then kill explorer.exe on
the processes tab. Now on the applications tab click new task and run
CMD to open the emulator. Go to your desktop folder
(%userprofile%\desktop) and DEL the file from there. Then close the
command prompt and run explorer.exe from the new task prompt to
restart the Windows shell. "

-- Is that effectively reloading the Registry?

-- Would it work for "Restart" commands when doing program (not
hardware related) installs?

No, it is not "reloading the Registry". It is killing the Graphical User
Interface (explorer.exe) in order to delete a file that has hooked into
the gui.

I don't know what you mean by "restart" commands or why you would want
to do this.

Malke
 
Depends on what you're doing...... but a little more elegant;

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

Run it after the registry change in your shell script.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| In a recent post from Rick Rogers, he said, in part:
| "
| Hit ctrl+shift+escape to open Task Manager, then kill explorer.exe on
| the processes tab. Now on the applications tab click new task and run CMD
to
| open the emulator. Go to your desktop folder (%userprofile%\desktop) and
DEL
| the file from there. Then close the command prompt and run explorer.exe
from
| the new task prompt to restart the Windows shell.
| "
|
| -- Is that effectively reloading the Registry?
|
| -- Would it work for "Restart" commands when doing program (not hardware
| related) installs?
|
| TIA,
|
| Pop`
|
|
 
Malke said:
No, it is not "reloading the Registry". It is killing the Graphical
User Interface (explorer.exe) in order to delete a file that has
hooked into the gui.

OK, thank you. I recall seeing how to reload the registry without a reboot
once but never reloacated it, and wondered if that was it.
I don't know what you mean by "restart" commands or why you would want
to do this.

Sorry; just meant to Restart the computer; Start, Shutdown, Restart. e.g.,
install a new program, Restart computer in order to reload the registry with
the new settings.

Pop`
 
Dave said:
Depends on what you're doing...... but a little more elegant;

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

Run it after the registry change in your shell script.

Thanks Dave; good info.

Pop`
 
Kill explorer.exe and restart it.

This can fix/restore/reinitialize/refresh a lot of things.

Killing explorer.exe and restarting it saves you from having to reboot to
get the registry reinitialized/refreshed.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Killing explorer.exe and restarting it saves you from having to reboot to
get the registry reinitialized/refreshed. And it is quicker than rebooting.
However, some things seem to require a cold boot and I have no idea why.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Ah, excellent, Wes! Thanks for the confirmation. And yes, I understand
your added caveat about it not necesarily always working for everything;
nothing's ever perfect, especially in computer-land.

I'll try to keep it in mind for next opportunity. Hmm, that could be a
batch file, maybe named Faux Restart or something silly like that - hmmm.
<g> It's really the time savings I'm interested in.

Regards,

Pop`
 
Faux may be a Reserved Name in French versions of windows XP. ;-)

38. Activate registry changes in HKEY_CURRENT_USER without logging off
(Windows 2000 and later):

RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

Credits: Pete Smith.
Batch files - RUNDLL and RUNDLL32
http://www.robvanderwoude.com/rundll.html

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
It updates the %userprofile% hive only. There are few reasons why you
need to reboot an NT system and reloading/refreshing the user hive is
not one of them. The changes needed by a restart cannot be made with
the command or by restarting Explorer.exe, you have to restart the
computer. The changes requiring a reboot are usually in the System hive
and these are read at boot time from one of the ControlSetnnn hives.
The nnn set is determined in the Select key.

John
 
And that certainly makes sense, John.

Especially after rereading: "Activate registry changes in HKEY_CURRENT_USER
without logging off"

Thank you, John.

<quote>
HKLM\SYSTEM \Select
Description
The Select subkey contains entries that specify which control set is used to
start the system. The entries in this subkey record which control set was
used to start the system this time, which control set will be used to start
it next time, and which control sets have failed to start the system in the
past.
<quote>
http://technet2.microsoft.com/Windo...fbe5-4c04-b3df-12e598fec4391033.mspx?mfr=true

For anyone interested in Control Sets. From my archives. Maybe I should
read these again.

ControlSet00n
HKLM\SYSTEM
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/58407.mspx?mfr=true

CurrentControlSet
HKLM\SYSTEM
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/58407.mspx?mfr=true

CurrentControlSet\Services Subkey Entries
http://support.microsoft.com/default.aspx?scid=kb;en-us;103000

Information on Last Known Good Control Set
http://support.microsoft.com/default.aspx?scid=kb;en-us;101790

PART 1 CurrentControlSet
http://support.microsoft.com/default.aspx?scid=kb;en-us;102987

PART 2 CurrentControlSet SessionManager
http://support.microsoft.com/kb/102985

PART 3 CurrentControlSet
http://support.microsoft.com/default.aspx?scid=kb;en-us;102986

Switching Control Sets is Unsupported
http://support.microsoft.com/default.aspx?scid=kb;en-us;94401

What are Control Sets? What is CurrentControlSet?
http://support.microsoft.com/kb/100010

Windows Server 2003 ControlSet00n
http://technet2.microsoft.com/WindowsServer/en/Library/f9674849-fbe5-4c04-b3df-12e598fec4391033.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
I have been attempting to activate a change I made in the registry, but
the previously mentioned methods are not working. I modified the
following values.

HKEY_CURRENT_USER\Control Panel\Desktop\FontSmoothing
HKEY_CURRENT_USER\Control Panel\Desktop\FontSmoothingType

I tried killing and re-running explorer.exe from the Task Manager.
That did not work.

I tried running the command RUNDLL32.EXE
USER32.DLL,UpdatePerUserSystemParameters ,1 ,True in both the Run
dialog (START > Run...) and from a command window (cmd.exe).

Does anyone have any other suggestions? I am trying to automate the
process of activating ClearType. I have found what I think are the
correct Registry values, but I activate my manual Registry changes.

Thanks,
Chris
 
Your video card has to support it.

You do not need to edit the registry.

Right click on a blank area of the Desktop and click Properties.
Click on the Appearance Tab then click the Effects button.
Use the following method to smooth edges of screen fonts:

Use the following method to smooth edges of screen fonts:
[[Specifies whether to smooth edges of large fonts to make screen fonts more
readable. To use this option, you must have a video card and monitor that
support 256-color. For best results, your video card and monitor should
support high color (16-bit color).]]

[[Lists the options available for improving the readability of large screen
fonts. Click Standard for desktop monitors; click ClearType for most laptop
computers and other flat screen monitors.]]

FontSmoothing set to 0 is the same as not having the Use the following
method to smooth edges of screen fonts boxed checked. 1 is having the box
checked or enabled.

FontSmoothingType is having the above box checked and either Standard or
ClearType selected.

Description of ClearType Font Smoothing Technology in Windows XP
http://support.microsoft.com/kb/294851

HOW TO: Use ClearType to Enhance Screen Fonts in Windows XP
http://support.microsoft.com/kb/306527

Enable Font Smoothing
http://www.winguides.com/registry/display.php/782/

Control the Font Smoothing Mode
http://www.winguides.com/registry/display.php/919/


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top