You are on page 1of 13

Preparando arquivo sysprep

Sysprep.inf = um arquivo de resposta opcional que pode ser usado para automatizar um modo de instalao chamado mini-instalao, em nosso caso quando se usa uma instalao atravs de uma imagem genrica.

Acessar a pasta \SUPPORT\TOOLS do CD de instalao do windows XP ou do 2000. Descompactar o arquivo DEPLOY.CAB em uma pasta nomeada como sysprep. Execute o aplicativo setupmgr.exe .

Clique em Avanar;

Marque Criar Novo, e clique em Avanar;

Marque a Opo Instalao de Sysprep, e clique em Avanar;

Escolher o Sistema Operacional;

Marque Sim, automatizar completamente a instalao, e clique em Avanar;

Digite Nome e Organizao, e clique em Avanar;

Escolha opes padres de todos monitores, e clique em Avanar;

Escolha o fuso Horrio, e clique em Avanar;

Digite a Serial, e clique em Avanar;

Deixar marcado a 1 Opo, e clique em Avanar;

Digite a senha escolhida e marque Quando um... ...administrador e quantas o Windows ir logar automtico sem digitar a senha, e clique em Avanar;

Deixe marcada a 1 opo, e clique em Avanar;

Deixe marcada a 1 opo, e clique em Avanar;

Escolha Pas, Cdigo de rea e clique em Avanar;

Marque a 2 opo, escolha Portugus (Brasil) e clique em Avanar;

Deixe marcado Europa Ocidental e Amricas e clique em Avanar;

Deixe em branco e clique em Avanar;

Adicione algum aplicativo ou deixe em branco e clique em Avanar;

Adicione o comando convert c: /fs:ntfs , clique em Adicionar e em Avanar. (Obs.: Esse comando serve para converter a unidade c: de FAT para NTFS).

Clique em Concluir.

Escolha o destino do arquivo para a pasta c:\sysprep , que foi criada durante a execuo do aplicativo, sendo o mesmo com extenso .inf .

Clique em Cancelar para finalizar o aplicativo. Segue em abaixo o arquivo criado pelo aplicativo:

Altere as seguintes opes no arquivo, sendo o que est em negrito so as alteraes acrescentadas no arquivo original e em vermelho as explicaes: ;SetupMgrTag [Unattended] OemSkipEula=Yes InstallFilesPath=C:\sysprep\i386 TargetPath=\WINDOWS Fora a instalao na pasta Windows OemPnPDriversPath=C:\drivers Instrui o Windows a procurar drivers nesta pasta UpdateHAL=yes Fora atualizar o HAL de acordo os hardwares da mquina.

