O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Microsoft System Center PowerShell Essentials

Book Description

Efficiently administer, automate, and manage System Center environments using Windows PowerShell

In Detail

Microsoft PowerShell as a scripting language has been growing strongly over the last couple of years. It has given administrators and IT professionals much more control when managing and implementing tasks within System Center environments. System Center facilitates the configuring, monitoring, and managing of the components of a private cloud. It covers products such as SCCM, SCOM, SCSM, SCVMM, and so on.

Starting with an introduction to PowerShell, this quick reference guide will enable you to get the most out of the latest Microsoft PowerShell techniques to manage the suite of System Center products. You will also get acquainted with the enhancements in the latest version of System Center automation with real-time examples.

By the end of this book, you will have the confidence to create a variety of PowerShell scripts and efficiently administer and maintain your System Center environment with PowerShell.

What You Will Learn

  • Set up an environment to effectively use PowerShell for SCCM, SCOM, and SCSM
  • Understand the advanced usage of all the available cmdlets with real-time examples
  • Administer and maintain a System Center environment with PowerShell
  • Create both simple and advanced functions for different cmdlets with PowerShell
  • Get an insight into real-time System Center applications that you can automate using PowerShell
  • Get to grips with scenario-based scripting for efficient System Center administration and maintenance
  • Discover PowerShell tricks and best practices

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Microsoft System Center PowerShell Essentials
    1. Table of Contents
    2. Microsoft System Center PowerShell Essentials
    3. Credits
    4. About the Authors
    5. About the Reviewers
    6. 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
    7. 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
    8. 1. Setting up the Environment to Use PowerShell
      1. The purpose of this book
      2. The target audience
      3. Why use PowerShell?
      4. PowerShell version references
      5. Setting up the System Center Configuration Manager environment
        1. Connecting to Windows PowerShell for SCCM
        2. Connecting to Windows PowerShell from the SCCM console
      6. Setting up the System Center Operations Manager environment
        1. Connecting to Windows PowerShell for SCOM
      7. Setting up the System Center Service Manager environment
        1. Connecting to Windows PowerShell for SCSM
      8. Summary
    9. 2. Administration of Configuration Manager through PowerShell
      1. Introducing Configuration Manager through PowerShell
      2. Hierarchy details
        1. Site details
        2. Discovery details
        3. Boundary details
        4. Distribution point details
        5. Management point details
        6. Other site role details
      3. Asset and compliance
        1. Collection details
        2. Reading Configuration Manager status messages
        3. Creating new user/device collections
        4. Handling Configuration Manager objects
        5. The client settings information
        6. Alert management
      4. Software distribution
        1. Handling packages and applications
        2. Handling programs
        3. Handling deployment types
        4. Handling application or package deployment
          1. Creating an application catalog web service point and application catalog website point roles
      5. The operating system deployment
        1. An operating system image
        2. Operating system installers
          1. Boot image details
        3. Handling drivers for deployments
        4. Gathering the task sequence
      6. Software update management
        1. Software catalog details
      7. Summary
    10. 3. Scenario-based Scripting for SCCM Administration
      1. Scenario 1 – adding multiple distribution points to a distribution point group
        1. Prescripting activities
        2. Assumption
      2. Scenario 2 – creating multiple packages with the .csv/.txt file input
        1. Prescripting activities
      3. Scenario 3 – using PowerShell to get the Configuration Manager installation directory
      4. Scenario 4 – checking for SCCM services
      5. Scenario 5 – operating a system deployment precheck
      6. Scenario 6 – running a ping test
        1. Prescripting activities
      7. Scenario 7 – getting a list of primary sites in the Configuration Manager environment
      8. Scenario 8 – getting a list of all site servers in the Configuration Manager environment
      9. Scenario 9 – getting component status in Configuration Manager
      10. Scenario 10 – installing the SCCM client agent version
      11. Summary
    11. 4. Administration of Operations Manager through PowerShell
      1. Monitoring
        1. Knowing a management group
        2. Alert management
        3. Alert resolution
      2. Authoring
        1. Discovery management
        2. Class and instance
        3. Groups
      3. Administration
        1. Management servers
        2. Agent management
          1. Agent installation
          2. SCOM proxy agents
        3. Management pack details
          1. SCOM rules
          2. SCOM monitors
          3. Database grooming
          4. Alert notifications
      4. Summary
    12. 5. Scenario-based Scripting for SCOM Administration
      1. Resolving all SCOM alerts
      2. Listing and exporting all SCOM monitors
        1. Assumptions
      3. Listing and exporting all SCOM overrides
        1. Assumptions
      4. Listing and exporting gray agents in SCOM
      5. Finding management pack details for a particular alert
      6. Listing past alerts
      7. Backing up unsealed management packs
      8. Counting alerts created by a monitor
      9. Enabling specific SCOM monitors
      10. Listing all updated management packs
      11. Listing and exporting repeating SCOM alerts
      12. Getting SCOM alerts specific to a computer
      13. Listing all unhealthy SCOM agents
      14. Disabling SCOM alerts
      15. Listing all heartbeat failure machines
      16. Listing all management server open alerts
      17. Listing management servers in the maintenance mode
      18. Listing the health status of management servers
      19. Putting an IIS 7 application in the maintenance mode
      20. Summary
    13. 6. Administration of Service Manager through PowerShell
      1. SMlets
      2. Incident reporting
      3. Auto closing the resolved incidents and closing the completed changes
      4. Changing the status of a service request
      5. Summary
    14. 7. Scenario-based Scripting for SCSM Administration
      1. Adding classes to the SCSM allow list
      2. Exporting management packs
      3. Backing up unsealed management packs
      4. Manual activity and service request check
      5. Tickets status check
      6. Support group and tier queue check for multiple tickets
      7. Updating field information for a number of users
      8. Finding GUID of any SCSM template
      9. Getting queue members for SCSM
      10. Summary
    15. 8. Best Practices
      1. Integrating SQL commands with PowerShell
      2. SCCM health check activities
        1. Checking the SCCM site server availability
        2. Checking the SCCM and dependent service status
        3. Checking the site server disk space
        4. Site server memory utilization test
        5. Checking for site server CPU utilization
        6. Checking for SCCM component status
        7. Checking the management point's health
        8. SCOM health check report
        9. Checking disk space of operation database and data warehouse
        10. Querying top-event and alert-generating computers
        11. Data grooming settings
        12. Reporting all objects in the maintenance mode
        13. Changing the SCSM subscription property by PowerShell
      3. Data warehouse registration
      4. Summary
    16. Index