Making TS Variable Available
My task sequence contained the "Use Toolkit Package" and "Gather Local Data" actions. I was using these to determine if the system was a laptop or not so I would know what applications to install. Life was good. Now, i'm modifying my task sequence so that if I install from Stand-alone media, it will behave one way, and if I don't install from stand-alone media, it will behave another way. I decided to give the task sequence variable DeploymentMethod a try. I moved the Use Toolkit Packge and Gather Local Data actions up on the list so they would be performed before my Apply Network Settings tasks. Now I have two Apply Network Settings tasks. One will add the system to the domain if DeploymentMethod is NOT equal to "Media", the other will add it to a workgroup if DeploymentMethod is equal to "Media" This works. Later in my task sequence, I need to reference DeploymentMethod again to determine which flavor of Antivirus software to install. I configured two tasks with the same DeploymentMethod criterion as before. This is NOT working. It behaves like I'm NOT installing from my stand-alone media. I've got some theories, and I'm working on a list of permutations, but it takes a while recreating a 4GB .ISO file and then moving it around. I'm hoping that while I'm experimenting someone will simply have the answer for me. Do I need another Use Toolkit Package and Gather Local Data AFTER the OS is installed? (that is what I'm testing now. Do I need another Use Toolkit Package and Gather Local Data each time the system is restarted? (I have one or two installations in my task sequence that require the system be rebooted).
November 4th, 2010 4:33pm

Do I need another Use Toolkit Package and Gather Local Data each time the system is restarted? yup, otherwise it won't know where to get the scripts/info from My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2010 4:37pm

Thanks, but I think I've made a horrible error. From my last test, I think I determined that DeploymentMethod isn't doing what I think it should. Is DeploymentMethod = "media" if I boot to stand-alone media (a DVD in my case)? If so, if I boot to an MDT WindowsPE disk and install is DeploymentMethod <> "media"? I think perhaps my first attempt is working because I disabled the NIC in the VM I'm using to test. I re-enabled the NIC, but now the system is getting added to the domain. Am I barking up the wrong tree with DeploymentMethod? Would adding a variable to the stand-alone media work better? If I did add a variable to the stand-alone media, would I be able to reference it again after the system was restarted?
November 4th, 2010 11:06pm

Why not use _SMSTSMediaType, then look for the value of "Full Media". See http://technet.microsoft.com/en-us/library/bb632442.aspx for more details. (Its built in and doesnt need you to run the MDT scripts after the reboot)
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2010 3:58pm

KK_1, That sounds like just the thing I'm looking for. I don't know why yet, but _SMSTSMediaType is not working for me. I see in the SMSTS.log file that it has been set (but I don't know what it's value is), and I can see it gets evaluated, but it is evaluating to "FALSE" when I think it should be "TRUE". I'm going to modify the script so it will export the TS environment variables to a log file.
November 8th, 2010 5:05pm

Oops. I was looking for a value of "Full Media" rather than "FullMedia" It's working now!
Free Windows Admin Tool Kit Click here and download it now
November 9th, 2010 7:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics