Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

taking back permission of files all in 1 go(win 7)


  • Please log in to reply

#1
stinkvis

stinkvis

    New Member

  • Member
  • Pip
  • 9 posts
was wondering if anyone knew of a way to take back permissions(as it says no one has permission of a file yet when i add my name all of them come back so its kinda bugged) all in 1 go without using cmd?(as cmd cant start due to it(even to i fixed cmds permissions it still wont start(if anyone can help me on that to would be nice))) as cmd wont load(regedit to but i have a different program that allows me to change the registry but same with cmd if you know how to get them to run it would be nice)

yes its a bit messy(its 4:27am) been working on trying to fix my pc as i cant reinstall(win installer crashes after the reboot and win 7 is the only os on my pc atm that runs) so if anyone can make any sense of what i said and is willing to help please help :)

btw it says that cmd cant be found(yet its there as i try and launch it from the folder) and for some reason all the files that cant start have copies off it on my usb(that i have in my pc of ages now)

Edited by stinkvis, 17 October 2009 - 09:37 AM.

  • 0

Advertisements


#2
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts
As in all versions of Windows after 2000, you take ownership of a file or group of files by going into Safe Mode (start as normal, keep pressing F8), right-clicking the items you want, selecting Properties and you'll have a security or permissions tab that appears where you can take ownership of what you need. Ignore Regedit, it isn't going to help you.
  • 0

#3
stinkvis

stinkvis

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts
i know that i can do that normally as well without safe mode but in my case a virus that caused my pc to go mental on permissions locked most of the exe's that i have to use and right clicking every single exe then going to security pressing edit and then typing in my name and then adding it pressing apply and then deleting it(only way i can get it to show the original settings) takes ages even for a few files

and i cant re install as setup wont let me(after it reboots)
  • 0

#4
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts
If you want to wipe the machine, boot off your Windows 7 DVD. Don't run setup from within Windows, it's not going to work.
  • 0

#5
stinkvis

stinkvis

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts
ya i kinda figured that out after the first time i did it and it failed a few times anyway i solved it with this little thing

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

used that when running from a bart pe disk to take back control over everything on that drive so that i was able to run the programs i needed to fix it up :)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP