Search notes:

System.Management.Automation.PathInfo (class)

A System.Management.Automation.PathInfo object represents a path (such as a file system path or a registry key name).
A PathInfo object is returned in PowerShell by cmdLets such as get-location, resolve-path or the automatic variable $pwd.
Sometimes (I have not figured out when exactly), the ToString() method of PathInfo prepends the path with some provider related information (for example Microsoft.PowerShell.Core\FileSystem::) which can be, frankly, quite a nuisance.
In order to get rid of this prefix, the providerPath property must be used:
"Current directory is: $pwd"
#
# Current directory is: Microsoft.PowerShell.Core\FileSystem::P:\ath\to\directory

"Current directory is: $($pwd.providerPath)"
#
# Current directory is: P:\ath\to\directory

See also

Compare with System.IO.DirectoryInfo

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/Microsof...', 1745371383, '160.79.111.179', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Management/Automation/PathInfo(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78