Passing a value from one Task Sequence Variable to another during OSD

imagingsccm-2012

We are playing around with Task Sequence variables in SCCM 2012 Sp1. We are reimaging Operating systems wirelessly and one of the problems we've run into is that when assigning the computer name the computer cannot connect to AD to query the %computername% variable so it assigns it a random Mini-xxxx name.
One way we have thought about doing this is by storing the initial OSDComputerName and passing it back to the computer further down the OSD Task sequence. The initial value is stored correctly but when we try and pass that value into OSDComputerName we are getting the name of the variable and not the contents. How do we pass the contents of one Variable into another?

If anyone knows of a better way to do this then that would be great. I considered giving the computer a generic name and then renaming it when AD can be queried but was unsure how to even start approaching that.

Best Answer

You can do this just by setting OSDComputerName using the Set Task Sequence Variable step, as long as it's set before the Setup Windows and ConfigMgr step it will use the value of that variable at that step.