jueves, 11 de junio de 2015

ERROR SYSPREP WINDOWS NO PUEDE FINALIZAR CONFIGURACION SISTEMA


DESPUES DE EJECUTAR “SYSPREP”, AL REINICIAR DA EL ERROR “WINDOWS NO PUEDE FINALIZAR LA CONFIGURACION DEL SISTEMA”

1. 1. When the error message apears, open up a command window with SHIFT + F10
2. 2. open the REGEDIT
3. 3. navigate to hklm\system\setup
*4. 4. change CmdLine to blank (no value entered) (was oobe\windeploy.exe)
5. 5. change CreateNewQueueOnFirstBoot to 0 (was 1)
6. 6. change OOBEInProgress to 0 (was 1) (i am guessing that might be AUDITInProgress if that was your sysprep choice)
7. 7. change SetupPhase to 0 (was 4)
8. 8. change SetupShutdownRequired to 0 (was 1)
9. 9. change SetupType to 0 (was 2)
10. 10. change SystemSetupInProgress to 0 (was1)

11. 11. exit REGEDIT and reboot 

 

* SUSTITUIR WINDEPLOY.EXE POR MSOOBE.EXE SI QUEREMOS EJECUTAR EL ASISTENTE DE CONFIGURACION INICIAL.

HABILITAR ADMINISTRADOR SIN USUARIOS CON PERMISOS ADMINISTRATIVOS


 
En el caso de haber deshabilitado el usuario 'Administrador' y no disponer de ningun otro usuario con permisos administrativos, el procedimiento para volver a activarlo es el siguiente: 

Reiniciar el equipo y pulsar F8 reiteradamente durante la fase previa a la carga de windows con la finalidad de acceder al menú de arranque. 

1.-Arrancar en modo seguro (modo prueba fallos) 
Como no tendremos ningun usuario administrador habilitado nos saldrá la pantalla de bienvenida sin ningún usuario para cargar. 

2.-Pulsar ctrol+alt+supr, entonces aparece la pantalla de acceso, arrancar como usuario: Administrador y su contraseña o en blanco (si es el caso). 

3.- Una vez logueado: Inicio -> Ejecutar -> control userpasswords2 

4.- Ir a la configuración avanzada, buscar usuarios y volver a habilitar el usuario Administrador. 

5.- Reiniciar el equipo.

 

How to sysprep a Windows 7 master image more than 3 times


How to sysprep a Windows 7 master

image more than 3 times


A common scenario for Windows XP was to make a master image on a system, sysprep it, create the image, and build on that master image for the next version of that image. Windows 7 made this difficult as you can only sysprep (better said, re-arm the license of) a system only 3 times.

 
Easiest way probably is to use a Virtual Machine and snapshot it right before sysprep. That way you can restore to right before the re-arm and build on that.


Alternatively, you can use sysprep referencing an unattend.xml file with an entry telling sysprep to skip the re-arm,


for example: sysprep.exe /oobe /generalize /unattend:"c:\unattend.xml" /quit

This unattend.xml file should contain at least the following:


<settings pass="generalize">

<component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SkipRearm>1</SkipRearm>

</component>

</settings>


Make sure to delete this xml before the unattended setup runs during deployment because it might interfere with the settings you inject during OSD.


Or, instead of using the XML, set the skip re-arm in the image with the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm. Note that the image does not retain this value, it gets reset after doing the sysprep.

 

Windows will skip the re-arm, but during the OSD process you can run the re-activation which will make the MAK or KMS key still unique to that device.

 

Oh no, I read this to late and already used my 3 times...

 

Don't worry, as mentioned bove, Windows 7 out-of-the-box can re-arm only 3 times, but if accidentally that happens to you, you can still recover the image and run the sysprep.

 

Running slmgr.vbs /dlv lets you check the re-arm counter. If it's 0 and you sysprep you will generally receive errors in the setupact.log and setuperr.log files like these:

 

Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn’t update the recorded state, dwRet = 31

Error [0x0f0082] SYSPRP LaunchDll: Failure occurred while executing 'C:\Windows\System32\slc.dll, SLReArmWindows', returned error code -1073425657

Error [0x0f0070] SYSPRP RunExternalDlls: An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -1073425657

Error [0x0f00a8] SYSPRP WinMain: Hit failure while processing sysprep generalize providers; hr = 0xc004d307

 

To remedy this, do the following

 

Open regedit and look for:

HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState\

Set to value: 2


HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\

Set to value: 7

 

Than (this step isn't always necessary but it's better to include it anyway in your procedure):

msdtc -uninstall (wait a few seconds)

msdtc -install (wait a few seconds)

Reboot the system.

Now you can run sysprep again, but, don't forget to apply the things you learned in the first half of this document.

Para cambiar la clave de producto sin tener que activar primero Windows


Para cambiar la clave de producto sin tener que activar primero Windows, utilice uno de los siguientes métodos:

Método 1

1.       Deslice el dedo rápidamente desde el borde derecho de la pantalla y luego pulse Búsqueda. O bien, si usa un mouse, señale el extremo inferior derecho de la pantalla y luego haga clic en Búsqueda.

2.       En el cuadro de búsqueda, escriba Slui.exe 0x3.

3.       Puntee o haga clic en el icono Slui.exe 0x3.

4.       Escriba la clave de producto en la ventana de activación de Windows y, a continuación, haga clic en Activar.
Método 2

Ejecute el siguiente comando en un símbolo del sistema con privilegios elevados:

Cscript.exe %windir%\system32\slmgr.vbs /ipk <Su clave de producto>

Recuperar Usuario Administrador en Windows 7


Hay solución. Esto que te voy a contar es un hack descarado de Windows Vista, pero si Microsoft lo ha permitido... ellos sabrán.

 1) Arrancas con el CD de Windows VIsta, Eliges Idioma, pinchas abajo a la izquierda, opción reparar. Eliges el tipo de instalación de Vista y Siguiente.

2) EN la lista que aparece, bajas abajo del todo y seleccionas "Consola".

3) Tecleas:

c:

cd \windows\system32

4) Renombras el fichero sethc.exe como sethc.old (por ejemplo) y copiar el cdm.exe como sethc.exe, es decir:

ren sethc.exe sethc.old

copy cmd.exe sethc.exe

5) Ahora reinicias e intentas arrancar Vista desde el disco duro de modo normal.

6) En la pantalla de bienvenida pulsa 5 veces seguidas y rápido la tecla Shift (Mayusculas) -la que está justo encima de la tecla CTRL.

7) Te aparecerá una consola, en ella escribe:

control userpasswords2

8) Crea allí un nuevo usuario de tipo Administrador. Si no te apareciese en ese momento en la pantalla de bienvenida, reinicia y te aparecerá.

9) Entras con ese nuevo usuario y puedes hacer lo que quieras. Volver a situar la contraseña del usuario anterior tuyo o lo que sea.

10) Como paso final hay que dejar el fichero sethc.old guardado sobre el original, es decir, abres una consola (Solo símbolo del sistema) con privilegios (botón derecha sobre ella y "Usar como Administrador") y ejecuta:

cd \windows\system32

del sethc.exe

ren sethc.old sethc.exe

Y arreglado.

 

lunes, 8 de junio de 2015

Sincronizar Servidor Windows 2008 R2 con servidor horario externo

Utilizaremos el siguiente comando desde la linea de comando

W32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org,3.pool.ntp.org

Para verificar como esta configurado

W32tm /query /status

Para resincronizar

W32tm /resync /rediscover

Para monitorizar

W32tm /monitor