windows server 2008: gerenciamento

27
Windows Server 2008 Gerenciamento & Power Shell Roberto Mascarenhas Braga Microsoft Student Partner (MSP) Microsoft Certified Professional (MCP) Microsoft Certified Technology Specialist (MCTS) http://www.robertobraga.net http://www.twitter.com/robertomb http://www.brasildotnet.net

Upload: roberto-mascarenhas-braga

Post on 21-May-2015

2.355 views

Category:

Technology


0 download

DESCRIPTION

Palestra sobre avançocs de gerenciamento no Windows Server 2008. Foca especialmente no Server Manager, Event Viewer e mostra o Powershell como nova opção de plataforma de scripting para os IT Pros.

TRANSCRIPT

Page 1: Windows Server 2008: Gerenciamento

Windows Server 2008

Gerenciamento & Power Shell

Roberto Mascarenhas BragaMicrosoft Student Partner (MSP)Microsoft Certified Professional (MCP)Microsoft Certified Technology Specialist (MCTS)http://www.robertobraga.nethttp://www.twitter.com/robertombhttp://www.brasildotnet.net

Page 2: Windows Server 2008: Gerenciamento

• Quando você configura seu servidor, você precisa de várias ferramentas…– Windows Server 2003 Setup– Post-Setup Security Updates– Manage Your Server– Configure Your Server Wizard– Add/Remove Windows Components– Computer Management– Security Configuration Wizard

Gerenciamento – Passado...

Page 3: Windows Server 2008: Gerenciamento

Windows Server 2008 Experience de Gerenciamento

• Initial Configuration Tasks– Abre logo após a instalação terminar

• Server Manager– Permite uma configuração “one-stop-shop”– Unifica a funcionalidade de muitas ferramentas anteriores

numa interface única, simples e MMC-based

Page 4: Windows Server 2008: Gerenciamento

Initial Configuration Tasks• Tarefas de configuração são feitas após a

instalação• Expões as tarefas necessárias para terminar a

instalção e ter o sistema em produção• Encurta o tempo entre a instalação do OS e o

deployment do servidor

Page 5: Windows Server 2008: Gerenciamento

Initial Configuration Tasks

Page 6: Windows Server 2008: Gerenciamento

Initial Configuration Tasks

demo

Page 7: Windows Server 2008: Gerenciamento

• Experiência única para gerenciamento– Guia o usuário ao adicionar e remover server roles e

features securely• Portal para gerenciamento profundo

– Mostra status do servidor, expõe tarefas-chave de configuração e guia o usuário para gerencimaneto mais profundo

• Automação via linha de comando– Provê uma linha de comando para instalações baseadas

em script

Server Manager

Page 8: Windows Server 2008: Gerenciamento

Server Manager

Page 9: Windows Server 2008: Gerenciamento

• Serviços ou software que permitem ao servidor desempenhar uma função específica

• Descreve a função principal, propósito ou uso do servidor

• Um servidor pode ter vários roles• Você pode instalar vários roles na mesma sessão• Não é necessário executar novamente o Security

Configuration Manager• Automação facilitada

Windows Server 2008 Roles

Page 10: Windows Server 2008: Gerenciamento

Windows Server 2008 Roles

Page 11: Windows Server 2008: Gerenciamento

Windows Server 2008 Features

• Programas que auxiliam ou aumentam a funcionalidade de uma role– Failover Clustering– BitLocker– GPMC– RPC Proxy– SMTP Services– SNMP Services– WINS– Aero (Vista-like)

Page 12: Windows Server 2008: Gerenciamento

• Versão linha de comando do “Server Manager”– ServerManagerCmd.exe –query c:\myQuery.xml

– ServerManagerCmd.exe –install Web-Server –whatIf –

logPath c:\Web-Server-Log.txt

– ServerManagerCmd.exe –install GPMC

– ServerManagerCmd.exe –remove DHCP

– ServerManagerCmd.exe –install PowerShell –resultPath c:\

PSInstall.xml –logPath –c:\PSInstallLog.txt

Servermanagercmd.exe

Page 13: Windows Server 2008: Gerenciamento

Server Manager em ação

demo

Page 14: Windows Server 2008: Gerenciamento

Event Viewer noWindows Server 2008

• Event Viewer Console– Completamente re-escrito– Improved organização, integração, filtro e busca

melhorados• Event Logs

– Exportáveis para XML– Links para ações administrativas via logs

• Events– Notificações e tarefas agendadas por evento– Mais informações sobre um evento, online

• Event Forwarding– Consolidação de eventos remota!

Page 15: Windows Server 2008: Gerenciamento

Event Viewer

Page 16: Windows Server 2008: Gerenciamento

Event Viewer

demo

Page 17: Windows Server 2008: Gerenciamento

PowerShell• Shell revolucionário e interativo e linguagem de script

– Baseado em .NET

– Novo conjunto de ferramentas built-in (~130)

– Base de novas ferramentas de gerência• Exchange, System Center, Hyper-V….

– Nova linguagem utiliza as vantagens do.NET• Orientado a objetos

• Pipeline

– Scripts VBS continuam a ser válidos• Novos scripts devem ser escritos em PowerShell

– Instrumentação atual pode continuar a ser usada (COM, ADSI, WMI, ADO, XML, Text, …)

Page 18: Windows Server 2008: Gerenciamento

Perguntas Frequentes• Preciso aprender .NET antes de usar o PowerShell?

– Não, ele é apenas baseado em conceitos do .NET.• Preciso reescrever meus scripts já prontos?

– Não – ferramentas existentes continuam funcionando.• Eu preciso aprender a linguagem nova?

– Não - você pode facilmente executar comandados existentes sem modificar

– Muitos comandos UNIX/Linux são válidos! Experimente!

Page 19: Windows Server 2008: Gerenciamento

Para iniciar os trabalhos…• Comandos são feitos a partir de uma lógica

– Verbo-nome

• Alguns bons pontos para começar– Get-Help – Get-Command | more– Get-Command | sort-object noun | format-table -group

noun– Get-Alias | more– Get-Help stop-service -detailed | more

Page 20: Windows Server 2008: Gerenciamento

PowerShell - Pipelining• Saída de um cmdlet vira entrada de outro

cmdletget-childitemget-processget-mailbox

cmdletsortselectgroupwhereforeach

cmdletformat-tableformat-list

cmdletout-defaultout-fileout-stringout-printerexport-csvexport-cliXML

Page 21: Windows Server 2008: Gerenciamento

Releases do PowerShell• Versão v1.0 disponível no Download Center para:

– Windows XP SP2 – Windows Server 2003 SP2– Windows Vista– Windows Server 2008 (não é necessário d/l, disponível

como feature)• Downloading and Installing Windows PowerShell

– http://www.microsoft.com/technet/scriptcenter/topics/msh/download.mspx

• Version 2.0– http://www.microsoft.com/technet/scriptcenter/topics/winpsh/pshell2.mspx

Page 22: Windows Server 2008: Gerenciamento

PowerShell

Page 23: Windows Server 2008: Gerenciamento

PowerShell em ação

demo

Page 24: Windows Server 2008: Gerenciamento

• Evaluate Windows Server 2008– http://technet.microsoft.com/en-us/windowsserver/2008/bb405966.aspx

• Windows Server 2008 Technical Library– http://technet.microsoft.com/en-us/windowsserver/2008/default.aspx

• Windows Server 2008 Webcasts & Chats– http://www.microsoft.com/events/series/windowsserver2008.aspx

• Windows Server 2008 Product Overview– http://www.microsoft.com/windowsserver2008/evaluation/overview.mspx

• Server Manager– http://technet2.microsoft.com/windowsserver2008/en/servermanager/default.mspx

• Scripting with Windows PowerShell– www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

• What Can I Do With Windows PowerShell?– www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/index.mspx

• Windows Server 2008 Virtual Labs– http://www.microsoft.com/events/series/windowsserver2008.aspx?tab=virtuallabs

Links e Recursos

Page 25: Windows Server 2008: Gerenciamento

Pontos-chaves• Ferramentas de gerenciamento do Windows

Server 2008– Facilitam gerenciamento do servidor– Permitem deployment ágil– Automação faciliatda– Mostrar a informação que VOCÊ precisa, QUANDO você

precisa e onde você precisa!– Há muito mais…

• WinRM, RSAT, RDP, GPMC, Task Manager, Scheduled Tasks, Reliability Center, Backup…

Page 26: Windows Server 2008: Gerenciamento

O que vimos…

• Melhorias nas ferramentas de Gerenciamento do Windows Server 2008– Server Manager– Event Viewer– PowerShell

• Demos• Links e recursos

Page 27: Windows Server 2008: Gerenciamento

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after

the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Roberto Mascarenhas [email protected]