I am customizing a Front End .HTA for our Organizations OS deployment, I'm making use of several of the SCCM TS Environment Variables such as as _SMSTSMachineName, OSDComputerName, & OSDDomainOUName. In doing so a question came up while determining the New Systems Machine Name My Script Starts as the First Task in the TS and begins by determining if the computer has been assigned a name, I do this by checking the "_SMSTSMachineName" Variable, if nothing is there I Assume the system is New and Begin a "BareMetal" series asking for User Imput. If there is a computer name I then move on to other tasks
My question(s)
1. When are the TS Variables initialized?
2. If Set with a Script, will the Variables be present after reboots?
3. I'm using OSDDomainOUName to do some OU Hoping for security reasons, when is this Variable populated?
4. I have been seeing an error in my script that leads me to believe the COM object "Microsoft.SMS.TSEnvironment" is not always available during the OSD/TS process, is this the case?