Parte 2

Transcrição

Parte 2
Autor: Bruno Leonardo
MCP, MCDST, MCSA, MCTS
http://brunoleonardoleal.spaces.live.com
Instalação e
configuração do Server
Core - Windows Server
2008 (Longhorn)
Parte 2
Vamos começar definindo a senha de administrador.
Net user administrator senha
Configurando as atualizações automáticas para baixar e instalar as atualizações automaticamente:
Visualizando as interfaces de rede disponíveis:
netsh interface ipv4 show interfaces
Obtendo a configuração ip atual:
Ipconfig /all
Note que como não há nenhum servidor DHCP disponível estamos pegando ip pelo APIPA.
Vamos renomar o computador:
netdom renamecomputer <nome do computador> /NewName:<novo nome do computador>
Precisamos reiniciar para que a operação seja completada.
shutdown /r –t 0
Após o reinicio, vamos verificar se o nome do computador foi modificado:
Fazendo configuração do endereço ip, máscara de sub rede, dns:
netsh interface ipv4 set address name="local area connection" source=static address=192.168.10.1
mask=255.255.255.0
netsh interface ipv4 add dnsserver name=" local area connection " address=192.168.10.1 index=1
Após a configuração de ip, vamos criar um arquivo de resposta para levantar um controlador de domínio.
Segue abaixo um modelo genérico que faz a instalação automática do DNS.
Abra o bloco de notas no prompt de comando digitando notepad para criar o arquivo de resposta abaixo.
Após isso salve como unattend.txt.
[DCINSTALL]
ReplicaOrNewDomain=Domain
TreeOrChild=Tree
CreateOrJoin=Create
NewDomainDNSName= insira o nome totalmente qualificado do seu domínio (por exemplo,
empresa.local)
Password=digite sua senha
DNSOnNetwork=yes
DomainNetbiosName=<nome NetBIOS do domínio (por exemplo, empresa)>
AutoConfigDNS=yes
SiteName=Default-First-Site-Name
AllowAnonymousAccess=no
DatabasePath=%systemroot%\ntds
LogPath=%systemroot%\ntds
SYSVOLPath=%systemroot%\sysvol
SafeModeAdminPassword=digite sua senha
CriticalReplicationOnly=No
RebootOnSuccess=yes
Instalando o Controlador de Domínio:
Dcpromo /unattend: unattend.txt
O processo de criação do controlador de domínio irá se iniciar. A saída do processo é mostrada abaixo:
C:\>dcpromo /unattend:unattend.txt
Checking if Active Directory Domain Services binaries are installed...
Active Directory Domain Services Setup
Validating environment and parameters...
---------------------------------------The following actions will be performed:
Configure this server as the first Active Directory domain controller in a new forest of domain trees.
The new domain name is empresa.local. This is also the name of the new forest.
The NetBIOS name of the domain is empresa
Forest Functional Level: Windows 2000
Domain Functional Level: Windows 2000 Native
Site: Default-First-Site-Name
Additional Options:
Read-only DC: No
Global Catalog: Yes
DNS Server: Yes
Create DNS Delegation: No
Database folder: C:\Windows\ntds
Log file folder: C:\Windows\ntds
SYSVOL folder: C:\Windows\sysvol
The DNS service will be installed on this computer.
The DNS service will be configured on this computer.
This computer will be configured to use this DNS server as its preferred DNS ser
ver.
The password of the new domain administrator will be the same as the password of
the administrator of this computer.
---------------------------------------Starting...
Press CTRL-C to: Cancel
Creating the System Volume C:\Windows\sysvol
Copying initial Directory Service database file C:\Windows\system32\ntds.dit to
C:\Windows\ntds\ntds.dit
Configuring the local computer to host Active Directory Domain Services
Creating directory partition: CN=Schema,CN=Configuration,DC=empresa,DC=local; 15
85 objects remaining
Creating Active Directory Domain Services objects on the local Active Directory
Domain Controller
Completing Active Directory Domain Services installation
Configuring servi.ce NETLOGON
Setting the LSA policy information
Setting the computer's DNS computer name root to empresa.local
Setting security on the domain controller and Directory Service files and registry keys
Securing S-1-5-32-554
Securing machine\softw.are\microsoft\windows
Securing machine\software\microsoft\windows nt\currentversion\tracing
Securing machine\system\currentcontrolset\control
Securing machine\syst..em\currentcontrolset\control\keyboard layouts
Securing c:\wind.ows\ntds
Securing c:\windows\system32\config
Securing c:\windows\system32\logfiles
Securing c:\windows\system32\spool
Securing c:\windows\sysvol\sysvol
Securing Kerberos Policy
The attempted domain controller operation has completed
Performing DNS installation...
Waiting for DNS installation to finish
Waiting for DNS Service to be recognized... 0
Waiting for DNS Service to start... 0
Configuring the DNS service on this computer...
Active Directory Domain Services is now installed on this computer for the domain empresa.local.
This Active Directory Domain Controller is assigned to the site Default-First-Site-Name. Sites are managed
with the Active Directory Domain Services Sites and Services administrative tool.
You must restart this computer to complete the operation.
C:\>
Reinicie seu computador e a instalação estará completa.
Após o reinicio as estações já podem ser adicionadas ao domínio.
Para uma configuração avançada dos serviços (DNS, ADDS e etc) utilize o snap-in MMC.
Verificando os papéis instalados no servidor:
Note na figura abaixo os serviços instalados até o momento.
Pronto!