Cannot delete system files created from Windows 10 Media Creation Tool Solved

Page 4 of 7 FirstFirst ... 23456 ... LastLast
  1. f14tomcat's Avatar
    Posts : 42,553
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #31

    shingdao said: View Post
    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.



    Click image for larger version. 

Name:	2019-07-21_18h23_36.png 
Views:	1 
Size:	76.9 KB 
ID:	240888
    Attached Thumbnails Attached Thumbnails 2019-07-21_18h22_59.png  
    Last edited by f14tomcat; 21 Jul 2019 at 19:33.
      My ComputersSystem Spec

  2. f14tomcat's Avatar
    Posts : 42,553
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #32

    @shingdao

    I've added another option for you.
      My ComputersSystem Spec

  3.    #33

    f14tomcat said: View Post
    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.



    Click image for larger version. 

Name:	2019-07-21_18h23_36.png 
Views:	1 
Size:	76.9 KB 
ID:	240888

    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 ComputerSystem Spec

  4. f14tomcat's Avatar
    Posts : 42,553
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #34

    shingdao said: View Post
    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 ComputersSystem Spec

  5.    #35

    f14tomcat said: View Post
    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.

    Click image for larger version. 

Name:	Screenshot (7).png 
Views:	2 
Size:	698.0 KB 
ID:	240898
      My ComputerSystem Spec

  6. f14tomcat's Avatar
    Posts : 42,553
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #36

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

    Click image for larger version. 

Name:	Screenshot (7).png 
Views:	2 
Size:	698.0 KB 
ID:	240898
    Name won't change. "Run As" means with the privileges of, not the name TrustedInstaller. Still your name, but with higher privileges.
      My ComputersSystem Spec


  7. Try3's Avatar
    Posts : 2,318
    Windows 10 Home x64 and Pro x86
       #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; 4 Weeks Ago at 00:23.
      My ComputerSystem Spec

  8. f14tomcat's Avatar
    Posts : 42,553
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #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.

    Click image for larger version. 

Name:	2019-07-21_20h08_31.png 
Views:	1 
Size:	182.5 KB 
ID:	240899
      My ComputersSystem Spec

  9. Try3's Avatar
    Posts : 2,318
    Windows 10 Home x64 and Pro x86
       #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

    Click image for larger version. 

Name:	PowerRun WhoAmI.png 
Views:	16 
Size:	3.4 KB 
ID:	240902

    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 ComputerSystem Spec

  10.    #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:

    Click image for larger version. 

Name:	Screenshot (9).png 
Views:	5 
Size:	1.35 MB 
ID:	240900

    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 ComputerSystem Spec


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

Related Threads
I use the Media Creation Tool to create a bootable USB. When Ive clean installed Ive always waited until the installation has completely finished and Im at the Windows desktop. Only then do I remove the Windows 10 USB flash drive. The USB flash...
Using my old Windows 7 x64 Ultimate machine, I have created a bootable thumb drive using the Media Creation Tool but the thumb drive is not being recognized by the new (target) PC where I want to install Windows 10, which is running a Gigabyte...
Hi, Install windows 10 and confirm activation as suggested in forums. Downloaded Windows Media Creation Tool to create fresh reinstall. Ran it to create 64 bit ISO. Now using the ISO to reinstall windows 10. At 30% restore, it failed. I tried...
Bit of background: Was getting 8024601 errors when attempting to upgrade with the Windows Update method. It would start installing, get to 85% before stopping for a while. Then it would finally reset, only to boot up win 8.1 and Windows update would...
When using the Media Creation Tool from Microsoft what is the size of the ISO that is created for X64 Windows Pro? The one I created is smaller than one I created from the install.esd file. The size I see is 3.10 GB (3,333,357,568 bytes). Can that...
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 23:56.
Find Us