You are previewing Microsoft Windows PowerShell 3.0 First Look.
O'Reilly logo
Microsoft Windows PowerShell 3.0 First Look

Book Description

A quick, succinct guide to the new and exciting features in PowerShell 3.0

  • Explore and experience the new features found in PowerShell 3.0

  • Understand the changes to the language and the reasons why they were implemented

  • Discover new cmdlets and modules available in Windows 8 and Server 8

  • Quickly get up to date with the latest version of Powershell with concise descriptions and simple examples

  • In Detail

    In an ever growing and changing computer industry, learning how to manage systems effectively is necessary for any administrator. The new features in PowerShell 3.0 extend the already impressive language to support new features that makes working with complex and distributed systems simpler and faster.

    Microsoft Windows PowerShell 3.0 First Look offers a quick look into the new features available in the most recent version of the language. Quick, to-the-point examples ensure that you will be able to easily understand the new features.

    Starting with simple syntactical changes all the way through Windows Worflow integration, you will learn through concise feature analysis and simple examples.

    Throughout this book you will get to grips with changes to the language to aid usability – making administrators' lives easier. New features will be explored such as Windows Workflow integration and extended WMI capabilities. This book includes a chapter outlining some of the most important new cmdlets and modules found in Windows 8 and Windows Server 8.

    Microsoft Windows PowerShell 3.0 First Look will provide a jump start for administrators or power users who want to grasp new features, language changes, and cmdlet offerings found in the new version of Microsoft PowerShell.

    Table of Contents

    1. Microsoft Windows PowerShell 3.0 First Look
      1. Microsoft Windows PowerShell 3.0 First Look
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      7. 1. Find What You're Looking for
        1. The Show-Command cmdlet
        2. Updatable contextual help
          1. What help is made of
          2. The Save-Help cmdlet
          3. The Update-Help cmdlet
          4. The Get-Help cmdlet
        3. The auto-discovery cmdlet
          1. Understanding cmdlet auto-discovery
          2. Things to know about auto-discovery
        4. Summary
      8. 2. Usability Enhancements
        1. The problem with Where-Object and ForEach-Object
          1. Fixing the problem with Where-Object
          2. Fixing the problem with ForEach-Object
        2. Enhancements to tab completion
        3. Improvements to Get-ChildItem
          1. The problem with Get-ChildItem
          2. A better Get-ChildItem
        4. Summary
      9. 3. Improved Administration
        1. Scheduling jobs
          1. Creating a job trigger
            1. Viewing scheduled jobs in the Windows Task Scheduler
          2. Delegated administration
          3. The need for a more robust system
            1. Examining PowerShell session configurations
            2. Modifying existing session configurations
          4. Creating a delegated session configuration
            1. Registering new session configurations
            2. Connecting to a newly registered session configuration
          5. Robust and resilient remote sessions
            1. A long running example
            2. Using resilient sessions
            3. Experimenting with resilient sessions
          6. Improved Restart-Computer
            1. The enhanced Restart-Computer
            2. Installing a product which requires a restart
            3. Using the delay parameter
            4. Using different communication protocols
        2. Summary
      10. 4. Windows Workflow in PowerShell
        1. Understanding Windows Workflow
        2. Integrating Windows Workflow with PowerShell
          1. First steps in workflows
          2. Workflow common parameters
          3. Workflow as a job
          4. Remote execution
          5. Custom workflow parameters
          6. Scripts in workflows
          7. Working between workflows
            1. Parallel execution
            2. Persisting data in workflows
        3. Limitations of PowerShell workflows
          1. Variable scope
          2. No advanced function blocks
          3. Activities that run only on the local machine
          4. The cmdlets that have no activity implementation
          5. Importing activities into PowerShell
        4. Using PowerShell workflows in Visual Studio
          1. Adding a Microsoft workflow activity assembly
          2. Adding a custom PowerShell workflow to Visual Studio
        5. Summary
      11. 5. Using the Common Informational Model
        1. Introduction to the CIM IDE
        2. Implementing a simple WMI provider
          1. Adding a CIM Provider project
          2. The implementation details
          3. Generating PowerShell metadata
          4. Registering a WMI provider
        3. Automatically creating provider cmdlets
          1. Why new cmdlets to interact with WMI?
        4. Differences between the CIM and WMI cmdlets
          1. Cmdlet differences between CIM and WMI
          2. Registering CIM events
          3. Updating CIM instances
        5. Exploring the new CIM cmdlets
          1. CIM sessions
          2. Creating new CIM instances
          3. Working with associated classes
        6. NanoWBEM
        7. Summary
      12. 6. New and Improved PowerShell Hosts
        1. Installing the Windows PowerShell Web Access feature
          1. Configuring the Windows PowerShell Web Access
            1. Authorizing users
          2. Accessing the PowerShell Web Access
        2. Working with the PowerShell Web Access console
          1. Additional input and output
          2. Multiline statements
        3. Enhancements to the PowerShell ISE
          1. Intellisense
          2. Snippets
            1. Defining our own snippets
          3. XML file syntax highlighting
          4. Other editor enhancements
          5. ISE options
            1. List of ISE options
            2. Colors
            3. ISE add-ons
        4. Summary
      13. 7. Windows 8 and Windows Server 2012 Modules and Cmdlets
        1. Core modules
          1. Invoke-WebRequest
            1. Usage examples
          2. Invoke-RestMethod
            1. Usage examples
          3. ConvertTo-Json
            1. Usage examples
          4. ConvertFrom-Json
            1. Usage examples
          5. ControlPanelItem
            1. Usage examples
          6. Rename-Computer
            1. Usage examples
          7. TypeData
            1. Usage examples
          8. Unblock-File
            1. Usage examples
        2. Standard modules
          1. NetAdapter module
            1. NetAdapter cmdlets
              1. Usage examples
            2. NetAdapterBinding
              1. Usage examples
            3. NetAdapaterAdvancedProperty
              1. Usage examples
          2. SmbShare module
            1. SmbShare
              1. Usage examples
            2. SmbSession
              1. Usage examples
            3. SmbShareAccess
              1. Usage examples
            4. SmbOpenFile
              1. Usage examples
          3. PrintManagement module
            1. Printer
              1. Usage examples
            2. PrintJob
              1. Usage examples
            3. PrintConfiguration
              1. Usage examples
          4. Windows data access control module
            1. OdbcDsn
              1. Usage examples
            2. OdbcDriver
              1. Usage examples
          5. DnsClient module
            1. Resolve-DnsName
              1. Usage examples
            2. DnsClientCache
              1. Usage examples
            3. Get-DnsServerAddress
              1. Usage examples
            4. DNSGlobalSettings
              1. Usage examples
          6. Storage module
            1. Disk
              1. Usage examples
            2. Partition
              1. Usage examples
            3. Volume
              1. Usage examples
        3. Roles and feature based modules
          1. Hyper-V module
            1. VM
              1. Usage examples
            2. VMDvdDrive, VMHardDiskDrive, and VMNetworkAdapter
              1. Usage examples
            3. Measure-VM
              1. Usage examples
            4. VMHost
              1. Usage examples
          2. Active Directory deployment module
            1. Install-ADDSForest
              1. Usage examples
            2. ADDSDomainController
              1. Usage examples
            3. Test ADDSDeployment
              1. Usage examples
          3. AppX module
            1. AppXPackage
              1. Usage examples
            2. Get-AppXPackageManifest
              1. Usage examples
        4. Other modules
          1. Remote Desktop management module
          2. BranchCache module
          3. Windows Update Services module
        5. Summary