Expandproperty

From Visual DialogShell Wiki
Jump to navigation Jump to search
function expandproperty($a,$b){
return $(select-object -inputobject $a -expandproperty $b)
<#
   .SYNOPSIS
   Expands the property [property] of inputobject [inputobject]
    
   .DESCRIPTION
    VDS
    $major = $(expandproperty [System.Environment]::OSVersion.Version major)
    #major being the property.
    
   .LINK
   https://dialogshell.com/vds/help/index.php/expandproperty
#>
}