Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft System Center Powershell Essentials

You're reading from  Microsoft System Center Powershell Essentials

Product type Book
Published in Apr 2015
Publisher Packt
ISBN-13 9781784397142
Pages 140 pages
Edition 1st Edition
Languages

Table of Contents (15) Chapters

Microsoft System Center PowerShell Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Setting up the Environment to Use PowerShell 2. Administration of Configuration Manager through PowerShell 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 Service Manager environment


In this section, we will talk about how to set up your PowerShell console to start with the SCSM activities. The traditional method of importing the SCSM module in Windows PowerShell is supported by SCSM 2010 and its later versions.

Here are the prerequisites to set up the SCSM environment:

  • SCSM 2010 or its later version infrastructure

  • Windows PowerShell 2.0 or its later version

Connecting to Windows PowerShell for SCSM

  1. Start the 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) to launch the console.

  4. To import the Service Manager PowerShell module, we need to change the console location to the Service Manager Console installation folder. For example, we will refer to the parent installation folder as C:\Program Files(x86).

  5. Type the following lines into the PowerShell console:

    PS C :\> cd 'C:\Program Files\Microsoft System Center 2012\Service Manager\'
    

    This will set the console location to the Service Manager subfolder in the Service Manager Console installation folder.

  6. Import the System.Center.Service.Manager.psd1 module file for SCSM Management Servers by using the Import-Module cmdlet:

    PS C :\> Import-Module .\System.Center.Service.Manager.psd1
    
  7. Now you are ready to manage your Service Manager infrastructure for SCSM Management Servers using Windows PowerShell.

  8. Import the Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1 module file for Data Warehouse Management Servers by using the Import-Module cmdlet:

    PS C :\> Import-Module .\Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1
    

    To confirm the successful import of the module, you can type the Get-Module cmdlet on the PowerShell console. Now you will be able to see the new module added to the System.Center.Service.Manager and Microsoft.EnterpriseManagement.Warehouse.Cmdlets lists.

  9. Now you are ready to manage your Service Manager infrastructure for Data Warehouse Management Servers using Windows PowerShell.

You have been reading a chapter from
Microsoft System Center Powershell Essentials
Published in: Apr 2015 Publisher: Packt ISBN-13: 9781784397142
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 €14.99/month. Cancel anytime}