bottkars / vmxtoolkit

vmxtoolkit is the Powershell extension to VMware Workstation
Apache License 2.0
117 stars 32 forks source link

Error when using `StrictMode` #14

Closed thorstenkampe closed 6 years ago

thorstenkampe commented 6 years ago

OS: Windows 10 PowerShell: Core 6.0.1, Desktop 5.1.16299.248

> Set-StrictMode -Version latest
> Import-Module vmxtoolkit
trying to get os type ...
The variable '$OS' cannot be retrieved because it has not been set.
At C:\Users\thorsten\Documents\PowerShell\Modules\vmxtoolkit\4.5.1\vmxtoolkitinit.ps1:11 char:41
+     $OS_Version = "Product Name: Windows $($OS.Version)"
+                                            ~~~
+ CategoryInfo          : InvalidOperation: (OS:String) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
bottkars commented 6 years ago

thanks for heads up. fixed in 4.5.2