Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft System Center Powershell Essentials

You're reading from   Microsoft System Center Powershell Essentials Efficiently administer, automate, and manage System Center environments using Windows PowerShell

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781784397142
Length 140 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Setting up the Environment to Use PowerShell 2. Administration of Configuration Manager through PowerShell FREE CHAPTER 3. Scenario-based Scripting for SCCM Administration 4. Administration of Operations Manager through PowerShell 5. Scenario-based Scripting for SCOM Administration 6. Administration of Service Manager through PowerShell 7. Scenario-based Scripting for SCSM Administration 8. Best Practices Index

Setting up the System Center Operations Manager environment

This section discusses how to set up your PowerShell console to start with the SCOM activities. The traditional method of importing the SCOM module in Windows PowerShell is supported by SCOM 2012 and its later versions.

The prerequisites for this are as follows:

  • SCOM 2012 or the later version infrastructure
  • Windows PowerShell 2.0 or its later version

Connecting to Windows PowerShell for SCOM

The steps for connecting to Windows PowerShell for SCOM are as follows:

  1. Start the 32-bit Windows PowerShell console from your operating system box.
  2. If you are using Windows Server 2008 R2 or a similar operating system, then you can click on Start, search for Windows PowerShell (x86), and launch the console.
  3. If you are using Windows Server 2012 or a similar operating system, then you can press the Windows key + F, search for Windows PowerShell, and choose Apps. From the search list, select Windows PowerShell (x86) and launch the console.
  4. To import the Operations Manager PowerShell module, we need to change the console location to the Operations Manager Console installation folder. For example, we will refer to the parent installation folder as C:\Program Files(x86).

    Type the following lines into the PowerShell console:

    PS C :\> cd 'C:\Program Files\System Center 2012\Operations Manager\PowerShell\'
    
  5. This will set the console location to the PowerShell subfolder in the Operations Manager Console installation folder.
  6. Now, import the OperationsManger.psd1 module file by using the Import-Module cmdlet:
    PS C :\> Import-Module .\OperationsManager.psd1
    

    Note

    To confirm the successful import of the module, type the Get-Module cmdlet on the PowerShell console. Now you will be able to see the new module added to the OperationsManager list.

  7. Now you are ready to manage your Operations Manager infrastructure, using the Windows PowerShell console.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime