Author Topic: Permissions to Merge Legacy Services to the Vista registry  (Read 15857 times)

0 Members and 1 Guest are viewing this topic.

Offline MikeB

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 6
  • Karma: 0
    • View Profile
Permissions to Merge Legacy Services to the Vista registry
« 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

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #1 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

Offline MikeB

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #2 on: February 15, 2012, 11:53:32 am »
Thanks I will check it out.

Mike

Offline MikeB

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #3 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?

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #4 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

Offline MikeB

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #5 on: February 15, 2012, 12:52:11 pm »
Thanks I just ran it and it worked perfectly. :smiley:

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Permissions to Merge Legacy Services to the Vista registry
« Reply #6 on: February 15, 2012, 12:53:35 pm »
Glad I could help :-)

Shane