Which three actions should you perform in sequence?

DRAG DROP
You have a WIM file that contains an image of Windows Server 2012 R2.
Recently, a technician applied a Microsoft Standalone Update Package (MSU) to the image.
You need to remove the MSU package from the image.
Which three actions should you perform in sequence?
To answer, move the appropriate three actions from the list of actions to the answer area and arrange them in
the correct order.

DRAG DROP
You have a WIM file that contains an image of Windows Server 2012 R2.
Recently, a technician applied a Microsoft Standalone Update Package (MSU) to the image.
You need to remove the MSU package from the image.
Which three actions should you perform in sequence?
To answer, move the appropriate three actions from the list of actions to the answer area and arrange them in
the correct order.

Answer: See the explanation

Explanation:

Box 1:

Box 2:

Box 3:

Note:
* At a command prompt, specify the package identity to remove it from the image. You can remove multiple
packages on one command line.
DISM /Image: C:\test\offline /Remove-Package /PackageName: Microsoft.Windows.Calc.
Demo~6595b6144ccf1df~x86~en~1.0.0.0 /PackageName: Micro
/Cleanup-Image
Performs cleanup or recovery operations on the image.



Leave a Reply 16

Your email address will not be published. Required fields are marked *


sepp

sepp

Can someone explain this?

Tim

Tim

This is not correct.
The correct answer is Apply image, Wusa, Capture image.
Required because is is not possible to remove a MSU offline with DISM, only CAB files are supported.

Source: https://technet.microsoft.com/en-us/library/hh825265.aspx

nijntje

nijntje

Agree with Tim

bruce941

bruce941

OK – so we’ve eliminated the /removepackage option. That leaves us with: /capture-image, /apply-image, /cleanup-image and wsus.exe. I believe we can also now eliminate the /cleanup-image option.

Cleaning up all Mounted Wim Images

This operation will search for all the stale or corrupted files in your machine and clean it up! – dism /cleanup-wim

The /Cleanup-Wim command is only used if there is any issue with the mount points, that means when any of the mounted images are shown as in the “Invalid” state. You can run the cleanup command to delete these abandoned resources at the corrupted mount points. There is no need to run the cleanup command every time when you are done with servicing the mounted images, but only when you run the /get-mountedwiminfo command and found that there are some mounted images showing the “Invalid” status.

https://www.msigeek.com/2635/unmount-and-clean-up-a-wim-image-using-deployment-image-servicing-and-management-dism

So, this leaves us with just these three remaining: /capture-image, /apply-image and wsus.exe. Therefore, I agree with Tim. You have to apply the image, clean it up (wsus) and then capture it.

Hal

Nick

Nick

Clear as mud , but here goes:-
1. DISM /capture-image — Captures an image of a drive to a new .wim file
https://technet.microsoft.com/en-us/library/hh825258.aspx
2. WUSA /uninstall — Uninstalls the specified package or KB number.
https://support.microsoft.com/en-us/kb/934307
3. DISM /apply-image — Wouldn’t you need to apply the image after the uninstall using WUSA?

I personally would have DISM /commit-image to make sure of the changes..

Regards to the rest of the options:-

https://technet.microsoft.com/en-us/library/hh825265.aspx

DISM /Cleanup-image – not needed as not mention of boot failure or issues with the image

DISM /Remove-Package {/PackageName: | /PackagePath:}
Removes a specified .cab file package from the image. Only .cab files can be specified. You cannot use this command to remove .msu files.

Fools gold

Fools gold

I don’t believe that this question/answer selection is correct/complete.

DISM /Capture-Image – Why do you need to capture an image, the question is not asking you to create a WIM file, the WIM file already exists.

Surely there should be a mount command as one of the options in order to mount the WIM then using WUSA.exe to remove/uninstall the .MSU/Package.

Then DISM /Cleanup-Image

I would also have expected an Unmount option in order to unmount the image and commit the changes.

As I said above, I don’t believe this question/answers are complete, please correct me if I am missing something here.

Fools gold

Fools gold

Sorry…

Swap the DISM /Cleanup-image and unmount commands

David

David

dism /Capture-Image
Captures an image of a drive to a new .wim file. Captured directories include all subfolders and data. You cannot capture an empty directory. A directory must contain at least one file.
You can capture the image as a Windows image (.WIM) file or a set of split Windows image (.SWM) files; this option doesn’t support capturing a virtual hard disk (VHD) file.

Wusa.exe /uninstall
Uninstalls the specified package or KB number
To then uninstall the package (if you dare), use the /uninstall option. In this command, you don’t need to provide the path, only the kb number, along with the /kb option:
wusa.exe /uninstall /kb:2862152 /quiet /norestart

dism /apply-image
Applies an image to a specified drive.
You can apply an image from a Windows image (.WIM) file or a set of split Windows image (.SWM) files; this option doesn’t support applying an image from a virtual hard disk (VHD) file.

kurt

kurt

1. dism/apply-image (to boot destination, then boot this)
2. wusa/uninstall
3. dism/capture…

https://technet.microsoft.com/en-us/library/hh825258.aspx

DISM Image Management Command-Line

Option: /Apply-Image
Applies an image to a specified drive.You can apply an image from a Windows image (.WIM) file or a set of split Windows image (.SWM) files; this option doesn’t support applying an image from a virtual hard disk (VHD) file.

Option:/Capture-Image
Captures an image of a drive to a new .wim file. Captured directories include all subfolders and data. You cannot capture an empty directory. A directory must contain at least one file.

Tomo_Jp

Tomo_Jp

I think
1. DISM /capture-image — Captures an image of a drive to a new .wim file

2. WUSA /uninstall — Uninstalls the specified package or KB number.

3. DISM /apply-image

MJG

MJG

Why would you want to capture the file first? It’s already a .WIM.

We need to apply the image to a directory, then load it, uninstall it and THEN Capture.

You have 1 and 3 reversed.