dimarts, 17 de juny del 2014

sysprep en windows 7

ALTRE DIRECCIÓ

Clean Up the Image

When you set up Windows 7, you created a temporary user account to log on to it. In this step, you start the computer in Audit mode to remove that temporary user account and its user profile. This is also your last chance to install any applications, device drivers, and updates in your image.

To start the computer in Audit mode using the System Preparation Tool (Sysprep)

  1. Click Start, type C:\Windows\System32\sysprep\sysprep.exe in the Search box, and then press ENTER to start Sysprep, shown in Figure 4.

    System Preparation Tool dialog box
    Figure 4. The System Preparation Tool
  2. In the System Cleanup Action list, select Enter System Audit Mode.
  3. Select the Generalize check box.
  4. In the Shutdown Options list, select Reboot.
  5. Click OK to restart the computer in Audit mode.
  6. After the computer restarts, Windows 7 automatically logs in as Administrator.

To remove the temporary user account’s profile

  1. Click Start, type user profile in the Search box, and then click Configure advanced user profile properties in the search results.
  2. In the User Profiles dialog box, click the name of the temporary user account you created when you installed Windows 7 on the reference computer, and then click Delete. Click Yes to confirm.
  3. Click OK to close the User Profiles dialog box.

To remove the temporary user account

  1. Click Start, right-click Computer, and then click Manage.
  2. In the console tree (left pane), click Local Users and Groups.
  3. In the details pane (middle pane), double-click Users.
  4. Right-click the name of the temporary account you created when you installed Windows 7 on the reference computer, and then click Delete.
  5. Click Yes to confirm that you want to delete the temporary user account.
  6. Click OK to acknowledge that you are deleting an administrator account.
  7. Close the Computer Management window.

Generalize the Image

In this step, you generalize the image and prepare it to start in Windows Welcome after you install it on each computer. Generalizing the image removes any hardware-dependent information from it, resets the activation timer, and cleans up Windows 7 so that you can duplicate the image on other computers.

To prepare the computer to start in Windows Welcome using Sysprep

  1. Open Sysprep. (Windows 7 automatically runs Sysprep when you start the operating system in Audit mode.)
  2. In the System Cleanup Action list, select Enter System Out-of-Box Experience (OOBE).
  3. Select the Generalize check box.
  4. In the Shutdown Options list, select Shutdown.
  5. Click OK to run Sysprep and shut down the computer.

Capture the Image


At this point in the process, you have installed Windows 7 on the reference computer, and you are ready to capture an image of it. You use the bootable UFD you created earlier to start the computer. Additionally, you will capture the image to this UFD. For this reason, you should use a UFD that has a capacity of 8 GB or more to ensure that there is room for both Windows PE and the image you capture.

To capture an image of Windows 7 on the bootable UFD

  1. Insert the bootable UFD into a USB port on the reference computer.
  2. Turn on the reference computer, and then perform the following tasks:
    1. When prompted, open the boot device list. (In most cases, pressing F12 during the basic input/output system [BIOS] splash screen opens the computer’s boot device list.)
    2. From the list of boot devices, select the bootable UFD that you inserted in step 1 to start the computer using the bootable UFD.

      noteNote
      If you do not see a prompt to display a boot device list, you must enable booting from UFD devices in the computer’s BIOS. For more information, see the computer’s documentation.
  3. At the command prompt, identify which drive contains Windows 7—typically drive D in Windows PE. To verify this, type dir d:, and then press ENTER.
    If you see the Program Files, Users, and Windows folders, drive D contains Windows 7. Otherwise, examine each drive to determine which drive contains Windows 7.
  4. At the command prompt, identify which drive is the bootable UFD.
    This drive contains Imagex.exe in the root of the drive. It will not be drive X. To determine the drive letter, run dir e:, dir f:, dir g:, and so on until you locate the drive that contains Image.exe in the root.
  5. At the command prompt, type one of the commands shown in Table 2, depending on the edition of Windows 7 you are using, and then press ENTER. Substitute the actual drive letter containing Windows 7 for D: and the drive letter containing Image.exe for E: in Table 2.

    Table 2. ImageX Commands

     

    Edition ImageX Commands
    Enterprise E:\imagex /compress fast /check /flags “Enterprise” /capture D:
    E:\install.wim “Windows 7 Enterprise” “Windows 7 Enterprise Custom”
    Professional E:\imagex /compress fast /check /flags “Professional” /capture D:
    E:\install.wim “Windows 7 Professional” “Windows 7 Professional Custom”
  6. Shut down the reference computer, and remove the UFD from its USB port.



Sysprep a Windows 7 Machine – Start to Finish V2  http://theitbros.com/sysprep-a-windows-7-machine-start-to-finish-v2/





de la direcció http://www.ite.educacion.es/formacion/materiales/130/cd/pdf/W75-ConfiguracionAvanzada.pdf

http://www.ite.educacion.es/formacion/materiales/130/cd/redessiete/W7-ConfiguracionAvanzada/preparacin_del_sistema.html



 A continuación y para completar de modo definitivo la configuración del equipo "Alumno" del cual estamos partiendo para crear una imagen, deberemos instalar en el mismo la aplicación "SYSPREP".
"SYSPREP" es la herramienta de Microsoft que permite preparar un sistema operativo para la clonación de sus discos, y su posterior restauración mediante una imagen de disco. Cada instalación de un sistema operativo Windows incluye elementos únicos y particulares de cada instalación, tales como el nombre del ordenador, el identificador de seguridad, la caché de drivers, etc., que deben ser generalizados antes de capturar e implementar una imagen de disco a múltiples ordenadores, encargándose de dicha labor la herramienta "SYSPREP".
Validados en el sistema con las credenciales del usuario "Profesor", podremos encontrar la herramienta "SYSPREP" en la carpeta "C:\Windows\System32\sysprep" del equipo "Alumno", tal y como vemos en la ventana de la imagen inferior.
 
 
Ahora que ya sabemos la ubicación del fichero que necesitamos para ejecutar SYSPREP, antes de proceder a su ejecución deberemos crear un fichero XML de respuestas para que la ejecución de SYSPREP sea completamente desatendida.
NOTA: XML es una tecnología relativamente novedosa en la que mediante una serie de etiquetas indicaremos a la aplicación correspondiente ("SYSPREP" en este caso), los valores que deben ser asociados a cada parámetro que la aplicación solicite.
La creación de un fichero XML partiendo desde cero es bastante compleja, y aunque hay herramientas que simplican su creación, no creemos oportuno profundizar en ellas pues exceden los contenidos de esta documentación, así pues nos limitaremos a proporcionar un fichero XML base que podremos utilizar directamente o bien modificar a nuestro gusto si deseáramos cambiar algún valor en alguna etiqueta.
Un contenido base del fichero de configuración "unattend.xml" es el mostrado a continuación:




1




true


false
*
false
GMT Standard Time




es-ES
es-ES
es-ES
es-ES



true
Work
1
true
true





