Microsoft Windows PowerShell 3.0 first look
By: Adam Driscoll
Publisher: Packt Publishing
Published: 2012
Place of publication: Birmingham
Language: eng
ISBN-13: 9781849686457; 9781849686440
Subjects: Windows PowerShell (Computer program language); Operating systems (Computers); COMPUTERS; Operating Systems; DOS; Macintosh; Windows Server & NT; Windows Workstation; System Administration; Windows Administration; Microsoft Windows (Computer file)
Description: A quick, succinct guide to the new and exciting features in PowerShell 3.0.
Table of contents: title: Microsoft Windows PowerShell 3.0 First Look; Microsoft Windows PowerShell 3.0 First Look; Credits; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Instant Updates on New Packt Books; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Find What You're Looking for; The Show-Command cmdlet; Updatable contextual help; What help is made of.; title: The Save-Help cmdletThe Update-Help cmdlet; The Get-Help cmdlet; The auto-discovery cmdlet; Understanding cmdlet auto-discovery; Things to know about auto-discovery; Summary; 2. Usability Enhancements; The problem with Where-Object and ForEach-Object; Fixing the problem with Where-Object; Fixing the problem with ForEach-Object; Enhancements to tab completion; Improvements to Get-ChildItem; The problem with Get-ChildItem; A better Get-ChildItem; Summary; 3. Improved Administration; Scheduling jobs; Creating a job trigger; Viewing scheduled jobs in the Windows Task Scheduler.; title: Delegated administrationThe need for a more robust system; Examining PowerShell session configurations; Modifying existing session configurations; Creating a delegated session configuration; Registering new session configurations; Connecting to a newly registered session configuration; Robust and resilient remote sessions; A long running example; Using resilient sessions; Experimenting with resilient sessions; Improved Restart-Computer; The enhanced Restart-Computer; Installing a product which requires a restart; Using the delay parameter; Using different communication protocols; Summary.; title: 4. Windows Workflow in PowerShellUnderstanding Windows Workflow; Integrating Windows Workflow with PowerShell; First steps in workflows; Workflow common parameters; Workflow as a job; Remote execution; Custom workflow parameters; Scripts in workflows; Working between workflows; Parallel execution; Persisting data in workflows; Limitations of PowerShell workflows; Variable scope; No advanced function blocks; Activities that run only on the local machine; The cmdlets that have no activity implementation; Importing activities into PowerShell; Using PowerShell workflows in Visual Studio.; title: Adding a Microsoft workflow activity assemblyAdding a custom PowerShell workflow to Visual Studio; Summary; 5. Using the Common Informational Model; Introduction to the CIM IDE; Implementing a simple WMI provider; Adding a CIM Provider project; The implementation details; Generating PowerShell metadata; Registering a WMI provider; Automatically creating provider cmdlets; Why new cmdlets to interact with WMI?; Differences between the CIM and WMI cmdlets; Cmdlet differences between CIM and WMI; Registering CIM events; Updating CIM instances; Exploring the new CIM cmdlets; CIM sessions.