Add modules from WinAPI (process managment and cim hardware)

This commit is contained in:
Alex Kup 2023-12-12 16:39:28 +03:00 committed by GitHub
parent 3514ec6e3d
commit bbfdb5d61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 243 additions and 0 deletions

6
Scripts/Get-IOps.psm1 Normal file
View file

@ -0,0 +1,6 @@
function Get-IOps {
Get-CimInstance Win32_PerfFormattedData_PerfDisk_PhysicalDisk -ErrorAction Ignore |
Where-Object { $_.Name -ne "_Total" } | Select-Object Name,PercentDiskTime,PercentIdleTime,
PercentDiskWriteTime,PercentDiskReadTime,CurrentDiskQueueLength,DiskBytesPersec,DiskReadBytesPersec,
DiskReadsPersec,DiskTransfersPersec,DiskWriteBytesPersec,DiskWritesPersec
}