Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

set-acl and the registry

$
0
0

Hello

I'm learning about manipulating the registry using PowerShell, I've been following the examples in the "Windows PowerShell 2.0 Administrators Pocket Consultant".  That book suggests that the following command should copy the security descriptor from one key to another

set-acl -path hkcu:\software\dev -aclobject (get-acl hkcu:\software\test)

I've created the keys "dev" and "test", I've added a user named "foo" to the ACL for test and given him read.  When I run the command I mentioned above the "foo" entry never shows up in the ACL for the "dev" key.  However the command completes error free.

Am I missing something here? 

I'm on Windows 7 64 bit using Powershell 2.0 in 64bit mode.  I'm also running my powershell console as an administrator.

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>