Tweaking.com Support Forums

Main Forum => General Computer Support => Topic started by: MikeB on February 15, 2012, 11:44:26 AM

Title: Permissions to Merge Legacy Services to the Vista registry
Post by: MikeB on February 15, 2012, 11:44:26 AM
Hi Shane,

I have a question about registry permissions.

I need to merge a legacy service, legacy_mpssvc.reg, into a registry where it is missing completely.

How do I reset that permission in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root
so that it will allow the merge?


Thanks,

Mike
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: Shane on February 15, 2012, 11:51:42 AM
Couple of ways you can do it :-)

1. regini.exe
http://support.microsoft.com/kb/237607

You can set the permissions with this.

2. psexec.exe
http://technet.microsoft.com/en-us/sysinternals/bb897553

Or with this you can open a cmd window under the system account and import the reg file that way as well

Shane
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: MikeB on February 15, 2012, 11:53:32 AM
Thanks I will check it out.

Mike
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: MikeB on February 15, 2012, 12:05:39 PM
So if I want to merge the registry file legacy_mpssvc.reg what would that look like as a command set for the tool you prefer?
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: Shane on February 15, 2012, 12:18:40 PM
Here is how to do both.

1. Make a txt file and put this in (Lets say the file name is reg_per.txt)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root [1 5 7 11 17]

Then just run

regini.exe reg_per.txt

In the text file you add each reg key you want to change permissions on.

2. Make a bat file say reg.bat

In the bat file put

regedit /s legacy_mpssvc.reg

now run the bat file with psexec.exe

psexec.exe -i -d -s cmd.exe /c reg.bat

And that will run cmd.exe as the system account at which point cmd.exe runs the bat file we made :-)

Shane
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: MikeB on February 15, 2012, 12:52:11 PM
Thanks I just ran it and it worked perfectly. :smiley:
Title: Re: Permissions to Merge Legacy Services to the Vista registry
Post by: Shane on February 15, 2012, 12:53:35 PM
Glad I could help :-)

Shane