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-ManagementGroupFunction import-AssemblyFunction Get-SCSMClassPropertyFunction get-SCSMCommandFunction get-SCSMpropertyCmdlet Get-SCSMTaskCmdlet Get-SCSMSubscriptionCmdlet Get-SCSMTypeProjectionCmdlet Get-SCSMTaskResultCmdlet Get-SCSMUserRoleCmdlet Get-SCSMTopLevelEnumerationCmdlet Import-SCManagementPackCmdlet Remove-SCSMSubscriptionCmdlet Remove-SCSMObjectCmdlet Remove-SCManagementPackCmdlet Set-SCSMObjectCmdlet Set-SCSMIncidentCmdlet Set-SCSMAnnouncementCmdlet New-SCSealedManagementPackCmdlet New-SCManagementPackCmdlet Set-SCSMObjectProjectionCmdlet New-SCSMObjectCmdlet New-SCSMIncidentCmdlet New-SCSMAnnouncementCmdlet Get-SCSMRunAsAccountCmdlet Get-SCDWWarehouseModuleTypesCmdlet Get-SCDWRelationshipFactTypesCmdlet Get-SCManagementPackCmdlet Get-SCSMAnnouncementCmdlet Get-SCManagementPackElementCmdlet Get-SCDWOutriggerTypesCmdlet Get-DataWarehouseConfigurationCmdlet Export-SCManagementPackCmdlet Get-SCDWDimensionTypesCmdlet Get-SCDWMeasureTypesCmdlet Get-SCDWFactTypesCmdlet Get-SCSMCategoryCmdlet Get-SCSMRelatedObjectCmdlet Get-SCSMObjectProjectionCmdlet Get-SCSMRelationshipClassCmdlet Get-SCSMRuleCmdlet Get-SCSMResourceCmdlet Get-SCSMObjectCmdlet Get-SCSMClassCmdlet Get-SCSMChildEnumerationCmdlet Get-SCSMConfigItemCmdlet Get-SCSMIncidentCmdlet 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!
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.