Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to change drive access permission using command line.

13 Mar 2013   #1

windows 7
How to change drive access permission using command line.


When I look on the Security tab of the drive's properties I see:
Group or usernames:
Authenticated Users SYSTEM Administrators (MyComputer\Administrators) Users (MyComputer\Users

Now if I click on "Advanced" option.
I get a page where I can change permissions for the users in the ACL.
Suppose I click on "Edit".
I get a page named Permission Entry for Local Disk, where I can change permissions.
On the same page we have "Apply to" option, which we can use if we want to apply those
permissions specifically on folders or subfolders or only files.

My question, what command we need to use if I want to change the permission and apply them
to specific folders or subfolders or files for a particular user in ACL. using command line.

Any help is appreciable.

My System SpecsSystem Spec
13 Mar 2013   #2

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1

Would this be what you re looking for?
How to grant permission to users for a directory using command line in Windows? - Stack Overflow
NOTE the first comment below the main part in the link re depracated code.
My System SpecsSystem Spec
13 Mar 2013   #3

windows 7

No, This is how you give permissions to users in the ACL, once the permission is given I want that permission to get associated with folders or subfolders.
My System SpecsSystem Spec


 How to change drive access permission using command line.

Thread Tools

Similar help and support threads
Thread Forum
Is There a Silent Command-Line Operation to change theme?
Is there a way to change themes from the command-line, without showing the "Personalization" window? The command I use right now is rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Ease of...
Themes and Styles
Possible to Change Sound Scheme via Command Line?
Hello All, I've scoured and searched past threads, but have not found the answer(s) I'm looking for. Here's my situation: I'm a full-time AV technician and I frequently deal with multiple (sometimes hundreds) of rental computers that need to be set up for use with presentations. Using the...
Sound & Audio
Command line to Change the colour depth.
I'm trying to automate changing the color depth.And i want to do it by one line. Kindly let me know the command line to change the color depth for 16bit to 32 bit and vice verse Thanks, Priya
General Discussion
Command line Registry Permission
I found a lot of articles on how to gain full control over a registry key but nothing worked for me. So guys can you help Me?
General Discussion
change color depth through command line
Hi, how to change color depth to 32-bit in windows through command or registry
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:59.
Twitter Facebook