[SysprepMassStorage] Acrescentar esta chave com as opes abaixo que identificam vrios modelos de HD onde o Windows vai escolher a opo ideal, caso d algum erro, instale o windows com a opo de reparar.
PCMCIA\*PNP0600=%systemroot%\inf\mshdc.inf *PNP0600=%systemroot%\inf\mshdc.inf PCMCIA\KME-KXLC005-A99E=%systemroot%\inf\mshdc.inf PCMCIA\_-NinjaATA--3768=%systemroot%\inf\mshdc.inf PCMCIA\FUJITSU-IDE-PC_CARD-DDF2=%systemroot%\inf\mshdc.inf *AZT0502=%systemroot%\inf\mshdc.inf PCI\CC_0101=%systemroot%\inf\mshdc.inf PCI\VEN_10B9&DEV_5215=%systemroot%\inf\mshdc.inf PCI\VEN_10B9&DEV_5219=%systemroot%\inf\mshdc.inf PCI\VEN_10B9&DEV_5229=%systemroot%\inf\mshdc.inf PCI\VEN_1097&DEV_0038=%systemroot%\inf\mshdc.inf PCI\VEN_1095&DEV_0640=%systemroot%\inf\mshdc.inf PCI\VEN_1095&DEV_0646=%systemroot%\inf\mshdc.inf PCI\VEN_0E11&DEV_AE33=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_1222=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_1230=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_7010=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_7111=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_2411=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_2421=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_7199=%systemroot%\inf\mshdc.inf PCI\VEN_1042&DEV_1000=%systemroot%\inf\mshdc.inf PCI\VEN_1039&DEV_0601=%systemroot%\inf\mshdc.inf PCI\VEN_1039&DEV_5513=%systemroot%\inf\mshdc.inf PCI\VEN_10AD&DEV_0001=%systemroot%\inf\mshdc.inf PCI\VEN_10AD&DEV_0150=%systemroot%\inf\mshdc.inf PCI\VEN_105A&DEV_4D33=%systemroot%\inf\mshdc.inf PCI\VEN_1106&DEV_0571=%systemroot%\inf\mshdc.inf PCI\VEN_8086&DEV_1960&SUBSYS_11111028=%systemroot%\inf\scsi.inf PCI\VEN_8086&DEV_1960&SUBSYS_11121111=%systemroot%\inf\scsi.inf PCI\VEN_8086&DEV_1960&SUBSYS_11111111=%systemroot%\inf\scsi.inf PCI\VEN_8086&DEV_1960&SUBSYS_04671028=%systemroot%\inf\scsi.inf *ADP1540=%systemroot%\inf\scsi.inf *ADP1542=%systemroot%\inf\scsi.inf *ADP4215=%systemroot%\inf\scsi.inf DETECTEDIsa\aha154x=%systemroot%\inf\scsi.inf SPARROW_SCSI=%systemroot%\inf\scsi.inf DETECTED\sparrow=%systemroot%\inf\scsi.inf *ADP1502=%systemroot%\inf\scsi.inf *ADP1505=%systemroot%\inf\scsi.inf *ADP1510=%systemroot%\inf\scsi.inf *ADP1512=%systemroot%\inf\scsi.inf *ADP1515=%systemroot%\inf\scsi.inf *ADP1520=%systemroot%\inf\scsi.inf *ADP1522=%systemroot%\inf\scsi.inf *ADP3015=%systemroot%\inf\scsi.inf *ADP3215=%systemroot%\inf\scsi.inf *ADP6360=%systemroot%\inf\scsi.inf *ADP6370=%systemroot%\inf\scsi.inf PCMCIA\Adaptec__Inc.-APA-1460_SCSI_Host_Adapter-BE89=%systemroot%\inf\scsi.i PCMCIA\Adaptec__Inc.-APA-1460_SCSI_Host_Adapter-B67E=%systemroot%\inf\scsi.i PCMCIA\Adaptec__Inc.-APA-1460_SCSI_Host_Adapter-6F71=%systemroot%\inf\scsi.i PCI\VEN_9004&DEV_5075=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5175=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5275=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5375=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5475=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5575=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5675=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5775=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5078=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5178=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5278=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5378=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5478=%systemroot%\inf\scsi.inf

