Accidental Deletion of NTFS Permissions for Administrators on root of D:\

Posted on 2012-08-24
Last Modified: 2012-10-03
Hi there,

A right-royal stuff-up for a Friday afternoon!

I have accidentally deleted the "Full Control" permissions for the Administrators group at the root of D:\, which is a data drive on a SBS 2008 server.

I notice that the volume's Owner is SYSTEM, which has Full Control. Unfortunately, no other user or group has Full Control.

Is there any way I can write a script, scheduled to run as SYSTEM, that will re-add the permissions for the Administrators group?

Actually, the above question was just my train of thought. If you;ve got a better idea, bring it on!!!

Thanks n regs,
    LVL 7

    Accepted Solution

    take ownership of folder and administrator have full access again
    LVL 18

    Expert Comment

    by:Sushil Sonawane
    To take the ownship of file folder or drive.

    For Files:
    takeown /f file_name /d y
     icacls file_name /grant administrators:F
    For Folders or Directories (will perform action recursively):
    takeown /f directory_name /r /d y
     icacls directory_name /grant administrators:F /t
    LVL 6

    Expert Comment


    You can use PSexec to run a script as System

    You can use a script to set the permissions. you would need to create the script, but the cacls command is what you need.


    LVL 77

    Expert Comment

    by:Rob Williams
    As HaiFai stated, as a machine administrator you can simply go into advanced NTFS?Security permissions and take ownership of the drive/folder and subfolders and files., you can then reassign permissions.
    LVL 6

    Expert Comment

    Any luck etting it sorted?

    Author Closing Comment

    Thanks HaiFai. Your answer was a no-brainer. Shame I had no brain at the time but, understandably, I was in a bit of a flap!!!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I’m often asked about newer and larger USB drives connected to SBS2008 and 2011 failing Windows Server Backup vs the older USB drives not failing. As disk space continues to grow and drive technology change SBS2008 and some SBS2011 end up with the f…
    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…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now