Microsoft Virtualization Discussions

Customer has the following message "The specified module 'DataONTAP' was not loaded because no valid module file was found in any module directory."

jkane
4,327 Views

This is what I did after running Windows6.0-KB968930-x64.msu.

$host.Version

Major  Minor  Build  Revision

-----  -----  -----  --------

2      0      -1     -1

PS D:\DBA\NetApp\DataONTAP> Get-Module -listavailable

ModuleType Name                      ExportedCommands

---------- ----                      ----------------

Manifest   BitsTransfer              {}

Manifest   PSDiagnostics             {}

PS D:\DBA\NetApp\DataONTAP> $profile

C:\Users\nbkqrnm\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

PS D:\DBA\NetApp\DataONTAP>

PS D:\DBA\NetApp\DataONTAP> test-path $profile

False

PS D:\DBA\NetApp\DataONTAP> New-Item -path $profile -itemtype file -force

    Directory: C:\Users\nbkqrnm\Documents\WindowsPowerShell

Mode                LastWriteTime     Length Name

----                -------------     ------ ----

-a---         9/17/2010  10:40 AM          0 Microsoft.PowerShell_profile.ps1

PS D:\DBA\NetApp\DataONTAP> Import-Module DataONTAP

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

rectory.

At line:1 char:14

+ Import-Module <<<<  DataONTAP

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

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

PS D:\DBA\NetApp\DataONTAP> test-path $profile

True

1 REPLY 1

cknight
4,327 Views

It doesn't appear you installed the Toolkit.  Please refer to our Getting Started document for details.  The install is really just copying files to the right place, and our Install.ps1 script makes that fairly painless.

Once installed, you'll see the Toolkit in the modules list:

PS C:\> Get-Module -ListAvailable

ModuleType Name                      ExportedCommands
---------- ----                      ----------------
Manifest   ADRMS                     {}
Manifest   AppLocker                 {}
Manifest   BestPractices             {}
Manifest   BitsTransfer              {}
Manifest   DataONTAP                 {}
Manifest   FailoverClusters          {}
Manifest   ServerManager             {}
Manifest   TroubleshootingPack       {}

Public