Set and Overwrite Property
-
Friday, September 14, 2012 6:55 PM
Hello,
I am new to this forum and hope you can help me out :)
I created a custom property in my customsettings.ini
This is used in OSDComputernameI tried to set a default value for the custom property but it will not be changed again!
In the given example the value will stay at TTT, any ideas?
The Priority is correct as some other things would have failed otherwise in my real code.[Settings] Priority=InitDefs,Default Properties=MyCustomProperty [InitDefs] MyCustomProperty=TTT [Default] MyCustomProperty=ZZZ OSInstall=Y
- Edited by orioon Friday, September 14, 2012 6:56 PM
All Replies
-
Friday, September 14, 2012 8:48 PMThe first "setter" of a value wins. So once it is set in InitDefs, the setter in Default is ignored.
Jason | http://blog.configmgrftw.com
-
Friday, September 14, 2012 8:59 PM
Thanks for the reply!
I would appreciate if someone has a suggestion for the following issue then:
I have a priority for the local gateway which will define the site codes.
This is used in OSDComputername, therefore errors occur if the gateway is not specified in customsettings.iniAny idea to work around it?
-
Friday, September 14, 2012 9:09 PMHow about using a UserExit script: http://social.technet.microsoft.com/Forums/en-US/mdt/thread/7b9ee372-5c6a-4a9c-80b4-0885ddd5bd48
Jason | http://blog.configmgrftw.com
-
Friday, September 14, 2012 9:20 PM
Looks promising!
So I will basically move all my logic from the customsettings.ini to an extra script.
Will share the results with you next week.
Going to use batch, hope that's okay. (really bad at writing VB and not that advanced in PS yet)

