December, 21, 2010 Bartek Bielawski Sr IT Site Services Specialist Warsaw, Poland.

Slides:



Advertisements
Similar presentations
$$ Idea Updatable help system Method overload discovery HelpUri attribute support HelpFile property on FunctionInfo Simplified Where and.
Advertisements

1 Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret Ben Pearce Premier Field Engineer Microsoft SVR387.
WSV315. Lync Server SharePoint Server Service Manager Windows Small Business Server Exchange Server Windows Diagnostics Server Manager SQL Server.
Windows Server “Longhorn” RDP Airlift. Managing AD with PowerShell; Creating custom administrative consoles Dmitry Sotnikov CTO, Windows Management Quest.
Avi Shitrit Technology Strategist | Intel | Microsoft Corporation Manageability Shachaf Levi Intel IT Client engineer.
Jason Himmelstein, MVP Senior Technical Director,
Automating SQL Buildouts With Hyper-V and SQL Server 2008 R2 Robert L Davis, Sr. DBA, Microsoft Corp.
James Boother Blog: INTRODUCTION TO POWERSHELL.
James Boother Blog: AUTOMATING ADMIN TASKS WITH POWERSHELL.
SharePoint 2010 Administration using PowerShell Brian Caauwe Senior Consultant – SharePoint – MCTS March 20, 2010.
PowerShell for SharePoint or Administrators Can Use the Object Model, Too 30 th October 2008 Sergey Zelenov Premier Field Engineer Microsoft Corporation.
Managing Active Directory with PowerShell JOSEPH MOODY.
Basic.  PS is a command line interpreter/scripting environment  Designed for.Net  Similar to C#  Easy to instantiate.Net classes  Standardized syntax.
Daniel Petri MVP, Microsoft Infrastructure Manager John Bryce Training November 2007.
Welcome Course 20410B Module 0: Introduction Audience
#BSidesCMH PowerShell Copyright (C) 2014 ColumbusBSides. PowerShell: Drink the Kool-Aid.
Connect with life L.Srividya Architect Advisor | Microsoft India.
Adding a Module The Import-Module cmdlet  Can be used to load any external module into PowerShell.  Uses the following syntax to add the ActiveDirectory.
Active Directory: OU Administration December 17th, pm Daniels 407.
© 2007 Asynchrony Solutions, Inc. 1 10/29/07 Introduction to PowerShell Brian Button VP Engineering Asynchrony Solutions, Inc
Managing Citrix Farms Using MFCOM and Powershell.
Presenters: Winfred Wangeci Jignash Reddy.  It is Microsoft's new task-based command- line shell and scripting language designed especially for system.
MS WINDOWS POWER SHELL CSE 535 Operating Systems.
Crystal Hoyer Program Manager IIS Team Preview of features that will be announced at MIX09 Please do not blog, take pictures or video of session.
Getting Started with Application Software
Windows PowerShell Deep Dive 1 Morgan Simonsen Ementor.
Microsoft ® Official Course Module XA Using Windows PowerShell ®
PowerShell Basics. o PowerShell is a great way to manipulate server and/or workstation components o It’s geared toward system administrators by creating.
Appendix A Starting Out with Windows PowerShell™ 2.0.
Powershell Scripting on Vista and XP in AD. Examples (on local and remote PC’s) Show COM,ADSI,.NET, WMI techniques List drives List Software installed.
Module 3 Administering and Automating SharePoint.
Section 6: Using Windows PowerShell to Manage Group Policy Introducing Windows PowerShell Windows PowerShell Library for Group Policy Windows PowerShell-Based.
PowerShell for Dummies Kurt Callemin. WHO AM I ? Kurt Callemin Final year student at KHBO: Master of Science Electronics- ICT Microsoft Student Partner.
Good Morning and Thank You!.  Have some Fun!  Learn at least one thing new!  Make myself available to you So please …  Ask questions and enjoy!
Managing Windows Servers with PowerShell V2 James O’Neill: Evangelist, Microsoft UK Richard Siddaway MVP.
Managing System Center 2012 Configuration Manager with Windows PowerShell MEMUG August 23 rd 2013.
Ed Wilson, MCSE, MCSD Microsoft Scripting Guy Microsoft Session Code: WCL314.
Virtual techdays INDIA │ 9-11 February 2011 Monitoring and managing remote Windows 7 desktops with Windows PowerShell Ravikanth C │ Dell Inc.
Windows PowerShell Introduction 1 Morgan Simonsen Ementor.
CIS 1402: Intro to CIS Tom Gustafson. Facts About PowerShell PowerShell is Microsoft’s command-line interface that provides scripting and management capability.
POWERSHELL BASICS. BACKGROUND  Powershell is a task automation and scripting language based off the.NET framework  It provides the user full access.
 It is Microsoft's new task-based command- line shell and scripting language designed especially for system administration.  It helps Information Technology.
Windows PowerShell. What is Windows PowerShell? A command-line interface (CLI) A new way of developing Windows and other products to be more manageable.
Automating SharePoint 2010 administration tasks with Power Shell Toni Frankola SharePoint MVP, Croatia
Get-Intro –Name PowerShell Jason Helmick Systems Instructor Interface Technical Training.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
POWERSHELL ABOVE AND BEYOND: GUIS, WORKFLOWS, AND MORE Dean Corcoran Partner Service Account Manager (Cloud) – MCT – MCITP:EA Microsoft Australia SESSION.
Blog PowerShell for Managing Active.
 Version 1.0[edit]edit  Version 1.0 was released in 2006 for Windows XP SP2/SP3, Windows Server 2003,