PCI\VEN_9004&DEV_5578=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5678=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_5778=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7860=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6078=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6178=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6278=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6378=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6478=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6578=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6778=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7078=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7178=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7278=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7478=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7578=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7678=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7778=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8078=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8178=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8278=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8478=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8578=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8678=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8778=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_8878=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7891=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7892=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7896=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_7897=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_3B78=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_EC78=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6075=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_6075&SUBSYS_75609004=%systemroot%\inf\scsi.inf PCI\VEN_9004&DEV_3860=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_0010=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_0020=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_0030=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_001F=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_002F=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_003F=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_0050=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_0051=%systemroot%\inf\scsi.inf PCI\VEN_9005&DEV_005F=%systemroot%\inf\scsi.inf *FDC0000=%systemroot%\inf\scsi.inf DETECTEDPci\Fd16_700=%systemroot%\inf\scsi.inf FD16_700_SCSI=%systemroot%\inf\scsi.inf PCI\VEN_1036&DEV_0000=%systemroot%\inf\scsi.inf DETECTED\fd16_700=%systemroot%\inf\scsi.inf GEN_SCSIADAPTER=%systemroot%\inf\scsi.inf PCI\VEN_1014&DEV_002E=%systemroot%\inf\scsi.inf PCMCIA\IBM-PCMCIA_Portable_CD-ROM_Drive-84E3=%systemroot%\inf\scsi.inf PCMCIA\IBM-PCMCIA_CD-ROM_DRIVE_CD-400-5AFA=%systemroot%\inf\scsi.inf PCMCIA\IBM-PCMCIA_Portable_CD-ROM_Drive-84E2=%systemroot%\inf\scsi.inf PCI\VEN_1077&DEV_1020=%systemroot%\inf\scsi.inf PCI\VEN_1077&DEV_2100&SUBSYS_00011077=%systemroot%\inf\scsi.inf PCI\VEN_1077&DEV_1240=%systemroot%\inf\scsi.inf PCI\VEN_1077&DEV_1080=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0001=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0002=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0003=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0004=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0005=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_0006=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_000B=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_000C=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_000D=%systemroot%\inf\scsi.inf PCI\VEN_1000&DEV_000F=%systemroot%\inf\scsi.inf

PCI\VEN_105A&DEV_4D38=%systemroot%\inf\scsi.inf

[GuiUnattended] AdminPassword="SuporteNupro" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=3 OEMSkipRegional=1 TimeZone=65 OemSkipWelcome=1 [UserData] ProductID=J6T2H-YBT26-FWXGY-2HVXJ-TTBDY Acrescentar, pois alguns windows recusam a linha abaixo. ProductKey=J6T2H-YBT26-FWXGY-2HVXJ-TTBDY FullName="UFU" OrgName="UFU" ComputerName=* [Display] BitsPerPel=24 Xresolution=800 YResolution=600 Vrefresh=60 [TapiLocation] CountryCode=55 AreaCode=34 [RegionalSettings] LanguageGroup=1 Language=00000416 [SetupMgr] DistFolder=C:\sysprep\i386 DistShare=windist [Identification] JoinWorkgroup=GRUPO [Networking] InstallDefaultComponents=Yes Adicione as linhas abaixo porque o sysprep iriam adiciona-las durante o lacre, mas o arquivo foi movido durante a execuo do sysprep.exe ele no foi alterado. Service=atapi Service=pciide Service=aliide Service=intelide Service=viaide Service=sparrow [sysprepcleanup]

As opes abaixo so opcionais (devem ser adicionadas antes de Service=atapi):

[Branding] BrandIEUsingUnattended=Yes [Proxy] Proxy_Enable=1 Use_Same_Proxy=1 HTTP_Proxy_Server=proxy.ufu.br:3128 Proxy_Override=<local> [OEM_Ads] Background="Windows XP.bmp" Personaliza o fundo de tela durante a instalao [URL] Home_Page=www.ufu.br Pgina inicial do Internet Explorer [FavoritesEx] Favoritos do IE Title1="Symantec.url" URL1="www.symantec.com.br" Title2="Windows Update.url" URL2=http://v4.windowsupdate.microsoft.com/ptbr/default.asp Title3="Atualizao do Norton Antivirus.url" URL3="http://www.symantec.com.br/avcenter/download/pages/BR-N95.html" Title4="WebMail da UFU.url" URL4="http://www.mail.ufu.br" Title5="Provedor UFU.url" URL5="http://www.prove.ufu.br" Title6="SUPORTE AO USURIO - NUPRO(DIRPD).url" URL6="http://www.suporte.ufu.br" Title7="Instalao e manuteno de Ponto de Rede.url" URL7="http://www.pontoderede.ufu.br" Title8="TELEFONES DA UFU.url" URL8="http://www.prefeitura.ufu.br/listel/"