Changing permission for registry settings

I want to change certain permissions to the registry through a batch file. Can I do this through xcacls or is there another way of doing this.
skdcsupportAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
canaliConnect With a Mentor Commented:
you can use setacl it's a wonderful tool
http://setacl.sourceforge.net/

Sets 'full' permissions on the registry key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Policies' for user 'user1' in domain 'domain1' on the remote computer PC01.

SetACL.exe -on "\\PC01\hklm\software\microsoft\policies" -ot reg -actn ace -ace "n:domain1\user1;p:full"

Bye Gastone Canali
0
 
DCenaculoCommented:
I suggest subinacl. For example, to grant Read permissions to a registry key for the Local Service account, type the following command:

Subinacl /keyreg RegKey* /grant=local service=r

*-RegKey is the all key and you can export it from registry and put it here.
0
All Courses

From novice to tech pro — start learning today.