get-itemPropertyValue
returns the value of a named property of an item. get-itemProperty
is related, but returns a psCustomObject that happens to have the properties with the same names as being requested with get-itemPropertyValue
. set-itemPropertyValue
. get-itemPropertyValue
can be used to get these items' property-values such as creationTime
, lastAccessTime
, attributes
etc. get-itemPropertyValue $env:temp creationTime
get-itemPropertyValue
is especially useful to return one ore more values that are stored under a registry key. get-itemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' currentBuild
get-itemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' releaseId, systemRoot