SCCM 2012 R2 - Run Powershell script

Topics: Archive - General
Feb 19, 2015 at 2:22 PM
Hello,

With SCCM 2102 R2, it is now possible to run a powershell script in a task sequence.
Is it possible to use Deploy-Application.ps1 with this function?

I'm trying to deploy an application after the OS installation and always get this message in the smsts.log:

Module [C:_SMSTaskSequence\Packages\NBB004EB\AppDeployToolkit\AppDeployToolkitMain.ps1] failed to load:
You cannot call a method on a null-valued expression.
At C:_SMSTaskSequence\Packages\NBB004EB\Deploy-Application.ps1:81 char:3
  • . $moduleAppDeployToolkitMain
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Regards,
Gerald