Skip to content

Commit efc21f8

Browse files
committed
docs: fix Windows verify commands — PowerShell vs cmd, don't chain
1 parent 454edaf commit efc21f8

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

docs/guides/16-privileged-windows.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,21 @@ Set it up once:
6464
sc.exe start Scaphandre
6565
```
6666

67-
4. Verify:
67+
4. Verify — **in PowerShell** (the `&` call operator and `Invoke-WebRequest` are
68+
PowerShell; don't paste these into `cmd.exe`), one per line:
6869

69-
```
70-
driverquery /v | findstr capha
70+
```powershell
71+
driverquery /v | Select-String capha
7172
& 'C:\Program Files (x86)\scaphandre\scaphandre.exe' stdout
72-
powershell -Command "(Invoke-WebRequest http://127.0.0.1:8080/metrics).Content | Select-String scaph_socket_power"
73+
(Invoke-WebRequest http://127.0.0.1:8080/metrics -UseBasicParsing).Content | Select-String scaph_socket_power
7374
```
7475

76+
The cmd.exe equivalents are `driverquery /v | findstr /i capha`,
77+
`"C:\Program Files (x86)\scaphandre\scaphandre.exe" stdout`, and
78+
`curl http://127.0.0.1:8080/metrics | findstr scaph_socket_power`. If step 2
79+
prints `Failed to open device : HANDLE(-1)`, the driver isn't loaded — do the
80+
test-signing step above and reboot.
81+
7582
Heimdall scrapes `http://127.0.0.1:8080/metrics` and reports the summed per-socket
7683
power (`scaph_socket_power_microwatts`) as `power.cpu` — pure Go, no cgo. If
7784
Scaphandre listens elsewhere, point Heimdall at it with `HEIMDALL_SCAPHANDRE_URL`;

0 commit comments

Comments
 (0)