Click to open or copy the files for the SrvInst sample.
Click to open or copy the Common files (required).
SrvInst.exe is a console mode application that can be used for creating server install jobs or Run Command on Workstation jobs and monitoring the status of these jobs. This code demonstrates datasource connection, folder creation, scalar manipulation, and helper functions.
For more information, see Srvinst.exe in the Microsoft SMS API.
This sample uses the following keywords:
clientdoruncommand; clientjobcreate; clientpkgcreate; clientwritejob; clientwritepkg; clientwritewcl; connecttodatasource; didrequesthelp; displaygreeting; displayhelp; displaysmserror; findfolder; getjobtype; getplatformselection; gets; getscalardword; getscalarstring; getsitename; getstatusname; inputstring; jobstatustostring; number; printf; servercreatepkg; serverdoshare; serversubmitsharejob; serverwaitjobcomplete; serverwritejob; serverwritepkg; serverwriteprogitem; setscalarbool; setscalardword; setscalarstring; setscalartime; sleep; smsclosecontainer; smsclosefolder; smscommitfolder; smscreatefolder; smsdatasourceconnect; smsdatasourcedisconnect; smsgetnextfolder; smsgetscalarbyname; smslinkfolder; smsopencontainer; smspopulate; smssetscalar; sprintf; sscanf; strcmp; strcpy; switch; time