I have tried How To Manage File System ACLs With PowerShell
link
http://www.tomsitpro.com/articles/powershell-manage-file-system-acl,2-837.html
I am unable to get the last part to run any help will be appreciated
http://www.tomsitpro.com/articles/powershell-manage-file-system-acl,2-837.html
First part
((Get-Item c:\test).GetAccessControl(
'Access'))
.Access
Second part
[PS] C:\Windows\system32>((Get-
ChildItem c:\test -Directory).GetAccessContr
ol('Access
')).Access
Get-ChildItem : A parameter cannot be found that matches parameter name 'Directory'.
At line:1 char:35
+ ((Get-ChildItem c:\test -Directory <<<< ).GetAccessControl('Access
')).Access
+ CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Mic
rosoft.Pow
erShell.Co
mmands.Get
ChildItemC
ommand
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.