Powershell: Tu nuevo mejor amigo

4,053 views

Published on

En esta sesión Jorge Díaz (MVP) y Gonzalo Balladares (MVP) te mostrarán cómo puedes automatizar tareas rutinarias de mantenimiento y administración de tus sistemas utilizando Powershell con ejemplos prácticos de Administración de Servicios Windows, Active Directory, Exchange Server, Lync Server, Hyper-V y más

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,053
On SlideShare
0
From Embeds
0
Number of Embeds
1,796
Actions
Shares
0
Downloads
52
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • 2 minutos
  • 2 minutos
  • 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
  • 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)
  • Cmdlet naming: Strict Verb-SingularNoun convention makes guessing easyParameter naming is consistent across cmdletsMakes learning and remembering faster and easierConsistent behavior across cmdlets
  • 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"
  • Partió en Colombia, y luego se expandió a Latam. Hoy casi 200 mil estudiantes, 10 mil de Chile.
  • Powershell: Tu nuevo mejor amigo

    1. 1. Powershell:Tunuevomejor amigo<br />Gonzalo Balladares – MVP Exchange<br />Jorge Díaz – MVP Exchange<br />
    2. 2. Gonzalo Balladares R.<br />MVP Exchange Server<br />MCITP | MCTS | MCSA<br />Director del Grupo <br />Latinoamericano de Usuarios de Exchange (www.msglue.org)<br />Gerente Tecnologías de Activetrainer.cl<br />(gonzalo.balladares@activetrainer.cl)<br />gballadares@mvps.org<br />Twitter: @gballadares<br />http://geeks.ms/blogs/gballadares<br />
    3. 3. Jorge Patricio Díaz Guzmán<br />MVP Exchange Server<br />Director del Grupo <br />Latinoamericano de Usuarios de Exchange (www.msglue.org)<br />Gerente Tecnología MS<br />(jorge.diaz@serviex.cl)<br />http://www.jorgepatricio.org<br />
    4. 4. Agenda<br />Introducción a Powershell<br />Administración de Windows<br />Administración de Hyper-V<br />Administración de Exchange/Lync<br />
    5. 5. Qué es Powershell?<br />Entorno de Scripting<br />Integrado con .net (modelo de objetos)<br />
    6. 6. ¿Por qué Powershell?<br />
    7. 7. Key chages to IIS in R2<br />New IIS Manager Modules<br />ASP.NET on Server Core<br />Integrated PowerShell Provider<br />Configuration Logging & Tracing<br />Integrated FTP and WebDAV <br />Best Practices Analyzer<br />http://channel9.msdn.com/pdc2008/ES14/<br />
    8. 8. Server Core Additions In Windows Server 2008 R2<br />.NET Framework in Server Core<br />Subset of .NET 2.0<br />Subset of .NET 3.0<br />Windows Communication Framework (WCF)<br />Windows Workflow Framework (WF)<br />Subset of .NET 3.5<br />WF additions from 3.5<br />LINQ<br />Subset of ASP.NET support for IIS<br />PowerShell<br />WoW64 as an optional feature<br />http://channel9.msdn.com/pdc2008/ES06/<br />
    9. 9.
    10. 10. http://www.codeplex.com/PSHyperv<br />
    11. 11. http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24017698<br />
    12. 12. Costly<br />http://halr9000.com/article/716<br />
    13. 13. http://technet.microsoft.com/en-us/library/ee806878.aspx<br />Sharepoint 2010<br />
    14. 14. http://msdn.microsoft.com/es-es/library/cc281954.aspx<br />SQL Server<br />
    15. 15. No tengo iPhone, pero …http://tinyurl.com/b62o8f<br />
    16. 16. Exchange 2007/2010 –eq “Másfácil"<br />
    17. 17. Arquitectura de Administración de Exchange 2007/2010<br />CLI<br />GUI<br />Setup<br />Windows Forms<br />Early-bound objs<br />Windows Forms<br />ADO.NET<br />PowerShell Data Provider<br />PowerShell Engine<br />Exchange cmdlets<br />Configuration Data Objects/Access<br />Process Boundary<br />Meta<br />base<br />MAPI<br />Store<br />Registry<br />AD<br />
    18. 18. Anatomía de Powershell<br />
    19. 19. http://www.flickr.com/photos/ajari/2288043144/<br />
    20. 20. En el iniciofue el cmdlet<br />http://www.flickr.com/photos/mnkyhead/3292809/<br />
    21. 21. Verbo – Sustantivo<br />Clear – Host<br />Set – ExecutionPolicy<br />Get – Help<br />Write – Debug<br />Restart – Computer <br />No debohacerlodurante la charla, pero … -whatif (quépasaría) si lo hicieramos?<br />Tome – Café<br />(Durante el break )<br />
    22. 22. Microsoft<br />Windows, SQL Server, IIS, Exchange<br />Otrascompañías: IBM, VM Ware, etc.<br />Tus Scripts<br />http://www.flickr.com/photos/dnorman/2249376120/<br />
    23. 23. La línea de Canalización<br /> (Pipeline)<br />http://www.flickr.com/photos/adactio/377537734/<br />
    24. 24. The PowerShell pipeline<br />Alias<br />Alias<br />Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-Table<br />Common Windows PowerShell Parser<br />Get-ProcessCmdlet<br />Sort -ObjectCmdlet<br />Format-TableCmdlet<br />Where-ObjectCmdlet<br />Windows PowerShell Pipeline Processor<br />
    25. 25. Los Verbos<br />Add<br />Clear<br />New<br />Remove<br />Enable<br />Disable<br />Set<br />Get<br />
    26. 26. Los 4 Fantásticos!<br />Get-command<br />Get-help<br />Get-member<br />Get-psdrive<br />
    27. 27. DEMO<br />
    28. 28. Recursos<br />
    29. 29. MVA<br />www.microsoftmva.com<br />
    30. 30. http://msevents.microsoft.com<br />Buscar “Virtual Labs”<br />Buscar “PowerShell”<br />
    31. 31. Scripts Destacados para Exchange 2010<br />Exchange 2010 Powershell Scripting Resources<br />http://social.technet.microsoft.com/wiki/contents/articles/exchange-2010-powershell-scripting-resources.aspx<br />Scripting Guy: Use PowerShell to Create an Exchange 2010 Database Report<br />http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/28/use-powershell-to-create-an-exchange-2010-database-report.aspx<br />Powershell script to monitor Exchange Server 2010 Services – EMAIL Report<br />http://www.myexchangeworld.com/2010/07/powershell-script-to-monitor-exchange-server-2010-services-email-report/<br />
    32. 32. www.facebook.com/comunidadesMS<br />www.facebook.com/estudiantesMS<br />www.facebook.com/emprendedoresMS<br />@ComunidadesMS<br />LinkedIn: //linkd.in/comunidadesms<br />Vimeo: www.vimeo.com/comunidadesms<br />YouTube: www.youtube.com/comunidadesms<br />Redes Sociales<br />
    33. 33. Créditos<br />Presentación basada en: <br />Windows PowerShell: A Technical Overview<br />“Something old, something new, something borrowed and something blue”<br />Allan da Costa Pinto<br />Windows PowerShell Fanboy<br />Microsoft<br />allandcp@microsoft.com<br />http://blogs.msdn.com/allandcp<br />
    34. 34. Powershell:Tunuevomejor amigo<br />Gonzalo Balladares – MVP Exchange<br />Jorge Díaz – MVP Exchange<br />

    ×