rgel / PowerCLi

VMware PowerCLI scripts and modules

Home Page:https://ps1code.com/category/vmware-powercli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import-Module issue with GetVlan ValidateRange

cfmorrell opened this issue · comments

On execution of Import-Module Vi-Module -Force -Verbose, an error with ValidateRange is raised and stops import.

capture

Probably the reason is PowerShell v5.1 and above. Try for now to edit the Vi-Module.psm1 file and remove [ValidateRange(1, 4094)] from row 41.
I will be looking for the solution.

Thank you. That did work as a workaround.