views:

834

answers:

2

I need to grant rights to Widnows user group Everyone to the HKCR hive and all the keys below th HKCR.I would like to use PowerShell scripting for this. Is it possible?

+1  A: 

You should be able to write a script that uses PowerShell's set-acl command to change hte rights on any key in the registry. HKCR is, I believe, mapped as HKLM:\Software\Classes in PowerShell.

Matt Hamilton
+5  A: 

You really, really, really, don't want to do this - you're opening your system up to an enormous number of very real security risks. And, while it's entirely possible in PowerShell, using native PowerShell commands will require a pretty difficult syntax (managing ACLs using the *-ACL cmdlets is a pain). Consider reading http://support.microsoft.com/default.aspx/kb/264584; you'll be able to execute the commands in PowerShell with no problem.

Don Jones