170 likes | 541 Views
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
E N D
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 • Interacting with Office365 • Administration • SharePoint • Exchange • More of what’s new
What is PowerShell? • Accessing PowerShell… • Start menu • Cmd • Application-specific PowerShell loaders Demo
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
Basics • Getting around the environment • Piping • Variables • Filtering Demo
More of What’s New in PowerShell 3.0 • Workflow capability • Remote connectivity improvements • Session management
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)
Advanced Basics • Functions • Web Services • Looping • WMI • Event Log • Workflow Demo
Importantcmdlets • Get-Command (Command) • Get-Help (Help) • Get-Member • Select-Object (Select) • Foreach-Object (Foreach or %) • Where-Object (Where or ?) • Write-Host • Export-CSV
Office 365 • What is it? • Administration • SharePoint • Exchange • Lync • …
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
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
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
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
Questions Jeremy Sublett jsublett@composablesystems.com