I\'m trying to create a WMI class and add a static property, or set the default value of the property
$WMI_Class = New-Object System.Management.ManagementClass(\
Change your code to :
$WMI_Class = New-Object System.Management.ManagementClass("root\default", [String]::Empty, $null)
$WMI_Class.name = "MyCoreClass"
$WMI_Class.Properties.Add("ver", "Hi, This is sample static value")
$WMI_Class.Put()
$obj = ([WmiClass] 'root\default:MyCoreClass')
$ver = $obj.Properties['ver'].Value
$ver