You are previewing Instant Windows PowerShell Guide.
O'Reilly logo
Instant Windows PowerShell Guide

Book Description

Enhance your knowledge of Windows PowerShell and get to grips

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Understand new CMDLETs and parameters with relevant examples

  • Discover new module functionality such as CIM, Workflow, DSC, and so on

  • Acquaint yourself with enhancements to PowerShell remoting, PowerShell sessions, and desire state configuration

  • In Detail

    Windows PowerShell has become a booming scripting language over the last couple of years. It has extensive support with an ample number of vendor products, providing a standardized platform for automation and administration. It has massive support for all Microsoft products which creates a layer that can easily automate everything. In the latest version, the PowerShell team has introduced much more functionality with thousands of CMDLETs, part of various modules.

    This book is a quick reference guide to enable you to get the most out of the latest Windows PowerShell techniques. In this book, you will find new enhancements in the latest version of PowerShell with some helpful examples. This book enables you to quickly move from older versions of PowerShell to Version 3.0 and Version 4.0.

    This practical, example-oriented book helps you to overcome the difficulty of using and discovering CMDLETs by providing precise information about everything that has been newly introduced in the latest version of Windows PowerShell. It also focuses on the new configuration management system with the help of DSC as a new feature of Windows PowerShell v4.0.

    You will learn how to use the newly introduced CMDLETs and parameters to perform daily routine tasks. You will also learn how to administer the servers remotely and maintain persistent sessions to provide continuity. You will gain an insight into writing efficient scripts by using various parameters, snippets, and workflows to gain more productivity. You will also be introduced to various modules like CimCmdlets, PSScheduledJob, PSDesiredStateConfiguration, and so on in order to enhance your scripts with the latest instrumentation. Finally this book will make you aware of the capabilities of PowerShell v4.0 and how to fully leverage the functionality introduced in the new version.

    Table of Contents

    1. Instant Windows PowerShell Guide
      1. Instant Windows PowerShell Guide
      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. Errata
          2. Piracy
          3. Questions
      7. 1. Instant Windows PowerShell Guide
        1. Windows PowerShell – prerequisites
          1. Requirements for Windows Management Framework 3.0and Windows Management Framework 4.0
          2. Package contents
        2. Live with help (Simple)
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
            1. How you discover the commands
            2. Ask for help
            3. The ShowWindow parameter
        3. Calculate with the console (Simple)
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
        4. Dealing with PSDrive (Simple)
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
            1. Get-Credential
            2. Select-Object
            3. Import-Csv
            4. Dealing with JSON-formatted objects
            5. Windows PowerShell custom object enhancements
        5. Administer the system (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
            1. Rename-Computer
            2. Operating the control panel from the console
            3. Test-Connection
            4. Test-NetConnection
        6. How to import modules to the console (Simple)
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
            1. LogPipelineExecutionDetails
            2. Get-Module
        7. Typing enhancements (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Working with the various parameters of Get-Command (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Getting the Configuration type CMDLETs
        9. Setting default parameter values (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. PipelineVariable – a new common parameter
            2. Collection filtering using method syntax
        10. Alias the aliases (Simple)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Get-Alias
            2. Import-Alias
            3. Get-Acl
        11. Operate the data (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Get-Content
            2. Tee-Object
        12. Working with the Out-GridView CMDLET (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Export-Csv
            2. Add-Member
            3. Get-Process
            4. Get-FileHash
        13. Session scheme (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Get-PSSession
            2. New-PSTransportOption
        14. Working remotely (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Remoting local variable via $Using
        15. WorkFlow sessions (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. New-PSWorkflowSession
            2. New-PSWorkflowExecutionOption
          4. There's more…
            1. Invoke-AsWorkflow
            2. Common parameters of WorkFlow
            3. Workflow features introduced in PowerShell 4.0
        16. Script it (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. Get-IseSnippet
            2. Import-IseSnippet
            3. Show-Command
            4. Unblock-File
            5. Restart-Computer
        17. WMI versus CIM (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        18. Job scheduling (Intermediate)
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Few changes in Windows PowerShell 4.0
          4. There's more…
        19. Understanding Desired State Configuration (Advanced)
          1. Getting ready
          2. How to do it...
            1. How to define the Configuration block
          3. How it works...
        20. Executing Desired State Configuration (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        21. Exploring various configuration providers (Advanced)
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Archive resources
            2. Group resources
            3. Package resources
            4. Registry resources
            5. Script resources
            6. Service resources
            7. User resources
          4. There's more…
            1. Requirements for creating a custom DSC resource