Author Topic: Permissions to Merge Legacy Services to the Vista registry  (Read 6601 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

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
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
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

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

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
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
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

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

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
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
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com