Recently a colleague of mine Rob Plank brought some new CMDLets for Service Manager to my attention. These are a part of a PowerShell module that can be installed on your Service Manager server. They are the System Center Service Manager PowerShell Extensions also known as SCSMPx. Here is the official description for them:
“The ScsmPx module facilitates automation with Microsoft System Center Service Manager by auto-loading the native modules are included as part of that product and enabling automatic discovery of the commands that are contained within the native modules. It also includes dozens of complementary commands that are not available out of the box to allow you to do much more with your PowerShell automation efforts using the platform.”
This module contains hundreds of new commands for Service Manager.
The module was built by Kirk Munro (@Poshoholic) and sponsored by Provance.
The System Center Service Manager PowerShell Extensions ( SCSMPx) module can be found here: https://github.com/KirkMunro/ScsmPx.
The module requires:
- PowerShell 3.0
- SnippetPx module
The module is very easy to install and can be done so by running this syntax from PowerShell on a Service Manager management server:
& ([scriptblock]::Create((iwr -uri http://tinyurl.com/Install-GitHubHostedModule).Content)) -ModuleName ScsmPx,SnippetPx
Running that will download and install the SCSMPx and SnippetPx modules. This is for all users and requires being run from an elevated PowerShell console. This module will auto-load (PowerShell 3.0 and above) so there is no need to run Import-Module to load it.
Once this module is installed on a management server it also enables auto-loading of the native Service Manager CMDlets for Service Manager 2012 and later.
The commands included in the module are:
Get-ScsmPxAdGroup
Get-ScsmPxAdPrinter
Get-ScsmPxAdUser
Get-ScsmPxBuild
Get-ScsmPxBusinessService
Get-ScsmPxChangeRequest
Get-ScsmPxCommand
Get-ScsmPxConfigItem
Get-ScsmPxConnectedUser
Get-ScsmPxDependentActivity
Get-ScsmPxDwCube
Get-ScsmPxDwDataSource
Get-ScsmPxDwName
Get-ScsmPxEnterpriseManagementGroup
Get-ScsmPxEnvironment
Get-ScsmPxIncident
Get-ScsmPxList
Get-ScsmPxListItem
Get-ScsmPxKnowledgeArticle
Get-ScsmPxManagementServer
Get-ScsmPxManualActivity
Get-ScsmPxObject
Get-ScsmPxParallelActivity
Get-ScsmPxPrimaryManagementServer
Get-ScsmPxProblem
Get-ScsmPxRelatedObject
Get-ScsmPxReleaseRecord
Get-ScsmPxRequestOffering
Get-ScsmPxReviewActivity
Get-ScsmPxRunbook
Get-ScsmPxRunbookActivity
Get-ScsmPxSequentialActivity
Get-ScsmPxServiceOffering
Get-ScsmPxServiceRequest
Get-ScsmPxSoftwareItem
Get-ScsmPxSoftwareUpdate
Get-ScsmPxUserOrGroup
Get-ScsmPxViewData
Get-ScsmPxWindowsComputer
New-ScsmPxObject
New-ScsmPxObjectSearchCriteria
New-ScsmPxProxyFunctionDefinition
Remove-ScsmPxAdGroup
Remove-ScsmPxAdPrinter
Remove-ScsmPxAdUser
Remove-ScsmPxBuild
Remove-ScsmPxBusinessService
Remove-ScsmPxChangeRequest
Remove-ScsmPxConfigItem
Remove-ScsmPxDependentActivity
Remove-ScsmPxDwCube
Remove-ScsmPxDwDataSource
Remove-ScsmPxEnvironment
Remove-ScsmPxIncident
Remove-ScsmPxKnowledgeArticle
Remove-ScsmPxManagementServer
Remove-ScsmPxManualActivity
Remove-ScsmPxObject
Remove-ScsmPxParallelActivity
Remove-ScsmPxProblem
Remove-ScsmPxReleaseRecord
Remove-ScsmPxRequestOffering
Remove-ScsmPxReviewActivity
Remove-ScsmPxRunbook
Remove-ScsmPxRunbookActivity
Remove-ScsmPxSequentialActivity
Remove-ScsmPxServiceOffering
Remove-ScsmPxServiceRequest
Remove-ScsmPxSoftwareItem
Remove-ScsmPxSoftwareUpdate
Remove-ScsmPxUserOrGroup
Remove-ScsmPxWindowsComputer
Rename-ScsmPxAdGroup
Rename-ScsmPxAdPrinter
Rename-ScsmPxAdUser
Rename-ScsmPxBuild
Rename-ScsmPxBusinessService
Rename-ScsmPxChangeRequest
Rename-ScsmPxConfigItem
Rename-ScsmPxDependentActivity
Rename-ScsmPxDwCube
Rename-ScsmPxDwDataSource
Rename-ScsmPxEnvironment
Rename-ScsmPxIncident
Rename-ScsmPxKnowledgeArticle
Rename-ScsmPxManagementServer
Rename-ScsmPxManualActivity
Rename-ScsmPxObject
Rename-ScsmPxParallelActivity
Rename-ScsmPxProblem
Rename-ScsmPxReleaseRecord
Rename-ScsmPxRequestOffering
Rename-ScsmPxReviewActivity
Rename-ScsmPxRunbook
Rename-ScsmPxRunbookActivity
Rename-ScsmPxSequentialActivity
Rename-ScsmPxServiceOffering
Rename-ScsmPxServiceRequest
Rename-ScsmPxSoftwareItem
Rename-ScsmPxSoftwareUpdate
Rename-ScsmPxUserOrGroup
Rename-ScsmPxWindowsComputer
Reset-ScsmPxCommandCache
Restore-ScsmPxAdGroup
Restore-ScsmPxAdPrinter
Restore-ScsmPxAdUser
Restore-ScsmPxBuild
Restore-ScsmPxBusinessService
Restore-ScsmPxConfigItem
Restore-ScsmPxEnvironment
Restore-ScsmPxKnowledgeArticle
Restore-ScsmPxManagementServer
Restore-ScsmPxObject
Restore-ScsmPxServiceRequest
Restore-ScsmPxSoftwareItem
Restore-ScsmPxSoftwareUpdate
Restore-ScsmPxUserOrGroup
Restore-ScsmPxWindowsComputer
Set-ScsmPxAdGroup
Set-ScsmPxAdPrinter
Set-ScsmPxAdUser
Set-ScsmPxBuild
Set-ScsmPxBusinessService
Set-ScsmPxChangeRequest
Set-ScsmPxConfigItem
Set-ScsmPxDependentActivity
Set-ScsmPxDwCube
Set-ScsmPxDwDataSource
Set-ScsmPxEnvironment
Set-ScsmPxIncident
Set-ScsmPxKnowledgeArticle
Set-ScsmPxManagementServer
Set-ScsmPxManualActivity
Set-ScsmPxObject
Set-ScsmPxParallelActivity
Set-ScsmPxProblem
Set-ScsmPxReleaseRecord
Set-ScsmPxRequestOffering
Set-ScsmPxReviewActivity
Set-ScsmPxRunbook
Set-ScsmPxRunbookActivity
Set-ScsmPxSequentialActivity
Set-ScsmPxServiceOffering
Set-ScsmPxServiceRequest
Set-ScsmPxSoftwareItem
Set-ScsmPxSoftwareUpdate
Set-ScsmPxUserOrGroup
Set-ScsmPxWindowsComputer