Powershell:Tunuevomejor amigoGonzalo Balladares – MVP ExchangeJorge Díaz – MVP Exchange
Gonzalo Balladares R.MVP Exchange ServerMCITP | MCTS | MCSADirector del Grupo Latinoamericano de Usuarios de Exchange (www.msglue.org)Gerente Tecnologías de Activetrainer.cl(gonzalo.balladares@activetrainer.cl)gballadares@mvps.orgTwitter: @gballadareshttp://geeks.ms/blogs/gballadares
Jorge Patricio Díaz GuzmánMVP Exchange ServerDirector del Grupo Latinoamericano de Usuarios de Exchange (www.msglue.org)Gerente Tecnología MS(jorge.diaz@serviex.cl)http://www.jorgepatricio.org
AgendaIntroducción a PowershellAdministración de WindowsAdministración de Hyper-VAdministración de Exchange/Lync
Qué es Powershell?Entorno de ScriptingIntegrado con .net (modelo de objetos)
¿Por qué Powershell?
Key chages to IIS in R2New IIS Manager ModulesASP.NET on Server CoreIntegrated PowerShell ProviderConfiguration Logging & TracingIntegrated FTP and WebDAV Best Practices Analyzerhttp://channel9.msdn.com/pdc2008/ES14/
Server Core Additions In Windows Server 2008 R2.NET Framework in Server CoreSubset of .NET 2.0Subset of .NET 3.0Windows Communication Framework (WCF)Windows Workflow Framework (WF)Subset of .NET 3.5WF additions from 3.5LINQSubset of ASP.NET support for IISPowerShellWoW64 as an optional featurehttp://channel9.msdn.com/pdc2008/ES06/
http://www.codeplex.com/PSHyperv
http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24017698
Costlyhttp://halr9000.com/article/716
http://technet.microsoft.com/en-us/library/ee806878.aspxSharepoint 2010
http://msdn.microsoft.com/es-es/library/cc281954.aspxSQL Server
No tengo iPhone, pero …http://tinyurl.com/b62o8f
Exchange 2007/2010 –eq “Másfácil"
Arquitectura de Administración de Exchange 2007/2010CLIGUISetupWindows FormsEarly-bound objsWindows FormsADO.NETPowerShell Data ProviderPowerShell EngineExchange cmdletsConfiguration Data Objects/AccessProcess BoundaryMetabaseMAPIStoreRegistryAD
Anatomía de Powershell
http://www.flickr.com/photos/ajari/2288043144/
En el iniciofue el cmdlethttp://www.flickr.com/photos/mnkyhead/3292809/
Verbo – SustantivoClear – HostSet – ExecutionPolicyGet – HelpWrite – DebugRestart – Computer No debohacerlodurante la charla, pero … -whatif (quépasaría) si lo hicieramos?Tome – Café(Durante el break )
MicrosoftWindows, SQL Server, IIS, ExchangeOtrascompañías: IBM, VM Ware, etc.Tus Scriptshttp://www.flickr.com/photos/dnorman/2249376120/
La línea de Canalización (Pipeline)http://www.flickr.com/photos/adactio/377537734/
The PowerShell pipelineAliasAliasGet-Process | Where { $_.handles –gt 500 } | Sort handles | Format-TableCommon Windows PowerShell ParserGet-ProcessCmdletSort -ObjectCmdletFormat-TableCmdletWhere-ObjectCmdletWindows PowerShell Pipeline Processor
Los VerbosAddClearNewRemoveEnableDisableSetGet
Los 4 Fantásticos!Get-commandGet-helpGet-memberGet-psdrive
DEMO
Recursos
MVAwww.microsoftmva.com
http://msevents.microsoft.comBuscar “Virtual Labs”Buscar “PowerShell”
Scripts Destacados para Exchange 2010Exchange 2010 Powershell Scripting Resourceshttp://social.technet.microsoft.com/wiki/contents/articles/exchange-2010-powershell-scripting-resources.aspxScripting Guy: Use PowerShell to Create an Exchange 2010 Database Reporthttp://blogs.technet.com/b/heyscriptingguy/archive/2011/02/28/use-powershell-to-create-an-exchange-2010-database-report.aspxPowershell script to monitor Exchange Server 2010 Services – EMAIL Reporthttp://www.myexchangeworld.com/2010/07/powershell-script-to-monitor-exchange-server-2010-services-email-report/
www.facebook.com/comunidadesMSwww.facebook.com/estudiantesMSwww.facebook.com/emprendedoresMS@ComunidadesMSLinkedIn: //linkd.in/comunidadesmsVimeo: 		www.vimeo.com/comunidadesmsYouTube: 	www.youtube.com/comunidadesmsRedes Sociales
CréditosPresentación basada en: Windows PowerShell: A Technical Overview“Something old, something new, something borrowed and something blue”Allan da Costa PintoWindows PowerShell FanboyMicrosoftallandcp@microsoft.comhttp://blogs.msdn.com/allandcp
Powershell:Tunuevomejor amigoGonzalo Balladares – MVP ExchangeJorge Díaz – MVP Exchange

Powershell: Tu nuevo mejor amigo

Editor's Notes

  • #3 2 minutos
  • #4 2 minutos
  • #20 CmdUnit of operation is a cmdlet (e.g., remove-server) Cmdlets are .NET classes, not EXEsNamespace providers enable groups or families of related cmdlets (i.e., namespaces)File System, Registry, Local Certificate Store, Alias Provider, Environmental Variables, and VariablesPipelines are composed of classes (cmdlets) passing structured objectsExtended Type System (ETS) simplifies developer experience – Types.ps1xml
  • #21 Cmdlets form the basis of PowerShell's functionalityBuilt in a .NET Framework language (e.g., Visual Basic , Visual C#)Act as PowerShell's "command-line utilities"129 provided…more can be "snapped in" in groups (e.g., Exchange)
  • #22 Cmdlet naming: Strict Verb-SingularNoun convention makes guessing easyParameter naming is consistent across cmdletsMakes learning and remembering faster and easierConsistent behavior across cmdlets
  • #24 All cmdlets work with objects, not textAll cmdlets execute in a pipelineThe pipeline always ends in a special cmdlet that converts objects into text representationsSelects properties of the objects and displays those properties' valuesFormats properties in a list or tableNo more parsing text! No more Grep, etc.Work directly with rich, functional objectsFilter, sort, group, and compare within the pipeline using cmdletsThe final output is readable text—but it's just the text you needCreates the capability for massively powerful "one-liners"
  • #30 Partió en Colombia, y luego se expandió a Latam. Hoy casi 200 mil estudiantes, 10 mil de Chile.