Testing for MDT vs SCCM environment

We build images for deployment with applications preinstalled using MDT and then use SCCM to update applications after deployment. In most cases I’m able to use the same psadt script in either environment. There are a few applications though, that need to be configured differently depending on where it’s being installed. How would I test if the script is running in MDT vs SCCM?

One option is to set a task sequence variable and then test for it.

Check out SCCM – Task Sequence Variables – Lab Core | The Lab of MrNetTek for a PS script example.

1 Like