Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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 FREE CHAPTER 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

Incident reporting


One more exciting thing that we can do using the Service Manager cmdlets is incident reporting. We can create a simple report of open (active and pending) incidents in System Center Service Manager 2012 and this can be easily done using the SMlets discussed earlier. However, it is good to have the option for my report to be generated by a group of users on their own machines, so it was preferable to do this using the native SCSM 2012 cmdlets (which the users already have installed as part of the SCSM 2012 installation):

  1. Import the SCSM Native cmdlets:

    Import-Module "C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell\System.Center.Service.Manager.psd1"
    
  2. Get the name of your SCSM server:

    $MySCSMServer = "SCSM Server Name"
    New-SCSMManagementGroupConnection -ComputerName $MySCSMServer
     $objRelationshipAssignedToUser = Get-SCSMRelationship -Name "System.WorkItemAssignedToUser"
    $objRelationshipAffectedUser = Get-SCSMRelationship -Name "System.WorkItemAffectedUser...
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
Banner background image