Gather OS and HW Information
Get-Counter
Get-CimInstance
Get-WmiObject
Get-EventLog
Get-Counter
Gets performance counter data from local and remote computers.
Get-Counter
# Output1Get-Counter -ListSet *memory*
# Output2Get-Counter -ListSet *memory* | where CounterSetName -eq "Memory"
# Output3Get-Counter -ListSet *memory* | where CounterSetName -eq "Memory" | select -Expand Paths
# Output4Get-Counter "\Memory\% Committed Bytes In Use"
# Output5Timestamp CounterSamples
--------- --------------
4/12/2018 12:24:40 PM \\server1\network interface(microsoft hyper-v network adapter)\bytes total/sec :
0
\\server1\network interface(isatap.jarvis.com)\bytes total/sec :
0
\\server1\processor(_total)\% processor time :
3.34912371701261
\\server1\memory\% committed bytes in use :
21.9847488542107
\\server1\memory\cache faults/sec :
0
\\server1\physicaldisk(_total)\% disk time :
0.0897917818370979
\\server1\physicaldisk(_total)\current disk queue length :
0Get-CimInstance
Gets the CIM instances of a class from a CIM server.
Below 2 commands have exactly same output when using Get-WmiObject
However, they expose different methods and properties
Get-WmiObject
Gets instances of WMI classes or information about the available classes.
Below 2 commands have exactly same output when using Get-CimInstance
However, they expose different methods and properties
Get-EventLog
Gets the events in an event log, or a list of the event logs, on the local or remote computers.
Last updated