Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

Poblem with OSDComputerName in CustomSettings.ini

$
0
0

Hi!!

So my goal here is to set the timezone based on the first two chars in %OSDComputerName%, so if the computer is named CN-COMPUTER01 I want it to take the timezone in [CN] section, if this fails I want it to set it based on the defaultgateway.

This works fine when I debug it with ZTIGather but in a OSD-deployment the %OSDComputerName% does not get resolved. So in BDD.log I see that it's looking for the section [%O], The first two characters in the variable %OSDComputerName%, not the actual value.

[Settings]
Priority=Init, ByCountryCode, DefaultGateway, Default
Properties=MyCustomProperty, TheCountryCode

[Init]
TheCountryCode=#Left("%OSDComputerName%",2)#

[ByCountryCode]
SubSection=%TheCountryCode%

[DefaultGateway]
<IP>=CN<IP>=BD<IP>=FI<IP>=IN

[BD]
TimeZone=195
TimeZoneName=Central Asia Standard Time

[CN]
TimeZone=210
TimeZoneName=China Standard Time

[FI]
TimeZone=125
TimeZoneName=FLE Standard Time

[Default]
OSInstall=Y
SkipCapture=YES
SkipAdminPassword=YES
SkipProductKey=YES

KeyboardLocale=041d;0000041d
InputLocale=sv-SE
Language=sv-SE
UserLocale=sv-SE
SystemLocale=sv-SE
UILanguage=en-US
TimeZone=110
TimeZoneName=W. Europe Standard Time

Any ideas? Why does it not resolve the variable?

EDIT: btw, I use SCCM 2012 R2 for OSD.

Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>