locked
Takeown.exe error (the data area passed to the system is too small) RRS feed

  • Question

  • So this is going to be an odd question. I was asked to post it here instead of the script page because the issue I am having is with Takeown.exe.

    I am running a script that calls Takeown.exe, everything seems to run fine the file assigns permissions to most folders with no issues. However, in some instances I get a message saying that there is not enough quota to process the request. Also I am getting an error saying that the data area passes to the system is too small.

    The data I am passing to the .exe is a simple file path. A side note, I am deleting profile directories in this script, hence the takeown.exe use, some of the files give me access denied, or they will tell me it cant delete the folder because it is not empty, when I look at the folder there is nothing there. Then out of nowhere if I close the folder and reopen it there is a file in there. As you can see I am a little confused and do not know where to go from here. Any thoughts? 

    Just FYI, here is the other thread on my issue .

    https://social.technet.microsoft.com/Forums/en-US/b779a1c2-d383-4342-aba9-bcb2bb19428f/setacl-method-failed-with-error-code-1337?forum=ITCG
    • Edited by Richardlaw Thursday, August 27, 2015 1:43 PM
    Thursday, August 27, 2015 1:42 PM

Answers

  • Hi Richard,

    A side note, I am deleting profile directories in this script, hence the takeown.exe use, some of the files give me access denied, or they will tell me it cant delete the folder because it is not empty, when I look at the folder there is nothing there.

    Sounds like you are getting Access Denied message before you take ownership of profile directories, which is normal.

    Please take ownership first, then delete files.

    Then out of nowhere if I close the folder and reopen it there is a file in there.

    This happens after ownership is taken, after which I assume the account has enough permissions to see contents under the user profile folder.

    Best Regards,

    Amy


    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Edited by Amy Wang_ Monday, August 31, 2015 9:27 AM
    • Proposed as answer by Amy Wang_ Tuesday, September 8, 2015 9:07 AM
    • Marked as answer by Amy Wang_ Wednesday, September 9, 2015 8:53 AM
    Monday, August 31, 2015 9:27 AM