PowerCLIGoodies / DRSRule

PowerShell module with support for managing vSphere DRS Rules and Groups
28 stars 9 forks source link

Import-Module error in PowerCLI 6.5 #4

Closed lucdekens closed 7 years ago

lucdekens commented 7 years ago

When importing the DRSRule module in PowerCLI 6.5, the following error is displayed.

Import-DrsRule : Unable to find type [DRSRule.VMGroup]. Make sure that the assembly that contains this type is loaded. At line:1 char:1

lucdekens commented 7 years ago

The issue is caused in DRSRule.init.ps1, line 1. $pcliDll = "${env:\ProgramFiles(x86)}\VMware\Infrastructure\vSphere PowerCLI\VMware.Vim.dll"

Since PowerCLI 6.5, the location of the VMare.Vim.dll has changed.