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