![]() ![]() ' The query returns a collection that needs to be enumerated. Set programsForPackage = connection.ExecQuery(query,, wbemFlagForwardOnly Or wbemFlagReturnImmediately) Query = "SELECT * FROM SMS_Program WHERE PackageID='" & existingPackageID & "'" ![]() ' Build a query to get the programs for the package. Sub ModifyProgram(connection, existingpackageID, existingProgramNameToModify, newMaxRunTime) However, for a more efficient method of accessing a specific program, using the PackageID and ProgramName, see the How to Modify Program Properties code example.įor information about calling the sample code, see Calling Configuration Manager Code Snippets. For an example, see the How to List All Programs and Their Maximum Run Time Value code example. A slight variation of this example could change property values for all of the programs associated with a specific package. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |