Added two new commands
This commit is contained in:
parent
fd0c66c0d5
commit
ad2d7d35a5
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue