We help IT Professionals succeed at work.

Modify Registry permissions via command-line in XP Home?

Havin_it
Havin_it asked
on
10,446 Views
Last Modified: 2011-09-20
Hi,

I think the title says it all really.  I'm looking for a way to use the command-line (as part of a batch script) to modify the user permissions on certain registry keys.

I've looked at the XP command reference and didn't see anything that fits the bill; the required functionality would be a combination of CACLS and REG I guess.  I would consider a third-party app if it can operate from the command-line, or a Windows Script Host script (.vbs, .js or whatnot) if the task is possible though these.

High points because I think this is a challenging one.  Bring it on!
Comment
Watch Question

Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Adam LeinssSystems Administrator
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Blimey - three answers when I barely hoped for one!  Good work all.

@oBdA: Are you sure subinacl.exe is usable for Home Edition (which doesn't support domains)?  Also I'd be interested to find out what other tools in the Resource Kit will work - many sound useful.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
Most of the tools (as long as they're not explicitly designed to use in a domain, like acctinfo.dll) should work in XP home as well, and so should subinacl.
It's mostly the GUI components that are limited in XP home; you can, for example, use cacls to set NTFS permissions, even though you don't have the security tab in Explorer (unlesse in safe mode).

Author

Commented:
Hello all, sorry I haven't had a chance to look over all these programs.  I plumped for subinacl.exe in the end but I don't doubt that the other tools are just as appropriate to the task, so points all round.  Especially nice to see an open-source option there - Sourceforge never ceases to amaze me, I never even tought to look there for such a thing!

Thanks again all ;)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions