Search notes:

WQL

WQL is the WMI Query Language.
There are three types of WQL queries:

PowerShell

In PowerShell, a WQL statement might be executed like so:
$result = get-wmiObject -computerName '.' -namespace 'root\cimv2' -query 'select caption, processId, sessionId, threadCount from win32_process'

forEach ($rec in $result) {
  "{0,5} {1,-20}: {2,1} {3,3}" -f $rec.processId, $rec.caption, $rec.sessionId, $rec.threadCount
}

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/...', 1759562224, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/Management-Instrumentation/WQL/index(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78