Click to open or copy the files for the MGrp sample.
Click to open or copy the Common files (required).
MGrp.exe is a console application that creates a machine group in the SMS Site Server database and populates it with the machines from the local site server. This sample demonstrates the code required to create and populate a machine group.
For more information, see Mgrp.exe in the Microsoft SMS API.
This sample uses the following keywords:
chkstat; chkstat_rtn; connecttodatasource; ctime; displayfolder; displayscalars; displaysmserror; dothework; free; gets; getstatusname; inputstring; malloc; memset; printf; setmachfilters; setscalarstring; smsaddtoken; smsapiver; smsclosecontainer; smsclosefilter; smsclosefolder; smscommitfolder; smscreatefilter; smscreatefolder; smsdatasourceconnect; smsdatasourcedisconnect; smsdupfolder; smsgetfoldercount; smsgetfolderid; smsgetfoldertype; smsgetnextfolder; smsgetnextscalar; smsgetscalarcount; smslinkfolder; smsopencontainer; smspopulate; smssetfilter; smssetscalar; sprintf; strcpy