Pass a task sequence variable to PowerShell script via parameter
When using the Run PowerShell Script task sequence, it would be beneficial to be able to pass task sequence variables in the parameters field, especially when using different credentials where PowerShell no longer has access to Microsoft.SMS.TSEnvironment.
Updating status to complete.
The opt-in phase of our 2002 release (fast ring) is now live and contains the changes asked for with this item.
You can opt-in and then download 2002 through their Admin Console now.
Support Information: https://aka.ms/cmcssreleaseinfo
Dave Clegg commented
Would definitely be useful - currently trying to do various interactions with AD during OSD via Powershell and having lots of problems with either not having the right permissions, or using different credentials and then not being able to access task sequence variables.