Make your system administrator friendly with PowerShell Enrico - - PowerPoint PPT Presentation

make your system administrator friendly with powershell
SMART_READER_LITE
LIVE PREVIEW

Make your system administrator friendly with PowerShell Enrico - - PowerPoint PPT Presentation

Make your system administrator friendly with PowerShell Enrico Campidoglio @ecampidoglio This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this


slide-1
SLIDE 1

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Enrico Campidoglio

Make your system administrator friendly with PowerShell

@ecampidoglio

slide-2
SLIDE 2

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Agenda

What is PowerShell and why should I care? Fundamentals Administering a web application using PowerShell Wrap up

slide-3
SLIDE 3

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Expresso

A lightweight Markdown-based sample blog engine built using ASP.NET MVC 3

slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

History 1981

MS-DOS

1998

WSH

2006

PowerShell

slide-7
SLIDE 7

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

PowerShell in a nutshell

The Unix-like administrative framework for Windows Has both a command shell and a scripting language Built on top of .NET Extensible

slide-8
SLIDE 8

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Why PowerShell

Arcane MSI packages Biblical maintenance documents Screaming IT stafg Understandable install scripts Automated administrative tasks Built-in system diagnostics

slide-9
SLIDE 9

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Architecture

Runtime and Cmdlets

slide-10
SLIDE 10

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Key features

Convention based syntax Object pipeline Dynamically typed scripting language Integration with the .NET Framework

slide-11
SLIDE 11

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

It can run...

Cmdlets written in any .NET language Scripts written in PowerShell’s own scripting language Executables

slide-12
SLIDE 12

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Anatomy of a cmdlet PS> ¡Get-­‑ChildItem ¡-­‑Path ¡C:\ Verb Noun Parameter

slide-13
SLIDE 13

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

The sequential pipeline PS> ¡Get-­‑Item ¡| ¡Format-­‑List

Item Item

Object

slide-14
SLIDE 14

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Where is PowerShell used?

slide-15
SLIDE 15

If Metro is the new UI for Windows, then PowerShell is the "new UI" for Windows Server

― Rob Helm via Twitter

slide-16
SLIDE 16

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Learn more

PowerGUI

http://powergui.org

PowerShell Survival Guide

http://bit.ly/powershellguide

Master-PowerShell

http://bit.ly/masterpowershell

slide-17
SLIDE 17

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

@ecampidoglio megakemp.wordpress.com Questions?