Skip to content

OSD\_DisableCMSClientInstallation

VB Scripting Library > OSD Scripting Library > OSD functions (OSD)

Disables the automatic installation of the CapaInstaller Agent.

No arguments provided.

Boolean, TRUE if function completed successfully.

Can be used i all scripts except the PreBootScript.wsf, since this script is executed after the agent is installed.

The following example disables the installation of the CapaInstaller Agent if the computers chassis type is a server.

Private Function IncludeScript(sScriptFile)
'...
End Function
'Begin
bStatus=True
If bStatus Then bStatus=IncludeScript("customlib.cis")
If bStatus Then bStatus=IncludeLibrary("Capalib.cin")
If bStatus Then bStatus=IncludeLibrary("Osdlib.cin")
If bStatus Then bStatus=Job_Start("WS","Script Name","1.0","ScriptName.log","INSTALL")
If bStatus Then bStatus=OSD_Initialize()
If bStatus and gbIsServer Then bStatus=OSD_DisableCMSClientInstallation()
Job_End(bStatus)
'End main

Scripting Guidelines, OSD_IsServer