none
FIM.psm1 error RRS feed

  • Question

  • Hi.

     

    I'm trying to import FIM PowerShell module on Powershell V 3  (Import-Module FIM) and the following is the error I get:

     

     

    Add-PSTypeAccelerator : You cannot call a method on a null-valued expression.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\FIM\FIM.psm1:935 char:1

    + Add-PSTypeAccelerator -Alias 'FIMExportObject' -Type Microsoft.ResourceManagemen ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : InvalidOperation: (:) [Add-PSTypeAccelerator], RuntimeException

        + FullyQualifiedErrorId : InvokeMethodOnNull,Add-PSTypeAccelerator

     

    Import-Module : The specified module 'FIM' was not loaded because no valid module file was found in any module director

    y.

    At line:1 char:1

    + Import-Module FIM

    + ~~~~~~~~~~~~~~~~~

        + CategoryInfo          : ResourceUnavailable: (FIM:String) [Import-Module], FileNotFoundException

        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

     

     

    Any ideas?

    Thursday, February 6, 2014 9:21 AM

Answers

  • FIM.psm1 was created for PowerShell 2.0. There is new PowerShell module on codeplex, and this new one works in PowerShell 3.0:
    http://fim.codeplex.com/SourceControl/latest#FIM.PowerShell/FIM.psm1


    Keep trying

    • Marked as answer by Gaston Thomasi Tuesday, February 11, 2014 7:01 AM
    Thursday, February 6, 2014 2:01 PM

All replies

  • FIM.psm1 was created for PowerShell 2.0. There is new PowerShell module on codeplex, and this new one works in PowerShell 3.0:
    http://fim.codeplex.com/SourceControl/latest#FIM.PowerShell/FIM.psm1


    Keep trying

    • Marked as answer by Gaston Thomasi Tuesday, February 11, 2014 7:01 AM
    Thursday, February 6, 2014 2:01 PM
  • You can import this module into your PS session if you start out in compatibility mode. Open the command prompt (or from Run...), and type the following:

    powershell -version 2.0

    Once in the 2.0 session, you should be able to import the FIM module.


    Regards, Jose Garza | MS: Svr Virt, MCTS:FIM, MCSA:2003 | http://josetheadmin.blogspot.com

    Monday, February 10, 2014 2:24 PM