Skip to content

SMS\_GetSiteCode

SMS_GetSiteCode(sSMSServer, sUserName, sPassword)

Section titled “SMS_GetSiteCode(sSMSServer, sUserName, sPassword)”
OptionDescriptionType
sSMServerThe SMS Main Site ServerString
sUserNameAccount performing the action on SMS serverString
sPasswordThe password for the above accountString

Boolean, TRUE if function completed successfully.

Gets the site id code from the specified SMS server.
The retrieved ID will be returned in gsSMSSiteCode and gsValue.
Note that the query is performed on the server and therefore you must be sure to have the right permissions.

Specify * as password to let CapaInstaller decrypt a password already specified by CapaInstaller in registry. Notes:
sSMSServer: SMS Main Server. Sub Site Servers are not supported.

<Add Function Scripting Guidelines here>

bStatus=True
If bStatus Then bStatus=IncludeScript(“customlib.cis”)
If bStatus Then bStatus=IncludeScriptingLibrary(“CapaInstaller Scripting Library.cin”)
If bStatus Then bStatus=Job_Start(“WS”,“Get SMS site code”,“1.0”,“Capalib_test.log”,“INSTALL”)
If bStatus Then bStatus=SMS_GetSiteCode(“SMSSRV01”,” FIRMDOM\CapaAdmin”,“Password”)
Job_End(bStatus)

SMS_GetUnitIDFromName SMS_GetCollectionIDFromName SMS_AddUnitToCollection, Sys_SetEncryptedPassword