Configuration Manager SDK Suggestions and Feedback Requested ("the suggestion thread")
Hi Folks,
Now that the Configuration Manager 2007 SDK is released, we're beginning to work on an update to the SDK that will release soon after Configuration Manager 2007 R2.
Please add your suggestions for the below areas:
-
updates to existing topics
-
additional "How to" topics
-
additional samples
-
additional conceptual information
Thanks,
Jim Bradbury
-
All Replies
Adding / removing site systems + samples
Adding / deleting / changing boundaries (remember SiteBoun.exe?
) + samplesI liked the little samples in the Object Broswer when in Visual Studio, just below the summary that existed in SMS 2003 for some objects.
I have enjoyed the VBscript / C# example split on the examples. Keep up the good work!
Thanks for the feedback Torsten and Matthew!
We are looking at adding more samples and I have a VBS example for installing site systems over in test that I'll post soon.
Hopefully folks will chime in with thoughts on PowerShell (or other languages), TOC organization (are things 'discoverable' in the new structure), and sample ideas.
Any thoughts on error handling in the examples? There's not error handling much now, as sometimes it seems to detract from the concept being covered ... instead we leave 'real' coding to samples, which are generally more robust and incorporate some error handling. Good, bad, don't care?
BTW, if something sucks or is broken ... point that out too ... I'll take care of filing the bugs on this end.
Thanks again!
Jim Bradbury
- One item that has been asked to me. When it best to use the SCCM call for WMI or the native C# call talk to the WMI repository. Or is the same. Is there a speed difference or done one "lack" informaiton.
I would like to see a Full End to End vbs script sample. Nothing too complicated. (Create package & program)
I would like see more details within the SDK help file for example how to decode the HW Inventory Agent Schedule Info.
I would LOVE to see a NEW function that would append a new MOF edit to the appropriate MOF file (sms_def.mof and configuration.mof) and location.
I like to basic example in VB (Visual Studio 2008), not everyone uses C, C++, C#, etc.
I would like to see an example (start to finish) on how to delete a package only knowing it package name.
If you want more input on what needs to be added to the SDK, I recommend send out a note via myITforum and to the MVPs, these web forums are just too hard to use and follow, hence the reason why I only show up when I need something. If there was an offline reader or if these forums where more useable I would be in here all the time.
BTW an example of how un-usable these forums are to me, is the alerting mechanism does not work for me and there is no one you can submit this issue too to have this resolved. Therefore I have to manually poll the forum, find my post (since posts bounce around, it is not always easy to find) and see if anyone has replied to it. This all assumes that I remember to check in the first place.
Jim Bradbury [MSFT] wrote: Hopefully folks will chime in with thoughts on PowerShell (or other languages), TOC organization (are things 'discoverable' in the new structure), and sample ideas.
I definitely would like to see PowerShell as a first-class citizen with regards to examples. Using the managed SMS provider from PowerShell can be difficult without having examples.
Thanks,
Joachim
I would like to see syntax, usage and examples for vb.net, for some reason vb.net examples have been dopped from the Configuration Manager 2007 SDK.
Thanks.
- VB.Net examples are not necessarily required - there are some really great C# to VB converters out there (for example http://www.developerfusion.com/tools/convert/csharp-to-vb/)
HOWEVER,
may I suggest to get rid of the old SMS 2003 SDK samples and Wbem references in the SCCM SDK? Two examples:
AddMembershipRule Method in Class SMS_Collection
Still uses an old VBS example that doesn't work with SCCM
Configuration Manager Context Qualifiers
Quote:
To obtain the collection rules for a collection, your application must use IWbemServices::GetObject or SWbemServices::Get .
This would make the SDK not only more consistent but also help administrators (not programmers - they usually know what they do :) ) that are not that much into programming to use only one way to talk to the SCCM server. VB.Net examples are not necessarily required - there are some really great C# to VB converters out there (for example http://www.developerfusion.com/tools/convert/csharp-to-vb/)
Would probably be easier to come out and say we have dropped support for visual basic net in the SDK as this is clearly whats happened.may I suggest to get rid of the old SMS 2003 SDK samples and Wbem references in the SCCM SDK? Two examples:
Please update the old samples for calling wmi class methods with c# or vb code.
This is what you get as an example for the GetNumResults Method in Class SMS_Collection :
Dim clsCollection As SWbemObject 'SMS_Collection class definition Dim Results As Long ' Number of collection members Set clsCollection = Services.Get("SMS_Collection") clsCollection.GetNumResults "<collectionid>", Results
Translating this into somewhat usable managed code was ... well, not easy.
Public Shared Function CountCollectionMembers(ByVal connection As WqlConnectionManager, ByVal collectionID As String) As Integer Dim instance As ConnectionManagerBase = ConnectionProvider Dim methodClass As String Dim methodName As String Dim methodParameters As New Dictionary(Of String, Object) Dim returnValue As IResultObject instance = connection methodClass = "SMS_Collection" methodName = "GetNumResults" methodParameters.Add("Collection", collectionID) Try returnValue = ConnectionProvider.ExecuteMethod(methodClass, methodName, methodParameters) Debug.Print("Members for Collection " & collectionID & ": " & returnValue.Properties("Result").StringValue) Return returnValue.Properties("Result").IntegerValue Catch ex As SmsException debug.print(ex.Message) End Try End Function
A "How To Call a WMI Class Method" with C# and VB example would be nice- Edited bycvoigt Thursday, August 20, 2009 3:48 PMmade it a bit prettiert. added flowers and stuff

