I want a command-line solution to add a local user account to the permissions table for a directory and grant the account full access… WITHOUT changing the ownership of the directory.
I’m looking for the equivilent of this:
I want to do this programmatically in the command line using either PWSH or CMD. Preferrably Powershell 7.
Any help greatly appreciated.