none
Unable to load ZTIUtility.psm1 RRS feed

  • Question

  • Hi everyone,

    I'm trying to debug a powershell script in an active tasksequence, so I created a 'pause tasksequence' task and I'm trying to debug the script. The first problem I run into is that I'm unable to load the ZTIUtitlity module. I get lot's of errors but it all starts with a failure to load a dll. It's a server 2012 R2 VM and the errors I get are these:

    PS C:\Users\Administrator> Import-Module ztiutility
    Microsoft Deployment Toolkit version: 6.2.5019.0
    Import Microsoft.BDD.TaskSequenceModule
    Import-Module : Could not load file or assembly 'file:///Z:\Tools\Modules\Microsoft.BDD.TaskSequen
    ceModule\Microsoft.BDD.TaskSequenceModule.dll' or one of its dependencies. Operation is not suppor
    ted. (Exception from HRESULT: 0x80131515)
    At Z:\Tools\Modules\ztiutility\ztiutility.psm1:47 char:2
    +     Import-Module Microsoft.BDD.TaskSequenceModule -Global
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
        + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportMod 
       uleCommand
     
    Task Sequence Module did not load
    At Z:\Tools\Modules\ztiutility\ztiutility.psm1:51 char:3
    +         throw "Task Sequence Module did not load"
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (Task Sequence Module did not load:String) [], Ru 
       ntimeException
        + FullyQualifiedErrorId : Task Sequence Module did not load
     
    Microsoft Deployment Toolkit version: 6.2.5019.0
    Import Microsoft.BDD.TaskSequenceModule
    Import-Module : Could not load file or assembly 'file:///Z:\Tools\Modules\Microsoft.BDD.TaskSequen
    ceModule\Microsoft.BDD.TaskSequenceModule.dll' or one of its dependencies. Operation is not suppor
    ted. (Exception from HRESULT: 0x80131515)
    At C:\MININT\Modules\ztiutility\ztiutility.psm1:47 char:2
    +     Import-Module Microsoft.BDD.TaskSequenceModule -Global
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
        + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportMod 
       uleCommand
     
    Task Sequence Module did not load
    At C:\MININT\Modules\ztiutility\ztiutility.psm1:51 char:3
    +         throw "Task Sequence Module did not load"
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (Task Sequence Module did not load:String) [], Ru 
       ntimeException
        + FullyQualifiedErrorId : Task Sequence Module did not load
     
    Import-Module : The specified module 'ztiutility' was not loaded because no valid module file was 
    found in any module directory.
    At line:1 char:1
    + Import-Module ztiutility
    + ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (ztiutility:String) [Import-Module], FileNotFo 
       undException
        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCo 
       mmand
    

    Clues anyone? Thanks in advance.

    MicaH.

    Monday, December 23, 2013 10:47 AM

Answers

  • Powershell/.NET does *NOT* like running modules over the network for security issues.

    Check out ztiPSUtility.vbs to see how MDT copies the *.dll locally in order to run scripts.


    Keith Garner - keithga.wordpress.com

    Monday, December 30, 2013 4:17 AM
    Moderator

All replies

  • Powershell/.NET does *NOT* like running modules over the network for security issues.

    Check out ztiPSUtility.vbs to see how MDT copies the *.dll locally in order to run scripts.


    Keith Garner - keithga.wordpress.com

    Monday, December 30, 2013 4:17 AM
    Moderator
  • Any luck ?
    Sunday, March 31, 2019 9:03 PM