Powershell overview

Post on 01-Jun-2015

705 views 1 download

description

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

Transcript of Powershell overview

POWERSHELL OVERVIEW

Fabrice Jean Cédric HAUHOUOT

JUNIOR INFRASTRUCTURE CONSULTANT – AXXEND UNIVERSITY

MICROSOFT STUDENT PARTNER

Tel : 47930350 – fabrice.hauhouot@studentpartner.com - @h_fabrice

AGENDA

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

PAR OÙ COMMENCER ?

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.

QU’EST CE QU’UN SHELL

?

CMD.EXE : SHELL EN LIGNE DE

COMMANDE

WINDOWS EXPLORER : SHELL

GRAPHIQUE

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.

TYPES DE COMMANDES POWERSHELL

Applets de commandes : CmdletsFonctionsScriptsCommandes natives

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

OUTILS POWERSHELL

POWERSHELL.EXE

POWERSHELL ISE

DEMO : PREMIER SCRIPT DEMO

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

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.

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