Change Create-FileACLObject to use PSObject
PlagueHO opened this issue · 0 comments
PlagueHO commented
Current Create-FileACLObject uses
$acl_object = New-Object Object
$acl_object | Add-Member Path $Path
$acl_object | Add-Member Owner $Owner
$acl_object | Add-Member Group $Group
$acl_object | Add-Member SDDL $SDDL
$acl_object | Add-Member Access $Access
to create the custom object for storing the ACL for a file/folder. This should be changed to:
$props = @{
'Path'=$Path;
'Owner'=$Owner;
'Group'=$Group;
'SDDL'=SDDL;
'Access'=$Access
}
$acl_object = New-Object -Type PSObject -Property $props