A company has a server running Windows Server 2008 R2, with Windows Deployment Services
(WDS), the Microsoft Deployment Toolkit (MDT), and the Windows Automated Installation Kit
(WAIK) set up. The company also has client computers running Windows 7 Enterprise.
You need to remove some files from a virtual hard disk on a client computer.
What should you do first?
A.
use Sysprep with an answer file and set the PersistAHDeviceinstalls option in the answer file to
True.
B.
Run the BCDEdit /delete command.
C.
Run the Start/w ocsetup command.
D.
Use Sysprep with an answer file and set the UpdateinstalledDriversoption in the answer file to
Yes.
E.
Run the Dism command with the /Add-Driver option.
F.
Add a boot image and create a capture image in WDS.
G.
Run the PEImg /Prepcommand.
H.
Run the ImageX command with the /Mount parameter.
I.
Run the Dism command with the /Mount-Wim option.
J.
Use Sysprep with an answer file and set the UpdateInstalledDriversoption in the answer file to No.
K.
Run the Dism command with the /Add-Package option.
L.
Run the DiskPart command and the Attach command option.
M.
Use Sysprep with an answer file and set the PersistAllDeviceInstalls option in the answer file to
False.
Explanation:
DiskPart.exe and managing Virtual Hard Disks (VHDs) in Windows 7In Windows 7, new commands have been added in DiskPart to allow for the creation and
management of Virtual Hard Disks (.vhd files). The DiskPart VHD management commands have been
provided below in 2 sections – commonly used commands with examples and other commands. It is
assumed in each of the examples that DiskPart.exe has already been launched in an elevated
command prompt.
Creating a VHD
The example below creates a 20GB dynamically expanding VHD called “test.vhd” and places it in the
root of the C: drive. Note that the type parameter is optional and the default type is fixed. create
vdisk file=c:\test.vhd maximum=20000 type=expandable
Attaching a VHD
The following example shows how to select and attach the VHD. It also provides steps for
partitioning, formatting and assigning a drive letter to the attached VHD.
select vdisk file=c:\test.vhd
attach vdisk
create partition primary
format fs=ntfs label=”Test VHD” quick
assign letter=v
Detaching the VHD
To detach (i.e. unmount) the VHD, use the following example:
select vdisk file=c:\test.vhd
detach vdisk
answer:-L