Search notes:

PowerShell cmdLet Get-ItemPropertyValue

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.
Note that there is no corresponding set-itemPropertyValue.

File System

If used on file system items (that is: directories and files), get-itemPropertyValue can be used to get these items' property-values such as creationTime, lastAccessTime, attributes etc.
The following example displays the creation time of the temp directory:
get-itemPropertyValue $env:temp creationTime

Registry values

get-itemPropertyValue is especially useful to return one ore more values that are stored under a registry key.
The following invocation of the cmdLet returns one value from a given registry key:
get-itemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' currentBuild
If multiple values are requested, the cmdLet returns an array.
get-itemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' releaseId, systemRoot

See also

The command parameter -credential.
Powershell command noun: itemPropertyValue

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758209555, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/itemPropertyValue/get(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78