in

myITforum.com

This Blog

Syndication

1E Blog

Empowering Efficient IT

Running a ConfigMgr Task Sequence command line as a specified user

When you use the "Run this step as the following account" in ConfigMgr you need to be aware of the fact that the OSD environment does NOT follow to the new user environment. This means that scripts referencing the Microsoft.SMS.TSEnvironment or the BDD/MDT oEnvironment.Item objects will fail to run. So in order to workaround this you will have to parse any variables needed into the actual script using command line arguments. So in the picture below you can see how we workaround feeding the computername variable to a script that runs as domain admin, if the script had referenced the oEnvironment.Item("COMPUTERNAME") it would have failed.

Andreas Hammarskjöld | System Deployment Practice Lead | 1E Ltd |
andreash@1e.com | www.1e.com

Read the complete post at http://www.1e.com/1EBlogs/post/2009/05/18/Running-a-ConfigMgr-Task-Sequence-command-line-as-a-specified-user.aspx

Copyright - www.myITforum.com, Inc. - 2010 All Rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems