Sign in

What is the windows powershell command to get the disk usage on a windows server and output it in json?

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
Get-WmiObject -Class Win32_LogicalDisk | Select-Object DeviceID, FreeSpace, Size | ConvertTo-Json
copied