盒子
盒子
Posts List
  1. Get system information
  2. K drive speed
  3. Network stream

Powershell

use it to do some quick jobs.

Get-Content ./log.log -Wait -Tail 10

Get system information

Get-Counter (Microsoft.PowerShell.Diagnostics)

K drive speed

1
2
PS D:\> (get-counter "\LogicalDisk(D:)\Disk Reads/sec" -SampleInterval 1 -MaxSamples 2).CounterSamples | Out-File .\test
.txt

Network stream

1
2
Get-Counter "\Network Adapter(*)\Bytes Received/sec"
Get-Counter "\Network Adapter(*)\Bytes Sent/sec"