Query Details

Show All Local Drives

Query

No standalone KQL detected in this source

View source on GitHub

About this query

// Use Case: List all local drives on this Windows PC LogicalDrive

Explanation

This query is designed to retrieve and display a list of all local drives on a Windows PC. It uses the LogicalDrive table, which contains information about the logical drives available on the system. Essentially, when you run this query, it will provide you with details about each local drive, such as their names and possibly other attributes, depending on the available data in the LogicalDrive table.

Details

Ugur Koc profile picture

Ugur Koc

Released: December 13, 2024

Tables

LogicalDrive

Keywords

LogicalDrive

Operators

projectwheresummarizecountdistincttoporder bylimitjoinunionextendletparseparse-wheremv-expandmv-applyrangemake-seriesbintoscalartobooltodatetimetodoubletointtostringtolongtorealtodecimalformat_datetimeformat_timespandatetime_partdatetime_diffdatetime_addnowagostartofdayendofdaystartofweekendofweekstartofmonthendofmonthstartofyearendofyeardayofweekdayofmonthdayofyearweekofyearmonthofyearyearhourminutesecondiffcasecoalesceisemptyisnotemptyisnullisnotnullisemptystringisnotemptystringisemptyguidisnotemptyguidisemptyarrayisnotemptyarrayisemptyobjectisnotemptyobjectisemptydynamicisnotemptydynamicisemptybinaryisnotemptybinaryisemptydatetimeisnotemptydatetimeisemptytimespanisnotemptytimespanisemptydecimalisnotemptydecimalisemptyrealisnotemptyrealisemptyintisnotemptyintisemptylongisnotemptylongisemptyboolisnotemptyboolisnot

Actions

GitHub