Command Line Prompts

Discussion in 'other software & services' started by Rico, May 1, 2015.

  1. Rico

    Rico Registered Member

    Joined:
    Aug 19, 2004
    Posts:
    2,286
    Location:
    Canada
    It took me awhile to find a few cmd. prompts, so I thought it might be helpful to enter some command lines, & the community contribute some command line goodies:

    1. dism.exe /online /cleanup-image /restorehealth

    2. fsutil resource setautoreset true C:\

    3. from safe mode with networking:

    Type net user removevirus /add <enter>
    Type net localgroup administrators removevirus /add <enter>
    Type shutdown -r <enter>
    reboot and choose removevirus

    #1 & 2 From an elevated CMD prompt. I've found helpful with Windows Updates issues
    #3 Can be helpful removing bugs

    I've used #1 & 2 on win 8.1, not sure if both are available in windows predecessors

    Today I searched my records & online for #1 as currently I have WU issues. #1 gets 40% done, then 3 hrs later it's still 40% completed. I'll try again & see if it completes.

    If you guys feel this has merit, please contribute some cmd lines.
     
  2. marzametal

    marzametal Registered Member

    Joined:
    Mar 19, 2014
    Posts:
    766
    This could turn into a hot topic. I assume another one would be for Linux terminal commands as well... just sayin'...
     
  3. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    23,936
    Location:
    UK
  4. roger_m

    roger_m Registered Member

    Joined:
    Jan 25, 2009
    Posts:
    8,627
    @stapp Thanks for that! I've had an ongiong issue with the source files not being able to be downloaded, even when I extracted the files from the Windows 10 ISO and manually specified the location with the DISM command. I followed the instructions in the link you posted, and it enabled the DISM command to finish.

    It seems my Windows 10 install is still heavily corrupted, but it's a start anyway.
     
  5. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    23,936
    Location:
    UK
    Glad to hear it worked for you roger :thumb:
     
  6. roger_m

    roger_m Registered Member

    Joined:
    Jan 25, 2009
    Posts:
    8,627
    @stapp It worked, but unfortunately it did not fix any of the issues I am having with Windows 10. Metro apps (including Windows Update) close as soon as they are opened, and sfc will not finish running.
     
  7. Rico

    Rico Registered Member

    Joined:
    Aug 19, 2004
    Posts:
    2,286
    Location:
    Canada
    Hi Guys,

    I ran dism.exe restorehealth command for 12 hours, no errors, it just gets stuck at 40% complete, and won' advance.

    Any suggestions on how to repair greatly appreciated
     
  8. roger_m

    roger_m Registered Member

    Joined:
    Jan 25, 2009
    Posts:
    8,627
  9. TairikuOkami

    TairikuOkami Registered Member

    Joined:
    Oct 10, 2005
    Posts:
    3,418
    Location:
    Slovakia
    Thanks, an interesting command, I guess it fixes problem with DISM unable to find files, I have added it to my batch file to fix issues:

    Code:
    fsutil resource setautoreset true C:\
    Dism.exe /online /Cleanup-Image /StartComponentCleanup
    sfc /scannow
    Dism.exe /Online /Cleanup-Image /RestoreHealth
    sfc /scannow
    Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase
    pause
     
    Last edited: May 3, 2015
  10. J_L

    J_L Registered Member

    Joined:
    Nov 6, 2009
    Posts:
    8,738
  11. Rico

    Rico Registered Member

    Joined:
    Aug 19, 2004
    Posts:
    2,286
    Location:
    Canada
    Hi

    I did try Stapp's suggestion pasted the commands then rebooted & allowed restore health to run for more than 12 hrs. No error mesg. just sitting at 40%.

    ran dism online checkhealth the image is repairable. next would be restorehealth which gives 12 14 hrs at 40% no error msg. o_Oo_Oo_O
     
  12. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,113
    Location:
    NSW, Australia
    Rico,

    I had that issue last year. Corrupted Store that wasn't fixed by Dism.exe /Online /Cleanup-Image /RestoreHealth.

    I don't recall how I fixed it, maybe this...

    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
     
  13. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,796
    Location:
    .
  14. Rico

    Rico Registered Member

    Joined:
    Aug 19, 2004
    Posts:
    2,286
    Location:
    Canada
    Just guessing could the trouble in the store, have been eliminated by resetbase. Delete the offender hence nothing to fix problem gone?

    I tried "disc cleanup" with system files, this seems to be in slow motion. CCleaner then Privazer, then I'll try disc cleanup again.

    I would guess disc cleanup system removes the uninstallers from windows updates, this used to be available on ccleaner.

    Weren't the uninstallers "updates" started with $ & blue symbol, or does disc cleanup do something different to the updates?
     
  15. JAB76

    JAB76 Registered Member

    Joined:
    Sep 4, 2015
    Posts:
    1
    I have a Dell Inspiron running Windows 8.1 64 something. I appear to have Rico's issue. I have been dealing with windows update issues since Nov 2014. It all seemed to start with KB3000850. I thought I found a work around and was successfully installing updates one by one in date and numerical order until a couple of months back I realized updates I thought had successfully installed had failed. As of a couple of months ago I had 82 failed updates with 24 being considered important. I am sure I am even further behind now as Microsoft pushes updates constantly. In the history it says KB3000850, KB305815, and KB3057839 were pending restart. Do not understand that. Anyway I dowloaded KB3000850 and related updates manually to try another install. Same message after rebooting "could not process the updates undoing changes do not turn off your computer". That message makes me want to hit and scream btw. Since then I have dived into online forums I have discovered my command prompt lines I have learned what a clean boot slate is I have disabled any 3rd party software such as Norton and my online crashplan (have no idea if I'll ever get crashplan running again poor thing.)

    I was told after running scanhealth the component store is repairsble and operation completed successfully. Restorehealth progresses to 40% within 20 minutes and then stays stuck at 40%. For 15 hours now. This is longest I have let it go. I stopped it once at 7 hours and received "error 1223 operation was incomplete because of a cancel request" I am to the point of losing hope I will ever get the update issue fixed for 8.1 and think now maybe my best course of action would be to just undo all the clean boot stuff, re-enable my crashplan backup and ensure my files are fully backed up and just upgrade to Windows 10 and hope for better luck. I have never had windows update issues before. I used to keep windows updated automatically and had no problems with them being updated. Oh I also tried another thing once when told renaming a pending file in a windows update file folder could take care of the issue. It didnt matter how many times I tried to perform the action as administrator it would not let me rename the pending.xml files to the pending_old.xml. (Found this possible solution on Dennis Faas site) apologies for length....any advice? Should I let restorehealth keep running or wave the white flag and just focus on backing up my files?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.