Instant Windows PowerShell 3.0 Windows Management Instrumentation Starter

Book description

Explore new abilities of Powershell 3.0 to interact with Windows Management Instrumentation (WMI) through the use of the new CIM cmdlets and realistic management scenarios

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Create CIM sessions to local and remote systems
  • Execute WMI queries using Windows Remote Management
  • Learn industry standard scripts to interact with workstation and server systems

In Detail

PowerShell and Windows Management Instrumentation (WMI) provide you with the ability to remotely manage systems. Whether it is viewing available disk space, or starting an executable remotely, PowerShell 3.0 WMI provides limitless options for scripting the management of systems.

"Instant Windows Powershell 3.0 Windows management instrumentation starter" follows industry standard scripting techniques, utilizing new powerful Cmdlets, to manage different aspects of an operating system and provides practical examples for managing your systems.

You will learn how to create, verify, and terminate new Cmdlets that were introduced with PowerShell 3.0 and apply this new knowledge to real world management scenarios. It will provide detailed information about the structure of WMI, and the best ways to get, set, and execute items on a system, both locally and remotely.

You will also learn how to create, verify, and terminate new CIM sessions using the available Cmdlets. You will also learn how to search CIM classes for available properties and methods, create a new instance of a class, get an existing instance of an existing class, get an associated instance of a class, and remove an instance of a class. Finally, you will learn how to remotely execute code on a system using WMI.

Instant Windows Powershell 3.0 Windows management instrumentation starter will provide you with the ability to fully utilize Windows Management Instrumentation through the use of a variety of new Cmdlets introduced with PowerShell 3.0.

Table of contents

  1. Instant Windows PowerShell 3.0 Windows Management Instrumentation Starter
    1. Instant Windows PowerShell 3.0 Windows Management Instrumentation Starter
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.packtpub.com
      1. Support files, eBooks, discount offers and more
    6. packtLib.packtpub.com
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. Instant Windows PowerShell 3.0 Windows Management Instrumentation Starter
      1. So, what is PowerShell 3.0 WMI?
        1. WMI integration with PowerShell 3.0
        2. Using PowerShell in your environment
      2. Installation
        1. Step 1 – prerequisite software - .NET Framework 4.0
        2. Step 2 – installing the Windows Management Framework 3.0
        3. Step 3 – preparing to use the new CIM cmdlets
          1. Quick configuration
          2. Manual configuration of system
        4. And that's it! But how do I know it's installed?
          1. Method 1 – Get-Host cmdlet
          2. Method 2 – looking at version table
          3. Method 3 – the Host Version property
      3. Quick start – PowerShell 3.0 WMI basics
        1. Using the basic CIM cmdlets
          1. Creating, verifying, and terminating new sessions
      4. Top features you'll want to know about
        1. New CIM instance and class cmdlets
          1. Get-CimClass cmdlets
          2. New-CimInstance cmdlets
          3. Set-CimInstance cmdlet
            1. Part 1 – pre-staging for Set-CimInstance
            2. Part 2 – using the Set-CimInstance cmdlet
          4. Remove-CimInstance cmdlets
          5. Get-CimAssociatedInstance cmdlet
          6. Invoke-CimMethod cmdlet
        2. Scenario 1 – using WMI in software deployment
          1. Checking the operating system version
            1. For Windows 8
            2. Windows Server 2012
          2. Checking disk space
          3. Checking the hardware model number
          4. Checking for running processes
          5. Checking for running services
          6. Viewing the installed software
          7. Checking file version numbers
        3. Scenario 2 – dynamically provisioning the systems
          1. Sequencing the scripts after a restart
          2. Renaming the computer with a random name and a prefix
          3. Waiting for service states
          4. Setting the computer description
        4. Scenario 3 – system maintenance
          1. Looking up the BIOS information
          2. Looking at disk fragmentation
          3. System uptime
          4. Reading error logs
        5. Putting it all together
      5. People and places you should get to know
        1. Official sites
        2. Articles and tutorials
        3. Community
        4. Blogs
        5. Twitter

Product information

  • Title: Instant Windows PowerShell 3.0 Windows Management Instrumentation Starter
  • Author(s): Brenton J.W. Blawat
  • Release date: March 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781849689625