Search notes:

PowerShell: the automatic variable $psHome

$psHome is an ordinary System.String whose value points to the installation directory of PowerShell.
In non-Core PowerShell installations, this value seems to be C:\Windows\System32\WindowsPowerShell\v1.0.
Files that are found in a PowerShell Version 5.1 this installation directory include
Certificate.format.ps1xml
Diagnostics.Format.ps1xml
DotNetTypes.format.ps1xml
Event.Format.ps1xml
FileSystem.format.ps1xml
getevent.types.ps1xml
Help.format.ps1xml
HelpV3.format.ps1xml
powershell.config.json
powershell.exe
powershell.exe.config
PowerShellCore.format.ps1xml
PowerShellTrace.format.ps1xml
powershell_ise.exe
powershell_ise.exe.config
PSEvents.dll
pspluginwkr.dll
pwrshmsg.dll
pwrshsip.dll
Registry.format.ps1xml
types.ps1xml
typesv3.ps1xml
WSMan.Format.ps1xml

*.format.ps1xml files

Files whose names end in *.format.ps1xml are so-called formatting files. These files define how different .NET types are rendered at the end of a pipeline.
With PowerShell Version 6 and later, such formatting files are not found anymore in the $psHome directory because the formatting instructions are included in the source code of the objects.

See also

Other automatic variables

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/...', 1758763138, '216.73.216.19', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/variable/automatic/psHome/index(77): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78