assign permission via command line

Posted on 2007-10-09
Last Modified: 2012-05-05
I am wondering if anyone knows if it is possible, or knows how to, set folder permissions from the command line in SBS 2003.


Question by:Bullfrog28
    LVL 82

    Accepted Solution

    Using the built-in "cacls.exe"; for example:
    cacls "C:\SomeFolder" /t /e /g SomeGroup:C
    will (/t)raverse subfolders as well, (/e)dit the current ACL (instead of replacing it), and (/g)rant the group "SomeGroup" (C)hange permissions on the folder "SomeFolder".

    For more detailed permissions, you can use xcacls.vbs, a download; but do NOT use xcacls.EXE to change NTFS permissions on a W2k3 machine, it produces incorrectly ordered ACEs if used with /e; use xcacls.VBS instead.
    Child objects in a folder do not inherit permissions as expected when you use Xcacls.

    How to use Xcacls.vbs to modify NTFS permissions

    How to use Xcacls.vbs to modify NTFS permissions
    LVL 13

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
    If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now