I want to add a user to NTFS Permission and give full control to a specific folder.
This is the code that I found in internet, but it gives me an error.
Set-ACL -Path "C:\Program Files (x86)\TEST" -Account "DESKTOP-R5C0QAA\Bobby" -AccessRights FullControl
Set-Acl : A parameter cannot be found that matches parameter name 'Account'.
At line:1 char:45
Set-ACL -Path "C:\Program Files (x86)\TEST" -Account "DESKTOP-R5C0QAA ...
CategoryInfo : InvalidArgument: (:) [Set-Acl], ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetAclCommand