PowerShell嵌套

时间:2016-05-17 02:23:53

标签: powershell-v3.0 windows-server-2008-r2

执行import命令时,我收到以下错误,并且任何VMware命令都无法在PowerShell中运行。我该如何解决这个问题?

Import-Module : Cannot load module 'C:\Program Files (x86)\VMware\Infrastructure\vSphere
PowerCLI\Modules\VMware.VimAutomation.Core\VMware.VimAutomation.Core.ps1' because the module nesting limit has been
reached. Modules can only be nested to 10 levels. Please reexamine the order in which you are loading modules so that
they are not as deeply nested then try running your script again.
At line:1 char:1
+ Import-Module VMware.VimAutomation.Cis.Core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (C:\Program File...mation.Core.ps1:String) [Import-Module], InvalidOpe
   rationException
    + FullyQualifiedErrorId : Modules_ModuleTooDeeplyNested,Microsoft.PowerShell.Commands.ImportModuleCommand

0 个答案:

没有答案