Una de las
ventajas de las últimas versiones de los Sistemas Operativos de Microsoft es la
edición de las imágenes de instalación, podemos personalizar nuestra propia
imagen WIM para realizar diferentes funciones y luego utilizarla desde un DVD o
mediante WDS en un servidor de red y las funciones PXE.
Algunas de
estas funciones pueden ser:
- Install.
- Boot.
- Capture.
- Discover.
Windows 7 introduce la herramienta de línea de comandos Deployment Image Servicing and Management Tool (DISM) para editar una imagen de Windows o para preparar una imagen de Windows PE, reemplaza al Administrador de paquetes (Pkgmgr.exe), PEimg y Intlcfg en Windows Vista e incluye nuevas características.
Lista de los comandos y parámetros que podéis necesitar, en Ingles.
Lista de las opciones de DISM para editar las imágenes
/mount-wim Mounts the WIM file to the specified directory so that it is available for servicing. The optional /readonly flag sets the mounted image with readonly permissions.
Example: dism /mount-wim /wimfile:C:\practice\myimages\ install.wim /index:1 /mountdir:C:\practice\offline/readonly
Flags
/wimfile:<path_to_image.wim>
/index:<image_index>
/name:<image_name>
/mountdir:<path_to_mount_directory>
/readonly
/commit-wim Applies the changes you have made to the mounted image. The image remains mounted until the /dismount option is used.
Example: dism /commit-wim /mountdir:C:\practice\offline
Flags
/mountdir:<path_to_mount_directory>
/unmount-wim Dismounts the WIM file and either commits or discards the changes that were made while the image was mounted.
Example: dism /unmount-wim /mountdir:C:\practice\offline /commit
Flags
/mountdir:<path_to_mount_directory>{/commit | /discard}
/remount-wim Recovers an orphaned WIM mount directory.
Example: dism /remount-wim /mountdir:<path_to_mount_directory>
Flags
/mountdir:<path_to_mount_directory>
/cleanup-wim Deletes all the resources associated with a mounted WIM image that has been abandoned. This command does not dismount currently mounted images, nor does it delete images that can be remounted.
Example: dism /cleanup-wim
/get-wiminfo Displays information about the images within the WIM. When used with the /index option, information about
the specified image is displayed.
Example: dism /get-wimInfo /wimfile: C:\practice\offline\install.wim /index:1
Flags
/wimfile:<path_to_image.wim>
/index:<Image_index>
/name:<Image_name>
Muchas veces necesitaremos preparar el sistema antes
de una captura de imagen, para ello utilizaremos el comando Sysprep
/audit Restarts the
computer in Audit mode rather than Windows Welcome mode. Audit mode lets you add additional drivers or applications to Windows 7. You can also test an
installation of Windows 7 and verify its integrity before it is sent
to a user. If you specify an unattended Windows setup file, the Windows
Setup. /audit mode runs
the auditSystem and auditUser configuration passes.
/generalize Prepares the
Windows installation to be imaged. If you specify this option, all unique system information is removed
from the Windows installation. The SID is reset, system restore
points are cleared, and event logs are deleted. The next time the
computer starts, the specialize configuration pass runs. A new SID is created, and the clock for Windows activation resets (unless
the clock has already been reset three times).
/oobe Restarts the
computer in Windows Welcome mode. Windows Welcome enables users to customize their Windows 7
operating system, create user accounts, and name the computer.
Any settings in the oobeSystem configuration pass in an
answer file are processed immediately before Windows Welcome starts.
/reboot Restarts the
computer. You can use this option to audit the computer and to verify that the first-run experience
operates correctly.
/shutdown Shuts down the
computer after Sysprep completes.
/quiet Runs Sysprep
without displaying on-screen confirmation messages.You can use this option if you want to
automate Sysprep.
/quit Closes Sysprep
after the specified commands complete.
/unattend:
answerfile Applies settings in an answer file to Windows during
unattended installation. The variable answerfile specifies
the path and file name of the answer file.
Seguridad a lo Jabalí para Todos!!