Update README.md
This commit is contained in:
parent
c973014730
commit
af0a34173c
10
README.md
10
README.md
@ -3,17 +3,27 @@ mostly a dumping ground for powershell scriptlets
|
|||||||
ciminstance / cimsession replacing wmi so heres how to get various information as it comes up
|
ciminstance / cimsession replacing wmi so heres how to get various information as it comes up
|
||||||
|
|
||||||
network
|
network
|
||||||
|
|
||||||
get-ciminstance -computername $computer win32_Networkadapter -filter "netconnectionstatus = 2" | Select name,speed
|
get-ciminstance -computername $computer win32_Networkadapter -filter "netconnectionstatus = 2" | Select name,speed
|
||||||
|
|
||||||
|
|
||||||
serial
|
serial
|
||||||
|
|
||||||
Get-CimInstance -ComputerName $computer -class win32_bios | Select SerialNumber
|
Get-CimInstance -ComputerName $computer -class win32_bios | Select SerialNumber
|
||||||
|
|
||||||
|
|
||||||
os
|
os
|
||||||
|
|
||||||
Get-CimInstance Win32_OperatingSystem -ComputerName $computer | Select-Object Caption
|
Get-CimInstance Win32_OperatingSystem -ComputerName $computer | Select-Object Caption
|
||||||
|
|
||||||
|
|
||||||
processor
|
processor
|
||||||
|
|
||||||
Get-CimInstance Win32_Processor -ComputerName $computer | Select-Object DeviceID, Name
|
Get-CimInstance Win32_Processor -ComputerName $computer | Select-Object DeviceID, Name
|
||||||
|
|
||||||
|
|
||||||
memory
|
memory
|
||||||
|
|
||||||
(Get-CimInstance Win32_PhysicalMemory -ComputerName $computer | Measure-Object -Property capacity -Sum).sum /1gb
|
(Get-CimInstance Win32_PhysicalMemory -ComputerName $computer | Measure-Object -Property capacity -Sum).sum /1gb
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user