Added two new commands

main
capntack 1 year ago
parent fd0c66c0d5
commit ad2d7d35a5

@ -64,4 +64,20 @@ Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Se
```powershell ```powershell
Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber 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
``` ```
Loading…
Cancel
Save