Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

SMS TS Environment and getting Variable via PS

$
0
0

Hi guys and fellow sufferes :),

I am in trouble with a PS script running inside as TaskSequence ... 

A collection-variable (e.g. "Language") is given (entered by the installer) and I am trying to get the value inside a Powershell Script...

$TSEnv=New-Object-COMObjectMicrosoft.SMS.TSEnvironment

$NewVariable = $TSEnv.Value ("Language")

Unfortunately I am not the PS crack... only what I want to archive is to have the value of the collection variable Language in a Powershell Variable .. If I debug the TS and run a GetVariables() I do see a list of all TS Variables... including my own "Language Variable" ...

Someone any idea/hint !?

Thanks in advance !

Markus


Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>