New
#1
icacls remove user variable
Does anyone know how to use a variable for the user name to remove from file permissions using the icacls or some other command?
I'm trying to get a command to use for this to have a remove "Account Unknown" context menu to make it easier to remove them.
"Account Unknown*" doesn't work in the command for the account name.
Add Reset Permissions to Context Menu in Windows | Windows 10 Tutorials
icacls "<full path of file/folder>" /remove <account name> /T /C
OR
icacls <Drive letter>:\*.* /remove <account name> /T /C