Cannot delete system files created from Windows 10 Media Creation Tool

Page 4 of 7 FirstFirst ... 23456 ... LastLast

  1. Posts : 56,823
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #31

    shingdao said:
    OK, so I dropped cmd.exe into PowerRun and when I open that in PR, it shows the following:

    C:\Users\mhan\Downloads\PowerRun>

    What is the proper command to fully delete the 'bin' folder and all its subfolders/files?
    I tried rmdir /s/q bin but that did not find the specified path. I apologize if this seems obvious but I don't use cmd very much at all .
    You need to be up 1 level. You need to be in
    C:\Users\mhan\Downloads\>

    Then, RD /q /s BIN*.*


    might be easier if you simply add Explorer to the list. Click FILE, and type Explorer.exe, and apply list at bottom. Then double click the Explorer and you can do it naturally. Pics are backwards, sorry.



    Cannot delete system files created from Windows 10 Media Creation Tool-2019-07-21_18h23_36.png
    Attached Thumbnails Attached Thumbnails Cannot delete system files created from Windows 10 Media Creation Tool-2019-07-21_18h22_59.png  
    Last edited by f14tomcat; 21 Jul 2019 at 19:33.
      My Computers


  2. Posts : 56,823
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #32

    @shingdao

    I've added another option for you.
      My Computers


  3. Posts : 23
    Windows 10
    Thread Starter
       #33

    f14tomcat said:
    You need to be up 1 level. You need to be in
    C:\Users\mhan\Downloads\>

    Then, RD /q /s BIN*.*


    might be easier if you simply add Explorer to the list. Click FILE, and type Explorer.exe, and apply list at bottom. Then double click the Explorer and you can do it naturally. Pics are backwards, sorry.



    Cannot delete system files created from Windows 10 Media Creation Tool-2019-07-21_18h23_36.png

    OK, thanks. I added explorer.exe to PowerRun and then double-clicked on that...I take it I then need to go to cmd.exe and execute the command you gave me to delete bin? I naively tried to go straight to the bin folder and delete it but it still requires the same permissions as outside of PowerRun.
      My Computer


  4. Posts : 56,823
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #34

    shingdao said:
    OK, thanks. I added explorer.exe to PowerRun and then double-clicked on that...I take it I then need to go to cmd.exe and execute the command you gave me to delete bin? I naively tried to go straight to the bin folder and delete it but it still requires the same permissions as outside of PowerRun.
    I'll have to admit that has me a bit baffled. Explorer running as TrustedInstaller should have been sufficient. I'm presuming your user account is part of the Administrator's Group, meaning it is an Administrator Account, not basic USER account. It wasn't naive at at, that's exactly what I would have done. You can try opening an Admin command prompt while running this PowerRun Explorer, and do the command I posted. If it still barks, please post the exact message. I haven't run into this restriction in all the times I've used it. Thanks for your patience.
      My Computers


  5. Posts : 23
    Windows 10
    Thread Starter
       #35

    f14tomcat said:
    I'll have to admit that has me a bit baffled. Explorer running as TrustedInstaller should have been sufficient. I'm presuming your user account is part of the Administrator's Group, meaning it is an Administrator Account, not basic USER account. It wasn't naive at at, that's exactly what I would have done. You can try opening an Admin command prompt while running this PowerRun Explorer, and do the command I posted. If it still barks, please post the exact message. I haven't run into this restriction in all the times I've used it. Thanks for your patience.
    Interesting to note that Task Manager shows explorer.exe user name as Matthew and not SYSTEM or TrustedInstaller.

    Cannot delete system files created from Windows 10 Media Creation Tool-screenshot-7-.png
      My Computer


  6. Posts : 56,823
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #36

    shingdao said:
    Interesting to note that Task Manager shows explorer.exe user name as Matthew and not SYSTEM or TrustedInstaller.

    Cannot delete system files created from Windows 10 Media Creation Tool-screenshot-7-.png
    Name won't change. "Run As" means with the privileges of, not the name TrustedInstaller. Still your name, but with higher privileges.
      My Computers


  7. Posts : 16,910
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #37

    What is the proper command to fully delete the 'bin' folder and all its subfolders/files?
    I tried rmdir /s/q bin
    Instead of
    bin
    you must enter the full path to it [enclosing the path in " if it contains any spaces]
    FOR EXAMPLE ONLY
    "C:\Some folder or other\bin"
    [If you want to you can enclose paths in " even if they do not contain any spaces. It is merely a waste of effort but it does no harm.]

    1 First you need to use a Del command with some switches to remove all the files in that folder & its subfolders
    FOR EXAMPLE ONLY
    del /f /q /s "C:\Some folder or other\bin"

    2 Then you can remove the folder itself [together with its subfolders]
    FOR EXAMPLE ONLY
    rd /s /q "C:\Some folder or other\bin"

    [RD is supposed to be able to do the job on its own without any use of the Del command but it sometimes fails to do so]


    Note - You can see the syntax for using del and rd by entering
    del /?
    rd /?
    in any command prompt window
    [and the same applies to most other commands]

    Denis
    Last edited by Try3; 22 Jul 2019 at 00:23.
      My Computer


  8. Posts : 56,823
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #38

    I just noticed something in your pic. You only have 1 Explorer running. One. When I do the same thing, I have 2. The one that was running, and the new one started under PowerRun. Verify again that you actually did run it in PowerRun. There should be 2 instances.

    Cannot delete system files created from Windows 10 Media Creation Tool-2019-07-21_20h08_31.png
      My Computers


  9. Posts : 16,910
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #39

    Matthew,

    If you want some reassurance that you have higher status using a cmd window within PowerRun then open a command prompt within it and enter
    whoami

    Cannot delete system files created from Windows 10 Media Creation Tool-powerrun-whoami.png

    Note - I have not yet tried the advice on the PowerRun webpage to use TrustedInstaller status but I assume that if I did the result would also be shown in response to whoami.

    Corrected later - After seeng f14tomcat's posted diagrams, I checked and I had the TrustedInstaller set in PowerRun. So nt authority\system is evidently what is displays for that condition.

    Denis
    Last edited by Try3; 21 Jul 2019 at 20:00.
      My Computer


  10. Posts : 23
    Windows 10
    Thread Starter
       #40

    I was able to confirm that TrustedInstaller has full control over explorer.exe from PowerRun.

    This is the message I keep getting whether using PowerRun or not:

    Cannot delete system files created from Windows 10 Media Creation Tool-screenshot-9-.png

    I wasn't sure how to execute the command via cmd.exe via explorer.exe other than to create a desktop shortcut and then open as Admin. Once I do that cmd opens with C:\Users\m_han\ but I need to be in downloads. Not sure how to best proceed. If I put in your commands as is here it gives me a syntax error.
      My Computer


 

  Related Discussions
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 00:20.
Find Us




Windows 10 Forums