DISM lacking Package Manager commands (Cleanup-image)

scortum

Member
Joined
Mar 13, 2016
Posts
7
Hello everyone,

I seem to have some serious problems with my Windows 10 Build 10.0.10586.113. These started after trying to take Ownership of C:/ (where I installed Windows). I tried this because on several occasions trying to move/copy files in different directories I could not do it (ownership problems seem to be not unusual after upgrading from Win 8). When trying to take ownership of C:/ and all its subdirectories I got several error messages ("Acess denied"). At first I just skipped them, but there where so many my finger just got tired (and it also seemed that something was going wrong). I downloaded a .reg which adds the option "Take Ownership" when right-clicking on a folder. Using this added my user account (with administrator rights) to the security options for the folders but the checkboxes were all empty. However I now could restart the procedure I tried before and this time there were no "Acess denied" errors and afterwards all checkboxes were filled with full acess (and all other options).

For a couple of days all seemed to work fine.

Yesterday I tried to open an *.jpg file and the usual W10 app would not be able to open it anymore. Same when trying to open a pdf using edge. So something was wrong with the apps. All the apps (like calculator, store etc.) just immediately crash. Of course I tried several troubleshootings for this known problem. Nothing worked.

Now I'm trying to repair my system using DISM or an inplace-upgrade.

After spending the last two days trying to fix these problems, I'm kindly asking for your help.

1) I cannot run any of the DISM commands required to repair my Windows build like e.g.
Dism /Online /Cleanup-Image /RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:C:\sources\install.wim:1 /limitaccess (using the install.wim from the latest .iso and for esd the latest build from Media Center respectively)
Same with ScanHealth etc.

I am getting Error 87: cleanup-image unknown
Dism /Online /? lacks the Package Manager commands like Cleanup-Image


2) After running SCF /Scannow the first time it said: no corrupted files. Immediately starting Dism /Online /Cleanup-Image /ScanHealth works and reports no problems.
Opening a new cmd and restarting Dism /Online /Cleanup-Image /ScanHealth gives Error 87: cleanup-image unknown again

3)Trying to do an inplace upgrade with the latest .iso as well as with the Media Center gives me an error during initializing the setup (at 25%); A problem occured. I can just click "OK" here and it stops.

4) Mounted an offline image with dism /offline and used the dism folder of this mounted build to replace it with my own Dism folder in System32 (maybe stupid, but I thought it could repair any corrupted Dism files)

5) If I now run SCF /Scannow "some corrupted files could not be repaired"
Log file attached.

Please help me to get either Dism /online /Cleanup-Image or the inplace upgrade running!
As I use a Windows build with German language I tried to translate the error messages. If something sounds weird just ask.
I cannot attach the DISM.log. It's over 9 MB...
 

Attachments

SFC Scan

  1. Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)
  2. Type cmd in the search box, and then right-click or press and hold on Command Prompt.
  3. Tap or click Run as administrator.
  4. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow

    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log %userprofile%\Desktop\cbs.txt
  5. This will create a file, cbs.txt on your Desktop. Please zip this file and attach to your next post.
    If the zip is larger than 8MB, use a file sharing service such as OneDrive, DropBox, SendSpace, etc. and include the link with your reply.
 
Thanks for helping me, but the attached SCF Details.txt has been created by the program image-health after the SCF run and contains the same info as cbs.log.

EDIT: Dropbox - Logs
 
I'd like to make sure your disk is healthy.

JcJ91sx.png
GSmartControl
Follow the instructions below to test your hard drive health with GSmartControl:

  • Download GSmartControl and save it on your Desktop;
  • Extract the content of the GSmartControl .zip archive and execute gsmartcontrol.exe; To extract you can right-click your mouse on the GSmartControl.zip file and select Extract.
  • Identify your drive in the list, and double-click on it to bring up it's window (usually you'll find your drive by it's size or it's brand name);
  • Go in the Perform Tests tab, then select Extended Self-test in the Test type drop-down list and click on Execute (this test can take a few hours to complete);
  • Once the test is over, the results will be displayed at the bottom of the window. Please copy and paste these results in your next reply;
  • Also, go in the Attributes tab and if you have any entries highlighted in red or pink, copy and paste their name in your next reply (or take a screenshot of the GSmartControl window and attach it in your next reply);
    info_failing.png
 
Oh, you have an SSD. Very good.

Please open an elevated command prompt, then try the following command:

