Main Forum > General Computer Support

Permissions to Merge Legacy Services to the Vista registry

(1/2) > >>

MikeB:
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

Shane:
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

MikeB:
Thanks I will check it out.

Mike

MikeB:
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?

Shane:
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

Navigation

[0] Message Index

[#] Next page

Go to full version