1 / 15

PowerShell

PowerShell. To the Command Line and Beyond Jeremy Sublett Composable Systems, LLC. Topics. Starting out What is it?, Versions, What’s new?, Starting PowerShell Basics Syntax, Terminology, Variables Advanced Basics Filtering, Functions, Workflow, WMI, Event Log

teleri
Download Presentation

PowerShell

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PowerShell To the Command Line and Beyond Jeremy Sublett Composable Systems, LLC

  2. Topics • Starting out • What is it?, Versions, What’s new?, Starting PowerShell • Basics • Syntax, Terminology, Variables • Advanced Basics • Filtering, Functions, Workflow, WMI, Event Log • Interacting with Office365 • Administration • SharePoint • Exchange • More of what’s new

  3. What is PowerShell? • Accessing PowerShell… • Start menu • Cmd • Application-specific PowerShell loaders Demo

  4. Some of What’s New in PowerShell 3.0 • 1200+ cmdlets/functions verses several hundred in 2.0 • Much better editor (ISE) • Syntax improvements • Show-Command • Updateable Help: Update-Help / Online help

  5. Basics • Getting around the environment • Piping • Variables • Filtering Demo

  6. More of What’s New in PowerShell 3.0 • Workflow capability • Remote connectivity improvements • Session management

  7. Workflow • Multi-Server Management • Single task to manage complex processes, with status always available • Automated failure recovery • Connect/disconnect/restart – persistable, resumable • Parallel or sequential execution • Can use Visual Studio declarative workflows (XAML)

  8. Advanced Basics • Functions • Web Services • Looping • WMI • Event Log • Workflow Demo

  9. Importantcmdlets • Get-Command (Command) • Get-Help (Help) • Get-Member • Select-Object (Select) • Foreach-Object (Foreach or %) • Where-Object (Where or ?) • Write-Host • Export-CSV

  10. Office 365 • What is it? • Administration • SharePoint • Exchange • Lync • …

  11. Administration • Install Windows Azure Active Directory Module for Windows PowerShell (MS Downloads) • Connect with your Office 365 credentials • Get-Msolxxx … PS> Get-MsolCompanyInformation PS> Get-MsolUser –UserPrincipalName … PS> Get-MsolRole Demo

  12. SharePoint Online • Site Collection management., User/Role management • Download SharePoint Online Management Shell • Connect to the admin URL, not your site collection PS> Connect-SPOService -url … -Credential … PS> Get-SPOSite Demo

  13. Exchange Online • Distribution Groups, Provisioning, Migration, Permissions, Compliance, Reporting Management • Connect remotely from PowerShell 3.0 PS> $Session = New-PSSession -ConfigurationNameMicrosoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection PS> Import-PSSession $Session PS> Remove-PSSession $Session Only three sessions allowed

  14. The REST of What’s New in 3.0 • Web-based cmdlets (REST API / OData) • Job scheduling • Ordered Hash Tables • -In -NotIn -Match • Support for .NET 4.0 • New language parser (faster performance) • Workflow Foundation • Parallel Computing • CIM Integration (Common Information Model) • Remote Module import and discovery • Module Auto-Loading

  15. Questions Jeremy Sublett jsublett@composablesystems.com

More Related