none
OSDComputerName via CS.INI RRS feed

  • Question

  • Hey guys,

    need some assistance with one of my cs.ini file, i'm unable to get the osdcomputername variable parsed with this.

    *************Start of CS.Ini*************

    [Settings]

    Priority=MySite, ByModel, ByArch, Default
    Properties=MyCustomProperty, SiteC, MoCode, Archit 

    [MySite]
    SiteC=ABC

    [ByModel]
    Subsection=HP-%Model%

    [ByArch]
    Subsection=Arch-%Architecture%

    [HP-HP EliteBook 8540w] 
    MoCode=HP1

    [Arch-x86] 
    Archit=3

    [Arch-x64] 
    Archit=6

    [Default]
    OSDComputerName=%SiteC%-%Archit%-%MoCode%

    *************End of CS.Ini*************

    here are the results I get when I use ztigather.wsf to test it--

    Using COMMAND LINE ARG: Ini file = cs.ini
    Finished determining the INI file to use.
    Added new custom property MYCUSTOMPROPERTY
    Added new custom property SITEC
    Added new custom property MOCODE
    Added new custom property ARCHIT
    Using from [Settings]: Rule Priority = MYSITE, BYMODEL, BYARCH, DEFAULT
    ------ Processing the [MYSITE] section ------
    Property SITEC is now = ABC
    Using from [MYSITE]: SITEC = ABC
    ------ Processing the [BYMODEL] section ------
    ------ Processing the [HP-HP EliteBook 8540w] section ------
    ------ Processing the [BYARCH] section ------
    ------ Processing the [Arch-X64] section ------
    ------ Processing the [DEFAULT] section ------
    ------ Done processing cs.ini ------
    Remapping variables.
    Property TaskSequenceID is now =
    Property DeploymentType is now =
    Finished remapping variables.
    ZTIGather processing completed successfully.

    Would really appreciate if some one could give me a clue as to where I lack..

    thanks in advance.

    Wednesday, December 16, 2015 2:03 PM

Answers

  • Have you tried to change your gather to also process rules?  If you are running it as a command line for testing:

    cscript.exe ZTIGather.wsf /debug:TRUE /GatherLocalOnly:False /RulesFile:..\Control\Customsettings.ini

    Note that the /debug:TRUE isn't really necessary it just is very verbose.

    /RulesFile is also only necessary if you are using something other than Customsettings.ini


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.




    Friday, December 18, 2015 10:38 PM
    Moderator

All replies

  • Are you going off of Mikael's blog post? http://deploymentbunny.com/2012/04/21/back-to-basic-customsettings-ini-explained/

    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.

    Wednesday, December 16, 2015 9:59 PM
    Moderator
  • Thanks Ty but I'm testing this at the moment and the most relevant log snip is already posted above. Anyone....
    Thursday, December 17, 2015 5:01 AM
  • Have you tried to change your gather to also process rules?  If you are running it as a command line for testing:

    cscript.exe ZTIGather.wsf /debug:TRUE /GatherLocalOnly:False /RulesFile:..\Control\Customsettings.ini

    Note that the /debug:TRUE isn't really necessary it just is very verbose.

    /RulesFile is also only necessary if you are using something other than Customsettings.ini


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.




    Friday, December 18, 2015 10:38 PM
    Moderator
  • thanks for your help Ty.

    I didn't follow the complete set of instructions and once that was done, the results were fine.

    Monday, December 21, 2015 9:32 AM