Dism /Online /Get-Drivers
 

Dism /Online /Get-Drivers did not work with my local administrator user account.
I activated the "global administrator account", booted in safe mode and logged in.
Here I could get
Dism /Online /Cleanup-Image /RestoreHealth working
Also the inplace-upgrade using the current TechBench iso which would crash during setup at 25% with my local administrator user account worked using the "global administrator" account .
After the inplace-upgrade I got several "access denied" errors trying to install a program in Program Files (x86) for my l
ocal administrator user account. Ownership of the Progam Files and Windows folders had changed to TrustedInstaller after the inplace upgrade. Manually trying to change ownership to my local administrator account failed. I also could not import any registry keys nor change permission settings in the regedit. Registry size had changed from around 140 mb to 36 mb.
Using the programm Windows Repair from tweaking.com could neither make a registry backup nor replace the registry with an older backup.
Logging in with the global administrator account in safe boot again solved the problem. I used the latest "normal registry size" backup and made the
Windows Repair from tweaking.com repairs reset registry permissions, data ownership permissions.
Afterwards registry in the local administrator user account was fine. But I could not run Dism
Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see

Also
Windows Repair from tweaking.com did well with ownerships for my local administrator user account but seemed to completely have messed up the "global administrator" account: I could not even open explorer, nor access system settings, group policies, msconfig, services. Alle blocked
I thought: Now your're fu***ed. That was 2:am in the morning.

Next day (today): Strangely I could now run another inplace-upgrade this time from my
local administrator user account.
Luckily my "global administrator account" works again and the other one also.
Just one thing: I decided to change my local account from administrator to standard user. However I am not able to change the UAC settings below a certain level (see screenshot). Could you help me with this? Oh, and my Windows Apps and App Store are still totally corrupted: They immediately crash. Used powershell commands acoording to a Apps troubleshooting tutorial to unregister and register them again and reinstall the store but nothing worked.
And thank you very much for your help!
uacproblem.jpg
 
Have you tried using the 'windows store' repair in the Windows All In One Repair program? Make sure to deselect all other options first :)
 
Screenshot_2.jpg

Yes, I tried this. But it had no effect.

Could you also comment on the UAC question, please?
 
The UAC behavior for a standard user account is by design, it needs to be able to prompt for admin approval for programs that require administrator rights since your account does not have the required permissions.
 
DISM /RestoreHealth Scan

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.

  1. Right-click on the Start
    w8start.png
    button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter

    Dism /Online /Cleanup-Image /RestoreHealth

  3. When DISM finishes scanning your component store, zip up and attach your CBS log to your next post:

    C:\Windows\Logs\CBS\CBS.log

If the zip file is larger than 8MB, please use a file sharing service such as OneDrive, DropBox, SendSpace, etc. and include the link with your reply.
 
The UAC behavior for a standard user account is by design, it needs to be able to prompt for admin approval for programs that require administrator rights since your account does not have the required permissions.

Do you now a way to change the UAC settings for a standard user account? Maybe using an admin account to change the UAC settings? I've read people completely disabled UAC, does this mean, they all had admin accounts (which is not the default setting if you create a user account after upgrading/installing W10)

View attachment dism.log
 
I just found out I can't open the submenu system recovery under the menu recovery. When I click on it, nothing happens. How could I repair that?
 
The UAC behavior for a standard user account is by design, it needs to be able to prompt for admin approval for programs that require administrator rights since your account does not have the required permissions.

Do you now a way to change the UAC settings for a standard user account? Maybe using an admin account to change the UAC settings? I've read people completely disabled UAC, does this mean, they all had admin accounts (which is not the default setting if you create a user account after upgrading/installing W10)

View attachment 19730

You can disable UAC using group policy (or by editing the registry).

Run Regedit as administrator and browse to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system
Look for these values:
ConsentPromptBehaviorAdmin
ConsentPromptBehaviorUser
EnableLUA
PromptOnSecureDesktop

Change the data for each of these to 0

These settings will prevent any UAC prompts from appearing. You will not be able to change any Windows settings that require administrator privileges from your standard user account after this change.
Windows will not prompt for admin approval for any programs even if you choose run as administrator. Any programs that require administrator privileges to function will not work in your standard user account.

In short, with these settings in place you will have to log into the administrator account to change anything or install software.

You can read more here: UAC Group Policy Settings and Registry Key Settings
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top