locked
Scripted Primary Site Recovery Bad Syntax Error RRS feed

  • Question

  • Hi,

    I am trying to use a .ini file to script the recovery of a ConfigMgr Primary Site for DR purposes. My command line to call the script works okay but generates the an error message dialoge box that says: "The ConfigMgr setup script contains errors."

    The script is below:

    [Installation]

    Action = RecoverPrimarySite

    [RecoveryOptions]

    ServerRecoveryOptions = 1

    DatabaseRecoveryOptions = 10

    SiteServerBackupLocation = c:\SMS_Backup [Insert correct location to backup snapshot files]

    BackupLocation = c:\SMS_Backup [Insert correct location to backup snapshot files]

    [Options]

    ProductID = Eval [Eval or insert product key]

    SiteCode = PRI [Insert Site Code of site to be recovered]

    SiteName = ConfigMgr12 Primary Site [Enter descritive name for site]

    SMSInstallDir = c:\Program Files\Microsoft Configuration Manager [Enter correct install directory for SMS program files]

    SDKServer = sccm12pri.roy.corp [enter correct FQDN for SMS Provider. Must be the same as original site]

    PrerequisiteComp = 1 [set to 1 for downloaded and 0 for needs to be downloaded]

    PrerequisitePath = c:\downloads

    AdminConsole = 1

    JoinCEIP = 0

    [SQLConfigOptions]

    SQLServerName = sccm12pri.roy.corp [Insert FQDN of site server hosting SQL Server. Must be the same as original]

    DatabaseName = CM_PRI [enter database name from original site server]

    SQLSSBPort = 4022

    [HierarchyExpansionOption]

    CCARSiteServer = [insert CAS site code here]

    CASRetryInterval = 1

    WaitForCASTimeout = 2

    And the configMgrSetup.log contains the following errors:

    INFO: Command line options being used are /SCRIPT C:\TEMP\PRIMARY_SITE_RECOVERY.INI   $$<Configuration Manager Setup><06-05-2013 16:30:33.288+300><thread=6608 (0x19D0)>
    ERROR: The script file is missing action key.  $$<Configuration Manager Setup><06-05-2013 16:32:40.536+300><thread=6608 (0x19D0)>
    ~~===================== Failed Configuration Manager 2012 Server Setup =====================  $$<Configuration Manager Setup><06-05-2013 16:32:42.130+300><thread=6608 (0x19D0)>
    <06-05-2013 16:32:42> Failed to create process of SetupWpf.exe.


    Wednesday, June 5, 2013 9:35 PM

Answers

All replies

  • Whoops- inserted a prior version of the .ini file. The actual file is below, and the log entries above are correct. Sorry!

    [Installation]
    Action="RecoverPrimarySite"

    [RecoveryOptions]
    ServerRecoveryOptions = "1"
    DatabaseRecoveryOptions = "10"
    SiteServerBackupLocation = "c:\SMS_Backup" 
    BackupLocation = "c:\SMS_Backup" 

    [Options]
    ProductID = "Eval" 
    SiteCode = "PRI" 
    SiteName = "ConfigMgr12 Primary Site" 
    SMSInstallDir = "c:\Program Files\Microsoft Configuration Manager" 
    SDKServer = "sccm12pri.roy.corp"
    PrerequisiteComp = "1" 
    PrerequisitePath = "c:\downloads"
    AdminConsole = "1"
    JoinCEIP = "0"

    [SQLConfigOptions]
    SQLServerName = "sccm12pri.roy.corp" 
    DatabaseName = "CM_PRI" 
    SQLSSBPort = "4022"

    [HierarchyExpansionOption]

    Wednesday, June 5, 2013 10:07 PM
  • Got it working- thanks!
    • Marked as answer by Angry Cartoon Thursday, June 6, 2013 3:23 AM
    Thursday, June 6, 2013 3:23 AM
  • Got it working- thanks!

    Great! It would be very helpful to the community if you provided the solution. Thanks

    Torsten Meringer | http://www.mssccmfaq.de

    Thursday, June 6, 2013 6:38 AM
  • I copied the ConfigMgr.ini from the %temp% directory and used the formatting from that file to make my changes.

    thx,

    --g

    Tuesday, June 11, 2013 6:20 PM