I am trying for set a specific restriction to a file but I keep getting an error and I am not sure why
If I use the same command for any user than the admin(I am the admin and cmd is running as admin),it works fine
The manual very long process is
Properties on the file=>Security=>Advanced=>Add=>Set Principal=>DESKTOP\Administrators=>Ok=>Show Advanced Permissions=>Clear all and enable "Traverse folder / execute file" and hit ok
X:\>icacls file.exe /deny DESKTOP\Administrators:(X)
DESKTOP\Administrators: No mapping between account names and security IDs was done.
Successfully processed 0 files; Failed processing 1 files
If I use the same command for any user than the admin(I am the admin and cmd is running as admin),it works fine
The manual very long process is
Properties on the file=>Security=>Advanced=>Add=>Set Principal=>DESKTOP\Administrators=>Ok=>Show Advanced Permissions=>Clear all and enable "Traverse folder / execute file" and hit ok
My Computer
At a glance
Windows 1114700HX64GBRTX 4070
- OS
- Windows 11
- Computer type
- Laptop
- Manufacturer/Model
- MSI Sword 17 HX
- CPU
- 14700HX
- Memory
- 64GB
- Graphics Card(s)
- RTX 4070