Windows Certification Paths OR MCSA Windows Server 2012 Installing and Configuring Windows Server 2012 Exam (20410) Administering Windows Server.
Introduction to SQL Server Automation with Powershell by Chris Sommer.
Ravikanth C.
PowerShell 5 & Windows 10. What are we covering today? What is PowerShell? Why is PowerShell important? Some simple demos on Windows 10.
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Windows Server 8 beta og Windows PowerShell 3.0
Achieve more in less time using the new SQL PowerShell
PowerShell 2.0 Remoting Ravikanth C.
TechEd /3/2018 4:18 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Automating AD Administration with Windows PowerShell
Getting Started with the Data ONTAP PowerShell Toolkit
Introduction to PowerShell
SharePoint Saturday Omaha April 2016
Making PowerShell Useful
Introductions Jason Taylor
PowerShell Best Practices for SQL DBA’s
Making PowerShell Useful
Windows PowerShell Crash Course
Tech Ed North America /27/ :04 AM Required Slide
Windows without windows...
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday.
Presentation transcript:

December, 21, 2010 Bartek Bielawski Sr IT Site Services Specialist Warsaw, Poland

PowerShell IS: Automation engine Scripting language Interactive console To use it: Windows 7/ Windows Server 2008 R2 Windows XP + Windows Management Framework How pretty it can be? PowerShell.exe – cmd.exe revisited PowerShell ISE – notepad.exe on steroids PowerGUI – MMC + brilliant editor (3rd party) What is PowerShell and how can I get it?

PowerShell.exe/ PowerShell ISE/ PowerGUI + PowerGUI editor Hosts Demo

Easy switch: Cmd.exe – just launch powershell instead Aliases/ functions to make it easier for us *nix have their set of aliases too ‘Old’ commands still work! Switch from cmd.exe or *nix shell

Discover: Get-Verb + Guess Noun Syntax almost like sentence: Get-Process | Where { $_.WorkingSet –gt 100MB } | Stop-Process -Whatif Meaningful parameters disambiguate it Tab Completion Verb-Noun to guess command

PartsPropertiesPartsProperties Front Wheel Back Wheel PedalsPedals SaddleSaddle FrameFrame How to use Methods Methods PedalPedal Steer Left Steer Right Apply Front Brake Apply Rear Brake PartsParts How to use Objects - what they are?

DisplayNameDisplayName PartsPropertiesPartsProperties StatusStatus RequiredServicesRequiredServices Stop()Stop() How to use Methods Methods Start()Start() Pause()Pause() WindowsServiceWindowsService Objects – what they are in ‘Our’ world?

PowerShell objects: Microsoft.NET objects COM objects WMI Objects AD Objects Variables Single ver. Array Foreach as a key to collection Tab to help us see interior Methods definitions using name without () Objects all around

Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-Table Get-Process Cmdlet Common Windows PowerShell Parser Windows PowerShell Pipeline Processor Where Cmdlet Sort Cmdlet Format Cmdlet Pipeline

What it can do for me? List commands (functions, aliases, cmdlets, ‘legacy’ commands) Show definition Show parameters How I can use it? New module – what does it contain? Bell rings – what was this cmdlet name? I know Verbs, I know Nouns, need command! Get-Command to know what to look for

Easy: My-Command -? Basic description Definition to know parameter names Related links to dig more Everything: Get-Help My-Command -full Tons of info Examples Parameters descriptions Parts: -Examples, -Parameter My-Parameter Examples to try and learn Parameter description to understand what I need to get my results Get-Help ask PowerShell first

Too many objects Hard to remember properties/ method names Even harder to know how to use those Useful to see what’s inside Common use cases: COM objects (Excel.Application) To see if we got what we expected To get static methods of.NET classes Why? Helps when interactive We save our memory Can discover not documented objects Get-Member objects under the lens

WMI? MS implementation of CIM Lot of information about hardware/ software and more Available using RPC Why? Inventory Ad-hoc administration (services, processes, and God-knows-what) How? Get-WMIObject (alias gwmi) Invoke-WmiMethod (alias iwmi) -List to list, asterisk to list more… Demo WMI

Quest – 3rd party Very easy, very handy Requires install on our box Demo MS ActiveDirectory module Not as easy Currently only W7 or W2k8 R2 (using RSAT) AD

PSProviders and PSDrives (Almost) everything is a drive Browse registry as file system Wonderful asterisk support Quick ways to filter stuff *-EventLog Get, Limit – both local and remote Great for quick look and decent reports *.log Select-string and regular expressions Files, registry, event logs…

VMWare NetApp Exchange SharePoint SQL IIS SCCM.. And more to come! ;) What else?

Check it first What if? Please ask me to confirm… Build from floor to roof First get, then filter, than format/ output/ set Check each step as you go -WhatIf or –Confirm to avoid problems Save good lines and reuse them later To be on the safe side…

Forums TechNet PowerShellCommunity.org Twitter Tag #PowerShell Enjoy and learn, or opposite ;) On your own Free eBooks (Master PowerShell, PowerShell TFM 2nd ed, and others) Ask PowerShell (Get-Help, -Online, F1 in PowerShell ISE) Blogs, blogs, blogs Podcasts (PowerScripting Podcast, Get-Scripting Podcast) Help!