Powershell overview

14

description

Hello, I just do a quick presentation of good Microsoft Scripting Language for IT Beginner.

Transcript of Powershell overview

Page 1: Powershell overview
Page 2: Powershell overview

POWERSHELL OVERVIEW

Fabrice Jean Cédric HAUHOUOT

JUNIOR INFRASTRUCTURE CONSULTANT – AXXEND UNIVERSITY

MICROSOFT STUDENT PARTNER

Tel : 47930350 – [email protected] - @h_fabrice

Page 3: Powershell overview

AGENDA

QU’EST CE QU’UN SHELL ?POWERSHELL ?OUTILSTYPES DE COMMANDESDEMO : PREMIER SCRIPT NOUVEAUTES DE POWERSHELL V3

PAR OÙ COMMENCER ?

Page 4: Powershell overview

QU’EST CE QU’UN SHELL

?

Un shell est une interface qui permet aux utilisateurs d’interagir avec le système d’exploitation.

Un shell est graphique ou en ligne de commande.

Disponible sur les systèmes des périphériques intermédiaires (routeurs, commutateurs) ou finaux (PC) dans un réseau informatique.

Un shell permet l’automation des tâches complexes et répétitives grâce aux scripts.

Exemples : MS-DOS, DOSShell, PowerShell, BASH, Shell C, etc.

Page 5: Powershell overview

QU’EST CE QU’UN SHELL

?

CMD.EXE : SHELL EN LIGNE DE

COMMANDE

WINDOWS EXPLORER : SHELL

GRAPHIQUE

Page 6: Powershell overview

POWERSHELL ?

HISTORIQUE DES SHELLS CLI WINDOWS : MS-DOS, DOSShell, WSH*

CARACTERISTIQUES Configuration minimale : Windows XP SP 2, Server

2003 SP1, .NET Framework 2.0 Exploitation de .NET Framework, Objets COM, WMI. Syntaxe “Verbe-Nom”. Orienté Objet Environnement d’execution securisé. Outil d’administration utilisant PowerShell

IPv4, IPv6, DNS, DHCP, Hyper-V, etc. AD DS, AD RMS, etc. Exchange Server 2007, SQL Server 2008

R2 SCOM, SCCM, SCDPM, etc.

Page 7: Powershell overview

TYPES DE COMMANDES POWERSHELL

Applets de commandes : CmdletsFonctionsScriptsCommandes natives

Page 8: Powershell overview

OUTILS POWERSHELL

TOOLS BY MICROSOFT PowerShell.exe (Interface en ligne de commande) PowerShell ISE (Environnement intégré de script)

THIRD PARTY TOOLS PowerShell Plus http://

www.idera.com/Free-Tools/powershell-plus PowerGUI http://www.quest.com/powergui-freeware

Page 9: Powershell overview

OUTILS POWERSHELL

POWERSHELL.EXE

POWERSHELL ISE

Page 10: Powershell overview

DEMO : PREMIER SCRIPT DEMO

Page 11: Powershell overview

NOUVEAUTES POWERSHELL

V3

Windows PowerShell Workflow Sessions déconnectées Robustesse des connexions à distance Tâches planifiées Administration déléguée. Show-Command. Syntaxe du langage simplifié. Découverte et chargement automatique de commandes.

Nouveautés WMI 3, WinRM, Management OData IIS Extension, Server Manager CIM Provider

Page 12: Powershell overview

PAR OÙ COMMENCER

?

1. Recenser quelques tâches importantes des administrateurs systèmes et réseaux pour en faire des exercices et des projets.

2. Etudier la syntaxe des scripts PowerShell.

3. Passez à l’action ! Et partager vos innovations dans une communauté PowerShell.

Page 13: Powershell overview

QUELQUES LIENS UTILES

Communauté PowerShell francophone: http://powershell-scripting.com

Magazine PowerShell: http://www.powershellmagazine.com/

PowerShell pour les nuls: http://syskb.com/powershell-pour-les-nuls/

Blog MSDN PowerShell: http://blogs.msdn.com/b/powershell/

Microsoft Script Center: http://technet.microsoft.com/en-us/scriptcenter/default.aspx

Page 14: Powershell overview