How to Allow or Deny Access Permissions to Users and Groups in Windows 8 from Command prompt?

If you want to set permission for a file, folder or drive for a specific user or user group in Windows 8, read this

Option Missing Image


There are several types of permission for a file/folder/drive in any Operating System. The permission parameters change depending on the Operating Systems. The permission parameters and corresponding access for Windows 8 is enlisted below.

Permission Parameter Access
N Deny all access
D Remove user or group for no access
R Read only access
W Write only access
RX Read and execute access
F Full access

You may want to prevent other users viewing your personal information, picture or any other files. It may be the security reason or anything else. If you want to restrict some user or user group’s permission to some certain files, folders or drives, then you must have the administrative privilege. Once you have that, you can easily set permissions for other users or user groups. If you set permission for a directory, then the permission for all the sub-directories of that directory will inherit the same permission for that user or user group form the respective directive automatically.

1. Open the quick Access Menu by pressing Windows + X.

2. Now select Command Prompt(Admin).

Quick Access Menu

3. This will open the Elevated Command Prompt.

Method For Files

Now type the following without quotes

“icacls ‘full path to the file’ /grant ‘user name or group’:permission”

Change ‘full path to the file’ and ‘user name or group’ according to your need.
Replace Permission with the appropriate one from the table given above.

command for File Permission

Method For Folders or Drives

Now type the following without quotes

“icacls ‘full path to the file’ /grant ‘user name or group’:permission /T”

Change ‘full path to the file’ and ‘user name or group’ according to your need.
Replace Permission with the appropriate one from the table given above.

command for Folder Permission

You can also type “icacls /?” in the Elevated Command Prompt to get a complete list of all these.

Twitter.png Facebook.png GooglePlus.png Pinterest.png LinkedIn.png Tumblr.png Email.png
5 of 5 0 (100%) 1 vote

- Cheers!