Use Task Sequence Variable for Powershell-script during OSD
Hello, I'm trying to use some task Sequence variables (built-in and custom variable) during OSD for a Powershell-script. The Powershell-script works fine if i use hardcoded variable in the script during OSD, but if i try to use task sequence variable, it doesnt work. Here is the beginning of my script: # Create TS Environment COM Object $TS = New-Object -ComObject Microsoft.SMS.TSEnvironment $Client=$TS.Value('_SMSTSMachineName') $FANR=$TS.Value('FANR') So i checked the variable $Client and $FANR and added the lines $Client | Out-File -FilePath "C:\variable.log" -Append $FANR | Out-File -FilePath "C:\variable.log" -Append Unfortunately, the Log is empty and so the variables are emtpy. So what's wrong? I already read http://blogs.technet.com/mniehaus/archive/2009/09/22/running-powershell-scripts-as-part-of-a-task-sequence.aspx
April 27th, 2012 1:02pm

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

Other recent topics Other recent topics