Script to Take Ownership and Grant Full Control

Discussion in 'Windows Vista' started by admin, May 24, 2007.

  1. admin

    admin Administrator
    Staff Member

    Apr 24, 2007
    229
    99
    10
    Use this script to easily take ownership and grant Administrators full control access from command prompt.

    Warn that the script works recursively.

    More information here.
     
  2. Elfin

    Elfin MDL Novice

    Jul 25, 2007
    1
    0
    0
    Thank you Thank you.

    I had a weird goof lately, While selecting a directory to install a program, to I accidently drug and dropped a large folder into another directory. This was in Win XP.

    I had to use Vista to even get it so that I could see the directory and contents. Somehow the drag and drop caused the folder permissions to be lost for the whole large backup directory.

    Well I finally did figure out the permissions setting routine by trial and error, but realised I would have to do it for each and every file This directory has 412 files in it.

    So a little googling later and I found this thread. What a Lifesaver this little command is. It worked a treat and reset all of the permissions back to normal.
    I am one happy Nerd, Thank you.

    P.s. Sorry I am a bit rambly but I am very happy at the moment.
     
  3. addbudy

    addbudy MDL Novice

    Jul 28, 2007
    1
    0
    0
    help

    hello, I have a serious problem:(:(, I need its aid, that tendria that to write exactly in Cmd.exe? if I want to have control of “C:\windows”? thanks, hopefully can help me :D:D
     
  4. reilus

    reilus MDL Novice

    Aug 25, 2007
    1
    0
    0
    how do I get the permissions back to normal????

    Thanx...
     
  5. William26

    William26 MDL Novice

    Feb 11, 2008
    1
    0
    0
    the file downloads to desktop but when I run it, it doesn't seem to unzip and give me the .reg file. Is there a step I am missing? Or is the link not properly connected to the file?

    thanks
     
  6. TheShadowFL

    TheShadowFL MDL Novice

    Mar 23, 2008
    2
    0
    0
    to take all the pain and sorrow out of UN-Zipping downloaded files,
    get and install "7Zip". (it's FREE)

    Then all you have to do to unzip a file is right click it.
    Then on the drop down menu, select 7Zip....on it's own drop down menu,
    select 'Extract Here' to unzip the file in it's present location. Job done!

    Like so many, I suffered with zip'd files for years, until finally getting 7Zip.
    It's by far the best archiving program I've ever used.

    Cheers Mates!
    The Shadow :cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. glasscreations

    glasscreations MDL Novice

    Mar 24, 2008
    1
    0
    0
    Can you simplify the instructions I am an advanced computer user but as far as old school scripts go I'm lost. I came into computers at the end of the dos era so I know the basics of dos but not a whole lot of tricky commands.

    Do I need to edit the script for it to work?
    Do I need to place it in a specific place?
    Can I make it change all files in a folder and sub folders at once?

    Can you give me step by step instructions with explanations.
     
  8. Heidegger

    Heidegger MDL Member

    Mar 17, 2008
    136
    51
    10
    Here's a reg file that adds a Take Ownership command to your context menu for all items and directories.
     
  9. persuasive

    persuasive MDL Novice

    Feb 26, 2008
    1
    0
    0
    Thanx a lot for the reg file!!!:)
     
  10. hanzzon2

    hanzzon2 MDL Member

    Dec 1, 2007
    113
    21
    10
    Take note that the group "administrators" is so called only on the English language version of Windows

    If you have a localized version (does not apply to English with a MUI language pack)
    You will need to replace the word a"administrator" in the script with whatever it's called in your localized version of Windows

    For Swedish this would be Administratörer for example
     
  11. ShadowKaito

    ShadowKaito MDL Novice

    Apr 11, 2008
    3
    0
    0
    Lost

    I'm still a bit lost.

    And whenever I try to open TC it shutsdown automatically.

    I don't know what else to do.

    I have Vista Home Premium, just for those who are wondering.

    :(:(:(:(
     
  12. N3RO

    N3RO MDL Novice

    May 14, 2008
    1
    0
    0
    Hi guys,

    Do you know some way to take ownership of Windows XP?

    System32 folder ;)

    Thanks,
     
  13. grumps

    grumps MDL Novice

    May 12, 2007
    36
    2
    0
    Great thanks.:)
     
  14. tabristow@nc.rr.com

    tabristow@nc.rr.com MDL Novice

    May 16, 2008
    1
    0
    0
    I need help

    I'm new to this group and am probably not as advanced as most of the users. Long Story short - tried to install Corel Painter X - I get this screwy message "The application failed to initialize properly (0xc0000022). Click OK to terminate the application."

    After a lot of research I figured out it was a permissions problem. I have Vista Business 32-bit..........I'm the administrator but for some reason can not change permissions to full control. Everything is grayed out. I downloaded and unzipped the "takecontrol" file you offered, but I evidentally didn't do something correct because nothing has changed. Can someone tell me what to do. I was so excited to finally have this program and I already have 8 hours into trying to make it work. I tested it on my new laptop and everything is perfect - but I really need it on this machine and not the laptop.
     
  15. petar

    petar MDL Expert

    Apr 5, 2008
    1,188
    86
    60
    Double click on the reg file and click ok when prompted.
    Open Explorer(My Computer), right click on C: and select Take Ownership.
    There will be a litle waitinng couse the script has to process all the files on the drive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. jangell2

    jangell2 MDL Novice

    May 17, 2008
    2
    0
    0
    I'm not clear how to run a reg file. If I double-click on it thru winexp, it opens notepad. I tried right-click, merge and that opened notepad. How do I run it? I'm using Vista Home Premium.
     
  17. petar

    petar MDL Expert

    Apr 5, 2008
    1,188
    86
    60
    You seem to have a file asociation problem..
    Do the folowing:
    1. Right click on the file and choose "Open With"
    2. Browse for the regedit.exe
    3. It can be found in c:\windows\regedit.exe
    4. Click OK.
    5. Double click on the file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. jangell2

    jangell2 MDL Novice

    May 17, 2008
    2
    0
    0
    Thank you. I had already opened up regedit and done an import which worked fine. I sure find it odd that a .reg file isn't already associated with regedit.
     
  19. Activex

    Activex MDL Novice

    Jun 20, 2008
    1
    0
    0
    Thank you, it's works fine.

    opining the reg file.
    then right click on the file and choose take onwership, and that is it !


    Thank you.