Is there a utility in or for  windows 2008 r2 to change ownership on a folder including subs and files?

Posted on 2011-04-25
Last Modified: 2012-05-11
I have a 2008 R2 64 bit server. Some how in the share folder "general"  files and folders has lostownership  permissions .
Ex, shows ownership on file to be S-1-22-1-0
Maybe the owner was deleted from AD.
I know how to fix the problem manually but have to do this for each file/folder.

Is there a utility in Windows 2008 r2  like "chown" for linux that will allow me to change ownership of ALL the files and folders in \general  ( \general\*.* /s ) ?

 Also, what is the Proceedure?

Question by:atredo
    LVL 57

    Accepted Solution

    subinacl is a good tool I've used in the past,  they give some examples there and plenty of examples if you search subinacl on the web.

    What I'm not sure of is if it works on 2008 R2...don't want to blow smoke,  haven't test that against a 2008 R2 box.


    Author Comment

    mkline71: Sorry for the delayed response.
    I was looking at the subinacl command too, but also didnt know it would work on a  2008 r2 server.
    I was hoping for more responses from the community.


    Author Comment

    Found this in knowledgebase:
    Rank: Savant
    Was this solution helpful? Yes
    No oBdA:Should work just as well as in W2k3; just do NOT use the subinacl.exe version from the W2k3 Resource Kit (show version 4.something); this version is buggy and won't do anything useful.
    SubInACL (SubInACL.exe)
    The subinacl download is exactly the same for W2k3/W2k8 in "Method 2: Reset permissions on the system using the SubInACL.exe tool" in this article, for example:
    Error message when you use Windows Update or Microsoft Update Web sites to install updates: 0x80070005

    Author Closing Comment

    More research on my part lead to a solution, but this lead me in the right direction.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now