Si copiamos las instrucciones anteriores en un documento de texto plano creado, por ejemplo, con el "Bloc de notas", y salvamos el documento con el nombre "unattend.xml", ya dispondremos del fichero necesario para realizar este apartado.
NOTA: Cuando guardemos con el "Bloc de notas" el fichero indicado, hemos de tener en cuenta que en la lista desplegable "Tipo", hemos de elegir la opción "Todos los archivos (*.*)", tal y como vemos en la ventana de la imagen inferior, pues sino fuera así, el fichero sería almacenado con el nombre "unattend.xml.txt", lo cual provocaría su incorrecto funcionamiento.
 
 
NOTA: En el momento de elaborar esta documentación, en la dirección URL "http://blog.brianleejackson.com/sysprep-a-windows-7-machine-start-to-finish" podíamos obtener (en inglés) una descripción precisa de como crear una imagen desatendida com SYSPREP y su fichero XML de respuestas.
Así pues el fichero "unattend.xml" contendrá todas las respuestas a las preguntas típicas de cualquier proceso de instalación de Windows 7 Enterprise, logrando de ese modo que las respuestas que habitualmente proporcionaría manualmente el usuario que está realizando la instalación, sean tomadas por el sistema de modo automático a partir de la información recogida en dicho fichero.
NOTA: Una descripción detallada de todas las etiquetas que podemos incluir en el fichero XML, para lograr una instalación desatendida, podíamos obtenerla en el momento de elaborar esta documentación en la URL "http://technet.microsoft.com/es-es/library/dd744272(WS.10).aspx". También podíamos encontrar referencia a todas las etiquetas que pueden ser incluidas en un fichero XML en la URL "http://technet.microsoft.com/es-es/library/ff699038(en-us,WS.10).aspx".
Una vez que dispongamos del fichero XML de instalación desatendida de nombre "unattend.xml", lo copiaremos en la ruta "C:\Windows\System32\sysprep", de modo que como resultado de dicha acción se nos presentará la siguiente ventana que nos solicitará permiso para copiar en la ruta especificada el fichero XML indicado, permiso que concedermos pulsando en ella directamente sobre el botón "Continuar".
 
 
Tras completarse la copia del fichero "unattend.xml" en la carpeta "C.\Windows\System32\sysprep", la ventana correspondiente tendrá el aspecto mostrado en la imagen inferior.
 
 
Ahora que ya disponemos en la misma carpeta de "SYSPREP" y del fichero de respuestas desatendidas "unattend.xml", estamos en disposición de ejecutar la aplicación mediante la cual prepararemos a nuestro equipo para crear a partir del mismo una imagen que será replicada posteriormente en otros equipos.
Para llevar a cabo lo indicado en el párrafo anterior, en primer lugar lanzaremos una ventana de DOS donde ejecutar el comando correspondiente, para lo cual en primer lugar deberemos pulsar sobre el menú "Inicio" y tras ello teclear en la caja de texto correspondiente "cmd", tal y como vemos en la imagen inferior, tras lo cual pulsaremos sobre la tecla "ENTER".
 
 
Como resultado de la acción anterior pasará a ser mostrada la siguiente ventana de DOS, en la cual teclearemos la cadena "cd \Windows\System32\sysprep", tal y como vemos en la ventana de la imagen inferior, y tras ello pulsaremos sobre la tecla "ENTER".
 
 
Tras completar la ejecución de la acción anterior, el nuevo "prompt" quedará establecido a "C:\Windows\System32\sysprep>", debiendo teclear en ese instante la cadena de texto "sysprep /generalize /oobe /shutdown /unattend:"C:\Windows\System32\sysprep\unattend.xml"" (incluidas las comillas existentes en "C:\Windows\System32\sysprep\unattend.xml"), tal y como vemos en la ventana de la imagen inferior, momento en el que pulsaremos sobre la tecla "ENTER" para hacer efectiva la ejecución de "SYSPREP".
 
 
NOTA: Se debe tener especial precaución a la hora de teclear la orden anterior, pues cualquier parámetro diferente provocará que no se realicen las tareas correspondientes según nuestro deseo. La ejecución de la orden "sysprep /generalize /oobe /shutdown /unattend:"C:\Windows\System32\sysprep\unattend.xml"" deberá ejecutar de modo automático, sin ningún tipo de preguntas, el comando "SYSPREP" asociado al fichero de respuestas "unattend.xml" creado ex-profeso para tal fin.
Dará pues comienzo la ejecución del comando "SYSPREP", proceso este que durará unos minutos, luego esperaremos pacientemente a que se complete.
 
 
Tras unos breves instantes, el equipo "Alumno" del cual estamos partiendo para hacer una imagen personalizada, y sobre el que hemos ejecutado "SYSPREP", se apagará de modo automático, quedando dicho equipo preparado para crear una imagen a partir del mismo, proceso que llevaremos a cabo posteriormente en el siguiente módulo de la documentación.
NOTA: Una vez que el equipo "Alumno" se haya apagado como consecuencia del fin de la ejecución de "SYSPREP", dicho equipo NO podrá volver a ser arrancado hasta que sea creada a partir del mismo la imagen deseada, pues si no fuera así, deberíamos repetir de nuevo todo el proceso de ejecución de "SYSPREP" antes de crear la imagen. 

dimarts, 10 de juny del 2014

Enabling Root on Ubuntu

Enabling Root on Ubuntu http://www.fogproject.org/wiki/index.php/Ubuntu_14.04 Please open up a terminal or console and log in as the user you created. To gain access, enter the following command and re-type the user password. sudo su - Then type the following command: passwd root It will ask you to enter the new password. You will not see anything being entered, but it is typing. Once complete Press Enter. It will ask you to confirm the password. You will not see anything being entered, but it is typing. Once complete Press Enter. The terminal will return with Password updated successfully! Type or copy the following code into the terminal and press enter. echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf Please restart the machine with the command: shutdown -r now Once the system returns, you can now login as the root user even from the GUI. Just type the username: root in the Password field, you'll type the password you set in the passwd root command above.