0 0

Create Scheduled Task for Scrutiny

[showhide type="ahci" more_text="Intel RST must be set to AHCI. Click for instructions to change from RAID to AHCI without causing boot failures." less_text="Intel RST must be set to AHCI in BIOS. To safely change from RAID to AHCI without causing boot failures."]

Enable boot into Safe Mode and reboot:

bcdedit /set {current} safeboot minimal
shutdown -r -t 1

From Safe Mode reboot into UEFI/BIOS and change the SATA mode from RAID to AHCI. Reboot again and it will boot into Safe Mode with the new AHCI drivers loaded.

Disable boot into Safe Mode and reboot:

bcdedit /deletevalue {current} safeboot
shutdown -r -t 1

[/showhide]

Download Scrutiny to C:\Scrutiny.
Download and install Smartmontools.

Create the Schduled Task:

schtasks /create /tn "Scrutiny Collector" /tr "\"C:\Scrutiny\scrutiny-collector-metrics-windows-amd64.exe\" run --config \"C:\Scrutiny\config\collector.yaml\"" /sc minute /mo 30 /ru SYSTEM

C:\Scrutiny\config\collector.yaml:

version: 1

host:
  id: "Windows 11"

api:
  endpoint: "http://192.168.106.3:31054"

commands:
  metrics_smartctl_bin: "C:\\Program Files\\smartmontools\\bin\\smartctl.exe"
  metrics_scan_args: "--scan --json"
  metrics_info_args: "--info --json"
  metrics_smart_args: "--xall --json"

devices:
  - device: /dev/sda

log:
  file: "C:\\Scrutiny\\collector.log"
  level: "DEBUG"

Run the Schduled Task:

schtasks /run /tn "Scrutiny Collector"