The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Back to Basic–CustomSettings.ini–Sample 1

Posted by Mikael Nystrom on March 5, 2013

Over the years I have done a few customsettings.ini file configurations. Some for LTI, some for ZTI. I have done a bunch of demos during class, sessions and for customers, but I realize I have never published them, and since my blog post Back to Basic – Custom Settings Explained is the most read post I have done (it has been on the top 10 list since it was published) I decided to publish the rest of them

Scenario:

You are about to deploy virtual machines using LiteTouch

Requirements:

  • Only VM’s should be possible to deploy
  • No extra partition should be created
  • The computer name should be generated

Solution:

[Settings]
Priority=ByVMType, Default
Properties=MyCustomProperty

[Default]
OSInstall=NO

[ByVMType]
Subsection=IsVM-%ISVM%

[IsVM-True]
OSInstall=Y
DoNotCreateExtraPartition=YES
OSDComputername=VDI-#Left(“%SerialNumber%”,12)#

BDD.log:

Using from [Settings]: Rule Priority = BYVMTYPE, DEFAULT
—— Processing the [BYVMTYPE] section ——
—— Processing the [IsVM-True] section ——
Property OSINSTALL is now = Y
Using from [IsVM-True]: OSINSTALL = Y
Property OSDCOMPUTERNAME is now = VDI-8069-2911-20
Using from [IsVM-True]: OSDCOMPUTERNAME = VDI-8069-2911-2
Property DONOTCREATEEXTRAPARTITION is now = YES
Using from [IsVM-True]: DONOTCREATEEXTRAPARTITION = YES
—— Processing the [DEFAULT] section ——

Remark:

In this case we are using a section called ByVmType which will find a subsection called IsVM-True if we are running a VM which will set the OSinstall property to Y and then it will build the OSDComputername based on VDI plus the 12 most left characters in the serial number.

Download:

http://sdrv.ms/XTctly

 

/Mike

2 Responses to “Back to Basic–CustomSettings.ini–Sample 1”

  1. Adam Stranger said

    OSDComputername=VDI-#Left(“%SerialNumber%”,12)# cannot work in vmware due to spaces, so how do yo handle it?

  2. […] Back to Basic–CustomSettings.ini–Sample 1 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: