Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run Command - Enable or Disable

04 Sep 2015   #10
Brink

64-bit Windows 10 Pro
 
 

Just about all the .reg files I have in tutorials for group policies are for the HKCU location and get applied to all users. I'm not sure why this one doesn't get applied to all users now.

Here's another one to look at and play with:

Taskbar Toolbars - Enable or Disable


My System SpecsSystem Spec
.
04 Sep 2015   #11
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Just about all the .reg files I have in tutorials for group policies are for the HKCU location and get applied to all users. I'm not sure why this one doesn't get applied to all users now.

Here's another one to look at and play with:

Taskbar Toolbars - Enable or Disable
Nope - that one fails to be applied to all users too.

I have tested with my base VM* and with my up to date VM**.

*W7pro64bit SP1 - no other updates
no other software, except VirtualBox drivers

**W7pro64bit SP1 - all updates - including all optional updates, except W10 offer
no other software, except VirtualBox drivers


I have tested several variations of these steps:

reboot VM
log on to user:admin account
create user2:admin account
reboot VM - just for fun

log on as user2:admin
let the new profile be built
wait a minute or two for all delayed services to do their thing

reboot VM again - just for fun - nothing was done between reboots
log on as user2:admin again
wait a minute or two for all delayed services to do their thing

merge the reg file named Disable_Taskbar_Toolbars.reg
accept the UAC and other prompts
the process claims to be successful

reboot VM
log on as user2:admin again
the toolbar option is gone from various places - as desired

reboot VM
log on as user:admin
wait a minute or two for all delayed services to do their thing
the toolbar option is present where it should be for user:admin

switch user to user2:admin
the toolbar option is still gone


One of the many variations was to:
reboot only once - after merging the reg file...
...and then using (log off/log on)
The results were the same.

Rebooting a lot was meant to make sure that other profile were not locked.


I know of no mechanism that will...
...inventory every single user account
(there could be hundreds of accounts)
...gather all of the HKCU policy settings
...merge those settings with all other users of a given computer.

As far as I know, each user's HKCU info is kept in this file:
C:\Users\username\NTUSER.DAT

During the testing above, there was a user3:admin account. It was logged on to once to create the profile folder and then the computer was restarted.

The user:admin account was used to take note of the date/time on the NTUSER.DAT file for user3:admin and then the computer was restarted again.

After completing all of the steps mentioned above, the user:admin account was used to verify that the date/time stamp on the NTUSER.DAT file for user3:admin had not changed.

I never did log back on to user3:admin to check the toolbar tab availability.

That tab was only gone from one user profile - as expected :-)
My System SpecsSystem Spec
04 Sep 2015   #12
Brink

64-bit Windows 10 Pro
 
 

I'll have to do some more testing as well then.

I know that it did work the way I described before.
My System SpecsSystem Spec
04 Sep 2015   #13
Brink

64-bit Windows 10 Pro
 
 

Yep, you're right. Current User only. I'm not sure how I misunderstood that one. LOL
My System SpecsSystem Spec
.

04 Sep 2015   #14
Adonix44

Windows 7 Ultimate x64
 
 

Well any final outcome that why HKEY_CURRENT_USER reg edits not applies to all users ?
reg edits only apply to the person who runs the reg files !
Do we have to edit CURRENT_USER reg thing so that reg edits apply to all ??
I don't know why HKEY_CURRENT_USER reg edits does not applies to all users !
If i edit gpedit.msc, then it applies to all users,..but when i directly modify regedit then no effect applies to other users >.<
My System SpecsSystem Spec
04 Sep 2015   #15
UsernameIssues

W7 Pro SP1 64bit
 
 

I tried to explain in an earlier post. Here it is again - using other words:

If you use gpedit to make this change, it writes the change to the local user's registry hive.

But, gpedit also write the change to this file:
\Windows\System32\GroupPolicy\User\Registry.pol
That file is applied to each user at logon if the OS is pro or above.


You should be able to write a script that writes the change to each user and changes the default user hive so that new users already have the change. If you cannot write such a script, then maybe someone can help you. Or maybe someone has a better way.
My System SpecsSystem Spec
Reply

 Run Command - Enable or Disable




Thread Tools




Similar help and support threads
Thread Forum
Enable client for Microsoft networks via command line
Does anyone have a solution for enabling client for Microsoft networks via the command line. It's already installed, but the check box next to it is unchecked. I've been doing some reading around the net and haven't come up anything viable. Some have said to use netsh to do it, but I can't...
Network & Sharing
Disable/enable Desktop BG from Command Line
I currently have a Bat file (that I converted to exe called "kill start") set up that disables all my "extra" processes, and fires up a video game (i have one for each game), launches my Voip program of choice, and logs me in etc. That way I only have to hit one hot key and I'm good to go. Another...
Customization
Flip 3D - Enable or Disable
How to Enable or Disable "Flip 3D" in Vista and Windows 7 This will show you how to enable or disable the ability to use Flip 3D (Switch between windows) for all users on the computer in Vista and Windows 7. You will need to be logged in as an administrator to be able to do this tutorial....
Tutorials
Enable and disable hardware command...?
Hi, I recently disabled several hardware items on my laptop (CDROM, PCMCIA, etc.) to save the battery life. My question is, is there a way to setup a "command" to enable and disable these hardware without going to the Control Panel, etc.? Many thanks in advance. Regards,
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App