Search notes:

Get-ChildItem, Parameter -Include

Cast objects to string

foreach ($file in get-childItem . -recurse -include *.ps1) {
  [string] $name  = $file
   $name

   $file.GetType().FullName
}


foreach ($file in get-childItem . -recurse          *.ps1) {
  [string] $name  = $file
   $name

   $file.GetType().FullName
}
Github repository about-PowerShell, path: /cmdlets/childItem/get/include/cast-to-string.ps1
See also this Stackoverflow question.

See also

get-childItem, get-childItem -include

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/...', 1758789374, '216.73.216.41', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/childItem/get/include(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78