Glad to inform you that new version of the SMLets PowerShell comand lets was released couple days ago.
This version is just very minor update of couple features and contains one new cmdlets.
New Get-SCSMClassProperty cmdlets
This comandlet create more for administrators and developers who need to check all properties for given class.
Syntax:
Get-SCSMClassProperty [-Class] <ManagementPackClass> [-Recursive] [-ComputerName <string>] [-Credential <pscredential>] [-SCSMSession <EnterpriseManagementGroup>] [-ThreeLetterWindowsLanguageName <string>] [<CommonParameters>]
The –Recursive switch allow you to display properties not only from current class. but also from all parent classes.
Also you can use pipeline:
Get-SCSMClass System.WorkItem.Incident$ | Get-SCSMClassProperty -Recursive
Result:
The -ThreeLetterWindowsLanguageName parameter
Sometime you need to get data from SCSM using different languages. For instance, to check enumeration values for each language before beta 5 you have to launch the console to do that. Now you can use –ThreeLetterWindowsLanguageName parameter:
You can use this parameter with any cmdlet. For instance, if you will run Get-SCSMObject with –ThreeLetterWindowsLanguageName all enumeration values will be localized to given language. Same true for management packs, templates and so on.
The InternalId property for all EnterpriseManagementObject objects
As you know, each EnterpriseManagementObject (but in fact, any object in SCSM at all) have a internal ID represented as Guid. This Guid can be very helpful sometime. But the problem with SCSM is what System.WorkItem class have Id property and it stored the “human” Id (IR123, SR34 etc). So if you will try to get Id from object directly you will get this human id. There is some way to get internal Id, but it’s not very useful, because required to run the method.
But from Beta 5 you can get internal Id like usual property named __InternalId (double underscore at the begining):
Bugs fixed
Couple annoying bugs was fixed:
- Error with DateTime format for non-ENU environment
- Decimal type was not supported for create\update operations
You can download new release here.
2 Comments
RT @scsmru: New blog post: #SMLets Beta 5 Released #scsm http://t.co/2wyKIAGOXH
RT @scsmru: New blog post: #SMLets Beta 5 Released #scsm http://t.co/2wyKIAGOXH