vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

Better handling of module version checks #449

Closed rnelson0 closed 3 years ago

rnelson0 commented 3 years ago

If the module is not loaded, and autoloading does not occur before the Get-HVModuleVersion call, the result might be an empty string. This gives a chance to force loading the module and error if it is not available.