Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Gpedit.msc and the registry

- - - - -

  • Please log in to reply
1 reply to this topic

#1
troxy

troxy
  • Member
  • 8 posts
Hi! I've noticed that the gpedit.msc tool (Group Policy Editor console) doesn't show the actual registry value for a policy.
For example, the policy "Always use classic logon" relates to the following registry key value:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\LogonType
0 = Classic logon (Policy is "Enabled")
1 = Welcome Screen (Policy is "Disabled")

If I use gpedit.msc to enable the policy, and then use regedit.exe to disable it (manually changing the value for LogonType), the GUI in gpedit.msc still says "Enabled".

I've now realised that gpedit.msc keeps the status for every policy in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\

So when you use gpedit.msc to change a policy, it saves the status in the "Group Policy" reg key, and then writes changes to the "Registry.pol" file in the policy folder "%SystemRoot%\System32\GroupPolicy\" (User or Machine)
At logon time, Windows reads "Registry.pol" and updates the registry accordingly.

This is no news to most people here I suppose.
But since I found no good info on the web about the relation between gpedit.msc and the registry, I wanted to raise the topic here in order to clarify.

Please confirm my following conclusions:

  • gpedit.msc is not just a GUI for editing registry values for policies.
  • gpedit.msc is rather a GUI to manage policy settings stored in "Registry.pol".
  • gpedit.msc becomes irrelevant when you edit the registry settings manually (using scripts or regedit.exe).
  • Using gpedit.msc when you are editing the registry settings manually makes no sense and will only confuse things.

I hope I've made things a little clearer for some tweakers out there.
/Emil


How to remove advertisement from MSFN

#2
UltimateSilence

UltimateSilence

    Member

  • Member
  • PipPip
  • 169 posts
  • OS:98SE
  • Country: Country Flag
Troxy,

Thank you for sharing! I actually looked for this sort of info the other day on the Microsoft site, but I couldn't find anything (maybe I didn't search hard enough).

yZo4FWG.png
Keep Windows XP alive!

Please do not misconstrue Windows 7 license sales as actual sales of the operating system. PCs are bundled with Windows 7, and count towards the sales figures.
Running Windows Vista on HP Pavilion Slimline.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN