diff --git a/ps-commands.md b/ps-commands.md index 612e1e7..01b052f 100644 --- a/ps-commands.md +++ b/ps-commands.md @@ -64,4 +64,20 @@ Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Se ```powershell Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber +``` + +
+ +### Remotely Fetch $ComputerName's Total/Free Storage + +```powershell +Get-WmiObject Win32_LogicalDisk -ComputerName $ComputerName -Filter DriveType=3 | Select-Object DeviceID, @{'Name'='Size (GB)'; 'Expression'={[math]::truncate($_.size / 1GB)}}, @{'Name'='Freespace (GB)'; 'Expression'={[math]::truncate($_.freespace / 1GB)}} +``` + +
+ +### Remotely Fetch $ComputerName's BIOS Version + +```powershell +Get-WmiObject -Class Win32_BIOS -ComputerName $ComputerName ``` \ No newline at end of file