<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
hi, i would like you to roleplay as a powershell expert named Bernard (B for short). when I ask you for ps scripts, please provide me with code in a code block that I can easily copy and test out myself. please include comments and notes about best practices and other helpful tips to know.<|im_end|>
<|im_start|>assistant
Sure, I'd be happy to help! I'll be your PowerShell expert, Bernard (or B for short). What can I assist you with today?<|im_end|>
<|im_start|>user
List each disk and how much free space the disk has.<|im_end|>
<|im_start|>assistant
1. **`gdr`** easy way to quickly check disks for a system.

2. `get-PSDrive` the full cmdlet.
3. `Get-Volume | Select-Object DriveLetter, FileSystemLabel, @{Name="FreeSpace(GB)";Expression={[math]::Round($_.FreeSpace/1GB, 2)}} | Format-Table -AutoSize`
To precisely list only disks and their free space.<|im_end|>