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:
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.
Can someone explain this?
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
Correct. Also found:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn898551(v=vs.85).aspx
Search for “cannot use this command” (M$ makes it hard AND tricky)
The question is asking to remove an MSU so why do you think you need to capture and apply image?
I have a question for you, sir. How did you pass 70-410??????
Why are you so ignorant, it’s not like his exam was solely based on DISM questions….
Agree with Tim
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.
Hands-On Study Guide For Exam 70-411: Administering Windows Server 2012 R2, p24.
https://books.google.pl/books?id=L5d7BAAAQBAJ&pg=PA24&lpg=PA24&dq=windows+server+2012+remove+the+MSU+package+from+the+image&source=bl&ots=efdIFoM0fn&sig=RhNzjsaPLDmvoYGTqP5wUCcJW1A&hl=pl&sa=X&redir_esc=y#v=onepage&q=windows%20server%202012%20remove%20the%20MSU%20package%20from%20the%20image&f=false
thers notink about wusa.exe
dism … /remove-package and /commit
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.
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.
Sorry…
Swap the DISM /Cleanup-image and unmount commands
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.
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.
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
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.