Added two new commands

This commit is contained in:
capntack 2023-07-30 13:54:26 -05:00
commit ad2d7d35a5

View file

@ -64,4 +64,20 @@ Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Se
```powershell
Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber
```
<br>
### 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)}}
```
<br>
### Remotely Fetch $ComputerName's BIOS Version
```powershell
Get-WmiObject -Class Win32_BIOS -ComputerName $ComputerName
```