Skip to content

MSP_Config

CJ edited this page May 11, 2020 · 5 revisions

MSP_Config - Designed to update the MSP Backup 'config.ini' file in a semi-automated fashion, currently can only add internal strings.

  • MSP_Config Project

  • Current Validation : Validated

  • Current Branch : master (Validated)

  • MSP_Config

    • MSP_Config.vbs "[strHDR]" "[strCHG]" "[strVAL]" "[blnFORCE]"
    • Arguments : 4, Required 3, Optional 1
      • "[strHDR]" - REQUIRED - String, Target Header ("Section") of 'config.ini' file to modify
      • "[strCHG]" - REQUIRED - String, Target String to insert into 'config.ini' file
      • "[strVAL]" - REQUIRED - String, Target Value to insert into 'config.ini'
      • "[blnFORCE]" - OPTIONAL - Boolean, Flag to force modify Value
  • Use :

    • Scheduled Task :
      • Create new "Scripting" scheduled task in N-Central, give the task a meaningful name
      • Set RMMTech credentials, select "MSP_Config" for "Repository Item" field.
      • Select the devices to target for script execution, set an appropriate schedule ("Now" is default)
      • Configure Arguments "[strHDR]" "[strCHG]" "[strVAL]" "[blnFORCE]" accordingly, replacing everything in quotes with the appropriate values; for more information on the 'config.ini' file and a list of configurable "Internal Strings" and their possible values, please see MSP Backup Config.ini and MSP Backup Misc. Settings
      • Set notifications as desired and run the scheduled task. Will write output to "C:\temp\MSP_Config.txt"
    • Command Prompt :
      • Right-Click MSP_Config.vbs, select "Properties"
      • Ensure script is not blocked;
        • If you see a button in the lower right labelled "UnBlock", click this button to unblock the file.
      • Run Command Prompt as Admin
        • Enter "cscript.exe //nologo \MSP_Config.vbs "[strHDR]" "[strCHG]" "[strVAL]" "[blnFORCE]""; for more information on the 'config.ini' file and a list of configurable "Internal Strings" and their possible values, please see MSP Backup Config.ini and MSP Backup Misc. Settings
  • Automated Functions :

    • Parses MSP Backup 'config.ini' file, locating "Section" to modify via [strHDR]
    • Parses MSP Backup 'config.ini' file, if [strCHG] is not found, will add [strCHG] as the last line under the specified "Header"
    • Parses MSP Backup 'config.ini' file, if [strVAL] is not found / does not match, will modify [strVAL] for the specified Internal String identified by [strCHG] if [blnFORCE] is set to "true"
Clone this wiki locally