diff --git a/README.md b/README.md index c0c5a08..c1e9b82 100644 --- a/README.md +++ b/README.md @@ -2,28 +2,19 @@ mostly a dumping ground for powershell scriptlets 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 - -serial - +### serial Get-CimInstance -ComputerName $computer -class win32_bios | Select SerialNumber - -os - +### os Get-CimInstance Win32_OperatingSystem -ComputerName $computer | Select-Object Caption - -processor - +### processor 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