diff --git a/README.md b/README.md index 6ffea804..fc78d368 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,13 @@ On some older versions of Windows you may need to surround parameter values with msiexec /i C:\Users\Administrator\Downloads\windows_exporter.msi ENABLED_COLLECTORS="ad,iis,logon,memory,process,tcp,thermalzone" TEXTFILE_DIR="C:\custom_metrics\" ``` +Powershell versions 7.3 and above require [PSNativeCommandArgumentPassing](https://learn.microsoft.com/en-us/powershell/scripting/learn/experimental-features?view=powershell-7.3) to be set to `Legacy` when using `--% EXTRA_FLAGS`: + +```powershell +$PSNativeCommandArgumentPassing = 'Legacy' +msiexec /i ENABLED_COLLECTORS=os,service --% EXTRA_FLAGS="--collector.service.services-where ""Name LIKE 'sql%'""" +``` + ## Kubernetes Implementation