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 19

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


John B

John B

wrong answer, it should be apply, uninstall and capture

JohnyBoy

JohnyBoy

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.

Hardij

Hardij

/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.

Pio

Pio

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 ?!?

Alex

Alex

agreed, I don’t see any reason to use “/clean-up” & “wusa.exe” commands.

Jsin

Jsin

Agreed. Answers *should* be
/Mount-Image
/Remove-Package
/Commit

Answers available are incorrect.

James

James

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

andrius

andrius

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

andrius

andrius

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

chris

chris

“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”

AS

AS

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

den

den

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?

den

den

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)

Kaye

Kaye

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.

taspanja

taspanja

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

youarewrong

youarewrong

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.