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.
wrong answer, it should be apply, uninstall and capture
I’m a little confused about this answer to be honest.
Looking at:
http://technet.microsoft.com/en-us/library/dd744559(v=WS.10).aspx
Add or Remove Packages Offline by Using DISM and an Answer File
Dism /Get-WIMInfo
Dism /Mount-WIM
To list the packages: Dism /Image:C:\test\offline /Get-Packages
to remove: DISM /Image:C:\test\offline /Remove-Package /PackageName:Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0 /PackageName:Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~x86~~6.1.6801.0
Dism /Unmount-WIM /MountDir:
Why wsus /unistall?!??!
This shouldn’t be a question to any exam…
it’s crap.
/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.
http://technet.microsoft.com/en-us/library/hh824838.aspx#BKMK_remove
1. Dism /Get-ImageInfo
2. Dism /Mount-Image
3. DISM /Remove-Package
4. Dism /Unmount-Image
Where are Capture, Apply, Uninstall, Cleanup ?!?
agreed, I don’t see any reason to use “/clean-up” & “wusa.exe” commands.
https://technet.microsoft.com/en-us/library/hh825265.aspx
You cannot use this command to remove .msu files.
So I agree with John B, apply -> wusa -> capture
Agreed. Answers *should* be
/Mount-Image
/Remove-Package
/Commit
Answers available are incorrect.
http://www.mcse2014.com/Exams/free-microsoft-mcse-70-411-question-and-answer-4.Html
‘dism.exe/apply’, ‘WUSA.exe’, ‘dism.exe/capture’
Check here:
https://technet.microsoft.com/en-us/library/dd744311(v=ws.10)
Removes a specified .cab file package from the image. Only .cab files can be specified. You cannot use this command to remove .msu files.
Shows the updates that are installed: (But this command is not available in the answer section so we can asume we know the exact update that needs to be removed)
dism /online /get-packages /format:table
Removes the update that you select (extract the msu file so you can select the cab file):
DISM.exe /Online /Remove-Package /PackagePath:THE_UPDATE.cab
Cleanup the image after the package is removed
Capture the image so the image is ready for use without the MSU installed this tim
I think the correct answer is: Remove, cleanup, capture
id say answer is good as it is on question. MSU contains cab files the it is extraced installing windows. then you use wuxa.exe uninstall you still have files left (cab files) rubish so you remove cabs wit Dism remove pakage as you can point path directly to cab files and at the end you use dism cleanup
so wuxa.exe uninstall
dism removepakage
dism cleanup
id say answer is good as it is on question. MSU contains cab files then it is extraced installing update in to windows. then you use wuxa.exe uninstall you still have files left (cab files) rubish so you remove cabs wit Dism remove pakage as you can point path directly to cab files and at the end you use dism cleanup
so wuxa.exe uninstall
dism removepakage
dism cleanup
“Recently, a technician applied a Microsoft Standalone Update Package (MSU) to the image.
You need to remove the MSU package from the image.”
I don’t know why people keep saying use dism /remove-package, people have been saying this does not work with .msu files, check the command reference for 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.
”
https://technet.microsoft.com/en-us/library/hh825265.aspx
so only method which will work is apply, uninstall (wusa) and then re-capture…very long winded, but I am sure this is getting at “do you know DISM only removes .cab files”
You had to extract the contents of a MSU file and instead use the .CAB file of the package in order to install or uninstall using the Package Manager tool
http://blogs.technet.com/b/askcore/archive/2011/02/15/how-to-use-dism-to-install-a-hotfix-from-within-windows.aspx
/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.
https://technet.microsoft.com/en-us/library/hh825265.aspx
I don’t find any information how wusa.exe can be used to modify a mounted image. IMHO it is only able to modify the local runtime instance of an OS.
This article states that DISM can also process .msu files, it is even explained in the very first sentence:
https://technet.microsoft.com/en-us/library/hh825265.aspx
so why use /cleanup then? Indeed it’s not necessary, but you just do not have any other option to choose that would make any sense…
therefore my vote goes for:
dism/remove
dism/cleanup
dism/apply
other reasonable opinions with concrete sources?
after playing around with similar DISM usage I’d go for:
1. dism/apply-image (to boot destination, then boot this)
2. wusa/uninstall
3. dism/capture…
(the above article is crappy as it states later that quite some operations are only for .cab files)
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.
Answer is apply-image, then removepackage and then cleanup.
and yes you can add and remove msu with dism, see link below:
https://technet.microsoft.com/en-us/library/hh825265.aspx
From the link you have provided:
/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.
this is quite confusing, based on the book below, only the dism /remove package parameter is on there.
given that cleanup is there as an option, you can make a case for this. but i don’t get why wusa.exe comes into it. Anyone ?
https://books.google.co.uk/books?id=L5d7BAAAQBAJ&pg=PA24&lpg=PA24&dq=removing+msu+from+wim+step+by+step&source=bl&ots=efhJOiGZlo&sig=PUP9eYBEkNHwKHoDpOdxkK1rrrU&hl=en&sa=X&ved=0ahUKEwjf0bnRuO3RAhXMHxoKHclcCFQQ6AEIPjAE#v=onepage&q&f=false