Windows 10: File permissions to delete file Solved

Page 2 of 2 FirstFirst 12
  1.    3 Weeks Ago #11

    Do the same process for other names. You've done it for Everyone, now also do the same thing for those:

    Administrators

    AND
    If you have a user name on the computer, type in that user name. For example, my user name is "Admin"; look at the picture to see what I mean

    Click image for larger version. 

Name:	Login Screenshot.png 
Views:	9 
Size:	1.65 MB 
ID:	141000
      My ComputerSystem Spec

  2.    3 Weeks Ago #12

    pepanee said: View Post
    Do the same process for other names. You've done it for Everyone, now also do the same thing for those:

    Administrators

    AND
    If you have a user name on the computer, type in that user name. For example, my user name is "Admin"; look at the picture to see what I mean

    Click image for larger version. 

Name:	Login Screenshot.png 
Views:	9 
Size:	1.65 MB 
ID:	141000
    Click image for larger version. 

Name:	Capture.JPG 
Views:	26 
Size:	19.6 KB 
ID:	141009

    It gave me a security error on giving me security clearance.
      My ComputerSystem Spec

  3.    3 Weeks Ago #13

    What did the Continue button do? Did it give you a different error box?

    Do the whole owner thing on the main folder that you want to delete (which contains all the files)

    If that doesn't work, do the owner thing on the Steam folder itself.
      My ComputerSystem Spec


  4. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       3 Weeks Ago #14

    pepanee said: View Post
    What did the Continue button do? Did it give you a different error box?

    Do the whole owner thing on the main folder that you want to delete (which contains all the files)

    If that doesn't work, do the owner thing on the Steam folder itself.
    Windows is extremely confusing in its permissions and file ownership.

    If Taking Ownership of the files does not work, then the ACL and permissions are misconfigured.

    Permissions precedes the ownership, you can have ownership but incorrect permissions in accordance with the ACL Access Control Lists (Windows).

    Permissions enable the owner of each secured object, such as a file, Active Directory object, or registry key, to control who can perform an operation or a set of operations on the object or object property
    Microsoft - How Permissions Work

    I suggest that you open powershell (Search > type powershell > Right click > run as admin) and execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.

    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer, which I presume you are an Administrator.

    And reboot the computer, and finally attempt to delete the file after attempting to retake ownership.

    If that does not work, then I suggest using a third party utility known as UnlockIT:
    Downloads - UnLock IT

    And download, install. Ensure you select customized installation.

    Right click the folder that contains the files or the files individually that you would like to delete, and follow as here:




    Then this should delete all files you right clicked upon after restarting the system.

    You should not run into issues regarding permissions after this, and if you do, post again and I'll look into it.

    Side note: often times malware tends to hijack a system and fluff itself in permissions that benefit itself.
      My ComputerSystem Spec

  5.    3 Weeks Ago #15

    Hydrate said: View Post
    Windows is extremely confusing in its permissions and file ownership.

    If Taking Ownership of the files does not work, then the ACL and permissions are misconfigured.

    Permissions precedes the ownership, you can have ownership but incorrect permissions in accordance with the ACL Access Control Lists (Windows).

    Microsoft - How Permissions Work

    I suggest that you open powershell (Search > type powershell > Right click > run as admin) and execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.

    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer, which I presume you are an Administrator.

    And reboot the computer, and finally attempt to delete the file after attempting to retake ownership.

    If that does not work, then I suggest using a third party utility known as UnlockIT:
    Downloads - UnLock IT

    And download, install. Ensure you select customized installation.

    Right click the folder that contains the files or the files individually that you would like to delete, and follow as here:




    Then this should delete all files you right clicked upon after restarting the system.

    You should not run into issues regarding permissions after this, and if you do, post again and I'll look into it.

    Side note: often times malware tends to hijack a system and fluff itself in permissions that benefit itself.
    I am trying this, but it's taking a very long time.
      My ComputerSystem Spec


  6. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       3 Weeks Ago #16

    Scoka said: View Post
    I am trying this, but it's taking a very long time.
    Yes. The reason being it selects each file inside of your hard drive and re-corrects the permissions and regrants your Administrator account full access rights over all files.

    This can take a while depending on your hardware specs, of course.

    Please be patient.
      My ComputerSystem Spec

  7.    3 Weeks Ago #17

    @Hydrate, you must be careful with your suggestions.

    Hydrate said: View Post
    execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.
    No it doesn't. It replaces ACLs with inherited ACLs. A default Windows install does not take inherited permissions from root.

    Hydrate said: View Post
    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer
    Again, no it doesn't. It grants full access to administrators group which Windows does not do and would be unwise to do.

    There is no way (apart from a clean install) to reset default permissions any more.

    If OP wants to delete a specific file a safer way would be to change the permissions on that specific file (by taking ownerhip and granting permissions) or use unlocker which will do it at boot.

    Changing permissions on the whole C drive is a bad idea.
      My ComputerSystem Spec

  8.    3 Weeks Ago #18

    Hydrate said: View Post
    Yes. The reason being it selects each file inside of your hard drive and re-corrects the permissions and regrants your Administrator account full access rights over all files.

    This can take a while depending on your hardware specs, of course.

    Please be patient.
    Thank you very much, UnLock IT has worked very well.
    Unfortunatly, after I tried the first thing you suggested, it flashes and error message when I try to click on any file
    Click image for larger version. 

Name:	captain.JPG 
Views:	23 
Size:	15.1 KB 
ID:	141031
      My ComputerSystem Spec

  9.    3 Weeks Ago #19

    Assuming there is nothing you want in your recycle bin, if it is corrupted you can delete the $recycle.bin file(s) from all your partitions and they will be regenerated next boot.

    Fix: Recycle Bin is corrupted
      My ComputerSystem Spec


  10. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       3 Weeks Ago #20

    My apologies, I should have known better to reset simply the affected targeted directory.

    Again, if there are any issues please let me know thread starter.
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
Hi, I'm using the Tuneup 2016 app, this suite has a program called Tuneup shredder, I wonder if someone knows any alternative of this tool. This app safes delete the files. I'm planning to stop using Tuneup but i find very usefull the file...
Hello, I just installed the latest build of Windows 10 and am running into some problems that never occurred to me before. My previous version of Windows 10 failed because of some system restore custom app that I downloaded so I had to reinstall....
I have: Drive 1 - SSD (boot) Drive 2 - HDD (storage) Drive 3 - HDD (storage) Drive 4 - External HDD (storage)
I've tried instruction after instruction and cannot delete a file. It's from a programme called Solidworks, and is left in the programme file called 3ds Light.otf. I've tried deleting in Safe mode Using deleting/unlocking utlities File Assassin...
The other day, I was trying to fix Windows Default Apps not working by adding "ALL APPLICATION PACKAGES" to the following directories as indicated here: https://support.microsoft.com/en-us/kb/2798317 However, it seems to have messed up the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:43.
Find Us