Service Manager ‘SMLets’ CodePlex Project Expanded

Service Manager ‘SMLets’ CodePlex Project Expanded

  • Comments 6
  • Likes

Last week, we made a major update to the 'SMLets' CodePlex cmdlets project for Service Manager. This release is called 'Beta 1' and has been expanded from the original 3 cmdlets for incidents to 48 cmdlets and functions and a bunch of scripts. This release includes the Announcements and Remove-SCSMManagmeentPack cmdlets examples I provided earlier on the blog. The majority of the new content was provided by Jim Truher who is our resident PowerShell guru having worked on the PowerShell team during its original release. Jim also refactored the project into a PowerShell module so that we could package the scripts and cmdlets together into one neat bundle and take advantage of some of the new features in PowerShell 2.0. Accordingly, you'll need to have PowerShell 2.0 installed to use these new goodies. Also – keep in mind that these PowerShell cmdlets and scripts rely on the Service Manager SDK assemblies so you'll need to be running these either on the Service Manager Management Server or a computer where the Service Manager console is installed.

Here's a list of all the new stuff:

Function New-ManagementGroup
Function import-Assembly
Function Get-SCSMClassProperty
Function get-SCSMCommand
Function get-SCSMproperty
Cmdlet Get-SCSMTask
Cmdlet Get-SCSMSubscription
Cmdlet Get-SCSMTypeProjection
Cmdlet Get-SCSMTaskResult
Cmdlet Get-SCSMUserRole
Cmdlet Get-SCSMTopLevelEnumeration
Cmdlet Import-SCManagementPack
Cmdlet Remove-SCSMSubscription
Cmdlet Remove-SCSMObject
Cmdlet Remove-SCManagementPack
Cmdlet Set-SCSMObject
Cmdlet Set-SCSMIncident
Cmdlet Set-SCSMAnnouncement
Cmdlet New-SCSealedManagementPack
Cmdlet New-SCManagementPack
Cmdlet Set-SCSMObjectProjection
Cmdlet New-SCSMObject
Cmdlet New-SCSMIncident
Cmdlet New-SCSMAnnouncement
Cmdlet Get-SCSMRunAsAccount
Cmdlet Get-SCDWWarehouseModuleTypes
Cmdlet Get-SCDWRelationshipFactTypes
Cmdlet Get-SCManagementPack
Cmdlet Get-SCSMAnnouncement
Cmdlet Get-SCManagementPackElement
Cmdlet Get-SCDWOutriggerTypes
Cmdlet Get-DataWarehouseConfiguration
Cmdlet Export-SCManagementPack
Cmdlet Get-SCDWDimensionTypes
Cmdlet Get-SCDWMeasureTypes
Cmdlet Get-SCDWFactTypes
Cmdlet Get-SCSMCategory
Cmdlet Get-SCSMRelatedObject
Cmdlet Get-SCSMObjectProjection
Cmdlet Get-SCSMRelationshipClass
Cmdlet Get-SCSMRule
Cmdlet Get-SCSMResource
Cmdlet Get-SCSMObject
Cmdlet Get-SCSMClass
Cmdlet Get-SCSMChildEnumeration
Cmdlet Get-SCSMConfigItem
Cmdlet Get-SCSMIncident
Cmdlet Get-SCSMEnumeration

Thanks to Jim and Patrik Sundqvist for putting this together! This is going to be super powerful! Think about all the possibilities of using these in console tasks and workflows using the PowerShell script activity!

You can download the beta 1 release from the CodePlex site here:

http://smlets.codeplex.com/

Enjoy!

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hi

    I have self-created class.

    How to obtain all instance of my class using Get-SCSMObject?

  • You should be able to do this as follows:

    PS> Get-SCSMObject -ClassName <classname>

    Please use the project discussion smlets.codeplex.com/.../List.aspx so we can better track issues and discussions.

    Thanks!

  • I tried to register at Codeplex so I could ask my question there, but I have problem with the registration.

    Maybe I can ask my question here instead?

    I follow the instructions in Readme.txt to install the SMLets.

    Where can I find the Build.ps1 that I will run to build the Module?

    It´s not in the Zip file.

  • @Steve -

    Build.ps1 is in the sources download.  Click on the Source tab on the CodePlex project site.

  • I still have problem to install SMLets. When I run Import-Module SMLets I get this:

    SMLets.Types.ps1xml : File skipped because it was already present from "Microsoft.PowerShell".

  • That's probably ok - it just means it had already been added. Perhaps you tried to import the module twice.

    Please use the project discussion smlets.codeplex.com/.../List.aspx so we can better track issues and discussions.